/* Dinar Wakala - the public site.
   Tokens, type and breakpoints follow design/dinarwakala-v2/README.md.
   Paper, ink, one olive accent; the coins supply the metal. No radius, no
   shadows, no gradients. */

:root {
  color-scheme: light;
  --paper: #FBF9F3; --cream: #F3F0E6; --raised: #FFFDF8;
  --rule: #DDD8C7; --rule-soft: #EDE9DA; --rule-strong: #C9BE9A;
  --ink: #1B1A17; --ink-60: #4A473E; --ink-40: #6A665A; --ink-on-dark: #C9C4B3;
  --olive: #7A6A3A; --olive-hover: #5E5129; --olive-light: #A8975F;
  --gold: #A67C2E; --silver: #7E8489; --dark: #121110;
  --success: #4C6B4A; --clay: #A8481F; --error: #9A3B2A; --skeleton: #EDE9DA;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --arabic: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --gutter: 20px;
}
@media (max-width: 419px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--olive-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.num, .price, .spec, .byline, td, .badge { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--arabic); direction: rtl; }
.ur { font-family: var(--urdu); direction: rtl; }

/* --- layout ------------------------------------------------------------- */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1240px) { .wrap { padding-inline: 0; } }
.band { background: var(--cream); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: inherit; }
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
@media (max-width: 899px) { .section { padding-block: 48px; } .section-tight { padding-block: 32px; } }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 40px;
}
.section-head h2 { font-size: 36px; line-height: 1.15; }
.section-head .note { font-size: 15px; color: var(--ink-60); }
@media (max-width: 899px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 14px; margin-bottom: 28px; }
  .section-head h2 { font-size: 28px; }
}

/* --- type ----------------------------------------------------------------- */
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-40); }
.display { font-size: 62px; line-height: 1.04; letter-spacing: -.02em; text-wrap: pretty; }
.page-title { font-size: 48px; line-height: 1.08; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-60); }
.body { font-size: 17px; line-height: 1.65; color: var(--ink-60); }
@media (max-width: 899px) {
  .eyebrow, .label { font-size: 11px; }
  .display { font-size: 34px; line-height: 1.08; letter-spacing: -.015em; }
  .page-title { font-size: 34px; }
  .lead { font-size: 16px; }
  .body { font-size: 16px; }
}
@media (max-width: 419px) { .display { font-size: 30px; } }

