/* Translation Foundation (translation.foundation.ge)
   Set like a printed handbook: warm paper, black ink, thin rules, numbered sections; no boxes,
   shadows or animation. Amber, the colour of subtitles on a screen, is kept for link underlines,
   icons and the few things that need attention.
   Noto Sans + Noto Sans Georgian so both languages share one typeface.
   Accessibility: visible focus ring, 44px controls, AA contrast in both themes. */

/* Fonts are served from this site (no requests to Google): Noto Sans and Noto Sans Georgian, SIL Open Font License (fonts/OFL.txt). */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/noto-sans-georgian-georgian-400-normal.woff2) format("woff2");
  unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }
@font-face { font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/noto-sans-georgian-georgian-700-normal.woff2) format("woff2");
  unicode-range: U+0589,U+10A0-10FF,U+1C90-1CBA,U+1CBD-1CBF,U+205A,U+2D00-2D2F,U+2E31; }

:root {
  --paper: #fbfaf7;
  --panel: #f2efe9;
  --ink: #1b1b1a;
  --muted: #575b61;
  --line: #dfdad1;
  --accent: #c47d0e;
  --accent-soft: #fbf0d9;
  --accent-ink: #1b1b1a;
  --link: #8a4f00;
  --warn: #a8201a;
  --green: #1b6e46;
  --screen: #111110;
  --screen-ink: #f7f5ef;
  --screen-sub: #ffd23f;
  --focus: #1a5fb4;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font: "Noto Sans", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141413;
    --panel: #1d1c1a;
    --ink: #ebe9e4;
    --muted: #a9abad;
    --line: #353431;
    --accent: #f0b23e;
    --accent-soft: #2d2412;
    --accent-ink: #141413;
    --link: #f6c467;
    --warn: #ff8f80;
    --green: #5fd39a;
    --screen: #000000;
    --screen-ink: #f7f5ef;
    --screen-sub: #ffd23f;
    --focus: #8ab4ff;
  }
}
:root[data-theme="dark"] {
  --paper: #141413;
  --panel: #1d1c1a;
  --ink: #ebe9e4;
  --muted: #a9abad;
  --line: #353431;
  --accent: #f0b23e;
  --accent-soft: #2d2412;
  --accent-ink: #141413;
  --link: #f6c467;
  --warn: #ff8f80;
  --green: #5fd39a;
  --screen: #000000;
  --screen-ink: #f7f5ef;
  --screen-sub: #ffd23f;
  --focus: #8ab4ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--font); }
@media (min-width: 1000px) { body { font-size: 1.0625rem; } }
body:lang(ka) { line-height: 1.75; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link); text-decoration-thickness: 2px; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
b, strong { font-weight: 700; }
h1, h2, h3 { line-height: 1.22; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 2em 0 .6em; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.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; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* Keyboard focus: a clear 3px ring on everything interactive */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.15; margin-right: auto; max-width: 15rem; }
.brand svg { flex: none; display: block; }
.brand span { font-size: 1.05rem; }

.primary-nav { display: none; gap: 20px; font-size: .93rem; }
.primary-nav a { color: var(--ink); text-decoration: none; padding: 18px 0 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
@media (min-width: 1120px) { .primary-nav { display: flex; } }
.site-header .wrap { max-width: 1280px; }
:lang(ka) .brand { max-width: 16rem; flex-shrink: 0; }
@media (max-width: 560px) { :lang(ka) .brand { flex-shrink: 1; } }
:lang(ka) .nav-learn { display: none; }  /* Georgian readers rarely need it; it stays in the menu */
@media (max-width: 420px) {
  .site-header .wrap { gap: 6px; }
  .brand { gap: 7px; min-width: 0; }
  .brand svg { width: 22px; height: 33px; }
  .brand span, :lang(ka) .brand span { font-size: .88rem; }
  .lang-switch { padding: 8px; }
}

.lang-switch { font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.lang-switch:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.btn { display: inline-block; padding: 10px 16px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; border: 2px solid transparent; line-height: 1.2; border-radius: 0; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--link); border-color: var(--link); color: var(--paper); }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.site-header .btn { padding: 7px 12px; font-size: .9rem; }
@media (max-width: 560px) { .brand { font-size: .95rem; } }

.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 44px; font-size: .9rem; font-weight: 700; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .bars { width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
.menu[open] > summary { background: var(--panel); }
@media (max-width: 560px) { .menu-label { display: none; } .menu > summary { padding: 9px 12px; min-width: 44px; min-height: 44px; justify-content: center; } }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); }
.menu-panel .wrap { display: grid; gap: 4px 32px; grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 20px; align-items: start; }
@media (min-width: 640px) { .menu-panel .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .menu-panel .wrap { grid-template-columns: repeat(4, 1fr); } }
.menu-group h2 { font-size: .82rem; font-weight: 700; color: var(--muted); border: 0; padding: 0; margin: 14px 0 2px; }
.menu-group h2::before { display: none; }
.menu-panel a { display: block; padding: 11px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 700; }
.menu-panel a:hover { color: var(--link); text-decoration: underline; }
.menu-panel a[aria-current="page"] { color: var(--link); box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }

/* Light/dark toggle: an icon button in the header; on very narrow phones it moves into the menu */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.theme-toggle:hover { background: var(--panel); }
.theme-toggle svg { width: 18px; height: 18px; flex: none; }
.theme-toggle .icon-sun, .theme-toggle[data-mode="dark"] .icon-moon { display: none; }
.theme-toggle[data-mode="dark"] .icon-sun { display: block; }
.header-theme { padding: 0; width: 44px; flex: none; }
.menu-panel .menu-tools { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 0; }
.menu-tools .theme-toggle { display: none; }
@media (max-width: 560px) { .header-theme { width: 44px; min-height: 44px; } }
/* exactly one toggle is visible: the header one from 360px up, the menu one below */
@media (max-width: 359px) { .header-theme { display: none; } .menu-tools .theme-toggle { display: inline-flex; } }

.alert-strip { background: var(--amber-soft); border-bottom: 1px solid var(--line); }
.alert-strip .wrap { padding-top: 10px; padding-bottom: 10px; font-size: .95rem; }
.alert-strip b { color: var(--amber); }

/* ---------- Page heads ---------- */
.page-head { padding: 24px 0 8px; }
@media (min-width: 720px) { .page-head { padding: 36px 0 8px; } }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46rem; margin: 12px 0 0; }
.updated { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.keypoints { border-top: 2px solid var(--ink); padding: 12px 0 2px; margin-top: 26px; max-width: 46rem; }
.keypoints h2 { font-size: .95rem; border: 0; padding: 0; margin: 0 0 6px; }
.keypoints ul { margin-bottom: 10px; }

/* ---------- Body layout ---------- */
.page-body { padding-top: 0; padding-bottom: 56px; }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 44px; }
@media (min-width: 1000px) { .with-toc { grid-template-columns: 210px minmax(0, 1fr); } }
.toc { font-size: .9rem; margin-top: 30px; }
.toc h2 { font-size: .9rem; border-top: 1px solid var(--line); margin: 0 0 6px; padding-top: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; border-bottom: 1px solid var(--line); counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); padding: 6px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.toc a::before { content: counter(toc); content: counter(toc) / ""; color: var(--muted); font-variant-numeric: tabular-nums; }
.with-toc .prose { counter-reset: sec; }
.with-toc .prose h2[id] { counter-increment: sec; }
.with-toc .prose h2[id]::before { content: counter(sec); content: counter(sec) / ""; display: inline-block; min-width: 1.5em; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .with-toc .prose h2[id]::before { margin-left: -1.5em; } }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 16px; } }
@media (max-width: 999px) { .toc ol { columns: 2; column-gap: 18px; font-size: .86rem; } .toc li { break-inside: avoid; } }

