/*
  SocialSession public policy site.
  Brand tokens mirror mobile/App.js `palettes` so the web pages and the app
  read as one product: teal #12a3aa, coral #f2795c, navy #141d3b on a warm
  off-white ground, with the app's dark palette under prefers-color-scheme.
  No framework, no build step, no JavaScript.
*/

:root {
  color-scheme: light dark;

  --ink: #ffffff;
  --paper: #f7f6f1;
  --card: #ffffff;
  --raised: #eef0e8;
  --text: #20294a;
  --strong: #141d3b;
  --muted: #5f6779;
  --line: #e3e5dc;

  --teal: #12a3aa;
  --teal-soft: #e2f4f5;
  --coral: #f2795c;
  --coral-soft: #fdeae3;
  --sun-soft: #fdf1d8;
  --sun-line: #ecdca6;
  --sun-ink: #8a5a00;
  --on-accent: #ffffff;

  /* 24k gold, for recognition only. --gold-ink is the one that carries type:
     6.25:1 on white and 5.70:1 on --gold-soft, both past AA. The lighter golds
     are for edges and ornament and must never be used for text. */
  --gold: #a8842a;
  --gold-ink: #7a5c00;
  --gold-hi: #f0d98a;
  --gold-soft: #fbf4e2;
  --gold-line: #dcc386;

  --focus: #12a3aa;
  --shadow: 0 1px 2px rgba(20, 29, 59, .06), 0 8px 24px rgba(20, 29, 59, .05);

  --measure: 70ch;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #0b0c0f;
    --paper: #090a0d;
    --card: #15171c;
    --raised: #1d2026;
    --text: #f7f8f3;
    --strong: #ffffff;
    --muted: #a3a79f;
    --line: #343840;

    --teal: #4de8ed;
    --teal-soft: #0f2f33;
    --coral: #ff7461;
    --coral-soft: #331d1b;
    --sun-soft: #282313;
    --sun-line: #5c5129;
    --sun-ink: #ffd65a;
    --on-accent: #0b0c0f;

    --focus: #4de8ed;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none;
  /* Long addresses and URLs must wrap rather than widen the page. */
  overflow-wrap: break-word;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--strong);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--strong);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--strong); }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  font-size: .82rem;
  font-weight: 600;
}
/* 44px minimum tap target — Apple HIG and WCAG 2.5.8. These are the only
   links a member taps on a phone rather than reads, and they sit close
   together, so they get an explicit hit area rather than inheriting the
   line box. */
.masthead nav a {
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--teal); }

/* ---------- Banners ---------- */

.prelaunch {
  background: var(--sun-soft);
  border-bottom: 1px solid var(--sun-line);
  color: var(--sun-ink);
  font-size: .9rem;
  font-weight: 700;
}
.prelaunch .wrap { padding-block: .6rem; }

.notice {
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.notice.urgent {
  background: var(--coral-soft);
  border-left-color: var(--coral);
}
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }

/* ---------- Prose ---------- */

main { padding-block: clamp(1.75rem, 5vw, 3rem) 1rem; }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--strong);
  margin: 0 0 .6rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--strong);
  margin: 2.6rem 0 .5rem;
}

h3 {
  font-size: 1.06rem;
  color: var(--strong);
  margin: 1.6rem 0 .35rem;
}

p, li { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; margin: 0 0 1.25rem; }
li { margin-bottom: .5rem; }
li > ul, li > ol { margin-top: .5rem; }

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .5rem;
}

.meta {
  font-size: .9rem;
  color: var(--muted);
}

strong, b { color: var(--strong); font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--raised);
  border-radius: 5px;
  padding: .1em .35em;
}

/* A literal in-app navigation path, e.g. Me -> Account & notifications. */
.path {
  display: block;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
  color: var(--strong);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.cards li, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin: 0;
  box-shadow: var(--shadow);
}
.cards h2, .cards h3, .card h2, .card h3 { margin-top: 0; }
.cards p:last-child, .card p:last-child { margin-bottom: 0; }

.card { margin: 1.5rem 0; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0 2rem;
}

.button {
  display: inline-block;
  background: var(--teal);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
}
.button:hover { color: var(--on-accent); filter: brightness(1.06); }

.button.secondary {
  background: transparent;
  color: var(--strong);
  border-color: var(--line);
}
.button.secondary:hover { color: var(--strong); border-color: var(--teal); }

/* ---------- Tables ---------- */

.table-scroll, pre { overflow-x: auto; margin: 0 0 1.5rem; }
pre { -webkit-overflow-scrolling: touch; }

table {
  border-collapse: collapse;
  width: 100%;
  /* Under 360px so a phone does not scroll a table that would have fit.
     .table-scroll still handles anything genuinely wider. */
  min-width: 22rem;
  font-size: 1rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .8rem;
  border-bottom: 1px solid var(--line);
}
th { color: var(--strong); font-weight: 700; }

/* ---------- Definition-style FAQ ---------- */

.faq h3 { margin-top: 1.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  margin-top: 3rem;
  padding-block: 1.75rem 2.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.site-footer nav a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer p { margin: 0 0 .5rem; }

/* ---------- Landing hero ---------- */

.hero { padding-block: clamp(2rem, 7vw, 4rem) .5rem; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.1rem); }
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  display: block;
}
.hero .lede { font-size: 1.2rem; max-width: 34rem; }

.badge {
  display: inline-block;
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media print {
  .masthead nav, .actions { display: none; }
  body { background: #fff; color: #000; }
}

/* A gilded band, used where the page marks something earned rather than
   something offered. The sheen comes from the value range across the three
   golds, not from the hue — a flat gold sits about 1.3:1 against the existing
   sun and reads as a second amber. */
.gilded {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: .85rem 1rem;
  color: var(--gold-ink);
}

.gilded__rule {
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-line), var(--gold-hi), var(--gold), var(--gold-hi), var(--gold-line));
}