/* --- controls ------------------------------------------------------------- */
.btn, .btn-outline, .btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; font-size: 15px; font-weight: 500; line-height: 1.2;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.btn:hover { background: var(--olive-hover); border-color: var(--olive-hover); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: #000; color: var(--paper); }
.btn-disabled, .btn-disabled:hover { background: var(--rule); color: var(--ink-40); border-color: var(--rule); cursor: not-allowed; }
.btn-sm { padding: 12px 22px; }
.btn-block { width: 100%; }
.textlink {
  color: var(--olive); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px;
}
.textlink:hover { border-bottom-color: var(--olive-hover); }
.chip {
  display: inline-block; border: 1px solid var(--rule); color: var(--ink-60);
  padding: 6px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.chip-olive { border-color: var(--rule-strong); color: var(--olive); }
.metal-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; }
.metal-dot.gold { background: var(--gold); }
.metal-dot.silver { background: var(--silver); }
.stepper { display: inline-flex; border: 1px solid var(--rule); background: var(--raised); }
.stepper button { background: none; border: 0; padding: 14px 16px; font-size: 17px; color: var(--ink-60); }
.stepper input {
  width: 3.4em; text-align: center; border: 0; border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule); background: transparent; font: inherit;
  font-size: 16px; font-variant-numeric: tabular-nums; padding: 14px 4px;
}
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--olive); }
form.add { display: flex; gap: 14px; align-items: stretch; }
form.add .btn { flex: 1; padding-inline: 16px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* --- header --------------------------------------------------------------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--rule); }
header.site .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 48px;
}
header.site .logo svg { height: 46px; width: auto; display: block; }
header.site nav.primary { display: flex; gap: 34px; align-items: center; font-size: 15px; }
header.site nav.primary a { color: var(--ink-60); padding-bottom: 3px; border-bottom: 2px solid transparent; }
header.site nav.primary a:hover { color: var(--ink); }
header.site nav.primary a.active { color: var(--ink); font-weight: 500; border-bottom-color: var(--olive); }
header.site .tools { display: flex; gap: 18px; align-items: center; }
header.site .region { position: relative; }
header.site .region summary {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule);
  padding: 7px 12px; font-size: 13px; color: var(--ink-60);
}
header.site .region summary span { color: var(--ink-40); }
header.site .region .pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px;
  background: var(--raised); border: 1px solid var(--rule); padding: 6px 0;
}
header.site .region .pop button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 14px; font-size: 14px; color: var(--ink-60);
}
header.site .region .pop button:hover { background: var(--cream); color: var(--ink); }
header.site .region .pop button.current { color: var(--ink); font-weight: 500; }
header.site .cart { color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
header.site .badge {
  background: var(--olive); color: var(--paper); width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
header.site .badge.zero { background: var(--rule); color: var(--ink-40); }
header.site .menu { display: none; }
@media (max-width: 899px) {
  header.site { position: sticky; top: 0; z-index: 30; background: rgba(251, 249, 243, .96); }
  header.site .bar { padding: 14px var(--gutter); gap: 12px; }
  header.site .logo svg { height: 34px; }
  header.site nav.primary, header.site .region { display: none; }
  header.site .badge { width: 18px; height: 18px; font-size: 11px; }
  header.site .menu { display: block; }
  header.site .menu summary { font-size: 19px; line-height: 1; padding: 4px 6px 4px 0; }
  header.site .menu nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
    display: flex; flex-direction: column;
  }
  header.site .menu nav a { color: var(--ink); font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  header.site .menu nav a.active { color: var(--olive); }
  header.site .menu nav form { display: flex; gap: 8px; padding-top: 14px; }
  header.site .menu nav form button { border: 1px solid var(--rule); background: none; padding: 8px 12px; font-size: 13px; color: var(--ink-60); }
  header.site .menu nav form button.current { border-color: var(--ink); color: var(--ink); }
  header.site .lead-left { display: flex; align-items: center; gap: 12px; }
}
@media (min-width: 900px) { header.site .lead-left { display: flex; align-items: center; } }

/* --- footer --------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--rule); padding-block: 64px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer.site .brand svg { height: 40px; width: auto; }
footer.site .brand p { font-size: 14px; line-height: 1.6; color: var(--ink-60); max-width: 280px; margin-top: 14px; }
footer.site .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-60); }
footer.site .col .label { margin-bottom: 4px; }
footer.site .col a { color: var(--ink-60); }
footer.site .col a:hover { color: var(--ink); }
@media (max-width: 899px) {
  footer.site { padding-block: 32px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  footer.site .brand { grid-column: 1 / -1; }
  footer.site .brand svg { height: 34px; }
}

/* --- price component ------------------------------------------------------ */
/* A receipt, not a ticker. One markup, four states, two variants. */
.price { display: flex; flex-direction: column; gap: 6px; }
.price .amount { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.price .line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-60); }
.price .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.price.state-stale .dot, .price.state-stale .line { background-color: var(--clay); color: var(--clay); }
.price.state-stale .line { background: none; }
.price.state-stale .amount { color: var(--ink-60); }
.price.state-sales_disabled .dot { background: var(--ink-40); }
.price-lg .amount { font-size: 36px; letter-spacing: -.015em; }
.price-md .amount { font-size: 32px; }
.price-card { border: 1px solid var(--rule); background: var(--raised); padding: 24px; gap: 14px; }
.price-card .rule { height: 1px; background: var(--rule-soft); }
.price-card .row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.price-card .row span:first-child { color: var(--ink-60); }
.price-card .row.total { font-size: 17px; font-weight: 600; }
.price-card .valid { font-size: 13px; color: var(--ink-40); }
.price-unavailable { background: var(--cream); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.price-unavailable .say { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.price-unavailable .num { font-size: 13px; color: var(--ink-60); }
@media (max-width: 899px) {
  .price .amount { font-size: 24px; }
  .price-lg .amount { font-size: 30px; }
  .price-card { padding: 18px; gap: 12px; }
  .price-card .row { font-size: 14px; }
}
.price-refresh { transition: opacity .22s; }

/* --- hero ----------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 660px; align-items: stretch; background: var(--cream); }
.hero .copy { padding: 96px 48px 96px max(var(--gutter), calc((100vw - 1200px) / 2)); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero .copy .lead { max-width: 440px; }
.hero .actions { display: flex; gap: 18px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.hero .photo { background: var(--dark); min-height: 560px; overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199px) { .hero { grid-template-columns: minmax(0, 1fr) 45%; } .hero .copy { padding: 72px 40px; } .hero .photo { min-height: 460px; } }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero .photo { min-height: 0; height: 300px; }
  .hero .copy { padding: 28px var(--gutter) 32px; gap: 18px; }
  .hero .actions .btn { width: 100%; }
  .hero .actions .textlink { display: none; }
}

/* --- coin cards ----------------------------------------------------------- */
.coins-intro { max-width: 720px; margin: -16px 0 40px; }
@media (max-width: 899px) { .coins-intro { margin: -8px 0 28px; } }
.coins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 1199px) { .coins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .coins-grid { grid-template-columns: 1fr; gap: 28px; } }
.card { display: flex; flex-direction: column; gap: 18px; }
.panel { height: 300px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.panel.dark { background: var(--dark); }
.panel.cream { background: var(--cream); }
.panel.dark img { width: 100%; height: 100%; object-fit: contain; }
.panel.cream img { width: 84%; height: auto; }
.panel.invert img { width: 92%; height: auto; filter: invert(1); }
.card .text { display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 24px; line-height: 1.2; }
.card h3 a { color: inherit; }
.card .one-liner { font-size: 15px; line-height: 1.5; color: var(--ink-60); }
.card .price { padding-top: 6px; border-top: 1px solid var(--rule); }
.card .actions { display: flex; gap: 12px; margin-top: 4px; }
.card .actions > *, .card .actions form { flex: 1; }
.card .actions .btn, .card .actions .btn-outline { width: 100%; padding-inline: 16px; }
.card.compact .panel { height: 260px; }
.card.compact h3 { font-size: 22px; }
@media (max-width: 899px) {
  .card { gap: 14px; }
  .panel { height: 200px; }
  .card h3 { font-size: 22px; }
  .card .one-liner { display: none; }
}

/* --- catalogue rows ------------------------------------------------------- */
.catalogue { display: flex; flex-direction: column; gap: 80px; padding-block: 72px; }
.crow { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 72px; align-items: center; }
.crow.flip { grid-template-columns: minmax(0, 1fr) 560px; }
.crow.flip .panel { order: 2; }
.crow .panel { height: 420px; }
.crow .panel.cream img { width: 82%; }
.crow .text { display: flex; flex-direction: column; gap: 18px; }
.crow h2 { font-size: 38px; line-height: 1.12; }
.crow h2 .sub { display: block; color: var(--ink-60); font-size: 24px; margin-top: 6px; }
.crow .blurb { font-size: 17px; line-height: 1.65; color: var(--ink-60); max-width: 520px; }
.crow .spec {
  display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink-60);
  padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 520px;
}
.crow .actions { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
@media (max-width: 1199px) {
  .crow, .crow.flip { grid-template-columns: 45% minmax(0, 1fr); gap: 40px; }
  .crow.flip { grid-template-columns: minmax(0, 1fr) 45%; }
  .crow .panel { height: 360px; }
}
@media (max-width: 899px) {
  .catalogue { gap: 48px; padding-block: 40px; }
  .crow, .crow.flip { display: flex; flex-direction: column; gap: 18px; }
  .crow.flip .panel { order: 0; }
  .crow .panel { height: 260px; width: 100%; }
  .crow h2 { font-size: 30px; }
  .crow h2 .sub { font-size: 20px; }
  .crow .actions .btn, .crow .actions .btn-outline { flex: 1; }
}
.filter { display: flex; gap: 10px; padding-bottom: 8px; }
.filter a { border: 1px solid var(--rule); padding: 7px 14px; font-size: 13px; color: var(--ink-60); }
.filter a.current { border-color: var(--ink); color: var(--ink); }
.title-block { padding: 72px 0 40px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.title-block .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.title-block .body { max-width: 660px; }
@media (max-width: 899px) { .title-block { padding: 40px 0 24px; } .title-block .head-row { flex-direction: column; align-items: flex-start; } }

/* --- coin page ------------------------------------------------------------ */
.crumb { padding: 22px 0; font-size: 13px; color: var(--ink-40); }
.crumb a { color: var(--ink-40); }
.crumb span { color: var(--ink-60); }
.coin { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; align-items: start; padding: 8px 0 80px; }
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery .hero-img { height: 540px; overflow: hidden; }
.gallery .hero-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .12s; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery .thumbs button { height: 120px; overflow: hidden; border: 0; padding: 0; background: var(--dark); }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button[aria-current="true"] { outline: 2px solid var(--olive); outline-offset: 2px; }
.gallery .pager { display: none; }
/* A book's cover is portrait and has to be seen whole: contain it on the
   dark ground rather than cropping it to the coin page's landscape box. */
.book-gallery .hero-img { background: var(--dark); padding: 32px; }
.book-gallery .hero-img img, .book-gallery .pager img { object-fit: contain; }
.buy h1 .sub.book-native { font-size: 24px; line-height: 2; margin-top: 4px; }
.buy { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.buy h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.01em; }
.buy h1 .sub { display: block; color: var(--ink-60); font-size: 26px; margin-top: 8px; }
.buy .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.note-card { background: var(--cream); padding: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-60); }
.note-card b { color: var(--ink); font-weight: 600; }
.note-card p + p { margin-top: 10px; }
.buy-bar { display: none; }
.story-band { padding-block: 80px; }
.story-band .inner { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 80px; align-items: start; }
.story { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.story h2 { font-size: 34px; line-height: 1.15; }
.story .body { line-height: 1.7; }
.story .inscription { font-family: var(--arabic); font-size: 26px; line-height: 1.9; direction: rtl; border-right: 2px solid var(--olive-light); padding-right: 20px; color: var(--ink); }
.story .translation { font-size: 15px; line-height: 1.65; color: var(--ink-60); }
.spec-table { display: flex; flex-direction: column; gap: 14px; }
.spec-table h2 { font-size: 24px; }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { color: var(--ink-40); width: 40%; }
.spec-table td:last-child { text-align: right; }
@media (max-width: 1199px) { .coin { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } .gallery .hero-img { height: 460px; } .buy { position: static; } }
@media (max-width: 899px) {
  .crumb { padding: 14px 0; }
  .coin { display: flex; flex-direction: column; gap: 14px; padding: 0 0 96px; }
  .gallery .hero-img, .gallery .thumbs { display: none; }
  .gallery { margin-inline: calc(-1 * var(--gutter)); gap: 0; position: relative; }
  .gallery .pager { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--dark); }
  .gallery .pager::-webkit-scrollbar { display: none; }
  .gallery .pager img { flex: none; width: 100%; height: 330px; object-fit: cover; scroll-snap-align: start; }
  .gallery .dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
  .gallery .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(251, 249, 243, .4); }
  .gallery .dots span.on { background: var(--paper); }
  .buy { gap: 14px; padding-top: 10px; }
  .buy h1 { font-size: 30px; line-height: 1.12; }
  .buy h1 .sub { font-size: 20px; margin-top: 4px; }
  .buy form.add { display: none; }
  .buy-bar {
    display: flex; gap: 12px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 14px var(--gutter); border-top: 1px solid var(--rule); background: rgba(251, 249, 243, .97);
  }
  .buy-bar .stepper button { padding: 12px 14px; }
  .buy-bar .stepper input { padding: 12px 2px; width: 2.8em; }
  .buy-bar .btn { flex: 1; padding: 15px 12px; font-size: 16px; }
  .story-band { padding-block: 40px; }
  .story-band .inner { display: flex; flex-direction: column; gap: 32px; }
  .story h2 { font-size: 26px; }
  .spec-table h2 { font-size: 22px; }
  .spec-table table { font-size: 14px; }
  .spec-table td { padding: 10px 0; border-bottom-color: var(--rule-soft); }
}

/* --- trust row ------------------------------------------------------------ */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 64px; border-bottom: 1px solid var(--rule); }
.trust .tile { display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.45; }
.trust .tile img, .trust .tile .mark { width: 44px; height: 44px; object-fit: contain; flex: none; }
.trust .tile .mark { border: 1px solid var(--rule-strong); display: flex; align-items: center; justify-content: center; color: var(--olive); font-family: var(--serif); font-size: 15px; }
.trust .tile .mark.glyph { font-family: var(--sans); font-size: 18px; }
.trust .tile small { display: block; color: var(--ink-40); font-size: 13px; }
@media (max-width: 899px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 32px; }
  .trust .tile { gap: 10px; font-size: 13px; }
  .trust .tile img, .trust .tile .mark { width: 36px; height: 36px; font-size: 13px; }
  .trust .tile small { display: none; }
}

