/* mpacappeal.ca — clean product style: light canvas, white panels, hairline borders, one blue accent. */
:root {
    --ink: #18181b; --ink-2: #35353a; --muted: #57575f; --faint: #626269;
    --line: #e5e5e8; --line-2: #c9c9cf;
    --bg: #f8fafd; --panel: #fff; --soft: #f0f4f9;
    --brand: #0b57d0; --brand-d: #0842a0; --brand-l: #e8f0fe;
    --ok: #137333; --ok-l: #e6f4ea; --warn: #8a6100; --warn-l: #fef7e0; --bad: #b3261e; --bad-l: #fce8e6;
    --r: 12px; --r-sm: 8px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-d); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; overflow-wrap: break-word; }
h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; margin: 0 0 0.5em; }
h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 0.35em; }
p { color: var(--muted); margin: 0 0 1em; }
strong { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: var(--r-sm); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- deadline bar ---------- */
.deadline-bar { background: var(--ink); color: #e4e4e7; font-size: 13.5px; }
.deadline-bar-inner { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.deadline-bar strong { color: #fff; }
.deadline-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #f28b82; box-shadow: 0 0 0 3px rgba(242,139,130,.25); }
.deadline-bar .cd { font-family: var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.deadline-bar a { color: #a8c7fa; margin-inline-start: auto; text-decoration: none; }
.deadline-bar a:hover { color: #fff; }
@media (max-width: 640px) { .deadline-bar a, .deadline-bar .hide-sm { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--brand); }
.brand small { color: var(--muted); font-weight: 600; font-size: 15px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; }
.nav { display: flex; gap: 2px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--ink); background: var(--soft); }
.nav-desktop { margin-inline-start: auto; }
.menu { display: none; margin-inline-start: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 11px; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .nav { position: absolute; inset-inline-end: 0; top: 46px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; min-width: 200px; box-shadow: 0 8px 24px rgba(21,27,46,.08); }
@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .menu { display: block; }
}
@media (max-width: 520px) { .site-header .header-cta { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 6px; padding: 14px 24px; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 0.88rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1, .page-head h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 700; max-width: 920px; margin: 0 0 16px; }
.hero h1 span, .page-head h1 span { color: var(--brand); }
.lead { font-size: 18px; line-height: 1.6; color: #444746; max-width: 760px; margin-bottom: 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 13.5px; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) { .hero { padding: 36px 0 16px; } .lead { font-size: 16.5px; } }

.page-head { padding: 44px 0 12px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); }

/* ---------- sections ---------- */
.section { padding: 48px 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 680px; }

/* ---------- panels / cards ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--brand); color: var(--ink); }
.card p { margin: 0; font-size: 0.93rem; line-height: 1.5; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.9rem; color: var(--brand); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: 14px; margin-bottom: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; border-radius: 999px; padding: .3em .8em; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-l); }
.badge-brand { color: var(--brand-d); background: var(--brand-l); }
.badge-warn { color: var(--warn); background: var(--warn-l); }

/* ---------- deadline card ---------- */
.deadline-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; position: relative; overflow: hidden; }
.deadline-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--bad); }
.deadline-card .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bad); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 4px; text-align: center; }
.countdown b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown span { font-size: 12px; color: var(--muted); }
.deadline-card p { font-size: 0.92rem; margin: 0; }
.price-line { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-line b { font-size: 40px; letter-spacing: -0.04em; line-height: 1; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: end; white-space: nowrap; }
tr.us td { background: var(--brand-l); font-weight: 600; color: var(--brand-d); }
tr.us td strong { color: var(--brand-d); }
.source { font-size: 0.82rem; color: var(--faint); margin-top: 10px; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 4px; color: var(--ink-2); }
.field .hint { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 3px; font-weight: 400; }
input[type="text"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
    width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .55em .7em;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
input[type="range"] { width: 100%; accent-color: var(--brand); margin: 6px 0 0; }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .95rem; pointer-events: none; }
.input-money input { padding-inline-start: 1.5em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-3 { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; background: var(--soft); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 13.75px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.errors { background: var(--bad-l); color: var(--bad); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 14px; font-size: 0.92rem; }
.errors ul { margin: 0; padding-inline-start: 18px; }
.field-validation-error { color: var(--bad); font-size: 0.82rem; }
.input-validation-error { border-color: var(--bad) !important; }
details.more-fields > summary { cursor: pointer; font-weight: 500; color: var(--brand); font-size: 0.92rem; margin-bottom: 10px; }

/* ---------- tool (check page) ---------- */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; }
.tool-input { padding: 22px 24px; border-inline-end: 1px solid var(--line); }
.tool-output { padding: 22px 24px; background: var(--bg); }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; } .tool-input { border-inline-end: 0; border-bottom: 1px solid var(--line); } }
.tool h2 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tool .group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tool .group:last-of-type { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
.comp { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px 2px; margin-bottom: 10px; background: #fff; position: relative; }
.comp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comp-head b { font-size: 0.86rem; color: var(--ink-2); }
.comp .field { margin-bottom: 10px; }
.empty-state { text-align: center; padding: 36px 10px; color: var(--muted); }
.empty-state .ic { display: grid; place-items: center; margin: 0 auto 12px; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-l); color: var(--brand); font-size: 22px; }

.verdict { border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; border: 1px solid; }
.verdict h3 { font-size: 20px; letter-spacing: -0.02em; margin: 4px 0 4px; }
.verdict p { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.verdict.high { background: var(--ok-l); border-color: #c6e7d0; }
.verdict.high .tag { color: var(--ok); }
.verdict.close { background: var(--warn-l); border-color: #f5e3a8; }
.verdict.close .tag { color: var(--warn); }
.verdict.notrecommended, .verdict.insufficient { background: #fff; border-color: var(--line); }
.verdict .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.stat span { display: block; font-size: 0.76rem; color: var(--muted); }
.stat b { font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } }
.reasons { margin: 0 0 14px; padding-inline-start: 18px; font-size: 0.93rem; color: var(--ink-2); }
.reasons li { margin-bottom: 4px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.kv:last-child { border-bottom: 0; }

.preview { position: relative; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; margin-bottom: 14px; }
.preview-head { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: #fafbfc; }
.preview table { font-size: 0.78rem; }
.preview th, .preview td { padding: 6px 10px; }
.preview .blur { filter: blur(4px); user-select: none; }
.preview-lock { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; text-align: center; background: linear-gradient(transparent, #fff 55%); font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.buy-box { background: #fff; border: 1px solid var(--brand); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.buy-box ul { margin: 8px 0 14px; padding-inline-start: 18px; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.calc-in { padding: 22px 24px; border-inline-end: 1px solid var(--line); }
.calc-out { padding: 22px 24px; background: var(--bg); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in { border-inline-end: 0; border-bottom: 1px solid var(--line); } }
.calc-big { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 150px 1fr 82px; align-items: center; gap: 10px; font-size: 0.9rem; }
.bar .track { height: 10px; background: #e9edf3; border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: #9aa0a6; border-radius: 99px; transition: width .2s; }
.bar.us .fill { background: var(--brand); }
.bar.us { font-weight: 700; color: var(--brand-d); }
.bar b { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bar { grid-template-columns: 110px 1fr 70px; font-size: .84rem; } }
.net { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.net b { font-size: 22px; color: var(--ok); font-variant-numeric: tabular-nums; }

/* ---------- notes, faq, article ---------- */
.note { border-radius: var(--r-sm); padding: 12px 14px; font-size: 0.88rem; background: var(--soft); color: var(--ink-2); }
.note.danger { background: var(--bad-l); color: #5f1a14; }
.note.danger strong { color: var(--bad); }
.note.warn { background: var(--warn-l); color: #4d3800; }
.faq details { border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: .8em 1.1em; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6em 0 0; color: var(--ink-2); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 32px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; }
@media (max-width: 640px) { .prose { padding: 20px; } }
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.side { position: sticky; top: 90px; display: grid; gap: 14px; }
.side-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.side-cta p { font-size: 0.92rem; }
.side-links a { display: block; padding: 6px 0; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.side-links a:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 36px 0 18px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: .3em; }
.footer-brand b { color: var(--brand); }
.footer-h { font-weight: 700; font-size: .9rem; margin-bottom: .4em; }
.footer-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: .9rem; padding: .15em 0; }
.footer-col a:hover { color: var(--brand); }
.disclaimer-line { font-size: .82rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 6px; }

@media print {
    .deadline-bar, .site-header, .footer { display: none; }
}

/* Homepage and assessment workflow */
.hero {
  padding-block: clamp(28px, 5vw, 64px);
  background: radial-gradient(ellipse at 85% 5%, #e3eeff, transparent 65%), #f4f8ff;
  border-bottom: 1px solid var(--line);
}
.hero h1, .page-head h1 { text-wrap: balance; }
.deadline-card, .calc, .tool {
  border-radius: 18px;
  box-shadow: 0 12px 36px rgb(22 52 93 / 9%);
}
.tool-output { background: #eef4fc; }
.empty-state { padding: clamp(20px, 3vw, 36px); }
.hero .btn, .tool .btn { min-height: 44px; }
.hero :focus-visible, .calc :focus-visible, .tool :focus-visible {
  outline: 2px solid var(--brand-d);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .hero .btn-row .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- language switcher ---------- */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--ink-2); }
.lang-menu .lang-code { display: none; font-weight: 600; }
.lang-list { position: absolute; inset-inline-end: 0; top: 44px; z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(21,27,46,.12); min-width: 180px; max-height: min(70vh, 560px); overflow-y: auto; }
.lang-list a { display: block; padding: 7px 12px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 15px; text-align: match-parent; }
.lang-list a:hover { background: var(--soft); color: var(--ink); }
.lang-list a[aria-current="true"] { background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.menu + .lang-menu { margin-inline-start: 0; }
@media (max-width: 900px) { .lang-menu .lang-name { display: none; } .lang-menu .lang-code { display: inline; } }
@media (max-width: 380px) { .header-inner { gap: 8px; } .brand { font-size: 17px; } }
.mt-notice { color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 6px; }

/* ---------- right-to-left (ar, fa, ur) ---------- */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Nastaliq Urdu", system-ui, Arial, sans-serif; }
[dir="rtl"] .eyebrow, [dir="rtl"] th, [dir="rtl"] .deadline-card .label, [dir="rtl"] .verdict .tag { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .hero h1, [dir="rtl"] .page-head h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .faq summary::after { content: "+"; }
[dir="rtl"] .num, [dir="rtl"] .calc-big, [dir="rtl"] .countdown b { direction: ltr; unicode-bidi: isolate; }
/* Top-bar countdown in RTL: keep the line right-to-left (units read in order: days first, on the right) and isolate only
   the numbers. Forcing the whole line LTR let the bidi algorithm pair Arabic unit letters with the wrong numbers. */
[dir="rtl"] .deadline-bar .cd { unicode-bidi: isolate; }
[dir="rtl"] .deadline-bar .cd [data-cd] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="number"], [dir="rtl"] input[type="date"] { direction: ltr; text-align: end; }
/* Money fields read like the amounts elsewhere: "$" on the left, digits left to right. */
[dir="rtl"] .input-money { direction: ltr; }
[dir="rtl"] .input-money input { text-align: start; }
/* Tight negative tracking suits Latin headings only; it breaks joined and CJK scripts. */
html:not([lang^="en"]):not([lang="fr"]):not([lang="es"]):not([lang="pt"]):not([lang="it"]):not([lang="tl"]):not([lang="vi"]):not([lang="ru"]) :is(h1, h2, h3, .eyebrow, th, .label, .tag) { letter-spacing: 0; }
.site-header.compact .nav-desktop { display: none; }
.site-header.compact .menu { display: block; }
.site-header.compact .lang-menu .lang-name { display: none; }
.site-header.compact .lang-menu .lang-code { display: inline; }
.site-header.compact-2 .header-cta { display: none; }
.menu .nav a { white-space: normal; }
.menu .nav { max-width: calc(100vw - 32px); }

/* Sister-site cross-promotion (Cluster A): result-page box and footer line. Same look on all three sites. */
.related-tools { margin: 32px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); text-align: start; }
.related-tools h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.related-tools-lead { margin: 0 0 16px; color: var(--muted); }
.related-tools-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.related-tools-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.related-tools-card h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.related-tools-card p { margin: 0; color: var(--muted); }
.more-tools { margin: 0 0 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.more-tools p { margin: 0 0 6px; }
.more-tools .more-tools-h { margin-bottom: 8px; }
.more-tools strong { color: var(--ink); }
.more-tools a { overflow-wrap: anywhere; }
.brand-line a { color: inherit; text-decoration: underline; }
@media print { .related-tools, .more-tools { display: none !important; } }
