/* Canada Visa Wait */
:root {
  color-scheme: light dark;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f1f4f9;
  --ink: #0f1c2e; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-strong: #cbd5e1;
  --brand: #0b63ce; --brand-strong: #0a4fa6; --brand-soft: #e7f0fd; --on-brand: #ffffff;
  --focus: rgba(11, 99, 206, .22); --bar: #9cc2f2;
  --up: #c2410c; --up-soft: #fff0e6; --down: #157a3c; --down-soft: #e3f6ea; --same: #475569; --same-soft: #eaeef4;
  --hero-a: #dcebff; --hero-b: #d8f5ef; --hero-c: #efe9ff;
  --band: #e8edf6;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, .06);
  --shadow: 0 1px 2px rgba(15, 28, 46, .04), 0 8px 24px rgba(15, 28, 46, .07);
  --shadow-lg: 0 2px 6px rgba(15, 28, 46, .05), 0 18px 48px rgba(15, 28, 46, .12);
  --r-lg: 24px; --r: 18px; --r-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111a2c; --surface-2: #17223a;
    --ink: #e8eef8; --ink-2: #c4cfdf; --muted: #8e9db4; --line: #223049; --line-strong: #2f405f;
    --brand: #5aa2ff; --brand-strong: #8cbfff; --brand-soft: #142a4a; --on-brand: #06121f;
    --focus: rgba(90, 162, 255, .3); --bar: #2c5a92;
    --up: #ff9a62; --up-soft: #3a2216; --down: #5bd68a; --down-soft: #12301f; --same: #a9b5c7; --same-soft: #1d283c;
    --hero-a: #10284a; --hero-b: #0d3332; --hero-c: #1f1a40;
    --band: #0d1628;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
  }
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--font);
       -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(1.8rem, 1.25rem + 2.3vw, 2.7rem); font-weight: 800; margin: 2px 0 10px; text-wrap: balance; }
h2 { font-size: clamp(1.3rem, 1.12rem + .8vw, 1.7rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink);
        padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { left: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
@supports (background: color-mix(in srgb, red 50%, blue)) and ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: color-mix(in srgb, var(--surface) 84%, transparent);
                 -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: 10px 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font-weight: 800; font-size: 1.08rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.logo { width: 32px; height: 32px; flex: none; border-radius: 7px; }
/* The mark's navy tile is close to the dark header and footer, so there it gets a faint edge. */
@media (prefers-color-scheme: dark) { .logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); } }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600;
         font-size: .92rem; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--brand-soft); color: var(--brand-strong); }

/* page heads */
.page-head, .hero {
  background: radial-gradient(60% 120% at 0% 0%, var(--hero-a) 0%, transparent 60%),
              radial-gradient(50% 110% at 100% 0%, var(--hero-b) 0%, transparent 60%), var(--bg); }
.page-head { padding: 18px 0 30px; }
.page-head.has-lift { padding-bottom: 92px; }
.hero { padding: 46px 0 42px;
  background: radial-gradient(50% 90% at 0% 0%, var(--hero-a) 0%, transparent 65%),
              radial-gradient(45% 80% at 100% 10%, var(--hero-b) 0%, transparent 65%),
              radial-gradient(40% 60% at 60% 100%, var(--hero-c) 0%, transparent 70%), var(--bg); }
.hero h1 { font-size: clamp(2.05rem, 1.3rem + 3.4vw, 3.5rem); max-width: 860px; letter-spacing: -0.03em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 16px; font-size: .86rem;
          color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .sep { opacity: .6; }
.eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
           color: var(--brand-strong); }
.lede { max-width: 760px; margin: 0; font-size: clamp(1.04rem, 1rem + .3vw, 1.18rem); color: var(--ink-2); }
.updated { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 10px;
           border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
           font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
                   box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }

/* forms */
select, input[type="date"], input[type="search"], input[type="text"], input[type="email"], textarea {
  max-width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background-color: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; }
