/* HeyRua Irish grammar course, v2: calm and spacious. Same tokens as the HeyRua dictionary (Inter, #101828
   ink, #ff8d28 accent, cream #fff8ef); notes typeset like a good study page: larger text, generous line height,
   plenty of room between ideas, few boxes. */
:root {
  --ink: #101828; --ink-2: #2b3445; --ink-3: #475467; --muted: #667085; --faint: #98a2b3;
  --line: #eaecf0; --line-2: #d0d5dd; --soft: #f2f4f7; --row: #f1f3f6;
  --accent: #ff8d28; --accent-dark: #da6600;
  --cream: #fff8ef; --cream-2: #fff3e6; --cream-line: #f6dcc0; --bg-2: #f9fafb;
  --mut-bg: #ffe1c2; --mut-fg: #c25700; --ecl-bg: #e3edff; --ecl-fg: #1d4ed8; --end-bg: #dcfce7; --end-fg: #15803d;
  --check: #4f9d1f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0s !important; animation-duration: 0s !important; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 50; }

/* header */
.hdr { border-bottom: 1px solid var(--line); }
.hdr .wrap { height: 64px; display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 8px 12px; border-radius: 6px; }
.nav a[aria-current] { color: var(--ink); background: var(--bg-2); }
.grow { flex-grow: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: #fff; color: var(--ink-2); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn-line:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.is-done { color: #15803d; border-color: #a7e3bd; }
.hdr .btn-accent { height: 36px; padding: 0 12px; font-size: 13px; }

/* footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px 0 44px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--muted); align-items: center; }
.foot .brand { font-size: 15px; margin-right: auto; }

/* ---------- lesson page ---------- */
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 36px; }
.lesson { min-width: 0; max-width: 760px; width: 100%; margin: 0 auto; }
.l-kicker { font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--muted); }
.l-title { margin-top: 10px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.5px; color: var(--ink); }
.l-sub { margin-top: 6px; font-size: 19px; color: var(--muted); font-style: italic; }
.l-tools { display: flex; gap: 8px; margin-top: 22px; }

/* video placeholder */
/* "In this lesson": the short blurb at the top (Eamon, 29 Oct 2026; it replaced the video box) */
.learn { margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: var(--cream); border: 1px solid var(--cream-line); }
.learn-k { font-size: 13px; font-weight: 700; letter-spacing: .2px; color: var(--accent-dark); }
.learn-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.learn-list li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.learn-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.learn-list i { color: var(--ink-3); }

/* the summary: just a bigger first paragraph */
.intro { margin-top: 36px; font-size: 19px; line-height: 1.8; color: var(--ink-2); }

/* notes */
.notes { display: flex; flex-direction: column; gap: 64px; margin-top: 56px; }
.notes section { scroll-margin-top: 20px; min-width: 0; }
.tickable, .tabs-block, .tab-panel { min-width: 0; }
h2.sec { font-size: 25px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; color: var(--ink); }
.lead { margin-top: 12px; color: var(--ink-3); font-size: 17.5px; line-height: 1.8; }
.note { margin-top: 18px; color: var(--ink-2); font-size: 17.5px; line-height: 1.85; }
b.ig { color: var(--ink); font-weight: 600; }
b.ig.nw { white-space: nowrap; }
.note b, .lead b, .checks b { color: var(--ink); font-weight: 600; }
.note i, .lead i, .checks i, .intro i, .callout i, .meaning i { color: var(--muted); }
.sub-h { margin-top: 36px; font-size: 18px; font-weight: 600; color: var(--ink); }
.tbl-h { margin: 28px 0 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tbl-note { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--ink-3); }

/* highlights */
mark { background: transparent; color: inherit; border-radius: 3px; padding: 0; }
.marks-on mark.mut, .hl-on mark.mut { background: var(--mut-bg); color: var(--mut-fg); font-weight: 700; }
.marks-on mark.ecl, .hl-on mark.ecl { background: var(--ecl-bg); color: var(--ecl-fg); font-weight: 700; }
.marks-on mark.end, .hl-on mark.end { background: var(--end-bg); color: var(--end-fg); font-weight: 700; }
.hl-off mark.mut, .hl-off mark.ecl, .hl-off mark.end { background: transparent; color: inherit; font-weight: inherit; }   /* a table's own tick, unticked */
.gap { display: inline-block; min-width: 44px; border-bottom: 2px solid var(--accent); color: transparent; line-height: 1.1; }

/* ✓ lists */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 38px; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 20px; height: 20px; background: no-repeat center / 20px 20px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f9d1f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12.5l5 5L20 6.5'/></svg>"); }

