/* /check, /register (and /home-old): Tax Alalay look. Every colour, font, radius and
 * button style comes from tokens.css (the home page's tokens). Light mode only for now.
 * Amber (--accent, --warn) is never a text colour: only backgrounds, borders and icons. */
:root {
  color-scheme: light;
  /* Four result states, from the home palette (all WCAG AA). "Might fit" is soft teal with a
     teal border, calmer than the solid teal of "fits". */
  --st-nomatch: var(--dark-2);     --st-nomatch-ink: #FFFFFF;      /* doesn't fit  14.6:1 */
  --st-match: var(--primary);      --st-match-ink: #FFFFFF;        /* fits          5.5:1 */
  --st-split: var(--primary-soft); --st-split-ink: var(--text);    /* might fit    15.8:1 */
  --st-unknown: var(--accent-soft); --st-unknown-ink: var(--text); /* can't tell   16.0:1 */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
main { outline: none; }
/* The home page's header (logo and name, links home), lined up with the page column. */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .logo {
  display: flex; align-items: center; gap: 10px; max-width: 560px; min-height: 70px; margin: 0 auto; padding: 0 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.site-header .mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.site-header .mark svg { width: 19px; height: 19px; color: #fff; }
.screen { max-width: 560px; margin: 0 auto; padding: 12px 16px 40px; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: 2rem; line-height: 1.12; margin: 8px 0 14px; }
h1:focus { outline: none; }
h2 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.sub { color: var(--text-muted); }
.small { font-size: var(--fs-small); color: var(--text-muted); }
.gloss { color: var(--text-muted); font-style: italic; font-size: .92em; }

/* Buttons: the home page's .btn (primary) and .ghost (secondary). Full width, 48px+. */
button, .button {
  font: inherit; font-weight: 700; border-radius: var(--radius-pill); cursor: pointer;
  min-height: 56px; padding: 15px 28px; border: 1.5px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
}
.primary {
  background: var(--primary); color: #fff; width: 100%;
  box-shadow: 0 3px 0 var(--shelf); transition: transform .08s, box-shadow .08s;
}
.primary:active { transform: translateY(3px); box-shadow: 0 0 0 var(--shelf); }
.primary:disabled { background: var(--border); color: var(--text-muted); box-shadow: none; transform: none; cursor: default; }
.secondary { background: transparent; color: var(--text); border-color: var(--text); width: 100%; }
.secondary:hover { background: var(--text); color: var(--bg); }
.big { font-size: 1.15rem; min-height: 60px; margin: 8px 0 20px; }
.back {
  background: none; color: var(--primary); min-height: 48px; padding: 8px 4px;
  border-radius: var(--radius); font-weight: 700;
}
.topbar { display: flex; margin: -8px 0 4px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Start */
.start { padding-top: 40px; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px;
}
.reassure { background: var(--primary-soft); border-radius: var(--radius); padding: 12px 14px; }

/* Progress: the home page's question bar */
.progress-text { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; }
.bar { height: 6px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 10px; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: var(--radius-pill); transition: width .2s; }

/* Answer options: the home page's answer cards */
.options { display: grid; gap: 12px; margin: 20px 0; }
.option {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  width: 100%; min-height: 56px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; font-weight: 400; box-shadow: var(--shadow);
}
/* Picked: teal border and soft teal fill, with a tick badge. */
.option[aria-pressed="true"] {
  border-color: var(--primary); background: var(--primary-soft); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.option.unsure { border-style: dashed; border-color: var(--text-muted); }
.option.unsure[aria-pressed="true"] { border-style: solid; border-color: var(--primary); }
.opt-label { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.opt-text { min-width: 0; }
.option[aria-pressed="true"] .opt-label::before {
  content: "✓"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700;
}
/* Multi-select: an empty circle shows each option can be ticked. */
.multi .option[aria-pressed="false"] .opt-label::before {
  content: ""; flex: none; width: 22px; height: 22px; margin: 2px; border-radius: 50%; border: 2px solid var(--text-muted);
}
.opt-ex { color: var(--text-muted); font-size: .95rem; margin-top: 4px; line-height: 1.45; }
.next-bar { margin-top: 20px; }
@media (max-width: 40rem) {
  .next-bar {
    position: sticky; bottom: 0; z-index: 1;
    margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border);
  }
}

/* Taps that open: the home page's FAQ rows (a plus that turns into a cross) */
details { margin: 12px 0; }
summary {
  list-style: none; cursor: pointer; color: var(--primary); font-weight: 700;
  min-height: 48px; display: flex; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; margin-left: auto; flex: none; width: 24px; text-align: center;
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--primary); transition: transform .25s;
}
details[open] > summary::after { transform: rotate(45deg); }
details.help { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 14px; }
details.help[open] { padding-bottom: 12px; }
details.bir summary, details.bir-group summary, details.more summary { font-size: .95rem; }
details.bir { margin: 4px 0 0; }
details.bir > :not(summary) { font-size: .92rem; }
.bir-group > .rule { margin-top: 8px; }
.statement { border-left: 3px solid var(--primary); padding-left: 10px; }
.cite { color: var(--text-muted); font-size: .88rem; overflow-wrap: anywhere; }
.quote-label { color: var(--text-muted); font-size: .88rem; margin-bottom: 4px; }
blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--warm); border-radius: var(--radius); font-size: .92rem; }
.flag { background: var(--accent-soft); color: var(--text); padding: 8px 12px; border-radius: var(--radius); }

/* Rules as plain text */
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; }
.rule-text { margin: 0; }

/* Result: one large status in one of four states */
.status { border-radius: var(--radius-lg); padding: 22px 20px; margin: 4px 0 28px; border: 2px solid transparent; }
.status h1 { font-size: 2rem; margin: 10px 0 8px; color: inherit; }
.status p { margin: 0; font-size: 1.05rem; }
.status .gloss { color: inherit; }
.status-mark {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
}
.status.match { background: var(--st-match); color: var(--st-match-ink); box-shadow: 0 3px 0 var(--shelf); }
.status.match .status-mark { background: var(--st-match-ink); color: var(--st-match); }
.status.split { background: var(--st-split); color: var(--st-split-ink); }
.status.split { border-color: var(--primary); }
.status.split .status-mark { background: var(--primary); color: #fff; }
.status.nomatch { background: var(--st-nomatch); color: var(--st-nomatch-ink); }
.status.nomatch .status-mark { background: var(--st-nomatch-ink); color: var(--st-nomatch); }
.status.unknown { background: var(--st-unknown); color: var(--st-unknown-ink); border-color: var(--accent); }
.status.unknown .status-mark { background: var(--accent); color: var(--text); }
.block { margin: 32px 0; }
.why { list-style: none; padding: 0; margin: 0; }
.why li { display: grid; grid-template-columns: 32px 1fr; gap: 6px; margin-bottom: 14px; }
.why details { margin: 0; }
.why .mark {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; font-weight: 700; font-size: .95rem; margin-top: 1px;
}
.why li.match .mark { background: var(--st-match); color: var(--st-match-ink); }
.why li.split .mark { background: var(--st-split); color: var(--st-split-ink); box-shadow: inset 0 0 0 2px var(--primary); }
.why li.nomatch .mark { background: var(--st-nomatch); color: var(--st-nomatch-ink); }
.why li.unknown .mark { background: var(--st-unknown); color: var(--st-unknown-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.why p { margin: 0; }
.ask-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 16px; }
.ask { padding-left: 22px; margin: 0; }
.ask li { margin-bottom: 12px; font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; align-items: start; } /* 44px tick target */
.tick { display: flex; justify-content: center; padding-top: 14px; min-height: 48px; cursor: pointer; }
.tick input { width: 24px; height: 24px; accent-color: var(--primary); }
.steps { padding-left: 24px; margin: 0; }
.steps > li { margin-bottom: 8px; }
.steps > li::marker { font-family: var(--font-display); font-weight: 800; color: var(--primary); }
.steps h3 { margin-top: 12px; }
/* Deadline line: the home page's deadline bar (amber icon and fill, dark text) */
.deadline-block > h2 {
  display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--text);
  border-radius: var(--radius); padding: 12px 14px; font-family: var(--font); font-size: 1.05rem;
  font-weight: 700; letter-spacing: 0; line-height: 1.4;
}
.deadline-block > h2::before {
  content: ""; flex: none; width: 20px; height: 20px; background: url("/cal.svg") center / contain no-repeat;
}
.confirm { background: var(--primary-soft); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.anyway { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 14px; }
.actions { display: grid; gap: 12px; margin-top: 24px; }
.block .button { width: 100%; margin-top: 8px; }

/* Registration guide */
.result-head { margin: 4px 0 8px; }
.result-head h1 { font-size: 2rem; }
details.group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 14px; }
details.group[open] { padding-bottom: 8px; }
details.group > .rule { background: var(--bg); }
.classes { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: .95rem; }
.classes th, .classes td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.classes th { color: var(--text-muted); font-weight: 700; }
.classes td:first-child { font-weight: 700; white-space: nowrap; }
.classes details.bir { margin: 0; }
.never { margin-top: 16px; }
.your-steps { margin: 8px 0 28px; }
.your-steps > li { margin-bottom: 14px; padding-left: 4px; }
.your-steps > li::marker { font-family: var(--font-display); font-weight: 800; color: var(--primary); }
.step-title { font-weight: 700; font-size: 1.08rem; margin: 0 0 2px; }
.step-more { margin: 2px 0 0; background: none; padding: 0; }
.step-more[open] { margin-bottom: 8px; }
.form-line { font-weight: 700; margin: 0; }
.small-line { font-weight: 400; margin-top: 10px; }
.notes-title { color: var(--text-muted); font-size: .9rem; font-weight: 700; margin: 14px 0 4px; }
.notes { list-style: none; padding: 0; margin: 0 0 8px; color: var(--text-muted); font-size: .9rem; }
.notes li { margin-bottom: 8px; }
.notes details.bir { margin: 0; }
.ref + .ref { border-top: 1px solid var(--border); padding-top: 8px; }
.ask-more { background: none; padding: 0; margin: 8px 0 0; }
details.after { margin: 20px 0; }

/* Earlier home page (/home-old) */
.home { padding-top: 40px; }
.cards { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.card {
  display: grid; gap: 6px; padding: 20px 18px; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); position: relative;
}
a.card { border-color: var(--primary); }
a.card:active { background: var(--primary-soft); }
.card-title { font-weight: 700; font-size: 1.2rem; line-height: 1.3; padding-right: 32px; color: var(--primary); }
.card-text { color: var(--text); }
.card-go { position: absolute; top: 18px; right: 18px; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.card.soon { border-style: dashed; color: var(--text-muted); }
.card.soon .card-title, .card.soon .card-text { color: var(--text-muted); }
.badge {
  justify-self: start; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--text);
}
.site-footer { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 16px; color: var(--text-muted); font-size: .95rem; }

/* Fallback and errors */
.fallback { padding-left: 18px; }
.fallback li { margin-bottom: 12px; }
.problems { font-size: .9rem; }

/* ---------- Denser layout ---------- */

/* Question screens: soft surface page, white answer cards, compact links under the answers. */
body:has(.screen.question) { background: var(--surface); }
.question .topbar { margin: -6px 0 0; }
.question .progress-text { margin: 0 0 6px; }
.question .bar { margin-bottom: 4px; }
.question h1 { font-size: 1.75rem; margin: 12px 0 8px; }
.question .options { gap: 10px; margin: 14px 0 6px; }
.question .option { background: var(--bg); padding: 14px; min-height: 48px; gap: 2px; line-height: 1.4; }
.question .opt-ex { margin-top: 2px; }
.question .option[aria-pressed="true"] { background: var(--primary-soft); }
.question .next-bar { background: var(--surface); }
.q-links { display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 16px; margin: 0 0 8px; }
.q-links > details { margin: 0; min-width: 0; }
.q-links > details:only-child { grid-column: 1 / -1; }
.q-links > details[open] { grid-column: 1 / -1; }
.q-links summary { font-size: .9rem; line-height: 1.3; min-height: 44px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.q-links summary::after { display: none; }
.q-links details.help, .q-links details.bir-group { background: none; border: 0; padding: 0; }
.q-links details[open] { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 14px 12px; margin-bottom: 8px; }

/* Small inline link at the end of a line ("See the BIR rule(s)"): text-sized, 44px+ to tap. */
.inline-link {
  display: inline; min-height: 0; padding: 14px 2px; margin: -14px 0; border: 0; border-radius: 0;
  background: none; color: var(--primary); font-size: .85em; font-weight: 700; line-height: inherit;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; box-shadow: none;
}
.inline-link[aria-expanded="true"] { text-decoration-thickness: 2px; }
.bir-panel { margin: 10px 0 4px; font-size: .92rem; }
.bir-panel > .rule { background: var(--bg); }

/* Result screens: the banner stays big, everything under it denser. */
.result { line-height: 1.45; }
.result .gloss { font-size: 1em; }
.result .topbar { margin: -6px 0 0; }
.result .block { margin: 22px 0; }
.result h2 { font-size: 1.35rem; margin: 0 0 10px; }
.result h3 { margin: 14px 0 6px; }
.result p { margin-bottom: 8px; }
.result .why li { margin-bottom: 12px; }
.result .why p { margin: 0; }
.result .rule { padding: 16px; margin: 0 0 12px; }
.result .rule-text { margin: 0; }
.result .ask-block { padding: 16px; }
.result .ask li { margin-bottom: 8px; }
.result .steps > li, .result .your-steps > li { margin-bottom: 6px; }
.result details { margin: 8px 0; }
.result .confirm { padding: 12px 16px; }
.result .actions { margin-top: 16px; }

/* ---------- Side panel: stacks under the main column on phones ---------- */
.side { display: grid; gap: 16px; margin-top: 24px; align-content: start; }
.side > .slot:empty { display: none; }
.side .block { margin: 0; }
/* Lino's side card: the early access block when it is here, otherwise its own header and one line */
.lino-card { background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.lino-card > .slot:not(:empty) + .lino-about { display: none; }
.lino-card p { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--text); }
.lino-about .ea-head { margin-bottom: 8px; }
.side-card.deadline-block > h2 { margin-bottom: 12px; }
.side-card.deadline-block .button { margin-top: 0; }

/* ---------- Desktop (from 960px): light grid page, white cards, two columns ---------- */
@media (min-width: 960px) {
  body, body:has(.screen.question) {
    background-color: var(--hero-bg);
    background-image:
      linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px),
      url("/noise.webp");
    background-size: 76px 76px, 76px 76px, auto;
  }
  .site-header .logo { max-width: 1100px; padding: 0 24px; }
  .screen:not(.layout), .layout > .main {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  }
  .screen:not(.layout) { max-width: 640px; margin: 32px auto 56px; padding: 32px; }
  .screen.layout {
    max-width: 1100px; padding: 32px 24px 56px;
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start;
  }
  .layout > .main { padding: 24px 32px 32px; }
  .side { margin-top: 0; }
  .side .ask-block, .side details.help, .side .deadline-block {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow);
  }
  .side details.help { margin: 0; padding: 4px 20px 16px; }
  .side details.help > summary { font-size: 1.05rem; color: var(--text); }
  .side .deadline-block > h2 { margin: 0 0 12px; }
  .lino-card { padding: 20px; box-shadow: var(--shadow); }
  .question .next-bar { background: none; }
}

@media (prefers-reduced-motion: reduce) {
  .primary, .bar span, summary::after { transition: none; }
}

/* Checker results: "Your steps" like the guide; "Why" compact */
.result .why li { grid-template-columns: 28px 1fr; gap: 4px; margin-bottom: 6px; font-size: .95rem; }
.result .why .mark { width: 22px; height: 22px; font-size: .8rem; margin-top: 2px; }
.result .steps-block .your-steps { margin: 0; }
.result details.group.after, .result details.group.good { margin: 12px 0; }
.result details.group.good > details.more { background: none; }
.result .step-more { margin: 0; }
.result .step-more > summary { min-height: 44px; }
.result .step-more[open] { margin-bottom: 8px; }
.result .your-steps > li { margin-bottom: 4px; }

/* "Apply by": the date stays visible, the rule cards fold behind a link */
.deadline-block .dl-rules { margin: 4px 0 0; }
.deadline-block .bir-panel .rule:last-child { margin-bottom: 0; }

/* One-line footer on /check, /register, /privacy, /about and /terms */
.site-footer.one-line { max-width: 560px; margin: 0 auto; padding: 14px 16px 28px; border-top: 1px solid var(--border); }
.site-footer.one-line p { margin: 0; display: flex; flex-wrap: wrap; column-gap: 24px; }
.site-footer.one-line p.scam { display: block; font-size: .9rem; line-height: 1.5; margin-top: 4px; }
.site-footer a, .doc a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; } /* 44px tap target */
.doc p a { display: inline; } /* links inside a sentence stay in the line */

