/* آية — website styles. Colours and fonts follow the app (app_themes.dart). */

@font-face { font-family: "HafsSmart"; src: url("/fonts/HafsSmart_08.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "HafsV3"; src: url("/fonts/kfgqpc_hafs_v30.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "AmiriQuran"; src: url("/fonts/AmiriQuran-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "AyaSymbols"; src: url("/fonts/Symbols1_Ver20.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "UthmanTN"; src: url("/fonts/UthmanTN_v2-0.ttf") format("truetype"); font-display: swap; unicode-range: U+FD3E-FD3F; }
@font-face { font-family: "NotoNaskh"; src: url("/fonts/NotoNaskhArabic-Variable.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #FCFCF9; --surface: #FFFFFF; --ink: #1A1C1A; --muted: #4E5651;
  --accent: #1E6B4B; --gold: #B08A3E; --line: #E2E6E2;
  --green: #1B7F4B; --red: #B83227; --blue: #1F5FAD; --orange: #C8671A;
  --hl-a: 18%; color-scheme: light;
}
[data-theme="sepia"] {
  --bg: #F5ECD7; --surface: #FBF4E4; --ink: #3A2E1F; --muted: #62533F;
  --accent: #2F5F44; --gold: #9C7631; --line: #E3D6BA;
}
[data-theme="dark"] {
  --bg: #1C1E1D; --surface: #252826; --ink: #E7EAE7; --muted: #A3ABA6;
  --accent: #7CC49D; --gold: #D2B06A; --line: #353936;
}
[data-theme="black"] {
  --bg: #000000; --surface: #0E0F0E; --ink: #DADDDA; --muted: #959C97;
  --accent: #6BB58E; --gold: #C9A75F; --line: #1F2220;
}
[data-theme="emerald"] {
  /* The app's default since 23 Nov: deep green and gold (app_themes.dart). */
  --bg: #0A2A21; --surface: #143D31; --ink: #F2EAD3; --muted: #C9BF9F;
  --accent: #4DB386; --gold: #D9B66A; --line: #2A5546;
}
[data-theme="emerald"], [data-theme="dark"], [data-theme="black"] {
  --green: #5CC08A; --red: #FF8A7E; --blue: #86B8F2; --orange: #FFAD5C;
  --hl-a: 30%; color-scheme: dark;
}
:root {
  /* Set from the reader's choices by theme.js; these are the app's defaults. */
  --c-mark: var(--green); --c-allah: var(--red); --c-waqf: var(--blue);
  --c-sajda: var(--orange); --c-frame: var(--orange);
  --c-hl: color-mix(in srgb, var(--accent) var(--hl-a), transparent);
  --q-font: "HafsV3"; --q-size: 26px;
  --ui: "NotoNaskh", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 14px;
  --bar-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.7;
  min-height: 100dvh;
}
body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
h1, h2 { line-height: 1.3; }
h2 { font-size: 17px; margin: 22px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
[hidden] { display: none !important; }

.ic { width: 24px; height: 24px; flex: none; }

/* ---- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px;
  height: var(--bar-h); padding: 0 8px; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { flex: 1; margin: 0 6px; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { display: flex; gap: 2px; }
.brand img { display: block; border-radius: 8px; }
.iconbtn {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px;
  border: 0; background: none; color: var(--ink); border-radius: 12px; cursor: pointer;
  text-decoration: none; font-size: 15px; font-weight: 700;
}
.iconbtn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* ---- bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px;
  color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.2;
}
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 700; }
@media (min-width: 900px) {
  .tabbar { top: 0; bottom: auto; inset-inline-start: 0; inset-inline-end: auto; flex-direction: column; justify-content: flex-start; width: 84px; height: 100dvh; border-top: 0; border-inline-end: 1px solid var(--line); padding-top: 72px; }
  body.has-tabbar { padding-bottom: 0; padding-inline-start: 84px; }
  .tabbar a { flex: none; padding: 12px 0; }
}

/* ---- cards and lists */
.cards { display: grid; gap: 10px; margin: 10px 0; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: inherit; text-decoration: none;
}
.card h3 { margin: 0 0 4px; font-size: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.srow {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; min-height: 56px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-decoration: none; text-align: start; cursor: pointer;
}
.srow:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.srow .num {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--ink); font-size: 14px;
}
.srow .nm { font-weight: 700; }
.srow .sub { color: var(--muted); font-size: 14px; flex: 1; }
.srow .pg { color: var(--muted); font-size: 14px; flex: none; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }

.searchbox {
  display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; height: 50px;
}
.searchbox .ic { color: var(--muted); }
.searchbox input { flex: 1; border: 0; background: none; outline: none; height: 100%; min-width: 0; font-size: 16px; }

.seg { display: flex; gap: 4px; padding: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 12px; margin: 12px 0; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn.ghost { background: none; color: var(--accent); border: 1px solid var(--line); }
.btn-s {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: none; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 14px;
}
.btn-s[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pill.late { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }

/* ---- home */
.today .big { font-size: 22px; font-weight: 700; }
.today .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cont { display: flex; align-items: center; justify-content: space-between; }

/* ---- Quran text (continuous view, duas, menus) */
.qtext { font-family: var(--q-font), "HafsV3", serif; font-size: var(--q-size); line-height: 2.15; text-align: justify; }
.qtext .m { color: var(--c-mark); font-size: 1.35em; line-height: 0; }
.qtext .al { color: var(--c-allah); }
.qtext .wq { color: var(--c-waqf); }
.qtext .sj { color: var(--c-sajda); }
.qtext .ay { cursor: pointer; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.qtext .ay.hl, .qtext .ay.playing { background: var(--c-hl); }
.qtext .pn {
  display: inline-block; font-family: var(--ui); font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 1.6; vertical-align: middle; margin: 0 4px;
}
.qtext p { margin: 0 0 .6em; }
.basm { text-align: center !important; }
.orn { font-family: "UthmanTN", var(--q-font); color: var(--c-frame); }
.banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 4px; padding: 6px 12px;
  border: 1.2px solid var(--c-frame); border-radius: 999px; background: color-mix(in srgb, var(--c-frame) 8%, transparent);
  font-weight: 700; font-size: 18px;
}
.banner .orn { font-family: "AyaSymbols"; font-size: 26px; line-height: 1; }
.banner .orn:first-child::before { content: "\f086"; }
.banner .orn:last-child::before { content: "\f085"; }
.continuous .qtext { padding-bottom: 8px; }
.pager { display: flex; justify-content: space-between; padding: 16px 0 40px; }
.sym { font-family: "AyaSymbols"; font-size: 1.15em; color: var(--muted); }

/* ---- duas */
.dua { margin-bottom: 12px; }
.dua .dtext { font-size: 24px; text-align: start; margin: 0 0 6px; }
.dua .dtext.plain { font-family: var(--ui); font-size: 19px; line-height: 2; }
.dua .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 0; }
.dua .speaker { color: var(--ink); font-weight: 700; }
.dua .note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

/* ---- reader (Mushaf pages) */
body.k-reader { overflow: hidden; height: 100dvh; display: flex; flex-direction: column; }
body.k-reader .topbar, body.k-reader .reader-foot { transition: transform .25s ease, opacity .25s ease; }
body.k-reader.bars-hidden .topbar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.k-reader.bars-hidden .reader-foot #page-slider { opacity: 0; pointer-events: none; }
.reader { flex: 1; min-height: 0; position: relative; }
.mushaf { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mushaf.scroll { overflow-y: auto; }
.spread { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 0; will-change: transform; }
.mushaf.scroll .spread { position: relative; inset: auto; }
.mpage { position: relative; background: var(--bg); color: var(--ink); flex: none; }
.spread.two .mpage { box-shadow: 0 0 0 1px var(--line); }
.mpage .band { position: absolute; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.mpage .band.foot { justify-content: center; }
.mpage .band.foot .np { position: absolute; inset-inline-end: 0; font-family: "HafsSmart"; color: var(--muted); white-space: nowrap; direction: rtl; }
.mpage .band.foot .sjm {
  position: absolute; inset-inline-start: 0; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px;
  border: 1px solid var(--c-sajda); border-radius: 999px; background: color-mix(in srgb, var(--c-sajda) 10%, transparent);
  color: var(--ink); font-weight: 700; cursor: pointer; font-size: inherit;
}
.mpage .band.foot .sjm span { font-family: "AyaSymbols"; color: var(--c-sajda); }
.mpage svg.frame { position: absolute; pointer-events: none; overflow: visible; }
.mpage .lines { position: absolute; display: flex; flex-direction: column; justify-content: center; }
.ln { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; white-space: nowrap; direction: rtl; }
.ln.c { justify-content: center; }
.ln .w { font-family: "HafsSmart"; line-height: 1; display: inline-block; cursor: pointer; padding-block: .14em; }
.ln .w.e { color: var(--c-mark); font-size: 1.2em; line-height: calc(1 / 1.2); }
.ln .w .al { color: var(--c-allah); }
.ln .w .wq { color: var(--c-waqf); }
.ln .w .sjg { color: var(--c-sajda); font-size: 2em; line-height: .5; }
.ln .w.hl, .ln .w.playing { background: var(--c-hl); }
.ln.b .w { cursor: default; }
.sban {
  display: flex; align-items: center; justify-content: center; gap: .6em; height: 80%; margin: 10% 0;
  border: 1.2px solid var(--c-frame); border-radius: 999px; background: color-mix(in srgb, var(--c-frame) 8%, transparent);
  font-weight: 700; white-space: nowrap; overflow: hidden;
}
.sban .orn { font-family: "AyaSymbols"; color: var(--c-frame); line-height: 1; }
.reader-foot { position: relative; z-index: 15; background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
#page-slider { display: block; width: calc(100% - 32px); margin: 6px 16px; accent-color: var(--accent); transition: opacity .25s; }
.turn-hint { position: absolute; inset-block: 0; width: 48px; border: 0; background: none; z-index: 5; cursor: pointer; opacity: 0; }
.turn-hint:focus-visible { opacity: 1; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.turn-hint.next { inset-inline-end: 0; }
.turn-hint.prev { inset-inline-start: 0; }
@media (hover: hover) { .turn-hint { opacity: .0; } .reader:hover .turn-hint { opacity: .5; } .turn-hint::after { content: ""; display: block; margin: auto; width: 12px; height: 12px; border: solid var(--muted); border-width: 0 2px 2px 0; } .turn-hint.next::after { transform: rotate(135deg); } .turn-hint.prev::after { transform: rotate(-45deg); } }

/* ---- player */
.player {
  display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--surface);
}
.player .info { flex: 1; min-width: 0; line-height: 1.35; }
.player .info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .info span { font-size: 13px; color: var(--muted); }
.player .pbtn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--ink); }
.player .pbtn.main { background: var(--accent); color: var(--bg); }
.player .pbtn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---- sheets */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 60; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 61; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 24px rgb(0 0 0 / .18);
  transform: translateY(100%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom);
  max-width: 760px; margin: 0 auto;
}
.sheet.open { transform: none; }
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 2px; flex: none; }
.sheet header { display: flex; align-items: center; gap: 8px; padding: 6px 16px 8px; flex: none; }
.sheet header h2 { flex: 1; margin: 0; font-size: 17px; }
.sheet .body { overflow-y: auto; padding: 0 16px 16px; overscroll-behavior: contain; }
.menu-ayah { font-family: var(--q-font), "HafsV3"; font-size: 24px; line-height: 2.1; max-height: 150px; overflow-y: auto; margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.menu-grid button, .menu-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border: 0; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); cursor: pointer; font-size: 13px; text-decoration: none;
}
.menu-grid svg { width: 22px; height: 22px; }
.tafsir-text { font-size: 18px; line-height: 2; }
.tafsir-text .q { font-family: "HafsV3"; font-size: 1.15em; color: var(--accent); }
.tafsir-text .n { font-size: .85em; color: var(--muted); }
.tafsir-text h3 { font-size: 17px; margin: 14px 0 4px; }
select, input[type="number"], input[type="text"], input[type="date"], input[type="search"].plain {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); max-width: 100%;
}
.form .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.form .field > span { font-weight: 700; font-size: 15px; }
.form .inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 4px; margin: 0 0 16px; background: var(--surface); }
.form legend { font-weight: 700; padding: 0 6px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); }
.swatches input:checked + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatches input:focus-visible + span { outline: 3px solid var(--ink); }
.swatches span.none { background: linear-gradient(135deg, transparent 45%, var(--muted) 45% 55%, transparent 55%); }
.toast {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 4px 16px rgb(0 0 0 / .2);
}

