/* Nuur Spaces — site styles
   One file, no framework. Phone first; breakpoints at 640, 720, 900 and 1200 px.
   Colour mode follows the device. Add data-theme="light" or "dark" on <html>
   (or any wrapper) to force one. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(/assets/fonts/dm-sans-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(/assets/fonts/dm-sans-latin-ext-opsz-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root,
[data-theme="light"] {
  --teal: #0F3B3E;
  --teal-2: #155356;
  --bg: #EEE8DF;
  --surface: #FBF8F3;
  --cream: #F6F1E8;
  --gold: #F2D18A;
  --ink: #12292B;
  --muted: #4F5F60;
  --label: #8A5232;
  --hair: rgba(15, 59, 62, .16);
  --hair-strong: rgba(15, 59, 62, .28);
  --btn-bg: #0F3B3E;
  --btn-ink: #F6F1E8;
  --btn2-ink: #0F3B3E;
  --notice-bg: #F6F1E8;
  --everyone: #3F6B4F;
  --sisters: #6E3B55;
  --brothers: #34506A;

  --plum: #6E3B55;
  --olive: #4D5B2C;
  --clay: #8A5232;
  --slate: #34506A;

  --font-head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --radius: 14px;
  color-scheme: light;
}

[data-theme="dark"] {
  --teal: #0F3B3E;
  --bg: #0B1D1F;
  --surface: #11292B;
  --ink: #EEE7DB;
  --muted: #A9B5B2;
  --label: #E2C17F;
  --hair: rgba(246, 241, 232, .13);
  --hair-strong: rgba(246, 241, 232, .26);
  --btn-bg: #F6F1E8;
  --btn-ink: #0F3B3E;
  --btn2-ink: #F6F1E8;
  --notice-bg: #11292B;
  --everyone: #9CC2A6;
  --sisters: #D9A3BE;
  --brothers: #A6C0DA;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1D1F;
    --surface: #11292B;
    --ink: #EEE7DB;
    --muted: #A9B5B2;
    --label: #E2C17F;
    --hair: rgba(246, 241, 232, .13);
    --hair-strong: rgba(246, 241, 232, .26);
    --btn-bg: #F6F1E8;
    --btn-ink: #0F3B3E;
    --btn2-ink: #F6F1E8;
    --notice-bg: #11292B;
    --everyone: #9CC2A6;
    --sisters: #D9A3BE;
    --brothers: #A6C0DA;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.site main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
/* Light and dark versions of the app screenshots: the wrapper must not change the layout. */
picture { display: contents; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--gold); color: #0F3B3E; padding: 12px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

.label {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
}
.on-teal .label { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: transparent; color: var(--btn2-ink); border-color: var(--hair-strong); }
.btn-secondary:hover { border-color: var(--btn2-ink); }
.btn-cream { background: var(--cream); color: #0F3B3E; }
.btn-cream:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; border-radius: 10px; }

/* Store buttons: not live yet, so they are plain text, not links. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; min-width: 156px; padding: 8px 18px;
  border-radius: 12px; border: 1px solid var(--hair-strong);
  color: var(--ink); line-height: 1.2;
}
.store small { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.store strong { font: 700 1.0625rem/1.2 var(--font-head); letter-spacing: -.01em; }
.on-teal .store { border-color: rgba(246, 241, 232, .3); color: var(--cream); }
.on-teal .store small { color: rgba(246, 241, 232, .72); }

/* ---------- Header ---------- */
.site-header { background: var(--teal); color: var(--cream); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  text-decoration: none; color: var(--cream);
  font: 700 1.3125rem/1 var(--font-head); letter-spacing: -.03em;
}
.brand span { font-weight: 400; color: rgba(246, 241, 232, .78); }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: rgba(246, 241, 232, .86); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.nav a:not(.btn):hover { color: var(--cream); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold); }
.nav a.nav-wide { display: none; }
.nav .btn { margin-left: 4px; padding-inline: 14px; }
@media (max-width: 639px) { .nav a:not(.btn) { padding: 0 10px; } }
/* The smallest phones (320px wide) only have room for the logo and the main button. */
@media (max-width: 359px) { .nav a:not(.btn) { display: none; } }
@media (min-width: 640px) { .nav a.nav-wide { display: inline-flex; } .nav .btn { margin-left: 8px; padding-inline: 16px; } .header-in { min-height: 76px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: 40px 0 48px; color: var(--muted); font-size: .9375rem; }
.footer-in { display: grid; gap: 28px; }
.footer-brand { color: var(--ink); }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand span { color: var(--muted); }
.footer-brand p { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 0 -12px; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: .875rem; }
@media (min-width: 900px) {
  .footer-in { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--hair); }
}

