/* BoleNorth — "route map" design system.
   Program families are transit lines: Express Entry red, Provincial blue, Quebec violet,
   Pilots green, Business amber. Numbers are set in mono; headings in condensed sans. */
:root {
  --paper: #ffffff; --wash: #f2f4f6; --wash-2: #e9edf1; --line: #d9dfe5; --line-2: #c3ccd5;
  --ink: #0d1318; --ink-2: #3d4853; --ink-3: #66727e; --ink-inv: #ffffff;
  --ee: #d6262f; --pnp: #0a66cc; --qc: #6b3fbe; --pilot: #0a8457; --biz: #b86e00; --fed: #36414c;
  --ok: #0a8457; --ok-bg: #e5f4ec; --warn: #a35f00; --warn-bg: #fdf1dc; --bad: #c1272d; --bad-bg: #fbe7e7; --info-bg: #e6f0fb;
  --mark: #ffe36e;
  --radius: 4px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(13,19,24,.06), 0 8px 24px rgba(13,19,24,.06);
  --f-head: "IBM Plex Sans Condensed", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px; --gut: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1015; --wash: #141a21; --wash-2: #1b232c; --line: #26313c; --line-2: #34414e;
    --ink: #e9eef3; --ink-2: #b5c0ca; --ink-3: #8794a1; --ink-inv: #0c1015;
    --ee: #ff5a5f; --pnp: #4c9bff; --qc: #a782ff; --pilot: #2fc48a; --biz: #f2a530; --fed: #9fb0bf;
    --ok: #3fd08f; --ok-bg: #0f2a1f; --warn: #f2b14a; --warn-bg: #2e2312; --bad: #ff6b6b; --bad-bg: #331617; --info-bg: #10233a; --mark: #5a4b00;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1015; --wash: #141a21; --wash-2: #1b232c; --line: #26313c; --line-2: #34414e;
  --ink: #e9eef3; --ink-2: #b5c0ca; --ink-3: #8794a1; --ink-inv: #0c1015;
  --ee: #ff5a5f; --pnp: #4c9bff; --qc: #a782ff; --pilot: #2fc48a; --biz: #f2a530; --fed: #9fb0bf;
  --ok: #3fd08f; --ok-bg: #0f2a1f; --warn: #f2b14a; --warn-bg: #2e2312; --bad: #ff6b6b; --bad-bg: #331617; --info-bg: #10233a; --mark: #5a4b00;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-body); }
html[lang="zh-CN"] body { line-height: 1.75; letter-spacing: .01em; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--pnp); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 760px; }
.kicker { font: 600 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
html[lang="zh-CN"] .kicker { letter-spacing: .06em; font-size: 13px; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; padding: 0 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 700; } .brand span { color: var(--ink-3); font-weight: 600; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { padding: 8px 10px; border-radius: var(--radius); text-decoration: none; font: 500 15px/1 var(--f-body); color: var(--ink-2); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--wash); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 13px/1 var(--f-head); color: var(--ink-2); }
.lang .sw { position: relative; width: 44px; height: 24px; border-radius: 12px; background: var(--wash-2); border: 1px solid var(--line-2); transition: background .2s; }
.lang .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.lang[data-cur="zh"] .sw::after { transform: translateX(20px); }
.lang .on { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--ink-inv); font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.menu-btn { display: none; }

/* ---------- tool line (fixed tool place) ---------- */
.toolline { position: sticky; top: 60px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.toolline .wrap { display: flex; align-items: center; gap: 14px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.toolline .wrap::-webkit-scrollbar { display: none; }
.toolline .lbl { font: 700 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ee); white-space: nowrap; }
.stops { position: relative; display: flex; gap: 0; align-items: center; }
.stops::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); border-radius: 2px; }
.stop { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; margin-right: 6px; background: var(--paper); text-decoration: none; font: 600 14px/1 var(--f-head); white-space: nowrap; color: var(--ink-2); border-radius: 20px; }
.stop i { width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); flex: none; }
.stop:hover, .stop[aria-current="page"] { color: var(--ink); }
.stop[aria-current="page"] i, .stop:hover i { background: var(--ee); border-color: var(--ee); }
.stop .new { font: 600 10px/1 var(--f-mono); color: var(--pilot); }