/* --- home: why teaser, movement, founder ---------------------------------- */
.why-teaser { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 72px; align-items: center; }
.why-teaser figure { margin: 0; background: var(--paper); border: 1px solid var(--rule); padding: 28px; }
.why-teaser figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-40); margin-top: 16px; }
.why-teaser .text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.why-teaser h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.01em; max-width: 620px; }
.why-teaser p { max-width: 600px; }
@media (max-width: 1199px) { .why-teaser { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; } }
@media (max-width: 899px) {
  .why-teaser { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .why-teaser figure { padding: 18px; }
  .why-teaser figcaption { display: none; }
  .why-teaser h2 { font-size: 28px; }
}
.movement { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.movement .item { display: flex; flex-direction: column; gap: 12px; }
.movement .item a { color: inherit; }
.movement .panel { height: 190px; }
.movement .panel.cream img { width: 60%; }
.movement .play { width: 64px; height: 64px; border-radius: 50%; background: var(--olive); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.movement h3 { font-size: 21px; line-height: 1.25; }
@media (max-width: 899px) { .movement { grid-template-columns: 1fr; gap: 24px; } }
.founder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 88px; }
.founder img { filter: grayscale(1) contrast(1.05); }
.founder .text { display: flex; flex-direction: column; gap: 20px; }
.founder .eyebrow { color: var(--olive-light); }
.founder blockquote { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.4; font-style: italic; max-width: 820px; text-wrap: pretty; }
.founder cite { font-style: normal; font-size: 15px; color: var(--ink-on-dark); }
@media (max-width: 899px) {
  .founder { display: flex; flex-direction: column; gap: 16px; padding-block: 36px; }
  .founder img { width: 96px; }
  .founder blockquote { font-size: 20px; line-height: 1.45; }
  .founder cite { font-size: 14px; }
}

/* --- editorial (why the dinar, articles) ---------------------------------- */
.article-head { padding: 88px 0 56px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 24px; }
.article-head h1 { font-size: 72px; line-height: 1.02; letter-spacing: -.025em; max-width: 960px; text-wrap: pretty; }
.article-head.small h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.02em; }
.article-head .standfirst { font-size: 21px; line-height: 1.55; color: var(--ink-60); max-width: 760px; }
.article-head .byline { font-size: 13px; color: var(--ink-40); padding-top: 8px; }
.editorial { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 80px; align-items: start; padding: 72px 0 96px; }
.editorial.no-rail { grid-template-columns: minmax(0, 1fr); }
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; line-height: 1.4; }
.rail ol a { display: block; color: var(--ink-60); padding-left: 12px; margin-left: -14px; border-left: 2px solid transparent; transition: color .12s, border-color .12s; }
.rail ol a.current { color: var(--ink); font-weight: 500; border-left-color: var(--olive); }
.rail .also { font-size: 13px; line-height: 1.6; color: var(--ink-40); border-top: 1px solid var(--rule); padding-top: 12px; }
.prose { display: flex; flex-direction: column; gap: 32px; max-width: 720px; }
.prose .lede { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose p { font-size: 18px; line-height: 1.75; color: var(--ink-60); }
.prose h2 { font-size: 34px; line-height: 1.2; letter-spacing: -.01em; padding-top: 16px; }
.prose h3 { font-size: 26px; line-height: 1.25; padding-top: 8px; }
.prose h4 { font-size: 20px; line-height: 1.3; font-family: var(--sans); font-weight: 500; }
.prose blockquote, .prose .pull { margin: 0; border-left: 2px solid var(--olive-light); padding: 6px 0 6px 28px; }
.prose .pull { font-family: var(--serif); font-size: 30px; line-height: 1.35; font-style: italic; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote p { font-size: 17px; }
.prose .arabic { font-family: var(--arabic); font-size: 30px; line-height: 2; direction: rtl; border-right: 2px solid var(--olive-light); padding-right: 24px; color: var(--ink); }
.prose .translation { font-size: 15px; line-height: 1.6; color: var(--ink-40); }
.prose figure { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.prose figure img { width: 100%; background: var(--cream); }
.prose figcaption { font-family: var(--mono); font-size: 13px; color: var(--ink-40); line-height: 1.5; }
.prose .inline-figure { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.prose .inline-figure img { background: var(--cream); }
.prose .inline-figure p { font-size: 17px; line-height: 1.7; }
.prose img { background: var(--cream); }
.prose a { border-bottom: 1px solid var(--rule-strong); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; font-size: 17px; line-height: 1.7; color: var(--ink-60); display: flex; flex-direction: column; gap: 6px; }
.prose table { border-collapse: collapse; font-size: 15px; width: 100%; }
.prose td, .prose th { border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.prose .foot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 32px; border-top: 1px solid var(--rule); margin-top: 16px; }
.prose .foot a { border: 0; }
.foot-card { background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.foot-card .t { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.foot-card .t.ur { font-size: 21px; line-height: 1.9; }
.foot-card .go { color: var(--olive); font-size: 14px; font-weight: 500; }
.cta-band { background: var(--ink); color: var(--cream); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 8px; }
.cta-band .t { font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.cta-band .s { font-size: 14px; color: var(--ink-on-dark); margin-top: 8px; }
.cta-band .btn-paper { background: var(--cream); color: var(--ink); padding: 15px 26px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.coin-mention { border: 1px solid var(--rule); background: var(--raised); padding: 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.coin-mention .panel { height: 96px; }
.coin-mention .label { margin-bottom: 4px; }
.coin-mention .t { font-family: var(--serif); font-size: 20px; }
.coin-mention .price .amount { font-size: 22px; }
@media (max-width: 1199px) { .editorial { gap: 48px; } }
@media (max-width: 899px) {
  .article-head { padding: 40px 0 28px; gap: 14px; }
  .article-head h1, .article-head.small h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.015em; }
  .article-head .standfirst { font-size: 17px; }
  .editorial { display: flex; flex-direction: column; gap: 28px; padding: 32px 0 56px; }
  .rail { position: static; border: 1px solid var(--rule); padding: 14px 16px; }
  .rail ol { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .rail ol a { padding-left: 0; margin-left: 0; border-left: 0; }
  .rail ol a.current { text-decoration: underline; text-underline-offset: 4px; }
  .rail .also { display: none; }
  .prose { gap: 24px; }
  .prose p { font-size: 17px; }
  .prose h2 { font-size: 28px; }
  .prose .pull { font-size: 24px; }
  .prose .arabic { font-size: 26px; }
  .prose .inline-figure { grid-template-columns: 1fr; }
  .prose .foot { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-band .btn-paper { width: 100%; text-align: center; }
}

/* --- video ---------------------------------------------------------------- */
.video { background: var(--dark); position: relative; height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video .over { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.video .play { width: 76px; height: 76px; border-radius: 50%; background: var(--cream); color: var(--ink); border: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.video .cap { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); background: var(--dark); padding: 8px 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.playing img, .video.playing .over { display: none; }
@media (max-width: 899px) { .video { height: 220px; } .video .play { width: 56px; height: 56px; font-size: 18px; } }

/* --- learn hub ------------------------------------------------------------ */
.learn-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding-top: 64px; }
.learn-top .doc { display: flex; flex-direction: column; gap: 18px; }
.learn-top .doc h2 { font-size: 30px; line-height: 1.2; }
.learn-top .doc p { font-size: 16px; line-height: 1.65; color: var(--ink-60); max-width: 620px; }
.book-panel { background: var(--cream); padding: 36px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.book-cover { background: var(--paper); border: 1px solid var(--rule); padding: 36px 28px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.book-cover .title { font-family: var(--urdu); font-size: 30px; line-height: 2.1; direction: rtl; }
.book-cover .divider { height: 1px; width: 64px; background: var(--rule-strong); }
.book-cover .credit { font-size: 13px; color: var(--ink-40); }
.book-panel p { font-size: 15px; line-height: 1.65; color: var(--ink-60); }
.book-panel .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.learn-low { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; padding: 80px 0 96px; }
.articles { display: flex; flex-direction: column; gap: 24px; }
.articles .head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.articles .head h2 { font-size: 32px; }
.articles .head .count { font-size: 13px; color: var(--ink-40); }
.articles .list { display: flex; flex-direction: column; }
.articles .item { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule-soft); }
.articles .item .date { font-size: 13px; color: var(--ink-40); }
.articles .item .t { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.articles .item .t a { color: var(--ink); }
.articles .item .t a:hover { color: var(--olive); }
.articles .item .s { font-size: 15px; color: var(--ink-60); line-height: 1.55; margin-top: 6px; }
.articles .item .kind { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); text-align: right; }
.articles .item .kind.press { color: var(--olive); }
.side { display: flex; flex-direction: column; gap: 24px; }
.side-card { border: 1px solid var(--rule); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.side-card.raised { background: var(--raised); }
.side-card h2 { font-size: 22px; }
.side-card p { font-size: 15px; line-height: 1.65; color: var(--ink-60); }
.side-card img { background: var(--dark); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; }
.faq summary::after { content: "+"; color: var(--ink-40); }
.faq details[open] summary::after { content: "−"; }
.faq .a { font-size: 14px; line-height: 1.6; color: var(--ink-60); padding: 0 0 14px; }
@media (max-width: 1199px) { .learn-low { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
@media (max-width: 899px) {
  .learn-top { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; }
  .learn-top .doc h2 { font-size: 24px; }
  .book-panel { padding: 20px; }
  .book-cover .title { font-size: 24px; }
  .learn-low { display: flex; flex-direction: column; gap: 32px; padding: 40px 0 56px; }
  .articles .head h2 { font-size: 26px; }
  .articles .item { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .articles .item .kind { text-align: left; order: -1; }
  .articles .item .t { font-size: 20px; }
  .side-card { padding: 20px; }
}

/* --- about ---------------------------------------------------------------- */
.about-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; align-items: start; padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.about-top .text { display: flex; flex-direction: column; gap: 24px; }
.about-top h1 { font-size: 54px; line-height: 1.06; letter-spacing: -.02em; max-width: 720px; }
.about-top .text p { font-size: 18px; line-height: 1.7; color: var(--ink-60); max-width: 640px; }
.about-side { display: flex; flex-direction: column; gap: 18px; }
.about-side img { filter: grayscale(1) contrast(1.04); background: var(--cream); }
.about-side .name { font-size: 16px; font-weight: 500; }
.about-side .role { font-size: 14px; color: var(--ink-40); line-height: 1.55; }
.about-side .rule { height: 1px; background: var(--rule); }
.about-side .contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-60); }
.about-side .contact a { color: var(--ink-60); }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 64px; border-bottom: 1px solid var(--rule); }
.creds .c { display: flex; flex-direction: column; gap: 10px; }
.creds .big { font-family: var(--serif); font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.creds .marks { display: flex; gap: 12px; align-items: center; height: 40px; }
.creds .marks img { width: 40px; height: 40px; object-fit: contain; }
.creds .cap { font-size: 14px; color: var(--ink-60); line-height: 1.5; }
@media (max-width: 899px) {
  .about-top { display: flex; flex-direction: column; gap: 32px; padding: 40px 0 32px; }
  .about-top h1 { font-size: 32px; }
  .about-top .text p { font-size: 17px; }
  .creds { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 32px; }
  .creds .big { font-size: 32px; }
}

/* --- small pages ---------------------------------------------------------- */
.plain { padding: 96px 0; max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.plain h1 { font-size: 42px; line-height: 1.1; }
.plain .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 899px) { .plain { padding: 48px 0; } .plain h1 { font-size: 30px; } }

/* --- cart, checkout, confirmation ----------------------------------------- */
header.site.checkout-header .bar { justify-content: space-between; }
header.site.checkout-header .help { color: var(--ink-60); font-size: 14px; }
.notice { background: var(--cream); border: 1px solid var(--rule); padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--ink-60); margin: 24px 0 8px; }
.notice.error { border-color: var(--error); color: var(--error); background: var(--paper); }
.notice b { color: var(--ink); }
.clay { color: var(--clay); }
button.linkbtn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink-40); border-bottom: 1px solid var(--rule); line-height: 1.2; }
button.linkbtn:hover { color: var(--ink); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; padding: 32px 0 96px; }
.cart-lines { display: flex; flex-direction: column; gap: 24px; }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.cart-line:first-child { padding-top: 0; }
.cart-line .panel { height: 120px; }
.cart-line .mid { display: flex; flex-direction: column; gap: 8px; }
.cart-line .name { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.cart-line .name a { color: var(--ink); }
.cart-line .each { font-size: 13px; color: var(--ink-60); }
.cart-line .controls { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.cart-line .controls .stepper button { padding: 10px 14px; }
.cart-line .controls .stepper input { padding: 10px 2px; width: 2.8em; }
.cart-line .line-total { font-size: 22px; font-weight: 600; }
.cart-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--ink-60); }
.cart-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; margin-top: 8px; }
.cart-note .dot.stale { background: var(--clay); }
.summary-card { background: var(--raised); border: 1px solid var(--rule); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.summary-card h2 { font-size: 24px; margin-bottom: 4px; }
.summary-card .row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary-card .row span:first-child { color: var(--ink-60); }
.summary-card .row.total { font-size: 22px; font-weight: 600; }
.summary-card .row.total span:first-child { color: var(--ink); }
.summary-card .rule { height: 1px; background: var(--rule); }
.summary-card .btn { margin-top: 8px; }
.summary-card .fine { font-size: 13px; line-height: 1.6; color: var(--ink-40); }
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; padding: 24px 0 96px; }
.blocks { display: flex; flex-direction: column; gap: 40px; }
.block-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-40); }
.fields label.wide { grid-column: 1 / -1; }
.fields input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--raised); color: var(--ink); }
.fields input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(122, 106, 58, .14); }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--rule); padding: 18px 20px; cursor: pointer; }
.pay input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay .radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--rule-strong); margin-top: 3px; }
.pay input:checked ~ .radio { border: 5px solid var(--olive); }
.pay:has(input:checked) { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(122, 106, 58, .14); }
.pay.off { opacity: .55; cursor: not-allowed; }
.pay b { display: block; font-weight: 500; font-size: 15px; }
.pay small { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-60); margin-top: 4px; }
.order-lines { display: flex; flex-direction: column; }
.order-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.order-line .panel { height: 64px; }
.order-line .name { display: block; font-size: 15px; }
.order-line .qty { display: block; font-size: 13px; color: var(--ink-40); }
.order-line .total { font-size: 16px; font-weight: 600; }
.summary-col { position: sticky; top: 24px; }
.lock { background: var(--cream); padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.lock-line { font-size: 15px; }
.lock-line .num { font-weight: 600; }
.lock .bar { height: 3px; background: var(--rule); }
.lock .fill { height: 100%; background: var(--olive); width: 100%; transition: width 1s linear; }
.lock .fine { margin: 0; }
.confirm-head { padding: 64px 0 48px; display: flex; flex-direction: column; gap: 16px; }
.confirm-head h1 { font-size: 42px; line-height: 1.1; }
.confirm-head .body { max-width: 640px; }
.confirm-head b { color: var(--ink); font-weight: 600; }
.confirm-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; padding: 56px 0 96px; }
.next { display: flex; flex-direction: column; gap: 28px; }
.next h2 { font-size: 30px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; line-height: 1.6; color: var(--ink-60); }
.steps .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); margin-top: 8px; }
.steps li.now .dot { background: var(--clay); }
.bank-card { background: var(--raised); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.7; }
.bank-card .iban { font-weight: 600; }
.bank-card .fine { font-size: 13px; color: var(--ink-40); }
.next .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 1199px) {
  .cart-layout, form.checkout, .confirm-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 899px) {
  .cart-layout, form.checkout, .confirm-body { display: flex; flex-direction: column; gap: 32px; padding: 16px 0 96px; }
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .cart-line .line-total { grid-column: 2; font-size: 18px; }
  .cart-line .name { font-size: 18px; }
  .fields { grid-template-columns: 1fr; }
  .summary-col { position: static; }
  .confirm-head { padding: 32px 0; }
  .confirm-head h1 { font-size: 30px; }
  header.site.checkout-header .help span { display: none; }
}