.prose { max-width: 46rem; }

/* ---------- Components ---------- */
.callout { padding: 12px 0; margin: 1.6em 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.important { border-top: 2px solid var(--accent); }
.callout.status { border-top: 2px solid var(--amber); }
.callout-title { font-weight: 700; display: block; margin-bottom: 3px; }

/* Home */
.home-head { padding: 28px 0 8px; }
@media (min-width: 720px) { .home-head { padding: 40px 0 8px; } }
.home-head h1 { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; }
:lang(ka) .home-head h1 { max-width: 30ch; font-size: clamp(1.7rem, 3.8vw, 2.4rem); line-height: 1.25; letter-spacing: 0; }
.home-head .lede { font-size: 1.2rem; }
:lang(ka) h1 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); }
:lang(ka) h2 { font-size: 1.25rem; }
.home-head .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.section { padding: 8px 0 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; border-bottom: 1px solid var(--ink); margin-top: 56px; padding-bottom: 10px; }
.section-head + .index { border-top: 0; }
.section-head h2 { border: 0; padding: 0; margin: 0; }
.section-head a { font-size: .92rem; }

/* Quick answers */
.qa { display: grid; grid-template-columns: 1fr; gap: 0 36px; margin-top: 8px; }
@media (min-width: 820px) { .qa { grid-template-columns: 1fr 1fr; } }
.qa-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.qa-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.qa-item p { margin: 0 0 4px; }
.qa-item a.more { font-size: .9rem; font-weight: 700; }