/* ---------- route bullets & lines ---------- */
.bullet { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; color: #fff; font: 700 12px/1 var(--f-head); letter-spacing: .02em; background: var(--fed); flex: none; }
.bullet.sm { min-width: 22px; height: 22px; font-size: 10.5px; padding: 0 5px; }
.f-express-entry, .f-ee-category { --c: var(--ee); } .f-pnp-ee, .f-pnp-base { --c: var(--pnp); } .f-quebec { --c: var(--qc); }
.f-pilot, .f-federal-other { --c: var(--pilot); } .f-business { --c: var(--biz); }
.bullet[class*="f-"] { background: var(--c); }
.line-strip { height: 6px; display: flex; border-radius: 3px; overflow: hidden; }
.line-strip i { flex: 1; } .line-strip i:nth-child(1) { background: var(--ee); } .line-strip i:nth-child(2) { background: var(--pnp); } .line-strip i:nth-child(3) { background: var(--qc); } .line-strip i:nth-child(4) { background: var(--pilot); } .line-strip i:nth-child(5) { background: var(--biz); }

/* ---------- page head ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 18px; font: 500 13px/1.3 var(--f-body); color: var(--ink-3); list-style: none; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 18px; height: 2px; background: var(--line-2); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.phead { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.phead h1 { max-width: 920px; }
.phead .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--wash); border: 1px solid var(--line); font: 600 12.5px/1 var(--f-body); color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--info-bg); color: var(--pnp); border-color: transparent; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- layout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.side { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 18px; }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose table { margin: 1.2em 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
section.block { margin: 44px 0; }
.box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; background: var(--paper); }
.box.wash { background: var(--wash); border-color: transparent; }
.box h3, .box h4 { margin-top: 0; }
.card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 16px; text-decoration: none; background: var(--paper); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); }
.card h3 { font-size: 18px; margin: 10px 0 6px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card.line { border-left: 4px solid var(--c, var(--fed)); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: 14px 16px 16px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat .v { font: 600 32px/1.05 var(--f-mono); letter-spacing: -.03em; }
.stat .v small { font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.stat .k { font: 500 13px/1.35 var(--f-body); color: var(--ink-3); margin-top: 6px; }
.delta-up { color: var(--bad); } .delta-down { color: var(--ok); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: left; font: 600 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: var(--wash); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="zh-CN"] .t th { letter-spacing: .02em; font-size: 13px; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t td.n, .t th.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tbody tr:hover { background: var(--wash); }
.t a { text-decoration: none; font-weight: 500; } .t a:hover { text-decoration: underline; }

/* status line on pathway pages */
.status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--wash); margin: 0 0 28px; }
.status .bullet { margin-top: 2px; }
.status.open { background: var(--ok-bg); border-color: transparent; } .status.closed, .status.replaced { background: var(--bad-bg); border-color: transparent; }
.status.paused, .status.limited, .status.unknown, .status.in_transition { background: var(--warn-bg); border-color: transparent; }
.status b { display: block; font: 700 15px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* requirement list as a route with stations */
.route { list-style: none; padding: 0; margin: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--c, var(--ink)); }
.route > li { position: relative; padding: 0 0 18px 36px; }
.route > li::before { content: ""; position: absolute; left: 1px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--c, var(--ink)); }
.route > li:last-child { padding-bottom: 0; }
.route .rk { font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); display: block; margin-bottom: 3px; }
.route .src { font-size: 12.5px; color: var(--ink-3); }

/* sources */
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sources li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 14px; }
.sources .dom { font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); background: var(--wash); border: 1px solid var(--line); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.sources small { display: block; color: var(--ink-3); font-size: 12px; }

/* share */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share .lbl { font: 600 12px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; padding: 0; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 16px; height: 16px; fill: currentColor; }

/* notes */
.note { border-left: 4px solid var(--pnp); background: var(--info-bg); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14.5px; margin: 1.2em 0; }
.note.warn { border-color: var(--warn); background: var(--warn-bg); }
.disclaimer { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; }