/* --- notify me ------------------------------------------------------------ */
details.notify { display: inline-block; }
details.notify > summary { display: inline-flex; }
details.notify[open] > summary { border-color: var(--olive); color: var(--olive); background: var(--cream); }
.notify-form { display: flex; gap: 8px; margin-top: 10px; }
.notify-form input { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--raised); min-width: 0; flex: 1; }
.notify-form input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(122, 106, 58, .14); }
.dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 8px; vertical-align: 1px; }
.card .actions details.notify, .crow .actions details.notify { flex: 1; }
.card .actions details.notify > summary, .crow .actions details.notify > summary { width: 100%; }

/* --- gallery: a museum grid, paginated, with a full carousel ------------- */
.gallery-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 1.6fr; gap: 12px; align-items: stretch; margin: 56px 0 0; color: inherit; }
.gallery-strip .tile { display: flex; align-items: center; justify-content: center; height: 120px; overflow: hidden; }
.gallery-strip .tile.dark { background: var(--dark); }
.gallery-strip .tile.cream { background: var(--cream); }
.gallery-strip .tile.dark img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip .tile.cream img { max-width: 80%; max-height: 80%; width: auto; height: auto; }
.gallery-strip .go { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8px 0 16px; }
.gallery-strip .go .t { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.gallery-strip:hover .go .t { color: var(--olive); }

.museum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; padding: 8px 0 56px; }
.exhibit { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.exhibit .frame { display: flex; align-items: center; justify-content: center; height: 220px; overflow: hidden; border: 0; padding: 0; background: var(--dark); cursor: zoom-in; width: 100%; }
.exhibit .frame img { width: 100%; height: 100%; object-fit: contain; }
.exhibit figcaption { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule); padding-top: 12px; }
.exhibit .acc-no { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-40); }
.exhibit .t { font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--ink); }
.exhibit .d { font-size: 13px; line-height: 1.5; color: var(--ink-60); }