/* ---- prayer */
.hero { text-align: center; }
.hero .label { color: var(--muted); }
.hero .big { font-size: 30px; font-weight: 700; margin: 2px 0; }
.hero .left { font-size: 18px; color: var(--accent); font-weight: 700; }
.hero .chips { justify-content: center; }
.times li { display: flex; justify-content: space-between; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.times li.next { color: var(--accent); font-weight: 700; }
.times li.past { color: var(--muted); }
.tablewrap { overflow-x: auto; }
table.week { width: 100%; border-collapse: collapse; font-size: 14px; }
table.week th, table.week td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.week th { color: var(--muted); font-weight: 400; }
details.card summary { cursor: pointer; font-weight: 700; }
.city-list { max-height: 50dvh; overflow-y: auto; }

/* ---- khatmah */
.plan .wirdbox { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.plan .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.plan .bar i { display: block; height: 100%; background: var(--accent); }
.plan .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan .totals { font-size: 13px; color: var(--muted); }

.prose ul { padding-inline-start: 20px; }
.dedication { font-size: 18px; line-height: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.mb8 { margin-bottom: 8px; }
.row-actions.apart { justify-content: space-between; margin-top: 16px; }
.mpage svg.frame { color: var(--c-frame); }
.mpage .band.foot .sjm span::before { content: "\f08b"; }
.sban .orn:first-child::before { content: "\f086"; }
.sban .orn:last-child::before { content: "\f085"; }
.full { width: 100%; }
@media (hover: none) { .turn-hint { display: none; } }
.row-actions.apart.m0 { margin: 0; align-items: center; }
.qtext.res { display: block; font-size: 22px; line-height: 2; }
.today a.row { color: inherit; text-decoration: none; margin-top: 6px; }
.today a.row b { color: var(--accent); }

/* ---- the app, privacy and support pages */
.landing .hero { text-align: center; padding: 24px 0 8px; }
.landing .hero img { border-radius: 22px; box-shadow: 0 4px 18px rgb(0 0 0 / .18); }
.landing .hero h2 { font-size: 26px; margin: 14px 0 6px; }
.landing .lead { font-size: 18px; line-height: 1.9; max-width: 34em; margin: 0 auto 16px; }
.btn.store { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn.store .ic { fill: currentColor; stroke: none; }
.btn.store.soon { background: none; color: var(--accent); border: 1.5px dashed var(--accent); cursor: default; }
.features { display: grid; gap: 12px; margin: 22px 0; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
.feature h3, .landing .card h3 { margin: 0 0 6px; color: var(--gold); font-size: 17px; }
.feature ul { margin: 0; padding-inline-start: 20px; }
.feature li { margin: 4px 0; }
.app-card { display: flex; align-items: center; gap: 12px; }
.app-card img { border-radius: 10px; flex: none; }
.app-card b { display: block; }
.app-card .muted { display: block; }
.site-foot { max-width: 760px; margin: 8px auto 0; padding: 16px 16px 24px; border-top: 1px solid var(--line); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 14px; }
.site-foot a { color: var(--muted); }
.policy .title { margin-top: 18px; }
.policy h3 { margin: 22px 0 6px; font-size: 17px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; vertical-align: top; text-align: start; }
.prose th { background: var(--surface); }
.prose details.card { margin: 8px 0; }
.prose details.card p { margin: 8px 0 0; }
.lang-switch { font-size: 15px; font-weight: 400; }
html[lang="en"] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, var(--ui); }
.prose table.wide { min-width: 620px; }
.prose .tablewrap { margin: 8px 0; }