/* Where to start (home, guides): a numbered index, like the contents page of a handbook */
.index { list-style: none; counter-reset: idx; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .index { columns: 2; column-gap: 44px; } }
.index li { counter-increment: idx; break-inside: avoid; margin: 0; border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 14px 0 15px; color: var(--ink); text-decoration: none; }
.index a::before { content: counter(idx, decimal-leading-zero); content: counter(idx, decimal-leading-zero) / ""; grid-row: span 2; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: .25em; }
.index-title { font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.index-desc { color: var(--muted); font-size: .95rem; line-height: 1.5; margin-top: 3px; }
/* On the home page each entry has a small line icon in place of its number */
.index-icons a::before { content: none; }
.index-icon { grid-row: span 2; width: 22px; height: 22px; margin-top: .2em; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.index a:hover .index-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 0; }
.plain-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); margin: 0; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 6px; height: 6px; background: var(--ink); }

/* Tables */
.table-wrap { margin: 1.1em 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.data th, .data td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.data thead th { font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
.data tbody th { font-weight: 700; }
.data .ge { background: var(--accent-soft); }
.data thead th.ge { color: var(--link); }
.mark { display: inline-block; width: 1.3em; font-weight: 700; }
.yes .mark { color: var(--green); }
.part .mark { color: var(--amber); }
.no .mark { color: var(--accent); }
.unk .mark { color: var(--muted); }
.table-key { font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) {
  .data, .data tbody, .data tr, .data th, .data td { display: block; width: 100%; }
  .data thead { display: none; }
  .data tr { border-top: 2px solid var(--ink); margin-bottom: 14px; }
  .data tbody th { border-bottom: 1px solid var(--line); padding-left: 0; }
  .data td { border-bottom: 1px solid var(--line); padding: 7px 10px; }
  .data td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
}

dl.terms dt { font-weight: 700; margin-top: 1em; }
dl.terms dd { margin: .2em 0 0; }

.checklist { list-style: none; padding: 0; }
.checklist > li { position: relative; padding-left: 28px; }
.checklist > li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 13px; height: 13px; border: 1.5px solid var(--ink); }

.resource-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.resource-list li { border-bottom: 1px solid var(--line); padding: 10px 0; margin: 0; }
.resource-list a { font-weight: 700; }
.resource-list span { display: block; color: var(--muted); font-size: .92rem; }

/* Small layout helpers (instead of inline styles, which the Content-Security-Policy blocks) */
.after-note { margin-top: 1.8em; }
.prose-wide { max-width: none; }
.prose-narrow { max-width: 46rem; }
.callout-narrow { max-width: 50rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Display settings: larger text and easier reading (WCAG 1.4.4 resize text, 1.4.12 text spacing) */
html[data-textsize="large"] { font-size: 112.5%; }
html[data-textsize="xlarge"] { font-size: 125%; }
html[data-readable="on"] body { letter-spacing: .03em; word-spacing: .14em; line-height: 1.95; }
html[data-readable="on"] p, html[data-readable="on"] li { max-width: 40em; }
html[data-readable="on"] .prose { max-width: 42rem; }
/* The header bar keeps its size and spacing under every display setting, so it never overflows on phones. */
html[data-textsize] .site-header, html[data-readable] .site-header { letter-spacing: normal; word-spacing: normal; line-height: 1.15; }
html[data-textsize] .brand span { font-size: 16.8px; }
html[data-textsize] .lang-switch, html[data-textsize] .menu > summary { font-size: 14.4px; }
@media (max-width: 420px) { html[data-textsize] .brand span { font-size: 14px; } }

/* Display settings in the menu */
.display-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ds-sizes { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; margin: 0; }
.ds-sizes legend { float: left; margin-right: 8px; font-size: .9rem; font-weight: 700; color: var(--muted); padding: 0; }
.ds-sizes label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--ink); cursor: pointer; }
.ds-sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-sizes label:has(input:checked) { background: var(--ink); color: var(--paper); }
.ds-sizes label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ds-a { font-weight: 700; line-height: 1; }
.ds-a1 { font-size: .85rem; } .ds-a2 { font-size: 1.05rem; } .ds-a3 { font-size: 1.3rem; }
.ds-readable { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.ds-readable input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.footer-legal { margin-top: .6em; }
.note-list { color: var(--muted); font-size: .95rem; padding-left: 1.2em; }

/* Home: key numbers, set as plain numerals between hairlines */
.stats-band { margin-top: 34px; }
.stats-title { font-size: .95rem; border: 0; padding: 0; margin: 0 0 8px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stats li { margin: 0; padding: 14px 14px 16px 0; }
.stats li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
.stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats li:nth-child(n+3) { border-top: 0; }
  .stats li + li { border-left: 1px solid var(--line); padding-left: 18px; }
}
.stat-num { display: block; font-size: clamp(1.55rem, 5.5vw, 2.6rem); white-space: nowrap; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { display: block; overflow-wrap: anywhere; font-size: .92rem; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.stats-more { margin: 12px 0 0; font-size: .95rem; }

/* Share bar: one line of plain text links */
.share { border-top: 1px solid var(--line); margin-top: 8px; padding: 12px 0 8px; }
.share .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.share-title { font-size: .92rem; border: 0; padding: 0; margin: 0; }
.share-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.share-list li { margin: 0; }
.share-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; }
.share-link:hover { color: var(--link); text-decoration-thickness: 2px; }
.share-status { flex-basis: 100%; min-height: 1.4em; margin: 0; color: var(--green); font-weight: 700; font-size: .92rem; }

/* Citations + sources */
sup.cite { line-height: 0; font-size: .7em; white-space: nowrap; color: var(--muted); }
sup.cite a { text-decoration: none; padding: 0 1px; color: var(--muted); }
sup.cite a:hover { color: var(--link); }
.sources { margin-top: 2.6em; }
.sources h2 { font-size: 1rem; margin: 0 0 .6em; }
.sources ol { font-size: .86rem; line-height: 1.5; color: var(--muted); padding-left: 1.8em; }
.sources li { overflow-wrap: anywhere; margin-bottom: .4em; }
.sources li:target { background: var(--amber-soft); }

/* ---------- Home: one subtitle cue, on screen and as SRT text ---------- */
.hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
.cue { margin: 0; }
.screen { aspect-ratio: 16 / 9; background: var(--screen); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 6% 7%; }
.sub { margin: 0; color: var(--screen-ink); font-size: clamp(1.15rem, 3.2vw, 1.6rem); font-weight: 700; line-height: 1.3; text-align: center; }
.sub-2 { color: var(--screen-sub); font-weight: 400; }
.cue figcaption { margin-top: 12px; }
pre.srt { font: .9rem/1.5 var(--mono); background: var(--panel); padding: 10px 14px; margin: 0 0 1em; overflow-x: auto; white-space: pre; }
pre.srt span[lang="ka"], pre.srt:lang(ka) { font-family: var(--mono), var(--font); }
.srt-meta { color: var(--muted); }
.srt-note { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Steps ---------- */
ol.steps { padding-left: 1.4em; }
ol.steps > li { margin-bottom: .7em; padding-left: .2em; }
ol.steps > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Forms and tools ---------- */
.tool, .form { border-top: 2px solid var(--ink); padding: 14px 0 6px; margin: 18px 0 22px; }
.tool fieldset, .form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.tool legend, .form legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.tool fieldset > label, .form .choices > label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; min-height: 44px; line-height: 1.45; cursor: pointer; }
.tool input[type="radio"], .tool input[type="checkbox"], .form input[type="radio"], .form input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--ink); }
.hint { color: var(--muted); font-size: .92rem; font-weight: 400; margin: 0 0 6px; }
.field { margin: 0 0 16px; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea, .romanizer input[type="text"] {
  display: block; width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 10px 12px; min-height: 44px; }
.field textarea { resize: vertical; }
.field input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; padding: 6px 0; }
.form .other-film { border: 1px solid var(--line); padding: 12px 14px 4px; }
.form .other-film > legend { padding: 0 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; line-height: 1.45; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 10px 0; font-weight: 700; color: var(--warn); }
.file-check { min-height: 1.3em; margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.form .btn, .tool .btn, .report .btn { font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; white-space: normal; text-align: left; }
.note { font-size: .92rem; color: var(--muted); }
details.paste { margin: 0 0 16px; }
details.paste > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 700; list-style: none; }
details.paste > summary::-webkit-details-marker { display: none; }
details.paste > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
details.paste[open] > summary::before { transform: rotate(45deg); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; padding: 8px 14px; margin-right: 12px; min-height: 40px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
details.paste textarea { display: block; width: 100%; font: .9rem/1.5 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 10px 12px; }
.tool-result > div { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.tool-result h3 { margin: 0 0 6px; font-size: 1.1rem; }

/* Checker report */
.report { border-top: 2px solid var(--ink); margin: 6px 0 28px; padding-top: 4px; }
.report h2 { border: 0; padding: 0; margin: 8px 0 6px; }
.report h2:focus { outline: none; }
.report h2:focus-visible { outline: 3px solid var(--focus); }
.report-summary { font-weight: 700; }
.report-legacy { border-top: 2px solid var(--accent); padding-top: 10px; margin: 12px 0; }
.preview-title { font-weight: 700; margin: 12px 0 6px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.table-scroll { overflow-x: auto; }
.report-table { font-size: .92rem; }
.report-table th[scope="row"] { font-variant-numeric: tabular-nums; }
.report-table td:nth-child(2) { font-family: var(--mono); font-size: .85rem; white-space: nowrap; }

/* Name romanizer */
.romanizer label[for] { display: block; font-weight: 700; margin-bottom: 6px; }
.romanizer input[type="text"] { font-size: 1.15rem; }
.romanizer .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; min-height: 44px; cursor: pointer; line-height: 1.45; }
.rom-result { font-size: 1.05rem; margin: 6px 0 0; }
.rom-result output { font-size: 1.35rem; font-weight: 700; }

/* Permission letter */
.letter { border: 1px solid var(--line); background: var(--paper); padding: 18px 22px 8px; margin: 1em 0; font-size: .98rem; }
.letter ul { margin-bottom: .9em; }
.copy-status { color: var(--green); font-weight: 700; }
.glyph { display: inline-block; min-width: 1.4em; text-align: center; background: var(--panel); font-weight: 700; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px 40px; margin: 6px 0 10px; }
.project { border-top: 2px solid var(--ink); padding: 12px 0 6px; }
.prose .project h2 { font-size: 1.3rem; border: 0; padding: 0; margin: 0 0 2px; }
.project-meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.project-status { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.project-status::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--ink); }
.status-open::before { background: var(--accent); }
.status-progress::before { background: var(--link); }
.status-review::before { background: var(--focus); }
.status-published::before { background: var(--green); }
.status-permission::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.project-licence { font-size: .92rem; color: var(--muted); }
.project-links { font-weight: 700; }
.project-files-title { font-weight: 700; margin-bottom: 2px; }
.project-files { margin-top: 0; }
.project-credits { font-size: .92rem; }

/* ---------- Alphabet ---------- */
.alphabet { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 0 24px; border-top: 1px solid var(--ink); }
.alphabet li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; gap: 0 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ab-letter { grid-row: span 2; font-size: 1.9rem; line-height: 1.1; font-family: "Noto Sans Georgian", var(--font); }
.ab-latin { font-weight: 700; font-size: 1.05rem; }
.ab-example { font-size: .86rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }


/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); border-top: 2px solid var(--ink); font-size: .9rem; margin-top: 40px; }
.site-footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--link); text-decoration-color: var(--accent); }
.site-footer a[aria-current="page"] { font-weight: 700; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h2 { font-size: .9rem; color: var(--muted); border: 0; padding: 0; margin: 0 0 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.footer-brand p { margin: 0 0 .5em; }
.footer-bottom { background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 32px) 1px no-repeat; padding-top: 14px; padding-bottom: 28px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer-meta { max-width: 52rem; }
@media (min-width: 720px) { .footer-bottom { background-size: calc(100% - 56px) 1px; } }
.footer-meta p { margin: 0 0 .45em; }

@media (forced-colors: active) {
  .keypoints, .callout { border-color: CanvasText; }
  .menu > summary .bars { background: CanvasText; box-shadow: 0 -5px 0 CanvasText, 0 5px 0 CanvasText; }
}

/* ---------- Print: keep the content, drop the chrome ---------- */
@media print {
  .site-header, .site-footer, .skip, .toc, .share, .crumbs, .tool, .report, .actions, noscript { display: none !important; }
  @page { size: A4; margin: 14mm 16mm; }
  body, body:lang(ka) { font-size: 10.5pt; line-height: 1.45; background: #fff; color: #000; }
  .wrap { padding: 0 !important; max-width: none; }
  .with-toc { display: block; }
  a { color: #000; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; overflow-wrap: anywhere; }
  .letter { border: 0; padding: 0; }
  .screen { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