.pager-nav { display: flex; align-items: center; justify-content: center; gap: 24px; padding-bottom: 88px; flex-wrap: wrap; }
.pager-nav .step { font-size: 14px; font-weight: 500; color: var(--olive); }
.pager-nav .step.off { color: var(--ink-40); pointer-events: none; }
.pager-nav .nums { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pager-nav .nums a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; font-size: 14px; color: var(--ink-60); border: 1px solid transparent; }
.pager-nav .nums a:hover { border-color: var(--rule); color: var(--ink); }
.pager-nav .nums a.current { border-color: var(--olive); color: var(--olive); font-weight: 600; }

dialog.carousel { border: 0; padding: 0; background: var(--dark); color: var(--cream); width: min(94vw, 1280px); max-width: 94vw; max-height: 94vh; }
dialog.carousel::backdrop { background: rgba(18, 17, 16, .9); }
dialog.carousel .stage { display: flex; align-items: center; justify-content: center; height: min(64vh, 760px); padding: 32px; }
dialog.carousel .stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
dialog.carousel .exhibit-detail { padding: 8px 40px 32px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
dialog.carousel .exhibit-detail .acc-no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-on-dark); }
dialog.carousel .exhibit-detail .t { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.3; color: var(--cream); margin: 0; }
dialog.carousel .exhibit-detail .d { font-size: 15px; line-height: 1.6; color: var(--ink-on-dark); max-width: 640px; margin: 0 auto; }
dialog.carousel .close { position: absolute; top: 12px; right: 12px; background: var(--dark); color: var(--cream); border: 0; font-size: 26px; line-height: 1; width: 40px; height: 40px; cursor: pointer; }
dialog.carousel .nav { position: absolute; top: 0; bottom: 90px; width: 64px; background: none; border: 0; color: var(--cream); font-size: 40px; line-height: 1; cursor: pointer; opacity: .7; }
dialog.carousel .nav:hover { opacity: 1; }
dialog.carousel .nav.prev { left: 0; }
dialog.carousel .nav.next { right: 0; }
@media (max-width: 899px) {
  .museum-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 40px; }
  .exhibit .frame { height: 160px; }
  .exhibit .t { font-size: 15px; }
  .pager-nav { padding-bottom: 48px; gap: 12px; }
  .gallery-strip { grid-template-columns: 1fr 1fr 1fr; margin-top: 32px; }
  .gallery-strip .tile:nth-child(n+4) { display: none; }
  .gallery-strip .go { grid-column: 1 / -1; padding: 8px 0 0; }
  .gallery-strip .tile { height: 90px; }
  dialog.carousel .stage { height: 46vh; padding: 16px 44px; }
  dialog.carousel .nav { width: 44px; font-size: 30px; bottom: 110px; }
  dialog.carousel .exhibit-detail { padding: 8px 20px 24px; }
  dialog.carousel .exhibit-detail .t { font-size: 19px; }
}