/* /privacy, /about, /terms */
.doc h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .soon { color: var(--text-muted); font-style: italic; }
@media (min-width: 960px) {
  .site-footer.one-line { max-width: 1100px; padding: 0 24px 32px; border-top: 0; }
}

/* Read by screen readers only (e.g. "Link copied" after sharing) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Start screens: "Free guide · Not affiliated with the BIR"; after the deadline, the notice */
.free-note { color: var(--text-muted); font-weight: 600; margin: 4px 0 12px; }
.passed { background: var(--st-unknown); color: var(--st-unknown-ink); border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; font-weight: 700; }
.deadline-block.passed > h2::before { display: none; }
/* Guide result: "Check first" when the visitor doesn't know if the work is registered */
.check-first { background: var(--st-unknown); border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 16px; color: var(--st-unknown-ink); }
.check-first p { margin: 0; }
.check-first details.bir { margin-top: 4px; }
/* Results: when the rules were last checked */
.stamp { color: var(--text-muted); margin: 16px 0 8px; }

/* Early access (src/early-access.js). The header: Lino, "Lino" and the "AI helper · Coming soon" pill. */
.ea-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.ea-head img { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }
.ea-head h2 { font-size: 1.2rem; line-height: 1.2; margin: 0; }
.ea-pill { display: inline-block; font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: 0; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--text); white-space: nowrap; }
h1 .ea-pill { vertical-align: middle; }
/* Start screens: "Get early access →" opens the block inline under the Start button. */
.ea-start { font-size: var(--fs-small); color: var(--text-muted); margin: -8px 0 12px; }
.ea-start .ea-open {
  display: inline; min-height: 44px; padding: 10px 0; width: auto; background: none; border: 0; border-radius: 0;
  color: var(--primary-dark); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ea-inline .ea-block { margin: 4px 0 20px; }
/* The block: inline on the start screen, after the result headline on phones, in Lino's card on desktop. */
.ea-block { background: var(--bg); border: 1.5px solid var(--primary); border-radius: var(--radius-lg); padding: 16px; margin: 0 0 20px; }
.lino-card .ea-block { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.ea-lead, .ea-block p.ea-lead { margin: 0 0 12px; font-size: .95rem; line-height: 1.45; color: var(--text); }
.ea-label { display: block; font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.ea-row { display: flex; flex-direction: column; gap: 10px; }
.ea-email {
  flex: 1; min-width: 0; width: 100%; min-height: 52px; font: inherit; padding: 12px 14px; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--text-muted); border-radius: var(--radius);
}
.ea-row .ea-button { min-height: 52px; }
@media (min-width: 600px) {
  .ea-row { flex-direction: row; }
  .ea-row .ea-button { width: auto; flex: none; padding: 12px 18px; white-space: nowrap; }
}
/* The trap field (bots fill it in): off-screen, clipped, no label, hidden from screen readers. */
.ea-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ea-msg { margin: 12px 0 0; font-weight: 700; }
.ea-small, .ea-block p.ea-small { font-size: var(--fs-small); color: var(--text-muted); margin: 10px 0 0; line-height: 1.45; }
.ea-small a { color: var(--primary-dark); text-underline-offset: 3px; }
.ea-done, .ea-full, .ea-block p.ea-done, .ea-block p.ea-full { font-weight: 700; margin: 0; }
.ea-done:focus { outline: none; }

/* Written guides (/guides/…): every line a rule's plain wording, with "See the BIR rule" under it */
.guide .g-cta { margin: 16px 0 8px; }
/* a button, not a text link: beats .doc a (dark teal, underlined) */
.guide .g-cta a.button.primary { display: flex; width: 100%; color: #fff; text-decoration: none; min-height: 60px; }
.guide .g-cta-end { margin-top: 28px; }
.guide .g-rules { list-style: none; padding-left: 0; margin: 0; }
.guide .g-rule { margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--primary-soft); }
.guide .g-rule > p { margin: 0 0 4px; }
.guide .g-rule details.bir { margin: 0; }
.guide .g-faq h3 { margin: 18px 0 8px; }
.guide .stamp { margin-top: 20px; }
.guides .g-list { padding-left: 22px; }
.guides .g-list a { display: inline; }