/* ---------- Home: hero ---------- */
.hero { background: var(--teal); color: var(--cream); padding: 40px 0 0; }
.hero-in { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.5rem, 1.55rem + 4.4vw, 5.25rem); color: var(--cream); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede { margin-top: 20px; max-width: 36ch; font-size: 1.125rem; color: rgba(246, 241, 232, .82); }
.hero .stores { margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: .875rem; color: rgba(246, 241, 232, .68); }
/* The phone bleeds off the bottom of the teal band. */
.hero { overflow: hidden; }
.hero-figure { position: relative; width: 250px; height: 330px; margin: 0 auto; overflow: hidden; }
.hero-figure img { width: 100%; }
.hero-figure .back { display: none; }
.home-first { padding-top: 64px; }
@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 32px; }
  .hero-copy { padding-bottom: 72px; align-self: center; }
  .hero-figure { width: 100%; max-width: 440px; height: 420px; justify-self: end; overflow: visible; }
  .hero-figure .front { position: absolute; right: 0; top: 0; z-index: 2; width: 270px; max-width: 74%; }
  .hero-figure .back { display: block; position: absolute; left: 0; top: 96px; z-index: 1; width: 220px; max-width: 58%; }
  .home-first { padding-top: 88px; }
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-copy { padding-bottom: 96px; }
  .hero-figure { height: 520px; }
  .hero-figure .front { width: 300px; }
  .hero-figure .back { width: 250px; top: 104px; }
  .home-first { padding-top: 112px; }
}

/* ---------- Home: sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--hair); }
.split { display: grid; gap: 40px; align-items: center; }
.split h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); margin-top: 12px; max-width: 14ch; }
.split .lede { margin-top: 18px; max-width: 42ch; font-size: 1.125rem; color: var(--muted); }
.points { margin: 28px 0 0; padding: 0; max-width: 46ch; }
.points div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--hair); }
.points div:last-child { border-bottom: 1px solid var(--hair); }
.points dt { font-weight: 600; color: var(--ink); }
.points dd { margin: 0; color: var(--muted); }
.split .more { margin-top: 28px; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.phones img { width: 58%; max-width: 280px; }
.phones picture + picture img { margin-left: -10%; margin-top: 12%; }
.phones.single img { width: 70%; max-width: 300px; }
@media (min-width: 720px) {
  .section { padding: 88px 0; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .split.flip .split-copy { order: 2; }
  .phones img { width: 56%; }
  .phones.single img { width: 76%; }
}
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .split { gap: 64px; }
  .phones img { width: 50%; }
  .phones.single img { width: 70%; }
}

/* Closing band */
.band { background: var(--teal); color: var(--cream); padding: 64px 0; }
.band-in { display: grid; gap: 28px; }
.band h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); color: var(--cream); max-width: 16ch; }
.band p { color: rgba(246, 241, 232, .82); max-width: 44ch; margin-top: 14px; }
.band a:not(.btn) { color: var(--cream); }
@media (min-width: 900px) {
  .band { padding: 96px 0; }
  .band-in { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Event share page ---------- */
.event { padding: 20px 0 24px; }
.event-in { display: grid; gap: 24px; }
.poster {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
}
.poster::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246, 241, 232, .22);
  border-radius: 8px; pointer-events: none;
}
.poster-top { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 241, 232, .8); }
.poster-title { font: 700 clamp(2.25rem, 1.6rem + 3vw, 3.5rem)/1 var(--font-head); letter-spacing: -.03em; text-wrap: balance; }
.poster-foot { font-size: .9375rem; color: rgba(246, 241, 232, .8); margin-top: 14px; }
.poster--teal { background: var(--teal-2); }
.poster--plum { background: var(--plum); }
.poster--olive { background: var(--olive); }
.poster--clay { background: var(--clay); }
.poster--slate { background: var(--slate); }
.poster--photo { padding: 0; background: #2a2a24; }
.poster--photo img { width: 100%; height: 100%; object-fit: cover; }
.poster.is-dim { filter: grayscale(.85); opacity: .6; }

.for { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; }
.for::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.for--everyone { color: var(--everyone); }
.for--sisters { color: var(--sisters); }
.for--brothers { color: var(--brothers); }

.event h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem); margin-top: 10px; }
.facts { margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); }
.facts li:last-child { border-bottom: 1px solid var(--hair); }
.facts svg { width: 22px; height: 22px; margin-top: 2px; color: var(--muted); }
.facts strong { display: block; font-weight: 600; }
.facts span { color: var(--muted); }
.places { color: var(--label); font-weight: 600; }