/* --- our story: chapter tabs and chaptered story ------------------------- */
/* Chapter tabs, after the era strip in frame 15: 12 px caps, 1 px rules
   between items, open chapter in ink 500, the rest ink-40. Sticks under the
   top of the window on desktop (where the site header scrolls away); on a
   phone the header is the sticky bar, so the tabs scroll sideways instead. */
.story-tabs { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 243, .96); border-bottom: 1px solid var(--rule); }
.story-tabs .track { max-width: 1200px; margin-inline: auto; display: flex; overflow-x: auto; scrollbar-width: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.story-tabs .track::-webkit-scrollbar { display: none; }
@media (max-width: 1239px) { .story-tabs .track { padding-inline: var(--gutter); } }
.story-tabs a { position: relative; flex: none; padding: 18px 20px; color: var(--ink-40); white-space: nowrap; transition: color 120ms; }
.story-tabs a:first-child { padding-left: 0; }
.story-tabs a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--rule); }
.story-tabs a:hover { color: var(--ink); text-decoration: none; }
.story-tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.chapter-outro { font-size: 18px; line-height: 1.65; color: var(--ink-60); max-width: 680px; margin: 0 auto 56px; text-align: center; }

/* Full-bleed story rows, after frame 15 of the design handoff ("The
   Movement"). `layout` in our_story.toml picks the colours only:
     contrast (default)  black image half, cream text half   (frame ch. IV)
     white               white image half, cream text half   (frame ch. I)
     black               dark throughout                     (frame ch. III)
     wide                image across both columns, text below
   The image side is not part of the layout: it alternates row by row
   (.image-right on every second row), so two rows of the same kind never
   sit the same way round. A wide row with no heading or body is the image
   alone, and is skipped: the rows either side of it still alternate with
   each other.
   Proportions scaled down from the frame to fit the 1200 px content width. */