input[type="text"], input[type="email"], textarea { width: 100%; }
textarea { min-height: 132px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
input[type="search"] { width: 100%; padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M14 14l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center; background-size: 18px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus);
                                            background-color: var(--surface); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0;
       border-radius: 14px; background: var(--brand); color: var(--on-brand); font: inherit; font-size: 1rem;
       font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
       box-shadow: 0 10px 24px -10px var(--brand); transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.picker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 12px; align-items: end;
          max-width: 940px; margin: 26px 0 0; padding: 18px; background: var(--surface); border: 1px solid var(--line);
          border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.picker .btn { justify-self: start; }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 6px 2px; font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field select { width: 100%; }
.field.ask select { border-color: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; }
.switch label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.switch select { width: 290px; min-height: 42px; padding-top: 7px; padding-bottom: 7px; background-color: var(--surface); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.quick > span { margin-right: 2px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.pill { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; background: var(--surface);
        border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: .88rem;
        font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--brand); color: var(--brand); }

/* sections and cards */
.sec { padding: 30px 0; }
.sec-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lift { position: relative; margin-top: -72px; padding-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px;
            margin: 0 0 18px; }
.sec-head p { max-width: 720px; margin: 6px 0 0; color: var(--muted); }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }
.card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
        box-shadow: var(--shadow); }
