/* iSnan public pages: shared styles for /download, /auth/*, /app/open and the policy pages.
   Builds on /shared/tokens.css (brand tokens, Thmanyah Sans, .btn, .pill, .card). Mobile first,
   logical properties only, so the same rules serve Arabic (RTL) and English (LTR). */

:root {
  --gutter: 20px;
  --page: 1080px;
  --measure: 700px;
  --section-y: 56px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --on-ink: #FFFFFF;
  --on-ink-2: rgba(255, 255, 255, .70);
  --on-ink-3: rgba(255, 255, 255, .54);
  --on-ink-line: rgba(255, 255, 255, .12);
  --on-ink-fill: rgba(255, 255, 255, .06);
  --dur: .18s;
}
@media (min-width: 640px) { :root { --gutter: 32px; --section-y: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section-y: 88px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: 16px; }
body { font-size: 16px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
html[lang="en"] body { line-height: 1.6; }
main { flex: 1 0 auto; }
main:focus { outline: none; box-shadow: none; }

h1, h2, h3 { margin: 0; line-height: 1.35; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.015em; }
a { text-underline-offset: 3px; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.num, .nw { white-space: nowrap; }
html[lang="ar"] [data-lang-only="en"], html[lang="en"] [data-lang-only="ar"] { display: none !important; }
html.i18n-wait body { visibility: hidden; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(var(--measure) + var(--gutter) * 2); }

/* Skip link */
.skip {
  position: absolute; inset-inline-start: 12px; top: 12px; z-index: 50;
  padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip:focus { transform: none; }

/* Icons: placeholders filled from /shared/icons.js */
.ic-slot { display: inline-flex; width: 20px; height: 20px; flex: none; align-items: center; justify-content: center; }
.ic-slot > svg { width: 100%; height: 100%; stroke-width: 1.6; }
.ic-slot.sm { width: 16px; height: 16px; }
.ic-slot.lg { width: 24px; height: 24px; }
[dir="rtl"] .ic-slot.flip { transform: scaleX(-1); }

/* ---------- Header / brand ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); direction: ltr; border-radius: var(--radius-sm); min-height: 44px; }
.brand img { width: 25px; height: auto; }
.brand-name { font-size: 21px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.brand.on-ink { color: var(--on-ink); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-toggle:hover { border-color: var(--mist); }
.lang-toggle .ic-slot { width: 18px; height: 18px; color: var(--slate); }
.lang-toggle.on-ink { color: var(--on-ink); border-color: rgba(255, 255, 255, .2); }
.lang-toggle.on-ink:hover { border-color: rgba(255, 255, 255, .42); background: var(--on-ink-fill); }
.lang-toggle.on-ink .ic-slot { color: var(--on-ink-2); }

/* ---------- Buttons (extends tokens .btn) ---------- */
.btn { text-align: center; line-height: 1.3; }
.btn .ic-slot { width: 19px; height: 19px; }
.btn.lg { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.primary:focus-visible { box-shadow: 0 0 0 3px rgba(124, 155, 245, .55); }
.btn.on-ink { color: var(--on-ink); border-color: rgba(255, 255, 255, .22); background: transparent; }
.btn.on-ink:hover { border-color: rgba(255, 255, 255, .45); background: var(--on-ink-fill); }
.btn.link { min-height: 44px; padding: 0 4px; color: var(--slate); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); }
.btn.link:hover { color: var(--ink); text-decoration-color: var(--mist); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; }
.btn.is-busy { cursor: progress; }

.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Download hero (the one dark moment) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 440px at 88% -14%, rgba(29, 78, 216, .26), rgba(29, 78, 216, 0) 62%),
    radial-gradient(520px 400px at -6% 114%, rgba(20, 184, 166, .12), rgba(20, 184, 166, 0) 60%);
}
[dir="ltr"] .hero::before {
  background:
    radial-gradient(720px 440px at 12% -14%, rgba(29, 78, 216, .26), rgba(29, 78, 216, 0) 62%),
    radial-gradient(520px 400px at 106% 114%, rgba(20, 184, 166, .12), rgba(20, 184, 166, 0) 60%);
}
.hero :focus-visible { box-shadow: 0 0 0 3px rgba(124, 155, 245, .65); }
.hero-grid { display: grid; gap: 28px; padding: 20px 0 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 12px;
  border: 1px solid var(--on-ink-line); border-radius: 999px; color: var(--on-ink-2);
  font-size: 13px; font-weight: 600;
}
.eyebrow .ic-slot { width: 16px; height: 16px; color: var(--on-ink-2); }
.hero h1 { margin-top: 18px; font-size: clamp(28px, 7.4vw, 46px); font-weight: 900; line-height: 1.28; max-width: 15em; }
.hero .lead { margin-top: 14px; max-width: 34em; color: var(--on-ink-2); font-size: 16px; line-height: 1.9; }
html[lang="en"] .hero .lead { line-height: 1.65; }
.cta { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.cta .btn.lg { width: 100%; }
.cta-sub { color: var(--on-ink-3); font-size: 13.5px; }
.state-line { display: flex; align-items: flex-start; gap: 10px; color: var(--on-ink-2); font-size: 14.5px; line-height: 1.75; }
.state-line .ic-slot { margin-top: 3px; color: var(--on-ink-3); }
.pill.on-ink { height: 32px; padding: 0 12px; background: var(--on-ink-fill); color: var(--on-ink); border: 1px solid var(--on-ink-line); font-size: 13.5px; }
.pill.on-ink .ic-slot { width: 16px; height: 16px; color: var(--on-ink-2); }
.platform-note {
  margin-top: 18px; max-width: 34em; display: flex; align-items: flex-start; gap: 10px;
  color: var(--on-ink-2); font-size: 14px; line-height: 1.75;
}
.platform-note .ic-slot { margin-top: 3px; color: var(--on-ink-3); }
.platform-note .btn { margin-top: 4px; margin-inline-start: -10px; min-height: 44px; padding: 0 10px; font-size: 13.5px; border-color: transparent; color: var(--on-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.platform-note .btn:hover { background: var(--on-ink-fill); border-color: transparent; }
.platform-note .btn .ic-slot { margin-top: 0; color: var(--on-ink-2); }

/* Release facts */
.facts { border: 1px solid var(--on-ink-line); border-radius: var(--radius-lg); overflow: hidden; }
.facts-head { display: none; }
.facts-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 14px 16px; min-width: 0; }
.fact:nth-child(odd) { border-inline-end: 1px solid var(--on-ink-line); }
.fact:nth-child(n + 3) { border-top: 1px solid var(--on-ink-line); }
.fact dt { color: var(--on-ink-3); font-size: 12.5px; font-weight: 600; }
.fact dd { margin: 3px 0 0; color: var(--on-ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 64px; padding: 40px 0 72px; }
  .cta .btn.lg { width: auto; min-width: 280px; }
  .facts { background: rgba(255, 255, 255, .025); }
  .facts-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--on-ink-line); }
  .facts-head img { width: 44px; height: 44px; border-radius: 11px; }
  .facts-head strong { display: block; font-size: 16px; line-height: 1.3; }
  .facts-head span { color: var(--on-ink-3); font-size: 13px; }
  .facts-list { grid-template-columns: 1fr; }
  .fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px; }
  .fact:nth-child(odd) { border-inline-end: 0; }
  .fact + .fact { border-top: 1px solid var(--on-ink-line); }
  .fact dd { margin: 0; text-align: end; }
}

/* ---------- Light sections ---------- */
.section { padding-block: var(--section-y); }
.section.tint { background: var(--cloud); }
.section + .section:not(.tint) { border-top: 1px solid var(--line); }
.section.tint + .section { border-top: 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head h2 { font-size: 23px; font-weight: 700; }
.section-head p { margin-top: 8px; color: var(--slate); font-size: 15.5px; }
@media (min-width: 1024px) { .section-head h2 { font-size: 28px; } .section-head { margin-bottom: 36px; } }

/* Audiences */
.audiences { display: grid; gap: 16px; }
@media (min-width: 760px) { .audiences { grid-template-columns: 1fr 1fr; gap: 20px; } }
.aud { padding: 22px; }
@media (min-width: 1024px) { .aud { padding: 28px; } }
.aud-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.aud-head h3 { font-size: 18px; font-weight: 700; }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cloud); color: var(--ink); flex: none; }
.tile .ic-slot { width: 22px; height: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.ticks .ic-slot { width: 18px; height: 18px; margin-top: 4px; color: #0F766E; }

/* Screenshots */
.shots-row {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.shots-row:focus-visible { border-radius: 0; }
.shot { flex: none; width: min(62vw, 232px); margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; aspect-ratio: auto 9 / 20; border-radius: 20px; border: 1px solid var(--line); background: var(--cloud); } /* reserves the height of a phone screenshot until it loads */

/* Install steps */
.install-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .install-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; top: 40px; bottom: 6px; inset-inline-start: 16.5px; width: 1px; background: var(--line-2);
}
.step:last-child::before { display: none; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; font-weight: 700;
}
.step h3 { font-size: 16.5px; font-weight: 700; padding-top: 4px; }
.step p { margin-top: 4px; color: var(--slate); font-size: 15px; line-height: 1.8; }
html[lang="en"] .step p { line-height: 1.65; }
.notes { display: grid; gap: 14px; }
.note { padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.note .tile { width: 38px; height: 38px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); }
.note .tile .ic-slot { width: 20px; height: 20px; }
.note h3 { font-size: 15.5px; font-weight: 700; }
.note p { margin-top: 4px; color: var(--slate); font-size: 14.5px; line-height: 1.8; }
html[lang="en"] .note p { line-height: 1.6; }
.note a { color: var(--ink); font-weight: 600; }

/* Release: what's new + verification */
.release-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .release-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--slate); font-size: 14px; }
.change-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.change-list li { position: relative; padding-inline-start: 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.change-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.release-empty { margin-top: 12px; color: var(--slate); font-size: 15px; }
.release-grid.single { grid-template-columns: minmax(0, 1fr); }
.history { margin-top: 20px; }
.history-item + .history-item { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Disclosure (details/summary) */
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.disclosure > summary {
  list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px;
  cursor: pointer; font-weight: 700; font-size: 16px; border-radius: var(--radius-lg);
  transition: background-color var(--dur) var(--ease);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: var(--cloud); }
.disclosure[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.disclosure > summary .sum-text { flex: 1; min-width: 0; }
.disclosure > summary .sum-sub { display: block; color: var(--slate); font-size: 13.5px; font-weight: 400; }
.disclosure .chev { color: var(--mist); transition: transform var(--dur) var(--ease); }
.disclosure[open] .chev { transform: rotate(180deg); }
.disclosure-body { padding: 4px 18px 18px; display: grid; gap: 14px; }
.disclosure.plain { border: 0; border-radius: 0; background: none; }
.disclosure.plain > summary { padding-inline: 0; min-height: 48px; font-size: 15px; color: var(--slate); font-weight: 600; }
.disclosure.plain > summary:hover { background: none; color: var(--ink); }
.disclosure.plain .disclosure-body { padding-inline: 0; }

.hash { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cloud); }
.hash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hash-label { color: var(--slate); font-size: 13.5px; font-weight: 600; }
.hash-value {
  display: block; direction: ltr; text-align: left; font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--ink); overflow-wrap: anywhere; word-break: break-all; user-select: all;
}
.hash-value.pairs { word-break: normal; overflow-wrap: anywhere; }
.hash-value.is-missing { font-family: var(--font); direction: inherit; text-align: start; color: var(--mist); font-size: 14px; user-select: auto; }
.copy-btn { min-height: 36px; padding: 0 10px; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 10px; border-color: var(--line-2); background: var(--paper); flex: none; position: relative; }
.copy-btn::after { content: ""; position: absolute; inset: -4px; }
.copy-btn .ic-slot { width: 16px; height: 16px; }
.copy-btn.is-done { color: var(--green-ink); border-color: #BFE9CF; }
.howto { color: var(--slate); font-size: 14px; line-height: 1.8; }
.cmd { margin-top: 8px; display: grid; gap: 8px; }
.cmd div { display: grid; gap: 4px; }
.cmd span { font-size: 12.5px; color: var(--mist); font-weight: 600; }
.cmd code { display: block; direction: ltr; text-align: left; padding: 9px 12px; border-radius: 10px; background: var(--cloud); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; overflow-x: auto; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 22px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.foot-meta { color: var(--mist); font-size: 13px; }
.page-status .site-foot { background: transparent; border-top: 0; }
.page-status .foot-inner { justify-content: center; padding-block: 12px 24px; }

/* ---------- Status pages (/auth/*, /app/open) ---------- */
.page-status { background: var(--cloud); }
.status-main { display: flex; justify-content: center; align-items: flex-start; padding: 8px var(--gutter) 32px; }
@media (min-width: 640px) { .status-main { padding-top: 6vh; } }
.status-card {
  width: 100%; max-width: 448px; padding: 28px 22px 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-1);
}
@media (min-width: 640px) { .status-card { padding: 36px 32px 30px; } }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--cloud); color: var(--slate); }
.status-icon .ic-slot { width: 26px; height: 26px; }
.status-icon.ok { background: var(--green-soft); color: var(--green-ink); }
.status-icon.warn { background: var(--amber-soft); color: var(--amber); }
.status-icon.bad { background: var(--red-soft); color: var(--red); }
.status-icon.info { background: var(--blue-soft); color: var(--blue); }
.status-kicker { margin-top: 18px; }
.status-card h1 { margin-top: 18px; font-size: 23px; font-weight: 700; line-height: 1.4; }
.status-kicker + h1 { margin-top: 10px; }
.status-card h1:focus { outline: none; box-shadow: none; }
.status-text { margin-top: 8px; color: var(--slate); font-size: 15.5px; line-height: 1.85; }
html[lang="en"] .status-text { line-height: 1.6; }
.status-text + .status-text { margin-top: 6px; }
.status-sub { margin-top: 6px; color: var(--slate); font-size: 14.5px; }
.status-sub .num, .status-sub bdi { color: var(--ink); font-weight: 600; }
.actions { margin-top: 24px; display: grid; gap: 10px; }
.actions .btn { width: 100%; }
.status-hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--slate); font-size: 14px; line-height: 1.8; }
html[lang="en"] .status-hint { line-height: 1.6; }
.status-hint a { color: var(--ink); font-weight: 600; }
.status-note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--cloud); color: var(--slate); font-size: 14px; line-height: 1.75; }
.status-note .ic-slot { margin-top: 2px; color: var(--mist); }