.notice {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  background: var(--notice-bg); border: 1px solid var(--hair);
}
.notice strong { display: block; font: 700 1.125rem/1.3 var(--font-head); letter-spacing: -.01em; }
.notice p { margin-top: 4px; color: var(--muted); }

/* Action bar: sticks to the bottom of the screen on phones */
.actions {
  position: sticky; bottom: 0; z-index: 5;
  margin: 24px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--hair);
}
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn { width: 100%; padding-inline: 12px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.price strong { font: 700 1.25rem/1.2 var(--font-head); letter-spacing: -.01em; }
.price .places { font-size: .9375rem; }
.actions-note { margin-top: 8px; font-size: .8125rem; color: var(--muted); text-align: center; }

/* Phone and tablet: compact. Poster becomes a thumbnail beside the title. */
@media (max-width: 899px) {
  .event-in { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; row-gap: 0; }
  .event-detail { display: contents; }
  .event-poster { grid-row: 1 / span 2; }
  .event .for { grid-column: 2; align-self: end; }
  .event h1 { grid-column: 2; align-self: start; font-size: 1.625rem; line-height: 1.1; margin-top: 4px; }
  .event .notice, .event .facts, .event .actions { grid-column: 1 / -1; }
  .poster { padding: 10px; border-radius: 10px; }
  .poster::after { inset: 5px; border-radius: 6px; }
  .poster-top, .poster-foot { display: none; }
  .poster-title { font-size: .875rem; line-height: 1.1; letter-spacing: -.01em; }
  .facts { margin-top: 18px; }
  .facts li { padding: 11px 0; }
  .notice { margin-top: 16px; padding: 12px 14px; }
  .notice strong { font-size: 1rem; }
  .notice p { font-size: .9375rem; margin-top: 2px; }
  .actions { margin-top: 18px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .event { padding-top: 40px; }
  .event-in { grid-template-columns: 128px minmax(0, 1fr); column-gap: 24px; }
  .event h1 { font-size: 2.25rem; }
}
.about-app { padding: 40px 0 56px; }
.about-app-in { border-top: 1px solid var(--hair); padding-top: 28px; display: grid; gap: 12px; max-width: 560px; }
.about-app h2 { font-size: 1.375rem; letter-spacing: -.015em; }
.about-app p { color: var(--muted); }

.lost { padding: 72px 0 96px; }
.lost h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); max-width: 14ch; margin-top: 14px; }
.lost p { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 1.125rem; }
.lost .btn { margin-top: 28px; }

@media (min-width: 640px) {
  .event-in { max-width: 560px; margin-inline: auto; }
}
@media (min-width: 900px) {
  .event { padding-top: 56px; }
  .event-in { max-width: calc(var(--wrap) + var(--gutter) * 2); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .event-poster { position: sticky; top: 32px; }
  .actions { position: static; margin: 28px 0 0; padding: 20px; border: 1px solid var(--hair); border-radius: var(--radius); }
  .about-app { padding: 72px 0 96px; }
}

/* ---------- Venues ---------- */
.v-hero { background: var(--teal); color: var(--cream); padding: 48px 0 56px; }
.v-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); color: var(--cream); max-width: 14ch; margin-top: 14px; }
.v-hero .hero-lede { max-width: 44ch; }
.v-hero .btn { margin-top: 32px; }
.terms-strip { margin: 48px 0 0; padding: 0; list-style: none; display: grid; border-top: 1px solid rgba(246, 241, 232, .2); }
.terms-strip li { padding: 18px 0; border-bottom: 1px solid rgba(246, 241, 232, .2); display: flex; flex-direction: column; gap: 6px; }
.terms-strip b { font: 700 2.25rem/1 var(--font-head); letter-spacing: -.03em; color: var(--gold); min-width: 3.2ch; }
.terms-strip span { color: rgba(246, 241, 232, .84); }
@media (min-width: 640px) {
  .terms-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(246, 241, 232, .2); }
  .terms-strip li { border-bottom: 0; flex-direction: column; gap: 8px; padding: 24px 24px 24px 0; }
  .terms-strip li + li { border-left: 1px solid rgba(246, 241, 232, .2); padding-left: 24px; }
  .terms-strip b { font-size: 3rem; }
}
@media (min-width: 900px) { .v-hero { padding: 88px 0 96px; } }

.steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-content: start; padding: 24px 0; border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps li::before { content: counter(step); font: 700 2rem/1 var(--font-head); color: var(--label); letter-spacing: -.03em; }
.steps h3 { font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.2; }
.steps p { margin-top: 6px; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
  .steps li { grid-template-columns: 1fr; border: 0; padding: 32px 32px 40px 0; }
  .steps li + li { border-left: 1px solid var(--hair); padding-left: 32px; }
  .steps li::before { font-size: 3rem; margin-bottom: 16px; }
  .steps li:last-child { border: 0; border-left: 1px solid var(--hair); }
}
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); margin-top: 12px; max-width: 16ch; }
.section-head p:not(.label) { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: 1.125rem; }
.sum { margin-top: 32px; max-width: 46ch; padding-left: 18px; border-left: 2px solid var(--label); color: var(--ink); }
.sum span { display: block; color: var(--muted); font-size: .9375rem; margin-top: 4px; }

/* ---------- Long-text pages ---------- */
.doc { padding: 48px 0 80px; }
.doc-head { padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
.doc-head h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.75rem); margin-top: 12px; }
.doc-meta { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.draft { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--hair-strong); color: var(--muted); font-size: .875rem; }
.doc-body { display: grid; gap: 32px; padding-top: 32px; }
.toc p { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.toc li { border-bottom: 1px solid var(--hair); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: .9375rem; line-height: 1.35; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 66ch; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-size: 1.625rem; letter-spacing: -.015em; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; letter-spacing: -.01em; line-height: 1.3; margin: 28px 0 8px; }
.prose p + p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose .ph { color: var(--muted); }
.prose .callout { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); }
.prose .callout p { color: var(--ink); }
.prose a { color: var(--ink); }
/* "What, why, who sees it" lists: easier to read on a phone than a table. */
.prose .rows { list-style: none; padding: 0; margin: 4px 0 0; border-top: 1px solid var(--hair); }
.prose .rows li { display: grid; gap: 2px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.prose .rows strong { font-weight: 600; }
.prose .rows span { color: var(--muted); font-size: 1rem; }
.prose .rows .who { color: var(--ink); font-size: .9375rem; }
.prose .rows + p { margin-top: 14px; }
.acc-body > * + * { margin-top: 14px; }
@media (min-width: 1024px) {
  .doc { padding: 80px 0 120px; }
  .doc-body { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; padding-top: 48px; }
  .toc { position: sticky; top: 32px; align-self: start; }
  .toc ol { border-top: 0; }
  .toc li { border-bottom: 0; border-left: 1px solid var(--hair); }
  .toc a { min-height: 40px; padding: 6px 0 6px 16px; color: var(--muted); }
  .toc a:hover { color: var(--ink); }
}

/* Accordion long-text pages (privacy, terms) */
.acc-wrap { padding-top: 24px; max-width: 760px; }
.acc-hint { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.acc-list { border-top: 1px solid var(--hair); max-width: none; }
.acc { border-bottom: 1px solid var(--hair); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
}
.acc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.acc summary:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose .acc summary h2 { margin: 0; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; }
.acc-body { padding: 0 0 24px; }
@media (min-width: 1024px) {
  .acc-wrap { padding-top: 40px; }
  .prose .acc summary h2 { font-size: 1.375rem; }
  .acc summary { min-height: 68px; }
}
/* Short long-text pages: the contents list only shows on desktop */
@media (max-width: 1023px) { .toc { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