.sec-alt .card, .sec-alt .wcard, .sec-alt .explain, .sec-alt .faq details { background: var(--bg); box-shadow: none; }
.stack { display: grid; gap: 16px; margin-top: 16px; }
.stack:first-child { margin-top: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.wcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px;
         background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
         color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.wcard:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.wcard-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wcard-title { font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.wcard-fig { margin-top: 4px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
             font-variant-numeric: tabular-nums; }
.wcard-fig small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.wcard-none { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.wcard-sub { font-size: .86rem; color: var(--muted); }
.wcard .chip { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem;
        font-weight: 700; line-height: 1.5; }
.chip.up { background: var(--up-soft); color: var(--up); }
.chip.down { background: var(--down-soft); color: var(--down); }
.chip.same { background: var(--same-soft); color: var(--same); }

/* the answer card */
.answer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden;
          background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.answer-single { grid-template-columns: minmax(0, 1fr); }
.answer-main, .answer-side { padding: 28px 30px; }
.answer-side { background: var(--surface-2); border-left: 1px solid var(--line); }
.label { display: block; margin: 0 0 8px; font-size: .76rem; font-weight: 700; letter-spacing: .07em;
         text-transform: uppercase; color: var(--muted); }
.label-gap { margin-top: 22px; }
.fig { margin: 0; color: var(--ink); font-weight: 800; line-height: 1; letter-spacing: -0.035em;
       font-variant-numeric: tabular-nums; }
.fig-n { font-size: clamp(3.4rem, 2.4rem + 4vw, 5rem); }
.fig-u { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-2); }
.fig-q { margin-right: 10px; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em;
         color: var(--ink-2); }
.fig-none { font-size: 1.7rem; letter-spacing: -0.02em; }
.approx { margin: 10px 0 0; font-size: 1.06rem; font-weight: 600; color: var(--ink-2); }
.answer .chips { margin-top: 14px; }
.asof { margin: 18px 0 0; font-size: .86rem; color: var(--muted); }
.side-fig { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
            font-variant-numeric: tabular-nums; }
.side-fig small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.side-fig + .chips { margin-top: 10px; }
.answer .label-gap { margin-top: 24px; }
.when { margin: 6px 0 0; font-size: 1.03rem; color: var(--ink-2); }
.when strong { color: var(--ink); }
.calc { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line-strong); }
.calc label { display: block; margin: 0 0 6px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.calc input { width: 100%; max-width: 250px; background-color: var(--surface); }
.calc output { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft);
               color: var(--ink); font-size: .97rem; }
.calc output:empty { display: none; }
.fine { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }

/* plain-English points */
.points { display: grid; gap: 10px; max-width: 880px; margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding: 14px 16px 14px 46px; background: var(--surface); border: 1px solid var(--line);
             border-radius: 14px; color: var(--ink-2); }
.points li strong { color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 16px; height: 16px; border-radius: 50%;
                     background: var(--brand-soft); box-shadow: inset 0 0 0 5px var(--brand); }

/* charts */
.chart { margin: 0; }
.plot { position: relative; height: 250px; margin: 40px 14px 0 48px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .grid { stroke: var(--line); stroke-width: 1; }
.plot .line { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.plot .g0 { stop-color: var(--brand); stop-opacity: .24; }
.plot .g1 { stop-color: var(--brand); stop-opacity: 0; }
.ylab { position: absolute; left: -48px; width: 40px; transform: translateY(-50%); text-align: right; font-size: .75rem;
        color: var(--muted); font-variant-numeric: tabular-nums; }
.xaxis { position: relative; height: 24px; margin: 8px 14px 0 48px; }
.xaxis span { position: absolute; top: 0; transform: translateX(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.dot { position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--brand);
       border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--brand); }
.dot-peak { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--surface); border: 0;
            box-shadow: 0 0 0 2px var(--muted); }
.tag { position: absolute; transform: translate(calc(-100% + 10px), calc(-100% - 12px)); padding: 3px 9px;
       border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .76rem; font-weight: 700;
       white-space: nowrap; }
.tag-peak { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong); font-weight: 600;
            transform: translate(12px, -50%); }
.tag-peak.l { transform: translate(calc(-100% - 12px), -50%); }
.chart-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* tabs (radio buttons, no JavaScript needed) */
.tabs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tabs > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tabs > label { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
                color: var(--ink-2); font-size: .88rem; font-weight: 700; cursor: pointer; user-select: none; }
.tabs > label:hover { border-color: var(--line-strong); }
.tabs > input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tabs > input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.tabs-big > label { padding: 9px 18px; font-size: .98rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.tab-panels { flex: 1 0 100%; min-width: 0; margin-top: 12px; }
.tab-panel { display: none; }
.tabs > input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabs > input:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabs > input:nth-of-type(5):checked ~ .tab-panels > .tab-panel:nth-child(5) { display: block; }

/* comparisons and lists */
.bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; align-items: center; gap: 14px;
           font-size: .95rem; }
.bar-row > a, .bar-row > .name { overflow: hidden; color: var(--ink); font-weight: 600; text-decoration: none;
                                 text-overflow: ellipsis; white-space: nowrap; }
.bar-row > a:hover { color: var(--brand); text-decoration: underline; }
.bar { height: 12px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.bar-row.me > a { color: var(--brand-strong); font-weight: 800; }
.bar-row.me .bar > span { background: var(--brand); }
.bar-row.ref > .name { color: var(--muted); }
.bar-row.ref .bar > span { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.bar-val { min-width: 76px; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.filter { max-width: 460px; margin: 0 0 16px; }
.clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px 14px;
         margin: 0; padding: 0; list-style: none; }
.clist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
            min-height: 50px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line);
            border-radius: 12px; }
.clist.trend li { grid-template-columns: minmax(0, 1fr) auto 104px; }
.clist li > a { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.clist li > a:hover { color: var(--brand); text-decoration: underline; }
.clist .v { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clist .t { display: flex; justify-content: flex-start; }
.clist .chip { padding: 2px 8px; font-size: .74rem; white-space: nowrap; }
.clist .letter { display: block; grid-column: 1 / -1; min-height: 0; padding: 14px 2px 2px; background: none; border: 0;
                 font-size: 1.1rem; font-weight: 800; color: var(--muted); }
.empty { color: var(--muted); }
.rank { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line);
           counter-increment: r; }
.rank li:last-child { border-bottom: 0; }
.rank li > a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rank li > a::before { content: counter(r) "."; margin-right: 8px; color: var(--muted); }
.rank .v { font-weight: 700; white-space: nowrap; }
.movers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.movers h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mover-list { margin: 0; padding: 0; list-style: none; }
.mover-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
                 border-bottom: 1px solid var(--line); }
.mover-list li:last-child { border-bottom: 0; }
.mover-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mover-list a:hover { color: var(--brand); }
.mover-list small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.from-to { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.from-to .old { font-weight: 500; color: var(--muted); }

/* explanations and questions */
.explain-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.explain { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.explain-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px;
             background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; }
.explain h3 { margin-bottom: 6px; }
.explain p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.callout { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--brand-soft);
           color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout p { margin: 0; }
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { padding: 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { position: relative; padding: 16px 32px 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px;
                      border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
                      transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink-2); }
.faq details > div p { margin: 0; }
.more-data { margin-top: 16px; border-top: 1px solid var(--line); }
.more-data > summary { padding: 14px 0 4px; color: var(--brand); font-weight: 700; cursor: pointer; list-style: none; }
.more-data > summary::-webkit-details-marker { display: none; }
.more-data > summary::before { content: "+ "; }
.more-data[open] > summary::before { content: "− "; }
.card > .more-data:first-child, .card > h3 + .more-data { margin-top: 4px; }
.card h3 + .more-data, .card .more-data + h3 { margin-top: 18px; }
.lookup > p { color: var(--ink-2); }
.lookup-row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: end; margin-top: 8px; }
.lookup-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lookup-out > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.lookup-out .label { margin-bottom: 4px; }
.lookup-out b { font-size: 1.12rem; }
.lookup-out.on > div { background: var(--brand-soft); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; margin: 8px 0 4px; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; }
table.data th { padding: 8px 10px; text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
                text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: 0; }
td.up { color: var(--up); font-weight: 600; }
td.down { color: var(--down); font-weight: 600; }

/* ads, prose, footer */
.ad, .offer { margin: 8px 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.adlabel { display: block; margin-bottom: 6px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.offer h2 { margin-bottom: 6px; font-size: 1.15rem; }
.prose { max-width: 780px; }
.prose h2 { margin: 28px 0 8px; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.note { font-size: .86rem; color: var(--muted); }
.site-footer { margin-top: 40px; padding: 44px 0 26px; background: #0a1322; color: #b7c4d8; font-size: .92rem; }
.site-footer a { color: #e3ecf8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.brand-foot { margin-bottom: 12px; color: #fff; }
.brand-foot:hover { color: #fff; }
.brand-foot .logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.foot-legal { font-size: .86rem; color: #93a4bd; }
.foot-legal strong { color: #d6e0ee; }
.foot-col h2 { margin: 4px 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8193ad; }
.foot-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 30px; padding-top: 18px;
               border-top: 1px solid #1c2a42; font-size: .85rem; color: #8193ad; }
.foot-bottom p { margin: 0; }
.foot-links { display: flex; gap: 18px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #070d18; border-top: 1px solid var(--line); } }

/* "Also from Manr.ai": tinted, so it reads as its own band between the page and the dark footer */
.also { margin-top: 40px; padding: 32px 0 36px; background: var(--band); border-top: 1px solid var(--line); }
.also + .site-footer { margin-top: 0; }
.also-title { margin: 0 0 16px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
              color: var(--ink-2); }
.also-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0;
             list-style: none; }
.also-card { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px 18px; color: var(--ink);
             text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
             transition: border-color .15s, box-shadow .15s, transform .15s; }
.also-card:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.also-mark { flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 12px;
             box-shadow: 0 0 0 1px rgba(15, 28, 46, .08); }
.also-mark svg { display: block; width: 100%; height: 100%; }
.also-name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.also-arrow { color: var(--brand); transition: transform .15s; }
.also-card:hover .also-arrow { transform: translateX(2px); }
.also-blurb { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
/* The marks sit on a #0F172A field, so in dark mode the cards are a step lighter and the tiles get an edge. */
@media (prefers-color-scheme: dark) {
  .also-card { background: var(--surface-2); }
  .also-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
}

/* contact form and the privacy page's analytics switch */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
.contact-intro h2 { margin-bottom: 12px; }
.contact-intro > p { margin-bottom: 18px; color: var(--ink-2); font-size: 1.05rem; }
.contact-form { display: grid; gap: 16px; }
.contact-form .field label { margin-bottom: 6px; }
.contact-form .btn { justify-self: start; }
.contact-done h3 { margin-bottom: 8px; }
.contact-done:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .94rem; }
.form-status:empty { display: none; }
.form-status.error { padding: 12px 14px; border-radius: var(--r-sm); background: var(--up-soft); color: var(--ink); }
.switch-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 16px; padding: 14px 16px;
              background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.switch-box p { margin: 0; font-weight: 700; color: var(--ink); }
.switch-box .btn { min-height: 42px; padding: 0 18px; font-size: .94rem; }
@media (min-width: 981px) { .sec[id] { scroll-margin-top: 66px; } }

/* smaller screens */
@media (max-width: 980px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 6px; min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  .nav { flex-wrap: wrap; width: calc(100% + 8px); margin: 0 -8px; overflow: visible; }
  .nav a { padding: 7px 8px; font-size: .86rem; }
}
@media (max-width: 760px) {
  .picker { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .picker .btn { justify-self: stretch; }
  .answer { grid-template-columns: minmax(0, 1fr); }
  .answer-side { border-left: 0; border-top: 1px solid var(--line); }
  .answer-main, .answer-side { padding: 22px 20px; }
  .lookup-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .also-list { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn { justify-self: stretch; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { flex-wrap: nowrap; width: calc(100% + 32px); margin: 0 -16px; padding: 0 56px 2px 4px; overflow-x: auto;
         -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .nav a { padding: 7px 12px; }
  .sec { padding: 24px 0; }
  .card { padding: 16px; }
  .switch select { width: 100%; }
  .plot { height: 200px; margin-left: 40px; margin-right: 10px; }
  .tag-peak { display: none; }
  .ylab { left: -40px; width: 34px; }
  .xaxis { margin-left: 40px; margin-right: 10px; }
  .bar-row { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) auto; gap: 10px; font-size: .9rem; }
  .bar-val { min-width: 64px; }
  .lookup-out { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