/* Forms */
.form { margin-top: 22px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.input-wrap { position: relative; }
.input {
  width: 100%; min-height: 50px; padding: 0 14px; padding-inline-end: 52px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--paper); font-size: 16px; direction: ltr; text-align: left;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
[dir="rtl"] .input { text-align: right; }
.input::placeholder { color: var(--mist); }
.input:hover { border-color: var(--mist); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(194, 65, 12, .16); }
.reveal {
  position: absolute; top: 3px; bottom: 3px; inset-inline-end: 3px; width: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--mist); cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.reveal:hover { color: var(--ink); background: var(--cloud); }
.reveal .ic-slot { width: 20px; height: 20px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--red); font-size: 13.5px; line-height: 1.6; }
.field-error .ic-slot { width: 16px; height: 16px; margin-top: 2px; }
.rules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rules li { display: inline-flex; align-items: center; gap: 7px; color: var(--slate); font-size: 13.5px; transition: color var(--dur) var(--ease); }
.rules .dot { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.rules li.met { color: var(--green-ink); }
.rules li.met .dot { background: var(--green); border-color: var(--green); }
.rules li.met .dot::after { content: ""; position: absolute; left: 50%; top: 45%; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: translate(-50%, -50%) rotate(45deg); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--red-soft); color: var(--red); font-size: 14px; line-height: 1.7; }
.form-error .ic-slot { margin-top: 2px; }