/* tick boxes */
.ticks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 22px 0 10px; }
.hl-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); min-height: 32px; cursor: pointer; user-select: none; }
.hl-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hl-toggle .box { width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid var(--line-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.hl-toggle .box svg { opacity: 0; transition: opacity .15s ease; }
.hl-toggle:hover .box { border-color: var(--accent); }
.hl-toggle input:checked + .box { background: var(--accent); border-color: var(--accent); }
.hl-toggle input:checked + .box svg { opacity: 1; }
.hl-toggle input:checked ~ .lbl { color: var(--ink-2); }
.hl-toggle input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.hl-key { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .2s ease; }
.hl-on .hl-key { opacity: 1; }
.hl-off .hl-key { opacity: 0; }
.hl-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.hl-key i:first-child { margin-left: 0; }
.k-mut { background: var(--mut-bg); } .k-ecl { background: var(--ecl-bg); } .k-end { background: var(--end-bg); }

/* tables: light lines, no heavy fills */
.conj-wrap { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: #fff; }
.conj { width: 100%; border-collapse: collapse; font-size: 16px; }
.conj.wide { min-width: 560px; }
.conj th, .conj td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--row); vertical-align: top; }
.conj thead th { color: var(--muted); font-size: 13px; font-weight: 500; border-top: 0; background: var(--bg-2); }
.conj tbody th { font-weight: 500; color: var(--ink-3); }
.conj td[lang="ga"] { font-weight: 600; color: var(--ink); }
.conj td.en-col { color: var(--ink-3); }
.conj .cell-en { display: none; font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.4; margin-top: 3px; font-style: italic; }
.en-on .conj .cell-en { display: block; }
.conj .ex-en { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.conj.verbs.c3 { min-width: 540px; }
.conj.verbs.c2 { min-width: 420px; }
.conj.verbs tbody th { white-space: nowrap; }
.conj tr.we td, .conj tr.we th { background: var(--cream); }

/* example sentences */
.sentences { margin-top: 10px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sent { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.sent .ga { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.sent .en { font-size: 15.5px; color: var(--muted); margin-top: 3px; display: none; font-style: italic; }
.en-on .sent .en { display: block; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

/* one phrase shown large */
.bigcard { margin-top: 22px; padding: 22px 24px; border-radius: 16px; background: var(--cream); }
.big-ga { font-size: 26px; font-weight: 700; letter-spacing: -.3px; color: var(--accent-dark); line-height: 1.3; }
.big-en { margin-top: 6px; font-size: 16px; color: var(--ink-3); }

/* formula: part + part = result, light */
.formula { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.formula .part { flex: 1 1 110px; min-width: 100px; border-radius: 14px; padding: 16px 12px; text-align: center; color: var(--ink); background: var(--bg-2); display: flex; flex-direction: column; justify-content: center; }
.formula .part .big { display: block; font-size: 23px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; }
.formula .part .sub { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.formula .part.result { background: var(--cream); flex: 2 1 180px; }
.formula .part.result .big { color: var(--accent-dark); }
.formula .op { align-self: center; font-size: 20px; font-weight: 500; color: var(--faint); }
@media (max-width: 559px) { .formula { gap: 6px; } .formula .part { flex: 1 1 0; min-width: 0; padding: 12px 6px; border-radius: 12px; } .formula .part .big { font-size: 18px; overflow-wrap: anywhere; } .formula .part .sub { font-size: 12px; } .formula .op { font-size: 16px; } .formula .part.result { flex-basis: 100%; } }

/* rule cards: a row each, no boxes */
.rules { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.rulecard { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule-k { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; padding-top: 2px; }
.rc-body { min-width: 0; }
.rc-body .formula { margin-top: 0; gap: 8px; }
.rc-body .formula .part { padding: 10px 8px; border-radius: 10px; }
.rc-body .formula .part .big { font-size: 19px; }
.rc-body .formula .part .sub { font-size: 12.5px; }
.rc-body .formula .op { font-size: 16px; }
.rc-body p { margin-top: 10px; font-size: 16px; line-height: 1.7; color: var(--ink-3); }
.rc-body p:first-child { margin-top: 0; }
.rc-ex { display: flex; flex-direction: column; gap: 2px; }
.rc-ga { font-size: 19px; font-weight: 600; color: var(--ink); }
.rc-en { font-size: 14.5px; color: var(--muted); font-style: italic; }
@media (max-width: 559px) { .rulecard { grid-template-columns: 1fr; } }

/* word order diagram */
.order { display: grid; gap: 14px; margin-top: 22px; }
.ord-row { padding: 18px 20px; border-radius: 16px; background: var(--bg-2); }
.ord-lbl { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ord-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 13px 7px; border-radius: 12px; min-width: 64px; background: #fff; }
.oc .w { font-size: 19px; font-weight: 600; line-height: 1.2; }
.oc .r { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.oc-arr { color: var(--faint); }
.ord-en { margin-top: 12px; font-size: 15px; color: var(--muted); font-style: italic; }
.r-verb, .r-copula, .r-vn { color: #b45309; box-shadow: inset 0 0 0 1.5px #ffd4a8; }
.r-subject, .r-pronoun { color: #1d4ed8; box-shadow: inset 0 0 0 1.5px #c7dbff; }
.r-object, .r-predicate, .r-noun { color: #15803d; box-shadow: inset 0 0 0 1.5px #bfe9cc; }
.r-extra, .r-prep { color: #475467; box-shadow: inset 0 0 0 1.5px #e4e7ec; }
.r-particle, .r-article, .r-possessive, .r-number { color: #6d28d9; box-shadow: inset 0 0 0 1.5px #ddd0fb; }
.r-adj { color: #be185d; box-shadow: inset 0 0 0 1.5px #f8cfdc; }
.oc .w mark { background: transparent !important; color: inherit !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* concept cards: two or three quiet panels */
.ccards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .ccards.n2, .ccards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ccards.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ccard { border-radius: 16px; padding: 20px 20px 18px; background: var(--bg-2); }
.cc-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.cc-big { margin-top: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); line-height: 1.3; }
.cc-sub { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--ink-3); }
.tone-a { background: var(--cream); }
.tone-b { background: #f2f7ff; }

/* letter changes: b -> bh */
.letters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (min-width: 620px) { .letters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lt { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 8px; border-radius: 12px; padding: 12px 14px; background: var(--bg-2); }
.lt-from { font-size: 20px; font-weight: 600; color: var(--muted); }
.lt-arr { color: var(--faint); }
.lt-to { font-size: 20px; font-weight: 700; color: var(--ink); }
.lt-ex { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); }

/* steps */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.st-n { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.st-b { padding-top: 4px; }
.st-b p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.st-ga { margin-top: 4px; font-size: 19px; font-weight: 600; color: var(--ink); }

/* callouts: a quiet note with a line on the left */
.callout { margin-top: 24px; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); }
.co-k { font-size: 13px; font-weight: 700; letter-spacing: .3px; margin-bottom: 4px; color: var(--ink-3); }
.callout p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.c-watch { border-left-color: var(--accent); } .c-watch .co-k { color: var(--accent-dark); }
.c-remember, .c-why { border-left-color: var(--check); } .c-remember .co-k, .c-why .co-k { color: #3b7a14; }
.c-tip, .c-note { border-left-color: #93b4f5; } .c-tip .co-k, .c-note .co-k { color: #1d4ed8; }

/* points and the recap */
.meanings { margin: 18px 0 0; border-top: 1px solid var(--line); }
.meaning { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.meaning dt { font-size: 16.5px; font-weight: 600; margin: 0; color: var(--ink); }
.meaning dd { margin: 0; color: var(--ink-3); font-size: 16.5px; line-height: 1.7; }
@media (min-width: 700px) { .meaning { flex-direction: row; gap: 28px; } .meaning dt { width: 200px; flex-shrink: 0; } }

/* go further: the extra detail, open, in one section after Try it (no dropdowns, Eamon 27 Oct 2026) */
.gf { min-width: 0; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.gf-sec .lead + .gf { margin-top: 28px; }
.gf-h { font-size: 19px; font-weight: 600; letter-spacing: -.2px; line-height: 1.4; color: var(--ink); }
.gf-h + * { margin-top: 14px; }
.gf .gf { margin-top: 28px; padding-top: 0; border-top: 0; }

/* segmented switch */
.tabs-block { margin-top: 22px; }
.segmented { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.segmented button { position: relative; z-index: 1; min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 4px 6px; transition: color .2s ease; }
.segmented button .seg-en { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.segmented button[aria-selected="true"] { color: var(--ink); }
.seg-indicator { position: absolute; top: 0; left: 0; width: 0; height: 0; background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(16,24,40,.08); transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1); }
.tab-panel { transition: opacity .18s ease, transform .18s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel.leaving { opacity: 0; transform: translateY(4px); }
.tab-panel.entering { opacity: 0; transform: translateY(-4px); }
@media (max-width: 559px) { .segmented button { font-size: 13px; min-height: 44px; } .segmented button .seg-en { font-size: 10.5px; } }

/* previous / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.pn-card { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: border-color .15s ease; }
.pn-card:hover { border-color: var(--ink-3); color: var(--ink); }
.pn-card.next { text-align: right; align-items: flex-end; }
.pn-k { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pn-t { font-size: 16px; font-weight: 600; }
.pn-e { font-size: 13.5px; color: var(--muted); }
@media (max-width: 559px) { .pn { grid-template-columns: 1fr; } .pn-card.next { order: -1; } }

/* ---------- the course column on the right ---------- */
.course-nav { min-width: 0; }
.cn-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cn-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.cn-all { font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cn-all:hover { color: var(--ink); }
.cn-toggle { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.cn-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.cn-group { margin-top: 26px; }
.cn-gh { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.cn-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; color: var(--ink); transition: background-color .15s ease; }
.cn-item:hover { background: var(--bg-2); color: var(--ink); }
.cn-item.is-current { background: var(--cream); }
.cn-num { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); color: var(--ink-3); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.is-current .cn-num { background: var(--accent); color: #fff; }
.cn-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 2px; }
.cn-en { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.cn-ga { font-size: 13px; color: var(--muted); line-height: 1.35; }
.is-current .cn-en { font-weight: 600; }
.cn-open { display: none; }

/* collapsed: the notes take the space, a small button brings the lessons back */
.nav-collapsed .course-nav { display: none; }
.nav-collapsed .cn-open { display: inline-flex; position: fixed; right: 20px; top: 84px; z-index: 30; height: 40px; padding: 0 14px; gap: 8px; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(16,24,40,.08); }
.nav-collapsed .cn-open:hover { border-color: var(--ink-3); }

/* course page */
.course-hero { margin: 48px 0 10px; max-width: 760px; }
.course-hero h1 { font-family: Nunito, "Nunito Fallback", Inter, sans-serif; font-weight: 800; font-size: 42px; letter-spacing: -.6px; line-height: 1.1; }
.course-hero .lead { margin-top: 14px; font-size: 18px; }
.course-hero .btn { margin-top: 24px; }
.course-hero.small h1 { font-size: 30px; }

/* review dashboard */
.review-tbl td, .review-tbl th { font-size: 13px; }
.review-tbl td a { font-weight: 600; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); white-space: nowrap; }
.pill.ok { background: #dcfce7; border-color: #a7e3bd; color: #146c34; }
.pill.warn { background: #fff3e6; border-color: var(--cream-line); color: var(--accent-dark); }

@media (min-width: 768px) {
  .wrap { padding: 0 36px; }
  .hdr .wrap { height: 68px; gap: 24px; }
  .nav { display: flex; }
  .hdr .btn-accent { height: 40px; padding: 0 16px; font-size: 14px; }
  .l-title { font-size: 36px; }
  .lesson-grid { margin-top: 48px; }
}
@media (min-width: 1100px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
  .lesson-grid.nav-collapsed { grid-template-columns: minmax(0, 1fr); }
  .course-nav { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 0 2px 24px; overscroll-behavior: contain; }
}
@media (max-width: 1099px) {
  .course-nav { border-top: 1px solid var(--line); padding-top: 28px; max-width: 760px; width: 100%; margin: 0 auto; max-height: min(78vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-collapsed .cn-open { display: none; }
  .nav-collapsed .course-nav { display: block; }
}

/* print: the notes only, with English and highlights shown */
@media print {
  .hdr, .foot, .course-nav, .video, .l-tools, .pn, .ticks, .skip, .cn-open, #test-yourself { display: none !important; }
  .lesson-grid { display: block; }
  .conj .cell-en, .sent .en { display: block !important; }
  mark.mut { background: var(--mut-bg) !important; color: var(--mut-fg) !important; }
  mark.ecl { background: var(--ecl-bg) !important; color: var(--ecl-fg) !important; }
  mark.end { background: var(--end-bg) !important; color: var(--end-fg) !important; }
  .tab-panel[hidden] { display: block !important; }
  .segmented { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* side-by-side verb tables: as in the owner's notes, each column is a label, its one-line rule, then the verb */
.conj.side { min-width: 480px; }
.conj.side thead th { vertical-align: bottom; line-height: 1.4; padding-top: 16px; padding-bottom: 14px; }
.conj.side .cj-lab { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.conj.side .cj-rule { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.conj.side .cj-ex { display: block; margin-top: 8px; }
.conj.side .cj-lab + .cj-ex { margin-top: 2px; }
.conj.side .cj-verb { font-size: 15px; font-weight: 700; color: var(--accent-dark); }
.conj.side .cj-gl { font-style: italic; }

/* ---------- v3: gentler notes ---------- */
/* v4.1: each table has its own ticks, just above it (tools/blocks.py with_ticks) */
.tickable > .ticks { gap: 0 20px; margin: 4px 0 0; }
.tickable > .ticks:first-child { margin-top: 18px; }
.tickable > .ticks .hl-key { margin-left: auto; }
@media (max-width: 559px) { .tickable > .ticks .hl-key { margin-left: 0; } }

/* numbered steps */
h2.sec .sec-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; background: var(--cream); color: var(--accent-dark); font-size: 16px; font-weight: 700; vertical-align: 2px; }

/* before → after: the change, big */
/* one grid per block, so every row's arrow lines up; a long "before" (a whole sentence) wraps at ~45% */
.pattern { display: grid; grid-template-columns: fit-content(45%) 36px minmax(0, 1fr); column-gap: 10px; margin-top: 24px; padding: 6px 26px; border-radius: 18px; background: var(--bg-2); }
.pt-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; row-gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.pt-from, .pt-to { min-width: 0; }
@supports not (grid-template-columns: subgrid) { .pt-row { grid-template-columns: fit-content(45%) 36px minmax(0, 1fr); column-gap: 10px; } }
.pt-row:first-child { border-top: 0; }
.pt-from { font-size: 22px; font-weight: 500; color: var(--muted); }
.pt-arr { font-size: 20px; color: var(--faint); text-align: center; }
.pt-ga { font-size: 26px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); line-height: 1.25; }
.pt-en { margin-top: 4px; font-size: 15.5px; color: var(--muted); font-style: italic; }
@media (max-width: 559px) {
  .pattern { grid-template-columns: fit-content(42%) 22px minmax(0, 1fr); column-gap: 6px; padding: 4px 16px; }
  .pt-row { padding: 14px 0; }
  .pattern.long { grid-template-columns: minmax(0, 1fr); }
  .pattern.long .pt-row { grid-template-columns: minmax(0, 1fr); row-gap: 3px; }
  .pattern.long .pt-arr { display: none; }
  .pattern.long .pt-from { font-size: 15.5px; }
  .pattern.long .pt-from::after { content: "  →"; color: var(--faint); }
  .pt-from { font-size: 18px; } .pt-arr { font-size: 16px; } .pt-ga { font-size: 21px; } .pt-en { font-size: 14px; }
}

/* one verb, every person, Irish beside English */
.conj-wrap.narrow { max-width: 520px; }
.conj.persons td { padding: 13px 18px; }
.conj.persons td[lang="ga"] { font-size: 17.5px; }
.conj.persons td.en-col { color: var(--muted); font-style: italic; }

/* the free verb table */
.conj.autos { min-width: 420px; }
.conj.autos tbody th[lang="ga"] { color: var(--muted); font-weight: 500; }
.conj.autos td.en-col { color: var(--muted); font-style: italic; }

/* ---------- All topics: one calm list, search, a unit index that follows you, your progress ---------- */
.topics { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.tp-main { min-width: 0; max-width: 760px; width: 100%; margin: 0 auto; }

.tp-hero h1 { font-family: Nunito, "Nunito Fallback", Inter, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -.8px; line-height: 1.08; color: var(--ink); text-wrap: balance; }
.tp-lead { margin-top: 16px; max-width: 620px; font-size: 17px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
.tp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.tp-cta .btn { gap: 6px; }
.tp-next { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.4; }
.tp-next-k { font-size: 13px; color: var(--muted); }
.tp-next-t { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tp-progress { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-bar { width: 140px; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.tp-bar > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--check); }

/* search */
.tp-search { position: relative; margin-top: 40px; }
.tp-search .s-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color .15s ease; }
.tp-search input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 56px; margin: 0; padding: 0 52px 0 52px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); font: inherit; font-size: 17px; color: var(--ink); outline: none; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.tp-search input::placeholder { color: var(--faint); opacity: 1; }
.tp-search input::-webkit-search-cancel-button, .tp-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.tp-search input:hover { border-color: var(--line-2); }
.tp-search input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 141, 40, .14); }
.tp-search:focus-within .s-ic { color: var(--ink-3); }
.tp-kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); min-width: 26px; height: 26px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font: 600 13px/24px Inter, system-ui, sans-serif; color: var(--muted); text-align: center; pointer-events: none; }
.tp-search:focus-within .tp-kbd, .is-searching .tp-kbd { display: none; }
.is-searching .tp-search input { padding-right: 140px; }
.is-searching .unit-count { display: none; }
@media (max-width: 1099px) { .is-searching .tp-results { min-height: 100vh; } }
@media (hover: none), (max-width: 767px) { .tp-kbd { display: none; } }
.tp-count { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); font-size: 13.5px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.tp-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tp-clear:hover { background: var(--line); color: var(--ink); }
mark.hit { background: #ffedb8; color: inherit; border-radius: 3px; }

/* the unit bar on phones and tablets: sticks under the top of the screen, follows your scroll */
.tp-chips { position: sticky; top: 0; z-index: 20; margin: 22px -20px 0; padding: 10px 0; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax -1px); transition: box-shadow .2s ease; }
.tp-chips.is-stuck { box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax var(--line); }
.tp-chips-in { position: relative; display: flex; gap: 8px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tp-chips-in::-webkit-scrollbar { display: none; }
.tp-chips-in::after { content: ""; flex: 0 0 12px; }
.tp-chips.fade-r .tp-chips-in { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.tp-chips.fade-l .tp-chips-in { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
.tp-chips.fade-l.fade-r .tp-chips-in { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.tp-chips a { flex-shrink: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.tp-chips a:hover { color: var(--ink); }
.tp-chips a.is-active { background: var(--ink); color: #fff; }
.is-searching .tp-chips { display: none; }
@media (min-width: 768px) { .tp-chips { margin-left: -36px; margin-right: -36px; } .tp-chips-in { padding: 0 36px; } }

/* units and their lessons */
.unit { margin-top: 52px; scroll-margin-top: 76px; }
.tp-chips + .unit { margin-top: 30px; }
.is-searching .unit { margin-top: 36px; }
.unit-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.unit-h h2 { font-size: 21px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; color: var(--ink); }
.unit-h h2:focus { outline: none; }
.unit-ga { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.unit-count { flex-shrink: 0; padding-bottom: 2px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.unit-count.is-complete { color: #15803d; font-weight: 600; }
.lrows { list-style: none; margin: 0; padding: 0; }
.lrows li { position: relative; }
.lrows li + li::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--line); pointer-events: none; }
.lrows li:hover::before, .lrows li:hover + li::before, .lrows li:focus-within::before, .lrows li:focus-within + li::before { opacity: 0; }
.lrow { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 -12px; padding: 15px 12px; border-radius: 14px; color: var(--ink); scroll-margin: 84px 0 24px; transition: background-color .15s ease; }
.lrow:hover { background: var(--bg-2); color: var(--ink); }
.lrow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--bg-2); }
.lr-n { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--ink-3); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease; }
.lr-n svg, .cn-num svg { display: none; }
.is-done .lr-n { background: #e6f6ea; color: #15803d; }
.is-done .lr-n .n { display: none; }
.is-done .lr-n svg { display: block; }
.is-next .lr-n { background: var(--accent); color: #fff; }
.lr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lr-en { font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.lr-ga { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.lr-go { display: inline-flex; color: var(--faint); transition: transform .15s ease, color .15s ease; }
.lrow:hover .lr-go { color: var(--ink-3); transform: translateX(2px); }
.lr-pill { display: none; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--cream); color: var(--accent-dark); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.is-next .lr-pill { display: inline-flex; }
.is-next .lr-go { display: none; }

.tp-empty { margin-top: 36px; padding: 44px 20px; text-align: center; font-size: 16px; line-height: 1.7; color: var(--ink-3); }
.tp-empty-t { margin-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.tp-empty i { color: var(--ink-2); }
.tp-empty .btn { margin-top: 22px; }
.tp-reset { margin-top: 64px; font-size: 14px; color: var(--muted); }
.tp-reset button { margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.tp-reset button:hover { color: var(--ink); }

/* the unit index on wide screens */
.tp-rail { display: none; }
.rail-h { margin: 0 0 10px 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rail-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.rail-item { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-left: -1px; padding: 7px 0 7px 17px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--ink-3); transition: color .15s ease, border-color .15s ease, opacity .15s ease; }
.rail-item:hover { color: var(--ink); }
.rail-item.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }
.rail-c { flex-shrink: 0; font-size: 12.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail-c.is-complete { color: #15803d; }
.rail-item.is-dim { opacity: .35; pointer-events: none; }

@media (max-width: 559px) {
  .tp-hero h1 { font-size: 32px; }
  .tp-lead { font-size: 16.5px; }
  .tp-cta .btn { width: 100%; }
  .tp-search input { height: 52px; font-size: 16px; padding-left: 48px; }
  .tp-search .s-ic { left: 16px; }
  .unit-h h2 { font-size: 20px; }
  .lrow { gap: 14px; padding: 14px 12px; }
  .lrows li + li::before { left: 50px; }
  .lr-en { font-size: 16px; }
  .lr-ga { font-size: 14px; }
}
@media (min-width: 768px) {
  .topics { margin-top: 64px; }
  .tp-hero h1 { font-size: 46px; }
  .tp-lead { font-size: 18px; }
}
@media (min-width: 1100px) {
  .topics { grid-template-columns: minmax(0, 1fr) 248px; gap: 80px; align-items: start; }
  .tp-main { max-width: none; margin: 0; }
  .tp-rail { display: block; position: sticky; top: 32px; }
  .tp-chips { display: none; }
  .unit { scroll-margin-top: 28px; }
  .tp-chips + .unit { margin-top: 48px; }
}

/* lesson pages: the breadcrumb back to the unit, and ticks for finished lessons in the list */
.l-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.l-kicker a { color: var(--muted); }
.l-kicker a:hover { color: var(--ink); }
.crumb-sep { color: var(--line-2); font-weight: 400; }
.cn-item.is-done:not(.is-current) .cn-num { background: #e6f6ea; color: #15803d; }
.cn-item.is-done:not(.is-current) .cn-num .n { display: none; }
.cn-item.is-done:not(.is-current) .cn-num svg { display: block; }
.nobr { white-space: nowrap; }

/* the 11 irregular verbs: one row each, never highlighted */
.conj.irregs { min-width: 420px; }
.conj.irregs.c5 { min-width: 640px; }
.conj.irregs.c4 { min-width: 600px; }
.conj.irregs tbody th { white-space: nowrap; }
.conj.irregs .irr-v { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.conj.irregs td[lang="ga"] { font-size: 16.5px; }

/* a lesson still being written */
.lrow.is-soon { cursor: default; }
.lrow.is-soon:hover { background: transparent; }
.lrow.is-soon .lr-en, .lrow.is-soon .lr-ga { color: var(--faint); }
.lr-soon { font-size: 12.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.cn-item.is-soon { cursor: default; }
.cn-item.is-soon:hover { background: transparent; }
.cn-item.is-soon .cn-en, .cn-item.is-soon .cn-ga { color: var(--faint); }

.foot-link { color: var(--muted); }
.foot-link:hover { color: var(--ink); }

/* All 11 in every tense: chips choose the verb, its table shows every person in every tense */
.irrall { margin-top: 18px; min-width: 0; }
.ia-chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.ia-chips::-webkit-scrollbar { display: none; }
.ia-chip { -webkit-appearance: none; appearance: none; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--cream-line); border-radius: 999px; background: var(--cream); font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.ia-chip:hover { border-color: var(--accent); }
.ia-chip:active { transform: scale(.97); }
.ia-chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.ia-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ia-bar { justify-content: space-between; margin: 18px 0 0; }
.ia-forms { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--soft); }
.ia-form { -webkit-appearance: none; appearance: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.ia-form:hover { color: var(--ink); }
.ia-form[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1), 0 1px 1px rgba(16,24,40,.04); }
.ia-form:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.irrall .f { display: block; }
.irrall[data-form="pos"] .f:not(.f-pos), .irrall[data-form="neg"] .f:not(.f-neg), .irrall[data-form="que"] .f:not(.f-que) { display: none; }
.ia-panel { margin-top: 22px; }
.ia-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ia-verb { font-family: Nunito, "Nunito Fallback", Inter, sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -.8px; line-height: 1.1; color: var(--ink); }
.ia-mean { font-size: 16px; color: var(--ink-3); }
.ia-mean b { font-weight: 600; color: var(--ink-2); }
.ia-table { min-width: 560px; }
.ia-table.c5 { min-width: 680px; }
.ia-table thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.ia-tga { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.ia-table tbody th { white-space: nowrap; background: #fff; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--row); }
.ia-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.ia-p { display: block; font-weight: 600; color: var(--ink-2); }
.ia-pe { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.ia-table td[lang="ga"] { font-size: 16.5px; }
@media (max-width: 559px) {
  .ia-chips { margin-right: -16px; padding-right: 16px; }
  .ia-form { padding: 0 11px; }
  .ia-verb { font-size: 34px; }
  .ia-table, .ia-table.c5 { min-width: 0; }
  .ia-table td, .ia-table thead th, .ia-tga { white-space: nowrap; }
  .ia-table th, .ia-table td { padding: 12px 14px; }
}

/* ---------- Test yourself: the quiz pop-up (static/grammar.js) ----------
   A card at the end of the lesson opens a dialog: one question at a time, the learner types the Irish, it is
   checked on the spot. Right: the field turns green, a tick pops and a little burst of confetti. Wrong: a shake and
   "Try again". Buttons are flat orange pills, Title Case, no icons (the HeyRua button rules). No Rua in here. */
:root { --ok: #1f9d55; --ok-dark: #137a3f; --ok-bg: #ebf9f0; --ok-line: #9fdcb7; --bad: #e0464d; --bad-bg: #fff2f2; --amber: #f5a524; }
.qbtn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease, opacity .15s ease; }
.qbtn:hover { background: var(--accent-dark); color: #fff; }
.qbtn:active { transform: scale(.97); }
.qbtn:focus-visible { outline: 3px solid rgba(255, 141, 40, .35); outline-offset: 3px; }
.qbtn[aria-disabled="true"] { background: #ffc896; cursor: default; }
.qbtn[aria-disabled="true"]:active { transform: none; }
.qbtn.line { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2); }
.qbtn.line:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.qbtn.ok { background: var(--ok); }
.qbtn.ok:hover { background: var(--ok-dark); }
.qbtn.ok:focus-visible { outline-color: rgba(31, 157, 85, .35); }

/* the card in the lesson */
.qlaunch { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 18px 28px; align-items: center; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #fff8ef 0%, #fff3e6 100%); border: 1px solid var(--cream-line); }
.ql-dots { display: flex; gap: 6px; }
.ql-dots i { width: 26px; height: 8px; border-radius: 99px; background: #fbd9b6; transition: background-color .3s ease; }
.ql-dots i.ok { background: var(--ok); } .ql-dots i.help { background: var(--amber); } .ql-dots i.miss { background: #f3b4b1; }
.ql-t { margin-top: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.3px; color: var(--ink); }
.ql-s { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.ql-best { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ok-dark); }
@media (min-width: 640px) { .qlaunch { grid-template-columns: 1fr auto; padding: 30px 32px; } }
@media (max-width: 639px) { .qlaunch .qbtn { width: 100%; } }

/* the dialog */
.qd { padding: 0; margin: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; color: var(--ink); }
.qd[open] { display: flex; align-items: center; justify-content: center; }
.qd::backdrop { background: rgba(16, 24, 40, .46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.qd[open]::backdrop { animation: qd-fade .3s ease; }
.qd-panel { position: relative; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 48px); min-height: min(560px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: #fff; border-radius: 28px; box-shadow: 0 30px 80px rgba(16, 24, 40, .28); overflow: hidden; }
.qd[open] .qd-panel { animation: qd-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes qd-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes qd-fade { from { opacity: 0; } to { opacity: 1; } }
.qd-top { display: flex; align-items: center; gap: 14px; padding: 20px 20px 0 28px; }
.qd-bar { flex: 1; display: flex; gap: 6px; }
.qd-seg { position: relative; flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.qd-seg i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--ok); transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.qd-seg.now { background: #ffe6cf; }
.qd-seg.ok i, .qd-seg.help i, .qd-seg.miss i { width: 100%; }
.qd-seg.help i { background: var(--amber); } .qd-seg.miss i { background: #f3b4b1; }
.qd-x { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease; }
.qd-x:hover { background: var(--soft); color: var(--ink); }
.qd-x:focus-visible { outline: 3px solid rgba(255, 141, 40, .35); }
.qd-stage { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.qd-view { padding: 30px 36px 12px; }
.qd-k { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.qd-say { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.qd-q { margin-top: 4px; font-size: 30px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; color: var(--ink); }
.qd-q.ask { margin-top: 12px; font-size: 22px; letter-spacing: -.3px; line-height: 1.4; }
.qd-q em, .qd-q i { font-style: normal; }
.qd-q .ga, .qd-q [lang="ga"] { color: var(--accent-dark); }
.qd-line { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.qd-field { position: relative; display: inline-flex; flex: 0 1 auto; max-width: 100%; }
.qd-in { width: 100%; height: 62px; padding: 0 54px 0 18px; border: 2px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; font-size: 24px; font-weight: 600; outline: none; caret-color: var(--accent); transition: border-color .15s ease, box-shadow .2s ease, background-color .25s ease, color .25s ease; }
.qd-in::placeholder { color: #c3c9d4; font-weight: 500; }
.qd-in:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 141, 40, .16); }
.qd-in.is-bad { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(224, 70, 77, .12); }
.qd-in.is-ok, .qd-in.is-ok:focus { border-color: var(--ok); background: var(--ok-bg); color: var(--ok-dark); box-shadow: 0 0 0 4px rgba(31, 157, 85, .14); }
.qd-in.is-shown { border-color: var(--line-2); background: var(--bg-2); color: var(--ink); box-shadow: none; }
.qd-tick { position: absolute; right: 13px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); pointer-events: none; }
.qd-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .34s ease .12s; }
.qd-tick.on { opacity: 1; transform: none; }
.qd-tick.on path { stroke-dashoffset: 0; }
.qd-hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.qd-fadas { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.qd-fadas button { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink-2); font: inherit; font-size: 19px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background-color .15s ease, transform .1s ease; }
.qd-fadas button:hover { border-color: var(--accent); background: var(--cream); }
.qd-fadas button:active { transform: scale(.92); }
.qd-opts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.qd-opt { min-height: 54px; padding: 8px 22px; border: 2px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 19px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .2s ease, color .2s ease, opacity .2s ease; }
.qd-opt:hover:not(:disabled) { border-color: var(--accent); }
.qd-opt:focus-visible { outline: 3px solid rgba(255, 141, 40, .35); outline-offset: 2px; }
.qd-opt.is-bad { border-color: #f6b2b0; background: var(--bad-bg); color: #b4232a; text-decoration: line-through; cursor: default; }
.qd-opt.is-ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok-dark); }
.qd-opt:disabled:not(.is-ok):not(.is-bad) { opacity: .5; cursor: default; }
.qd-fb { min-height: 30px; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.qd-fb.bad { color: #c0262d; }
.qd-fb.ok { color: var(--ok-dark); }
.qd-fb.note { color: var(--accent-dark); }
.qd-praise { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.qd-praise-en { font-size: 15px; font-weight: 500; color: var(--muted); }
.qd-why { margin-top: 14px; padding: 14px 18px; border-radius: 16px; background: var(--bg-2); color: var(--ink-3); font-size: 15.5px; line-height: 1.7; }
.qd-why b { color: var(--ink); }
.qd-ans { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qd-ans [lang="ga"] { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; color: var(--ink); }
.qd-foot { display: flex; align-items: center; gap: 12px; padding: 16px 24px 24px 36px; }
.qd-foot .qbtn { margin-left: auto; min-width: 148px; }
.qd-show { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.qd-show:hover { color: var(--ink-2); text-decoration-color: currentColor; }
.qd-confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.qd-confetti i { position: absolute; left: 0; top: 0; width: 10px; height: 15px; border-radius: 3px; }
.qd-confetti i.dot { width: 10px; height: 10px; border-radius: 50%; }

/* the end of the quiz */
.qd-end { padding: 26px 36px 8px; text-align: center; }
.qd-ring { position: relative; width: 148px; height: 148px; margin: 4px auto 0; }
.qd-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.qd-ring circle { fill: none; stroke-width: 11; }
.qd-ring .trk { stroke: var(--soft); }
.qd-ring .val { stroke: var(--accent); stroke-linecap: round; }
.qd-ring.all .val { stroke: var(--ok); }
.qd-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.qd-num small { margin-left: 2px; font-size: 20px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.qd-end-t { margin-top: 18px; font-size: 30px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); }
.qd-end-en { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.qd-end-s { max-width: 420px; margin: 10px auto 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.qd-list { margin: 24px 0 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--line); }
.qd-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qd-dot { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ok); }
.qd-dot.help { background: var(--amber); } .qd-dot.miss { background: #eb7f7b; }
.qd-li-q { font-size: 14px; color: var(--muted); }
.qd-li-q em, .qd-li-q i { font-style: normal; }
.qd-li-a { font-size: 17px; font-weight: 600; color: var(--ink); }
.qd-foot.end { justify-content: center; padding-left: 24px; }
.qd-foot.end .qbtn { margin-left: 0; }

@media (max-width: 559px) {
  .qd[open] { align-items: stretch; }
  .qd-panel { width: 100%; max-height: none; min-height: 0; height: 100%; border-radius: 0; box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
  .qd[open] .qd-panel { animation-name: qd-up; }
  @keyframes qd-up { from { opacity: .4; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .qd-top { padding: calc(14px + env(safe-area-inset-top)) 10px 0 20px; }
  .qd-view, .qd-end { padding: 22px 20px 8px; }
  .qd-q { font-size: 26px; }
  .qd-q.ask { font-size: 20px; }
  .qd-line { font-size: 21px; margin-top: 20px; }
  .qd-in { height: 58px; font-size: 22px; }
  .qd-foot { padding: 12px 20px 18px; }
  .qd-foot .qbtn { flex: 1; min-width: 0; }
  .qd-foot.end { flex-direction: column-reverse; }
  .qd-foot.end .qbtn { width: 100%; flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qd[open] .qd-panel, .qd[open]::backdrop { animation: none; }
}

/* the quiz's fada keys, with their help line */
.qd-fada { margin-top: 16px; }
.qd-fada-k { font-size: 14px; color: var(--muted); }
.qd-fada .qd-fadas { margin-top: 8px; }

/* past | present | future, three lines a cell (blocks.r_ptf), as the table in the owner's notes */
.conj.ptf { min-width: 640px; }
.conj.ptf td { line-height: 1.45; }
.conj.ptf td .pl { display: block; }
.conj.ptf td .pl + .pl { margin-top: 3px; }
.conj.ptf td .pl:nth-child(2) { font-weight: 500; color: var(--ink-2); }
.conj.ptf thead th { line-height: 1.35; }
.conj.ptf .ia-tga { display: block; font-size: 12px; font-weight: 500; color: var(--faint); }
.conj.ptf tbody th { white-space: nowrap; }

/* a few words as pills (blocks.r_words) */
.words { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.words li { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 10px 16px 9px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); }
.wd-ga { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.wd-en { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* leathan le leathan, caol le caol (blocks.r_match): root → ending, the matching vowels in the team's colour */
.match { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .match { grid-template-columns: 1fr 1fr; } }
.mt-team { --tc: #da6600; --tb: #fff3e6; --tl: #f6d2ad; padding: 18px 18px 8px; border-radius: 20px; background: var(--tb); border: 1px solid var(--tl); }
.mt-caol { --tc: #6b46d9; --tb: #f4f0ff; --tl: #d9cdfb; }
.mt-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.mt-name { font-size: 19px; font-weight: 700; color: var(--tc); }
.mt-name b.ig { color: var(--tc); }
.mt-sub { font-size: 14px; color: var(--muted); font-style: italic; }
.mt-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.mt-row { display: grid; grid-template-columns: 66px 40px 82px 1fr; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--tl); }
.mt-row:first-child { border-top: 0; }
.mt-chip { justify-self: start; padding: 5px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--tl); font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mt-chip b { color: #fff; background: var(--tc); border-radius: 5px; padding: 0 3px; margin: 0 1px; font-weight: 700; }
.mt-arrow { color: var(--tc); width: 38px; }
.mt-res { margin-left: 10px; display: flex; flex-direction: column; line-height: 1.3; }
.mt-res [lang="ga"] { font-size: 16.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mt-en { font-size: 13px; color: var(--muted); font-style: italic; }
@media (max-width: 419px) { .mt-row { grid-template-columns: 64px 36px 76px 1fr; } .mt-arrow { width: 32px; } .mt-chip { font-size: 17px; padding: 4px 9px; } .mt-res { margin-left: 4px; } }
/* on a phone the table scrolls sideways: the verb column stays put */
@media (max-width: 719px) {
  .conj.ptf tbody th, .conj.ptf thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--row); }
  .conj.ptf thead th:first-child { background: var(--bg-2); }
}

/* ---------- breathing room (Eamon, 29 Oct 2026: "spacing feels bunched, it feels overwhelming") ----------
   More air between sections and between the parts of a section; the same rhythm everywhere. */
.l-tools { margin-top: 24px; }
.learn { margin-top: 36px; padding: 22px 26px 24px; }
.intro { margin-top: 48px; }
.notes { gap: 112px; margin-top: 80px; }
.lead { margin-top: 16px; }
.note { margin-top: 28px; }
.tbl-note { margin-top: 18px; }
.checks { margin-top: 32px; gap: 22px; }
.steps { margin-top: 34px; }
.steps li { padding-bottom: 32px; }
.steps li:last-child { padding-bottom: 0; }
.st-ga { margin-top: 6px; }
.tickable > .ticks:first-child { margin-top: 32px; }
.tbl-h { margin: 36px 0 12px; }
.conj-wrap { margin-top: 14px; }
.conj th, .conj td { padding: 15px 18px; }
.pattern { margin-top: 34px; }
.pt-row { padding: 22px 0; }
.order { margin-top: 32px; gap: 18px; }
.ccards { margin-top: 32px; gap: 14px; }
.formula { margin-top: 32px; }
.rules { margin-top: 28px; }
.rulecard { padding: 24px 0; }
.callout { margin-top: 32px; }
.letters { margin-top: 28px; }
.tabs-block { margin-top: 32px; }
.bigcard { margin-top: 32px; }
.sentences { margin-top: 16px; }
.sent { padding-top: 16px; padding-bottom: 16px; }
.match { margin-top: 32px; }
.words { margin-top: 30px; }
.gf { margin-top: 64px; padding-top: 44px; }
.meaning { padding: 20px 0; }
.meanings { margin-top: 26px; }
.qlaunch { margin-top: 30px; }
.pn { margin-top: 112px; }
@media (max-width: 559px) {
  .notes { gap: 84px; margin-top: 64px; }
  .intro { margin-top: 40px; }
  .learn { padding: 18px 20px 20px; }
  .conj th, .conj td { padding: 14px 14px; }
}
.intro { font-size: 18px; line-height: 1.75; }
@media (max-width: 559px) { .intro { font-size: 17px; } .learn-list li { font-size: 16px; } }

/* Cleachtadh (Practice), as in the owner's notes: cue, the sentence with a gap, then Freagraí on a button */
.practice { margin-top: 30px; }
.pr-lead { font-size: 16.5px; color: var(--ink-3); line-height: 1.7; }
.pr-list { margin: 18px 0 0; padding: 0 0 0 28px; display: grid; gap: 18px; }
.pr-list li { padding-left: 4px; font-size: 17.5px; color: var(--ink-3); }
.pr-list li::marker { color: var(--faint); font-weight: 600; font-size: 15px; }
.pr-q { font-weight: 600; color: var(--ink); line-height: 1.7; }
.pr-cue { font-weight: 500; color: var(--accent-dark); margin-right: 2px; }
.pr-q .gap { min-width: 72px; }
.pr-a { display: none; margin-top: 6px; padding: 8px 14px; border-radius: 12px; background: var(--cream); font-weight: 600; color: var(--ink); line-height: 1.6; }
.pr-en { display: block; font-size: 14.5px; font-weight: 400; font-style: italic; color: var(--muted); }
.practice.is-shown .pr-a { display: block; animation: fade-in .2s ease; }
.pr-show { margin-top: 24px; height: 46px; padding: 0 24px; font-size: 15px; }

/* every table keeps its English behind the Show the English tick (Eamon, 18 Nov 2026) */
.tickable .en-col { display: none; }
.tickable.en-on .en-col { display: table-cell; }
.conj.ptf .pl .cell-en { display: none; margin: 0 0 2px; }
.en-on .conj.ptf .pl .cell-en { display: block; }
.pr-cue[lang="en"] { font-style: italic; }

/* the notes cannot be copied (Eamon, 18 Nov 2026); the quiz box and the share buttons still work */
.lesson .intro, .lesson .learn, .lesson .notes { -webkit-user-select: none; user-select: none; }

/* the video placeholder: every lesson launches with a video (Eamon, 18 Nov 2026) */
.video { position: relative; margin-top: 28px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 120% at 15% 10%, #fff6ec 0%, #ffe9d3 50%, #ffdcb8 100%); display: flex; align-items: center; justify-content: center; }
.v-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 20px; }
.v-play { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; padding-left: 4px; }
.v-t { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.v-rua { position: absolute; right: 18px; bottom: -6px; width: 110px; height: 110px; }
@media (max-width: 559px) { .v-rua { width: 60px; height: 60px; right: 10px; bottom: -4px; } .v-play { width: 58px; height: 58px; } }

/* Blog feedback batch 4 (Éamon, 27 Nov 2026) */
/* the search heading sits in the subtitle line; the Irish course title stays the big line above it */
h1.l-sub { margin-top: 6px; font-size: 19px; line-height: 1.4; font-weight: 500; font-style: normal; color: var(--ink-3); letter-spacing: 0; }
.l-blurb { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 680px; }
/* In a nutshell: ticks, one idea per line */
.nutshell { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.nutshell li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.nut-tick { width: 26px; height: 26px; border-radius: 50%; background: var(--check); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.nut-tick svg { width: 14px; height: 14px; }
.nut-t { display: block; font-weight: 600; color: var(--ink); font-size: 16.5px; line-height: 1.45; }
.nut-d { display: block; margin-top: 2px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
/* quick rules: bullets with a lightning bolt in a grey circle, not numbered steps */
ul.steps li::before { display: none; }
.st-bolt { background: var(--line); color: var(--accent-dark); }
.st-bolt svg { width: 17px; height: 17px; }
/* the irregular past/present/future table: a narrow verb column so «Bhí tú, sé, sí, sibh, siad» fits on one line
   (Éamon, 27 Nov 2026, batch 4: "you had space on the left to move this in") */
.conj.ptf thead th:first-child, .conj.ptf tbody th { width: 1%; padding-right: 14px; }
.conj.ptf td .pl:nth-child(2) { font-size: 14.5px; line-height: 1.45; }
.conj.ptf .irr-v { font-size: 16px; }

/* céimeanna comparáide as a staircase (blocks.r_stairs; Éamon, 27 Nov 2026, batch 4: "use the stairs type of design
   you see online"): each step one higher from left to right, the Irish big with its English under it, on a floor line */
.stairs { margin-top: 34px; container-type: inline-size; }
.sr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px 22px; }
.sr-case { --base: 108px; --rise: 46px; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 4px; border-bottom: 3px solid var(--accent); }
.sr-step { flex: 1 1 0; min-width: 0; min-height: calc(var(--base) + var(--i, 0) * var(--rise)); display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; border-radius: 14px 14px 0 0; background: var(--cream-2); }
.sr-step.s0 { flex-grow: .8; }   /* the ordinary word is the shortest: more room for «níos ...» and «is ...» */
.sr-step.s1 { background: #ffe6cc; }
.sr-step.s2 { background: #ffd6ab; }
.sr-step.s3 { background: #ffc78e; }
.sr-k { font-size: 12.5px; font-weight: 600; letter-spacing: .2px; color: var(--accent-dark); line-height: 1.3; }
.sr-k b.ig { color: var(--accent-dark); font-weight: 700; }
.sr-ga { font-size: 25px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }
.sr-en { font-size: 15px; line-height: 1.35; color: var(--ink-3); font-style: italic; }
.stairs.many .sr-case { --base: 78px; --rise: 30px; }
.stairs.many .sr-step { padding: 10px 12px 12px; border-radius: 12px 12px 0 0; }
.stairs.many .sr-ga { font-size: 19px; }
.stairs.many .sr-en { font-size: 13.5px; }
@container (min-width: 640px) { .stairs.many .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .sr-grid { gap: 24px; }
  .sr-case { --base: 92px; --rise: 34px; gap: 3px; }
  .sr-step { padding: 10px 9px 12px; border-radius: 10px 10px 0 0; }
  .sr-k { font-size: 11px; letter-spacing: 0; }
  .sr-ga { font-size: 19px; }
  .sr-en { font-size: 13.5px; }
  .stairs.many .sr-case { --base: 74px; --rise: 26px; }
  .stairs.many .sr-step { padding: 9px 9px 11px; }
  .stairs.many .sr-ga { font-size: 17.5px; }
}
/* letters that are dropped: crossed out in red (batch 4: "explain with simple diagrams about dropping the 2nd vowel group") */
mark.drop { background: #fee4e2; color: #b42318; text-decoration: line-through; text-decoration-thickness: 2px; border-radius: 3px; padding: 0 1px; }
.hl-off mark.drop { background: none; color: inherit; text-decoration: none; }

/* Practise it: links to the dictionary and blog pages for this lesson (27 Nov 2026) */
.l-related { margin: 28px 0 8px; }
.l-related .sec { margin-bottom: 10px; }
.rel-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; margin-top: 8px; }
.rel-link:hover { background: var(--bg-2); }
.rel-link svg { flex: none; }

.irr-v a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.irr-v a:hover { text-decoration-color: var(--accent); }

/* 28 Nov 2026: the header button never wraps onto two lines; the search box gives way instead */
.hdr .btn, .hdr .btn-accent { white-space: nowrap; flex-shrink: 0; }
.hdr .nav a { white-space: nowrap; }