/* chart */
.chart { width: 100%; height: auto; display: block; }
.chart .ax { stroke: var(--line); } .chart .tick { fill: var(--ink-3); font: 11px var(--f-mono); }
.chart .ln { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { stroke: var(--paper); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 14px; height: 4px; border-radius: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--wash); border-radius: 8px; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; font: 600 13px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* forms (tools) */
.form { display: grid; gap: 18px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 0; }
.fieldset legend { font: 700 13px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; padding: 0 6px; color: var(--ink-2); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
label.f { display: grid; gap: 6px; font: 500 14px/1.3 var(--f-body); color: var(--ink-2); }
label.f > span small { color: var(--ink-3); font-weight: 400; }
input[type=number], input[type=text], input[type=email], select, textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 15px var(--f-body); }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus { outline: 2px solid var(--pnp); outline-offset: -1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ink); }
.result { border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 20px; }
.result .big { font: 600 64px/1 var(--f-mono); letter-spacing: -.04em; }
.bar { height: 8px; background: var(--wash-2); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.verdict + .verdict { margin-top: 8px; }
.vchecks { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; display: grid; gap: 3px; }
.vchecks li::before { content: "●"; margin-right: 7px; font-size: 10px; vertical-align: 1px; }
.vchecks .y::before { color: var(--ok); } .vchecks .n::before { color: var(--bad); } .vchecks .u::before { color: var(--warn); }
details.more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* tool layout: form left, results right (equal weight) */
.toolgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.toolgrid > aside { position: sticky; top: 118px; max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-width: 960px) { .toolgrid { grid-template-columns: 1fr; } .toolgrid > aside { position: static; max-height: none; } }
/* footer */
.foot-site { margin-top: 80px; border-top: 3px solid var(--ink); background: var(--wash); padding: 40px 0 90px; font-size: 14px; color: var(--ink-2); }
.foot-site .grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-site h4 { font: 700 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot-site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-site a { text-decoration: none; } .foot-site a:hover { text-decoration: underline; }
.foot-site .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* home hero */
.hero { padding: 48px 0 30px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); }
.hero .lead { margin-bottom: 26px; }
.board { border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.board .bh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: var(--ink-inv); font: 700 13px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.board .bh .live { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-mono); letter-spacing: 0; text-transform: none; font-weight: 500; }
.board .bh .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fc48a; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.board .br { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.board .br:hover { background: var(--wash); }
.board .br .n { font: 500 13px var(--f-mono); color: var(--ink-3); }
.board .br .p { font-weight: 600; font-size: 14.5px; line-height: 1.25; } .board .br .p small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.board .br .c { font: 600 22px/1 var(--f-mono); }
.board .br .i { font: 500 12.5px var(--f-mono); color: var(--ink-3); text-align: right; min-width: 60px; }
.map-lines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* account / dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi .v { font: 600 28px/1.1 var(--f-mono); } .kpi .k { font-size: 13px; color: var(--ink-3); }
.empty { padding: 30px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.gate { text-align: center; padding: 48px 24px; border: 2px solid var(--ink); border-radius: var(--radius-lg); }
.feed-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.feed-item h3 { margin: 0; font-size: 17px; }
.feed-item .m { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--ink-3); align-items: center; }

/* mobile dock */
.dock { display: none; }
@media (max-width: 1080px) { .nav { display: none; } .menu-btn { display: inline-flex; } .cols { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .map-lines { grid-template-columns: repeat(2, 1fr); }
  .foot-site .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .toolline { display: none; }
  .top-actions .signin-txt { display: none; }
  .brand span { display: none; }
  .stat .v { font-size: 26px; }
  .stat + .stat { padding-left: 12px; }
  .board .br { grid-template-columns: 44px 1fr auto; } .board .br .i { display: none; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .dock a, .dock button { display: grid; justify-items: center; gap: 3px; border: 0; background: none; color: var(--ink-2); font: 600 11px/1 var(--f-body); text-decoration: none; padding: 4px 8px; cursor: pointer; }
  .dock svg { width: 22px; height: 22px; }
  .result .big { font-size: 52px; }
}
/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 92vw); background: var(--paper); padding: 20px; overflow-y: auto; box-shadow: var(--shadow); }
.drawer .panel.bottom { top: auto; left: 0; width: auto; max-height: 80vh; border-radius: 14px 14px 0 0; }
.drawer nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.drawer h4 { font: 700 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 6px; }
@media print { .top, .toolline, .dock, .share, .foot-site, .side { display: none !important; } }