/* Held to the site's 1200 px content width, not full bleed. */
.chapter-story { max-width: 1200px; margin-inline: auto; }
@media (min-width: 900px) and (max-width: 1239px) { .chapter-story { margin-inline: var(--gutter); } }
.story-block { --outer: clamp(40px, 6vw, 72px); --inner: clamp(32px, 5vw, 56px); display: flex; align-items: stretch; min-height: 400px; }
.story-image, .story-text { flex: 1 1 50%; min-width: 0; }
/* Rows size to their content (image or text, whichever is taller) above a
   400 px floor, rather than the frame's fixed 760: the frame had eight long
   chapters, this page has many short coin rows. */
.story-image { position: relative; display: flex; background: #000; }
.story-image .frame { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--inner); }
.story-image .frame img { width: 100%; max-width: 520px; height: auto; max-height: 440px; object-fit: contain; }
.story-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 64px var(--outer) 64px var(--inner); background: var(--paper); }
.story-text > * { max-width: 560px; margin: 0; }
.image-right { flex-direction: row-reverse; }
.image-right .story-text { padding: 64px var(--inner) 64px var(--outer); }
.layout-white .story-image { background: #fff; }
.layout-black .story-image, .layout-black .story-text { background: var(--dark); }
.layout-wide { flex-direction: column; min-height: 0; }
.layout-wide .story-image { flex: none; }
.layout-wide .story-image .frame { padding: 0; }
.layout-wide .story-image .frame img { max-width: none; height: auto; max-height: 680px; }
.layout-wide .story-carousel { position: relative; height: min(50vw, 600px); }
.layout-wide .story-text { flex: none; align-items: stretch; padding: 72px max(var(--gutter), calc((100% - 720px) / 2)); }
.layout-wide .story-text > * { max-width: none; }

.story-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--olive); font-variant-numeric: tabular-nums; }
.story-text h2 { font-family: var(--serif); font-size: 38px; line-height: 1.1; letter-spacing: -.015em; }
.story-text p { font-size: 18px; line-height: 1.7; color: var(--ink-60); }
.story-quote { border-left: 2px solid var(--olive-light); padding-left: 24px; }
.story-text .story-quote p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); }
.story-quote cite { display: block; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .08em; color: var(--ink-40); margin-top: 12px; }
.story-meta { align-self: stretch; font-family: var(--mono); font-size: 13px; color: var(--ink-40); border-top: 1px solid var(--rule); padding-top: 14px; }
/* black rows: paper heading, rule-coloured body, olive-light accents */
.layout-black .story-text h2, .layout-black .story-quote p { color: var(--paper); }
.layout-black .story-text p { color: var(--rule); }
.layout-black .story-eyebrow, .layout-black .story-meta, .layout-black .story-quote cite { color: var(--olive-light); }
.layout-black .story-meta { border-top-color: rgba(221, 216, 199, .25); }
.layout-black .textlink { color: var(--olive-light); border-bottom-color: var(--olive-light); }

