/* EUGPSR.com — same visual system as myei.ca / benefitcanada.ca (cards, 16px radius), recoloured EU blue #1f4fbf + gold #ffcc00. */
:root {
  --primary: #1f4fbf; --primary-hover: #183f9c; --primary-soft: #eaf0fc; --gold: #ffcc00; --gold-hover: #f2bd00; --gold-soft: #fff8db;
  --text: #1d2433; --muted: #5b6475; --border: #d9dfeb; --bg: #ffffff; --surface: #f8f9fa; --surface-2: #f1f3f4;
  --ok: #137333; --ok-bg: #e6f4ea; --warn: #8a5300; --warn-bg: #fef7e0; --bad: #c5221f; --bad-bg: #fce8e6;
  --radius: 16px; --control: 8px; --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h3, .h4 { font-family: var(--font); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin-top: 1.6em; }
h3, .h3 { font-size: 1.2rem; font-weight: 600; }
h4, .h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
table { border-collapse: collapse; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(31,79,191,.45); outline-offset: 2px; }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1.35rem/1 var(--font); }
.brand b { color: var(--primary); font-weight: 700; }
.brand small { font-size: .8em; color: var(--muted); font-weight: 500; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; }
#primary-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#primary-nav a { color: var(--text); text-decoration: none; font: 500 .95rem/1 var(--font); padding: 10px 12px; border-radius: 999px; }
#primary-nav a:hover, #primary-nav a[aria-current] { background: var(--surface-2); color: var(--text); }
#primary-nav a.btn { color: #fff; background: var(--primary); margin-left: 6px; }
#primary-nav a.btn:hover { background: var(--primary-hover); }
.nav-toggle { display: none; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 .95rem var(--font); color: var(--text); cursor: pointer; }
.lang-row { display: flex; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
/* language menu: <details> so it works without JavaScript */
.lang-switch { position: relative; font-size: .9rem; }
.lang-switch summary { list-style: none; cursor: pointer; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: " ▾"; font-size: .8em; }
.lang-switch[open] summary, .lang-switch summary:hover { color: var(--primary); border-color: var(--primary); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px;
  min-width: 260px; max-width: calc(100vw - 32px); padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 24px rgba(29,36,51,.12); }
.lang-menu a, .lang-menu span { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; }
.lang-menu a:hover { background: var(--surface-2); color: var(--primary); }
.lang-menu [aria-current] { color: var(--primary); font-weight: 600; background: var(--primary-soft); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--control); border: 1px solid var(--primary); background: var(--primary); color: #fff; font: 500 1rem/1.3 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
form.tool { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; }
.field > label, legend { font: 500 .95rem/1.35 var(--font); color: var(--text); }
input[type=text], input[type=email], input[type=date], input[type=number], select {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--control); background: #fff; color: var(--text); font: 16px/1.3 var(--body); }
input:focus, select:focus { border-color: var(--primary); outline: 2px solid rgba(31,79,191,.25); outline-offset: 0; }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
fieldset.radios { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.radios legend { width: 100%; margin-bottom: 6px; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .95rem; background: #fff; }
.radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: #183f9c; }
.radio input { accent-color: var(--primary); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
details.optional { border: 1px dashed var(--border); border-radius: var(--control); padding: 10px 14px; }
details.optional summary { cursor: pointer; color: var(--muted); font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--bad); background: var(--bad-bg); border-radius: var(--control); padding: 10px 14px; margin: 0; font-size: .95rem; }
.form-ok { color: var(--ok); background: var(--ok-bg); border-radius: var(--control); padding: 10px 14px; margin: 0; font-size: .95rem; }
.privacy-note { margin: 0; color: var(--muted); font-size: .82rem; }
.hp { position: absolute; left: -5000px; }
[hidden] { display: none !important; }

/* layout pieces */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); }
.card-quiet { background: var(--surface); }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
a.card { text-decoration: none; color: var(--text); display: grid; gap: 6px; align-content: start; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--primary); box-shadow: 0 1px 6px rgba(60,64,67,.15); color: var(--text); }
a.card strong { font: 600 1.05rem/1.35 var(--font); }
a.card span { color: var(--muted); font-size: .92rem; }
.eyebrow { font: 500 .78rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 8px; }
a.card .eyebrow { margin: 0; }
.lead { font-size: 1.12rem; color: #3c4043; max-width: 60ch; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--surface); }
.section h2 { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.more { font-weight: 500; text-decoration: none; white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.page { padding-top: 12px; padding-bottom: 56px; }
.narrow { max-width: 720px; }
.prose { max-width: 820px; }
.notice { background: var(--warn-bg); border: 1px solid #f9e2a6; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.callout { background: var(--primary-soft); border-radius: 12px; padding: 12px 16px; }
.callout.strong { border-left: 4px solid var(--primary); }
.crumbs { font-size: .88rem; color: var(--muted); margin: 6px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--text); font-size: .92rem; }
.chips a:hover { border-color: var(--primary); color: var(--primary); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a { text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; font-size: .95rem; }
.table caption { text-align: left; color: var(--muted); font-size: .85rem; padding-bottom: 8px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font: 500 .85rem/1.3 var(--font); color: var(--muted); background: var(--surface); }
.table.compact td, .table.compact th { padding: 6px 12px; }

/* hero */
.hero { padding: clamp(20px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-tool { box-shadow: 0 4px 24px rgba(60,64,67,.12); }
.hero-tool h2 { margin-top: 0; }
.facts-strip { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(5, auto); gap: 18px; }
.facts-strip li { display: grid; gap: 2px; }
.facts-strip strong { font: 700 1.3rem/1.2 var(--font); color: var(--text); }
.facts-strip span { font-size: .82rem; color: var(--muted); }
.why h3 { font-size: 1.05rem; }
.why p { color: var(--muted); font-size: .93rem; margin: 0; }
.tool-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); display: inline-block; position: relative; }
.tool-icon::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); font: 700 1rem var(--font); }
.tool-icon[data-icon=eligibility]::after { content: "✓"; }
.tool-icon[data-icon=selfemployed]::after { content: "⌂"; }
.tool-icon[data-icon=parental]::after { content: "♥"; }
.tool-icon[data-icon=timeline]::after { content: "⏱"; }
.tool-icon[data-icon=sickness]::after { content: "+"; }
.tool-icon[data-icon=working]::after { content: "½"; }

/* tool page */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.tool-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.tool-side .card { padding: 18px 20px; }
.tool-side h2 { margin-top: 0; }
.result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.result:focus { outline: none; }
.result h3 { margin-top: 1.4em; }
.bigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 16px; }
.big { background: var(--surface); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.big-label { font-size: .82rem; color: var(--muted); }
.big-value { font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 var(--font); color: var(--text); }
.big-sub { font-size: .8rem; color: var(--muted); }
.verdict { display: inline-block; font: 600 1.15rem/1.3 var(--font); padding: 8px 14px; border-radius: 10px; margin: 0 0 12px; }
.verdict-yes { color: var(--ok); background: var(--ok-bg); }
.verdict-risk { color: var(--warn); background: var(--warn-bg); }
.verdict-no { color: var(--bad); background: var(--bad-bg); }
.ok-list li::marker { content: "✓  "; color: var(--ok); }
.risk-list li::marker { content: "!  "; color: var(--warn); font-weight: 700; }
.x-list li::marker { content: "✕  "; color: var(--bad); }
details.how { background: var(--surface); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
details.how summary { cursor: pointer; font-weight: 500; }
details.how ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: .93rem; }
.dates { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dates li { display: grid; grid-template-columns: 170px 1fr; gap: 2px 16px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.dates li span { color: var(--muted); font-size: .88rem; }
.dates li em { grid-column: 2; font-style: normal; color: var(--muted); font-size: .88rem; }
.next { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.result-note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 16px; }
.planner-box, .reminder-box { border: 1px solid var(--primary); background: #f5f8ff; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.planner-box h3, .reminder-box h3 { margin-top: 0; }
.planner-form, .reminder-form { display: grid; gap: 10px; max-width: 460px; }
.planner-form label, .reminder-form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.compare-col h3 { margin: 0 0 8px; }
.facts { padding-left: 18px; margin: 10px 0 0; font-size: .93rem; }
.flow { margin: 8px 0 16px; display: grid; gap: 10px; }
.flow-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: end; }
.flow-label { font-size: .85rem; color: var(--muted); }
.flow-bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; border-bottom: 1px solid var(--border); }
.flow-bar { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; min-width: 3px; }
.flow-row:nth-child(2) .flow-bar { background: #8ab4f8; }
.timeline { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 0; border-left: 2px solid var(--primary-soft); }
.timeline li { position: relative; padding: 0 0 18px 22px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
.timeline li.past::before { background: var(--border); }
.timeline li.past { color: var(--muted); }
.timeline .tl-date { font-size: .85rem; color: var(--primary); font-weight: 500; }
.timeline li p { margin: 0; }

/* articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 40px; justify-content: space-between; align-items: start; }
.article-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.article-side .card { padding: 18px 20px; }
.article-side h2 { margin-top: 0; }
.meta { color: var(--muted); font-size: .9rem; }
.answer { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 24px; font-size: 1.08rem; }
.answer p:last-child { margin-bottom: 0; }
.answer-label { font: 600 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: #183f9c; margin-bottom: 10px; }
.embed { margin: 24px 0; }
.embed > h2 { margin-top: 0; }
.article-main table { width: 100%; font-size: .95rem; margin: 12px 0 20px; display: block; overflow-x: auto; }
.article-main th, .article-main td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.article-main th { background: var(--surface); font-weight: 500; }
.module { margin-top: 8px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 2px solid var(--primary); border-radius: 4px; }
.steps { padding-left: 22px; display: grid; gap: 8px; }
.steps h3 { font-size: 1.05rem; margin: 0 0 4px; }
.steps .time { font: 500 .8rem var(--font); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.mistakes { padding-left: 22px; }
.mistakes h3 { font-size: 1.05rem; margin: 0 0 4px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font: 500 1.02rem/1.4 var(--font); }
.faq details div { padding-top: 8px; }
.sources ul { font-size: .92rem; }
.contact { background: var(--surface); border-radius: 12px; padding: 14px 18px; font-size: .95rem; }
.guide-group h2 { font-size: 1.3rem; }
.region-group h2 { font-size: 1.25rem; }
.ad { margin: 28px 0; }
.ad-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }

/* planner report */
.planner-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.plan h2 { font-size: 1.3rem; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand { font: 600 1.25rem var(--font); margin: 0 0 6px; }
.footer-brand b { color: var(--primary); }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-h { font: 600 .82rem var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.disclaimer { margin: 28px 0 8px; color: var(--muted); font-size: .85rem; max-width: 90ch; }

/* ---- EUGPSR additions ------------------------------------------------------------------------- */
h1 em { font-style: normal; color: var(--primary); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d2433; font-weight: 600; }
.btn-gold:hover { background: var(--gold-hover); color: #1d2433; }
#primary-nav a.nav-tools { color: #7a5a00; background: var(--gold-soft); }
#primary-nav a.nav-tools:hover { background: #ffefb0; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--control); font: 16px/1.5 var(--body); color: var(--text); resize: vertical; }
textarea:focus { border-color: var(--primary); outline: 2px solid rgba(31,79,191,.25); }
.req { color: var(--bad); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.narrow-wide { max-width: 920px; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, #fff6cc 0%, rgba(255,246,204,0) 60%), linear-gradient(180deg, #f2f6ff 0%, #fff 100%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.hero-card { box-shadow: 0 6px 28px rgba(29,36,51,.10); border-top: 4px solid var(--gold); }
.hero-card h2 { margin-top: 0; font-size: 1.35rem; }
.hero-steps { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 18px; }
.hero-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts-strip { grid-template-columns: repeat(4, auto); }
.pillar { padding: 26px; }
.pillar-icon { font-size: 1.8rem; line-height: 1; }
a.card.pillar em { font-style: normal; color: var(--primary); font-weight: 600; margin-top: 6px; }
.cat-icon { font-size: 2rem; line-height: 1; }
a.card.cat-card span:last-child { color: var(--primary); font-weight: 500; }
.section-band { padding: 28px 0; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.split-top { align-items: start; }
.section-block { margin: 36px 0; }
.section-block > h2 { margin-top: 0; }

/* calls to action */
.cta-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--gold-soft); border: 1px solid #ffe27a; border-radius: var(--radius); padding: 18px 22px; margin: 26px 0; }
.cta-tools p { margin: 0; }
.cta-tools .btn { flex: none; }
.cta-title { font: 700 1.1rem/1.35 var(--font); margin: 0 0 4px !important; color: var(--text); }
.cta-box { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.cta-box p { margin: 0 0 12px; }
.cta-alt { background: var(--surface); border: 1px solid var(--border); }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.cta-pair .cta-box { margin: 0; }
.article-side .cta-box { margin: 0; }

/* article */
.keypoints { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 22px; }
.keypoints-h, .toc-h { font: 600 .82rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.keypoints ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc { background: var(--surface); border-radius: 12px; padding: 14px 20px; margin: 0 0 10px; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-main section > h2 { scroll-margin-top: 90px; }
.article-main blockquote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--primary); background: var(--surface); border-radius: 0 10px 10px 0; }
.article-main code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.side-card p { margin: 0 0 10px; }
.side-h { font: 600 1rem/1.3 var(--font); }
.side-gold { background: var(--gold-soft); border-color: #ffe27a; }
.disclaimer-box { font-size: .86rem; color: var(--muted); background: var(--surface); border-radius: 12px; padding: 12px 16px; margin: 24px 0; }
.sources a { word-break: break-word; }

/* compliance check */
.check-form { display: grid; gap: 18px; }
.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: st; }
.stepper li { counter-increment: st; font: 500 .88rem/1.3 var(--font); color: var(--muted); border-top: 4px solid var(--border); padding-top: 8px; }
.stepper li::before { content: counter(st) ". "; }
.stepper li.on { color: var(--primary); border-color: var(--primary); }
.stepper li.done { color: var(--text); border-color: #9db4ea; }
fieldset.step { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.step-h { font: 700 1.2rem/1.35 var(--font); padding: 0; margin-bottom: 4px; }
.q { font: 600 1rem/1.4 var(--font); margin: 8px 0 0; }
.options { display: grid; gap: 10px; }
.options-grid { grid-template-columns: 1fr 1fr; }
.options-inline { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.option:hover { border-color: #9db4ea; }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.option span { display: grid; gap: 2px; }
.option small { color: var(--muted); font-size: .85rem; }
.sub-q { border-left: 3px solid var(--primary-soft); padding-left: 14px; display: grid; gap: 10px; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.step-msg { color: var(--bad); margin: 0; font-size: .92rem; }
.js .check-form .step:not(.current) { display: none; }
.result-card h3 { margin: 1.4em 0 .5em; font-size: 1.1rem; }
.result-card .verdict { font-size: 1.05rem; margin: 6px 0 8px; }
.result-list { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.law { display: inline-block; font-size: .78rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.more-link { font-size: .88rem; white-space: nowrap; }
.email-result { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; display: grid; gap: 8px; }
.email-result label { font: 600 .98rem var(--font); }
.inline-form { display: flex; gap: 8px; max-width: 520px; }
.inline-form input { flex: 1; }
.form-msg { margin: 0; font-size: .92rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--bad); }

/* directory + lead form */
.lead-form { display: grid; gap: 14px; }
.lead-form fieldset.field { border: 0; padding: 0; margin: 0; }
.lead-form legend { margin-bottom: 6px; padding: 0; }
.check-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.provider { display: grid; gap: 6px; align-content: start; }
.provider p { margin: 0; }
.provider-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 1.1rem var(--font); }
.badge { font: 600 .72rem/1 var(--font); background: var(--gold); color: #1d2433; border-radius: 999px; padding: 4px 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: .78rem; background: var(--surface-2); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.empty p { margin: 0 0 12px; }
.join-card summary { list-style: none; display: inline-flex; }
.join-card summary::-webkit-details-marker { display: none; }
.join-card[open] summary { margin-bottom: 18px; }
.chips { margin: 0 0 8px; }

/* admin */
.admin .table td { font-size: .85rem; }
.admin select { min-height: 32px; padding: 4px 8px; width: auto; }

@media (max-width: 960px) {
  .cta-pair, .cards-2 { grid-template-columns: 1fr; }
  .cta-tools { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .options-grid, .check-row { grid-template-columns: 1fr; }
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .inline-form { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}


@media (max-width: 1080px) {
  #primary-nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  #primary-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; flex-direction: column; align-items: stretch; }
  #primary-nav.open { display: flex; }
  #primary-nav a { padding: 12px 8px; border-radius: 8px; }
  #primary-nav a.btn { margin: 8px 0 0; }
  .hero-grid, .split, .tool-layout, .article-layout { grid-template-columns: 1fr; }
  .tool-side, .article-side { position: static; }
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .facts-strip { grid-template-columns: repeat(3, auto); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid2, .cards-3, .cards-4, .compare, .footer-grid { grid-template-columns: 1fr; }
  .bigs { grid-template-columns: 1fr; }
  .big { grid-template-columns: 1fr auto; align-items: center; }
  .big-value { grid-row: span 2; }
  .facts-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dates li { grid-template-columns: 1fr; }
  .dates li em { grid-column: 1; }
  .section-head { flex-direction: column; align-items: start; }
  .lang-row { padding-top: 4px; padding-bottom: 4px; }
  .planner-head { flex-direction: column; }
}
@media print {
  .topbar, .lang-row, .footer, .no-print, .ad, .crumbs { display: none !important; }
  body { font-size: 12pt; }
  .card, .big { border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
  details.how { display: block; }
}

/* quiz: label matrix, risk levels */
.matrix { display: grid; gap: 10px; }
.matrix-row { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.matrix-q { margin: 0; font-weight: 500; }
.matrix-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .93rem; }
.pill:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); }
.pill input { accent-color: var(--primary); margin: 0; }
.level { display: inline-block; font: 700 1.15rem/1.3 var(--font); padding: 8px 14px; border-radius: 10px; margin: 4px 0 10px; }
.level-red { color: var(--bad); background: var(--bad-bg); }
.level-yellow { color: var(--warn); background: var(--warn-bg); }
.level-green { color: var(--ok); background: var(--ok-bg); }
.level-grey { color: var(--muted); background: var(--surface-2); }
.result-list.todo li::marker { color: var(--bad); }
.result-list.unconfirmed li::marker { content: "?  "; color: var(--warn); font-weight: 700; }
.mistakes { padding-left: 22px; display: grid; gap: 6px; }
.mistakes h3 { font-size: 1.05rem; margin: 0 0 4px; }

/* ---- 2026-11-09: layout and look aligned with formaiquick.com (the owner's reference) ----
   wide page (content up to ~1500px, 20–48px side margins), white 78px header with the language menu in it,
   pale blue-grey page, Google-blue #0b57d0, tight bold headings, 8px cards, 6px buttons, grey footer. */
:root {
  --primary: #0b57d0; --primary-hover: #0842a0; --primary-soft: #e8f0fe;
  --text: #1f1f1f; --muted: #444746; --border: #dde3ea; --bg: #f8fafd; --surface: #f0f4f9; --surface-2: #eef2f8;
  --radius: 8px; --control: 6px; --wrap: 1600px; --gutter: clamp(20px, 4vw, 48px);
}
body { font-size: 15px; background: var(--bg); }
h1 { font-size: clamp(2.1rem, 4.7vw, 3.25rem); letter-spacing: -.045em; line-height: 1.1; }
h2 { letter-spacing: -.02em; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-row { min-height: 78px; gap: 20px; }
#primary-nav { margin-left: auto; gap: 6px; }
#primary-nav a { color: var(--muted); font-weight: 600; border-radius: 6px; padding: 8px 10px; }
#primary-nav a:hover, #primary-nav a[aria-current] { background: var(--primary-soft); color: var(--primary); }
#primary-nav a.btn { color: #fff; border-radius: 6px; padding: 9px 15px; }
.topbar .lang-switch summary { border-radius: 6px; padding: 7px 12px; font-weight: 600; }
.btn { border-radius: 6px; font-weight: 600; min-height: 44px; }
.btn-sm { min-height: 36px; }
.card { border-radius: var(--radius); }
a.card:hover { border-color: #aac4f0; box-shadow: none; }
.hero { background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-card, .hero-tool { box-shadow: none; border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 12px; background: #fff; }
.section-alt { background: #fff; }
.eyebrow { font: 700 .78rem/1.3 var(--font); letter-spacing: .11em; color: var(--primary); }
.eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 8px 2px 0; vertical-align: middle; }
a.card .eyebrow::before { display: none; }
.lead { color: var(--muted); font-size: 1.125rem; line-height: 1.8; }
.article-layout { grid-template-columns: minmax(0, 860px) 320px; gap: 56px; justify-content: start; }
.prose { max-width: 860px; }
.footer { background: var(--surface); border-top: 1px solid var(--border); font-size: .88rem; }
@media (max-width: 960px) {
  .topbar .lang-switch { order: 2; margin-left: auto; }
  #primary-nav { top: 78px; margin-left: 0; }
  .nav-toggle { order: 3; }
}
#primary-nav { flex-wrap: nowrap; white-space: nowrap; }
.topbar .lang-switch summary { white-space: nowrap; }
/* longer menu labels in the European languages: collapse to the ☰ menu earlier */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .topbar .lang-switch { order: 2; margin-left: auto; }
  .topbar-row { position: relative; }
  #primary-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; margin-left: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; flex-direction: column; align-items: stretch; white-space: normal; z-index: 25; }
  #primary-nav.open { display: flex; }
  #primary-nav a { padding: 12px 8px; }
  #primary-nav a.btn { margin: 8px 0 0; }
}
@media (max-width: 560px) {
  .topbar-row { gap: 10px; }
  .brand-text small { display: none; }
  .topbar .lang-label, .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .lang-switch summary { padding: 7px 10px; }
  .nav-toggle { padding: 8px 12px; }
  .lang-menu { right: -52px; }
}