/* ---------- Text pages (privacy, support) ---------- */
.page-text .site-head-wrap { border-bottom: 1px solid var(--line); }
.doc-head { padding-block: 40px 8px; }
@media (min-width: 1024px) { .doc-head { padding-block: 64px 8px; } }
.doc-head h1 { font-size: 30px; font-weight: 700; }
@media (min-width: 1024px) { .doc-head h1 { font-size: 38px; } }
.doc-head .lead { margin-top: 10px; color: var(--slate); font-size: 16.5px; }
.doc-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.toc h2 { font-size: 14px; color: var(--slate); font-weight: 600; }
.toc ol { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 2px; columns: 1; }
@media (min-width: 720px) { .toc ol { display: block; columns: 2; column-gap: 32px; } .toc li { break-inside: avoid; } }
.toc a { display: inline-block; padding: 5px 0; color: var(--ink); font-size: 15px; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.toc li::marker { color: var(--mist); font-size: 13px; }

.prose { padding-block: 12px 64px; color: var(--ink-2); font-size: 16px; line-height: 1.95; }
html[lang="en"] .prose { line-height: 1.7; }
.prose section { padding-top: 32px; }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--ink); scroll-margin-top: 16px; }
.prose h3 { margin-top: 18px; font-size: 16px; font-weight: 700; color: var(--ink); }
.prose p { margin-top: 10px; }
.prose ul { margin: 10px 0 0; padding-inline-start: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--mist); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--ink); }

/* Support */
.contact-grid { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.contact { padding: 20px; display: grid; gap: 14px; align-content: start; }
.contact-top { display: flex; align-items: center; gap: 12px; }
.contact-top .tile { width: 40px; height: 40px; }
.contact-label { color: var(--slate); font-size: 13.5px; font-weight: 600; }
.contact-value { display: block; color: var(--ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.contact .btn { width: 100%; }
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq .disclosure > summary { font-size: 15.5px; }
.faq .disclosure-body { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
html[lang="en"] .faq .disclosure-body { line-height: 1.65; }
.faq .disclosure-body a { color: var(--ink); font-weight: 600; }
.faq-section { padding-block: 24px 72px; }
.faq-section > h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.tip { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--slate); font-size: 14.5px; line-height: 1.8; }
.tip .ic-slot { margin-top: 3px; color: var(--mist); }

@media print {
  .hero::before, .lang-toggle, .skip, .site-foot { display: none !important; }
  .hero { background: #fff; color: #000; }
}

/* Register buttons at the end of each audience card */
.aud .aud-cta { margin-top: 20px; }