.story-carousel { position: absolute; inset: 0; }
.story-carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.story-carousel .track::-webkit-scrollbar { display: none; }
.story-carousel .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: var(--inner); scroll-snap-align: start; }
.story-carousel .car-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(243, 240, 230, .14); color: var(--cream); border: 0; width: 40px; height: 40px; font-size: 20px; line-height: 1; opacity: .75; cursor: pointer; }
.layout-white .story-carousel .car-nav { background: rgba(27, 26, 23, .55); }
.story-carousel .car-nav:hover { opacity: 1; }
.story-carousel .car-nav.prev { left: 12px; }
.story-carousel .car-nav.next { right: 12px; }

.chapter-outro { margin-top: 72px; }

.chapter-pager { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); padding: 32px 0 80px; }
.chapter-pager .label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 4px; }
.chapter-pager .t { font-family: var(--serif); font-size: 18px; }
.chapter-pager a { color: inherit; }
.chapter-pager a:hover .t { color: var(--olive); }
.chapter-pager .next { text-align: right; }

@media (max-width: 899px) {
  .story-tabs { position: static; }
  /* design: every row stacks image over text; image panel 320 px */
  .story-block, .image-right { flex-direction: column; min-height: 0; }
  .story-image { flex: none; height: 320px; }
  .layout-wide .story-image { height: auto; }
  .layout-wide .story-carousel { height: 320px; }
  .story-image .frame, .story-carousel .track img { padding: 32px; }
  .story-image .frame img { max-height: 256px; }
  .story-text, .image-right .story-text, .layout-wide .story-text { flex: none; padding: 40px 24px 48px; gap: 18px; }
  .story-text h2 { font-size: 30px; }
  .story-text p { font-size: 16px; }
  .story-text .story-quote p { font-size: 19px; }
  .chapter-pager { flex-wrap: wrap; }
  .chapter-pager .next { text-align: left; }
}

/* --- milestones (timeline) ----------------------------------------------- */
.article-head .byline .key { display: inline-flex; align-items: center; gap: 8px; margin-right: 24px; }
.article-head .byline .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.article-head .byline .swatch.movement { background: var(--rule-strong); }
.article-head .byline .swatch.ours { background: var(--olive); }
.timeline { list-style: none; margin: 0; padding: 56px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--rule-strong); transform: translateX(-1px); }
.event { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: start; margin-bottom: 40px; }
.event .marker { grid-column: 2; display: flex; justify-content: center; }
.event .year { background: var(--paper); border: 2px solid var(--rule-strong); color: var(--ink-60); font-size: 13px; font-weight: 500; padding: 6px 10px; letter-spacing: .04em; }
.event.ours .year { border-color: var(--olive); color: var(--olive); }
.event.left .card-body { grid-column: 1; grid-row: 1; margin-right: 24px; }
.event.right .card-body { grid-column: 3; grid-row: 1; margin-left: 24px; }
.card-body { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--rule); background: var(--raised); padding: 22px 24px; }
.event.ours .card-body { border-color: var(--rule-strong); }
.card-body .panel { height: 200px; margin: -22px -24px 8px; }
.card-body .panel.dark img { width: 100%; height: 100%; object-fit: contain; }
.card-body .panel.cream img { max-height: 84%; max-width: 84%; width: auto; height: auto; }
.card-body h2 { font-size: 22px; line-height: 1.25; }
.card-body p { font-size: 15px; line-height: 1.65; color: var(--ink-60); }
.card-body .textlink { align-self: flex-start; font-size: 14px; }
.event.end { margin-bottom: 0; height: 40px; }
.event.end .marker.arrow { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--rule-strong); margin-top: 26px; }
.milestones-card { display: flex; flex-direction: column; gap: 8px; margin-top: 56px; padding: 26px 28px; background: var(--cream); color: inherit; }
.milestones-card .t { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.milestones-card .years { font-size: 13px; color: var(--ink-40); letter-spacing: .06em; }
.milestones-card:hover .t { color: var(--olive); }
@media (max-width: 899px) {
  .timeline::before { left: 18px; }
  .timeline { padding-top: 32px; }
  .event { grid-template-columns: 36px minmax(0, 1fr); margin-bottom: 24px; }
  .event .marker { grid-column: 1; justify-content: flex-start; }
  .event .year { font-size: 11px; padding: 4px 6px; margin-left: 4px; }
  .event.left .card-body, .event.right .card-body { grid-column: 2; margin: 0 0 0 12px; }
  .card-body { padding: 18px; }
  .card-body .panel { height: 160px; margin: -18px -18px 6px; }
  .card-body h2 { font-size: 19px; }
  .event.end .marker.arrow { margin-left: 9px; }
  .milestones-card { padding: 20px; margin-top: 32px; }
  .milestones-card .t { font-size: 20px; }
}
