/* Speakeasy prototype: Podfox Media design system */

:root {
  /* Smallest text anywhere in the app (raise this one number to enlarge all small text) */
  --fs-min: 11pt;

  /* Podfox palette */
  --navy: #0d3a59;
  --navy-deep: #0a2c44;
  --navy-soft: #e7eef3;
  --crimson: #cc0033;
  --crimson-dark: #a8002a;
  --crimson-soft: #fbe6eb;
  --teal: #009999;
  --teal-soft: #dff3f2;
  --orange: #e8470c;
  --orange-soft: #fdeae2;
  --amber: #7a4800;
  --amber-soft: #fff1da;
  --gold: #ffcc33;
  --gold-soft: #fff6d6;
  --mist: #b8c7d0;      /* Speakeasy logo's light accent (decoration only) */
  --field-line: #5b7383;  /* form borders: 4.6:1, visible for low vision */

  --bg: #fdf9f8;
  --surface: #ffffff;
  --surface-2: #f6f1ef;
  --text: #13110f;
  --muted: #3e4e57;     /* 8:1 on the page background */
  --faint: #55656d;
  --line: #ebe4e1;
  --line-strong: #d9d0cc;

  --font-display: "Paytone One", "Montserrat", system-ui, sans-serif;
  --font-ui: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-num: "Manrope", "Montserrat", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 58, 89, 0.06), 0 1px 1px rgba(13, 58, 89, 0.04);
  --shadow: 0 6px 24px rgba(13, 58, 89, 0.08), 0 1px 3px rgba(13, 58, 89, 0.06);
  --shadow-lg: 0 20px 60px rgba(13, 58, 89, 0.18);
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1 { font: 400 34px/1.15 var(--font-display); color: var(--navy); letter-spacing: -0.2px; }
h2 { font: 400 22px/1.25 var(--font-display); color: var(--navy); }
h3 { font: 700 16px/1.35 var(--font-ui); color: var(--text); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-min); }
.tiny { font-size: var(--fs-min); }
.num { font-family: var(--font-num); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 700 var(--fs-min) var(--font-ui); cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn-text { background: none; border: 0; color: var(--navy); padding: 8px 4px; font-weight: 600; }
.btn-text:hover { text-decoration: underline; }
.btn-sm { padding: 7px 13px; font-size: var(--fs-min); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Chips, pills, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-min); font-weight: 500; color: var(--text); cursor: pointer; user-select: none;
  transition: all .15s;
}
.chip:hover { border-color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-min); font-weight: 600; white-space: nowrap; line-height: 1.6;
}
.pill-open { background: var(--teal-soft); color: #005a5a; }
.pill-soon { background: var(--amber-soft); color: var(--amber); }
.pill-rolling { background: var(--navy-soft); color: var(--navy); }
.pill-pitch { background: var(--orange-soft); color: #b8360a; }
.pill-closed { background: var(--surface-2); color: var(--muted); }
.pill-neutral { background: var(--surface-2); color: var(--muted); }
.pill-warn { background: var(--crimson-soft); color: var(--crimson-dark); }
.pill-good { background: var(--teal-soft); color: #005a5a; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.label-est { font-size: var(--fs-min); font-weight: 600; color: var(--amber); background: var(--amber-soft);
  padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.label-conf { font-size: var(--fs-min); font-weight: 600; color: #005a5a; background: var(--teal-soft);
  padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.label-last { font-size: var(--fs-min); font-weight: 600; color: var(--muted); background: var(--surface-2);
  padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }

.endorsed {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px;
  background: var(--gold-soft); color: #7a5a00; border: 1px solid #f2d987; font-size: var(--fs-min); font-weight: 700;
}

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--navy);
  color: #fff; display: flex; flex-direction: column; padding: 22px 16px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 26px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--crimson);
  display: grid; place-items: center; font: 400 18px var(--font-display); color: #fff;
}
.brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-logo { width: 168px; height: auto; display: block; margin-left: -6px; }
.brand-sub { padding-left: 4px; }
.brand-sub { font-size: var(--fs-min); opacity: .9; letter-spacing: .3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: var(--fs-min); text-transform: uppercase; letter-spacing: 1.2px; opacity: .85; padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: var(--fs-min);
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav a.active svg { color: var(--gold); }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .count { margin-left: auto; font: 600 var(--fs-min) var(--font-num); background: rgba(255,255,255,.14);
  padding: 1px 8px; border-radius: 999px; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.user-mini { display: flex; align-items: center; gap: 10px; font-size: var(--fs-min); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-min); flex: none; }

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 10; background: rgba(253,249,248,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 14px 40px; display: flex; align-items: center; gap: 16px;
}
.search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; color: var(--muted);
}
.search input { border: 0; outline: 0; flex: 1; font: inherit; background: none; color: var(--text); }
.search svg { width: 17px; height: 17px; }
.topbar .spacer { flex: 1; }
.page { padding: 40px 40px 80px; max-width: 1180px; }
.page-head { margin-bottom: 32px; }
.page-head p { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 640px; }
.eyebrow { font: 600 var(--fs-min) var(--font-ui); text-transform: uppercase; letter-spacing: 1.4px; color: var(--crimson); margin-bottom: 10px; }

/* Mobile tab bar */
.tabbar { display: none; }

/* ---------- Cards and grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.stat { padding: 20px 22px; }
.stat .n { font: 300 34px/1 var(--font-num); color: var(--navy); }
.stat .l { font-size: var(--fs-min); color: var(--muted); margin-top: 8px; }

/* Event card */
.ecard {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .15s; position: relative; text-decoration: none; color: inherit;
}
.ecard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-1px); }
.ecard .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.ecard h3 { font-size: 16.5px; line-height: 1.35; padding-right: 34px; }
.ecard .meta { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-min); color: var(--muted); }
.ecard .meta span { display: flex; gap: 8px; align-items: center; }
.ecard .meta svg { width: 15px; height: 15px; flex: none; opacity: .7; }
.ecard .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.heart {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--faint);
}
.heart svg { width: 17px; height: 17px; }
.heart.on { color: var(--crimson); border-color: var(--crimson-soft); background: var(--crimson-soft); }
.why { font-size: var(--fs-min); color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.why b { color: var(--text); font-weight: 600; }
.rank { font: 400 var(--fs-min) var(--font-display); color: var(--crimson); }

/* Horizontal rows */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.row-scroll > * { scroll-snap-align: start; }

/* To-do list */
.todo { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.todo .ico svg { width: 18px; height: 18px; }
.todo .body { flex: 1; min-width: 0; }
.todo .title { font-weight: 600; }
.todo .sub { font-size: var(--fs-min); color: var(--muted); }
.ico-deadline { background: var(--crimson-soft); color: var(--crimson); }
.ico-follow { background: var(--amber-soft); color: var(--amber); }
.ico-prep { background: var(--teal-soft); color: #005a5a; }
.ico-open { background: var(--navy-soft); color: var(--navy); }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 7px; font-size: var(--fs-min); font-weight: 600; color: var(--text); }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=month], input[type=search], select, textarea {
  font: 400 15px var(--font-ui); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 11px 14px; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: var(--fs-min); }
.form-grid { display: grid; gap: 18px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: .2s; }
.toggle span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::before { transform: translateX(18px); }

/* Segmented tabs */
.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; width: fit-content; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: var(--fs-min); color: var(--muted); }
.tabs button.on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- Explore ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { max-width: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: var(--fs-min); font-weight: 600; }
.fchip button { border: 0; background: none; cursor: pointer; color: var(--navy); font-size: 15px; line-height: 1; padding: 0 2px; }
.drawer-bg { position: fixed; inset: 0; background: rgba(6,5,3,.32); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); z-index: 41;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 8px 26px 26px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.fgroup { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h4 { font: 700 var(--fs-min) var(--font-ui); margin-bottom: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Event detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-min); margin-bottom: 22px; cursor: pointer; background: none; border: 0; padding: 0; }
.back:hover { color: var(--navy); }
.detail-hero { padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.detail-hero h1 { font-size: 32px; }
.countdown { text-align: center; padding: 16px 22px; border-radius: var(--radius); background: var(--navy); color: #fff; min-width: 150px; }
.countdown .n { font: 300 38px/1 var(--font-num); }
.countdown .l { font-size: var(--fs-min); opacity: .95; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.fact { background: var(--surface); padding: 18px 22px; }
.fact .k { font-size: var(--fs-min); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.fact .v { margin-top: 6px; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start; }
.prose h3 { margin: 22px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #333; }
.note { font-size: var(--fs-min); color: var(--muted); }
.side-actions { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.rate-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rate { flex: 1; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: var(--fs-min); color: var(--muted); }
.rate.on.love { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.rate.on.maybe { background: var(--amber-soft); border-color: #e9c27a; color: var(--amber); }
.rate.on.no { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.heads-up { background: var(--orange-soft); border-radius: 12px; padding: 14px 16px; font-size: var(--fs-min); color: #7a2a08; }

/* ---------- Pipeline ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 14px; min-height: 240px; }
.col h4 { font: 700 var(--fs-min) var(--font-ui); display: flex; justify-content: space-between; margin: 2px 4px 12px; color: var(--navy); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.pcard .t { font-weight: 600; font-size: var(--fs-min); cursor: pointer; }
.pcard .t:hover { color: var(--navy); text-decoration: underline; }
.pcard .s { font-size: var(--fs-min); color: var(--muted); margin-top: 4px; }
.pcard select { margin-top: 10px; padding: 7px 10px; font-size: var(--fs-min); }

/* ---------- Calendar ---------- */
.month { margin-bottom: 28px; }
.month h3 { font: 400 18px var(--font-display); color: var(--navy); margin-bottom: 12px; }
.cal-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cal-item:last-child { border-bottom: 0; }
.cal-item:hover { background: var(--surface-2); }
.cal-date { text-align: center; }
.cal-date .d { font: 300 24px/1 var(--font-num); color: var(--navy); }
.cal-date .m { font-size: var(--fs-min); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Welcome / onboarding ---------- */
.welcome { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.welcome-art {
  background: radial-gradient(circle at 20% 15%, rgba(255,204,51,.18), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(204,0,51,.35), transparent 45%), var(--navy);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.welcome-art h1 { color: #fff; font-size: 48px; max-width: 520px; }
.welcome-art p { font-size: 18px; opacity: .85; max-width: 470px; margin-top: 18px; }
.welcome-points { display: grid; gap: 14px; margin-top: 36px; }
.welcome-points div { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.welcome-points svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.welcome-art .brand-logo { width: 220px; }

/* Brand sparkles: bullets and accents */
.sparkle { width: 18px; height: 18px; flex: none; object-fit: contain; }
.sparkle-lg { width: 44px; height: 44px; flex: none; object-fit: contain; }
.sparkle-list, .prose ul { list-style: none; padding-left: 0; }
.sparkle-list li, .prose ul li { position: relative; padding-left: 26px; }
.sparkle-list li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: .35em; width: 15px; height: 15px;
  background: url(assets/sparkle-navy.png) center / contain no-repeat; }
.podfox-card { background: var(--navy-soft); }
.welcome-form { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; font-size: 15px; }
.google-btn:hover { box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: var(--fs-min); margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.onb { min-height: 100vh; display: flex; flex-direction: column; }
.onb-top { padding: 22px 40px; display: flex; align-items: center; gap: 24px; }
.onb-icon { width: 40px; height: auto; flex: none; }
.progress { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 560px; }
.progress div { height: 100%; background: var(--crimson); border-radius: 999px; transition: width .3s; }
.onb-body { flex: 1; display: flex; justify-content: center; padding: 30px 24px 120px; }
.onb-inner { width: 100%; max-width: 720px; }
.onb-inner h1 { font-size: 36px; }
.onb-inner .lead { font-size: 17px; color: var(--muted); margin: 12px 0 30px; }
.onb-foot { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(253,249,248,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; }
.group-label { font-size: var(--fs-min); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 10px; }
.taste { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.taste .card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.taste .actions { display: flex; gap: 8px; margin-top: auto; }
.privacy-note { display: flex; gap: 12px; background: var(--navy-soft); border-radius: 12px; padding: 16px; font-size: var(--fs-min); color: var(--navy); margin-bottom: 24px; }
.privacy-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: var(--fs-min); font-weight: 500; opacity: 0; transition: all .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.modal-bg { position: fixed; inset: 0; background: rgba(6,5,3,.4); z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px; }
.modal h2 { margin-bottom: 6px; }
.modal .form-grid { margin: 20px 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.article { max-width: 720px; }
.article h1 { margin-bottom: 12px; }
.article h3 { margin: 26px 0 8px; }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }
.proto-banner { background: var(--gold-soft); color: #6b5000; font-size: var(--fs-min); text-align: center; padding: 7px 16px; border-bottom: 1px solid #f2d987; }
.host-shell .sidebar { background: #12304a; }
.digest { max-width: 560px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.digest-head { background: var(--navy); color: #fff; padding: 20px 24px; }
.digest-head .h { font: 400 20px var(--font-display); }
.digest-body { padding: 20px 24px; font-size: var(--fs-min); }
.digest-body h4 { font: 700 var(--fs-min) var(--font-ui); text-transform: uppercase; letter-spacing: .8px; color: var(--crimson); margin: 18px 0 8px; }
.digest-body h4:first-child { margin-top: 0; }
.digest-body li { margin-bottom: 6px; }
table.simple { width: 100%; border-collapse: collapse; font-size: var(--fs-min); }
table.simple td, table.simple th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.simple th { font-size: var(--fs-min); color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-actions { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 76px; }
  .topbar { padding: 12px 16px; }
  .page { padding: 24px 16px 60px; }
  h1 { font-size: 28px; }
  .detail-hero { grid-template-columns: 1fr; padding: 22px; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-art { padding: 36px 24px; }
  .welcome-art h1 { font-size: 34px; }
  .onb-top, .onb-foot { padding-left: 16px; padding-right: 16px; }
  .board { grid-template-columns: repeat(5, 260px); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: var(--fs-min); font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px; }
  .tabbar a.active { color: var(--crimson); }
  .tabbar svg { width: 22px; height: 22px; }
}

/* Icon sizes inside inline components */
.btn svg, .endorsed svg, .back svg, .pill svg { width: 16px; height: 16px; flex: none; }
.btn-lg svg { width: 18px; height: 18px; }
.ico svg { width: 20px; height: 20px; }
.card-pad > svg { width: 22px; height: 22px; color: var(--navy); }
.search input[type=search], .search input[type=text] { border: 0; padding: 0; box-shadow: none; width: auto; min-width: 0; flex: 1; background: none; border-radius: 0; }
@media (max-width: 860px) { .topbar .btn { padding: 7px 12px; font-size: var(--fs-min); } }
.ecard .foot .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .topbar .btn { display: none; } .search { max-width: none; } }

/* Umbrella topic cards (onboarding and preferences) */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.opt { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; transition: all .15s; position: relative; }
.opt:hover { border-color: var(--navy); }
.opt input { display: none; }
.opt .t { font-weight: 700; font-size: 15px; color: var(--text); padding-right: 26px; }
.opt .d { font-size: var(--fs-min); color: var(--muted); }
.opt::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-strong); }
.opt.on { border-color: var(--navy); background: var(--navy-soft); }
.opt.on::after { background: var(--navy); border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

/* Accuracy disclaimer shown on every screen */
.legal-foot { max-width: 1180px; margin: 0 auto; padding: 20px 40px 32px; border-top: 1px solid var(--line);
  font-size: var(--fs-min); line-height: 1.55; color: var(--muted); }
.legal-foot p + p { margin-top: 6px; }
.legal-foot a { color: var(--muted); text-decoration: underline; }
.main .legal-foot { margin: 0; }
@media (max-width: 860px) { .legal-foot { padding: 18px 16px 96px; } }

/* ---------- Speakeasy look: shapes drawn like the logo's speech bubble ----------
   Thick navy outlines, a solid offset shadow in the logo's light blue, and
   slightly uneven corners so boxes feel hand-drawn rather than machine-perfect. */
:root {
  --ink: var(--navy);
  --outline: 2px solid var(--ink);
  --bubble: 14px 20px 34px 26px / 14px 24px 30px 22px;   /* logo's corners: tighter on top, fuller at the bottom */
  --bubble-sm: 12px 15px 13px 11px / 11px 14px 15px 12px;
  --pop: 4px 5px 0 var(--mist);                         /* the logo's offset shadow */
  --pop-hover: 6px 7px 0 var(--mist);
  --pop-ink: 3px 3px 0 var(--ink);
  --radius: 18px;
}

.card { border: var(--outline); border-radius: var(--bubble); box-shadow: var(--pop); }
.card .card, .card.empty { box-shadow: none; }
.card .card { border-width: 1.5px; }
.ecard { transition: translate .15s, box-shadow .15s; }
.ecard:hover { box-shadow: var(--pop-hover); border-color: var(--ink); translate: -1px -2px; }
.ecard .foot { border-top: 1.5px dashed var(--mist); }

.btn { border: var(--outline); border-radius: 999px; box-shadow: var(--pop-ink); transition: translate .1s, box-shadow .1s; }
.btn:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--ink); }
.btn-text, .btn-text:hover, .btn-text:active { border: 0; box-shadow: none; translate: none; }
.btn[disabled] { box-shadow: none; translate: none; }

.google-btn { border: var(--outline); border-radius: 999px; box-shadow: var(--pop-ink); }
.google-btn:hover { box-shadow: 4px 4px 0 var(--ink); }

input[type=text], input[type=email], input[type=url], input[type=date], input[type=month], input[type=search], select, textarea {
  border: 2px solid var(--field-line); border-radius: var(--bubble-sm); color: var(--text);
}
::placeholder { color: var(--faint); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--mist); }
.search { border: 2px solid var(--field-line); color: var(--faint); }
.search:focus-within { border-color: var(--ink); }

.chip { border: 1.5px solid var(--ink); }
.pill { border: 1.5px solid currentColor; }
.opt { border: var(--outline); border-radius: var(--bubble); box-shadow: var(--pop); }
.opt:hover { box-shadow: var(--pop-hover); }
.opt::after { border: 2px solid var(--ink); }
.rate { border: 1.5px solid var(--ink); border-radius: 999px; }

.tabs { border: var(--outline); border-radius: var(--bubble-sm); background: var(--surface); }
.tabs button { border-radius: 999px; }
.tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }

.modal { border: var(--outline); border-radius: var(--bubble); box-shadow: 6px 7px 0 var(--mist), var(--shadow-lg); }
.digest { border: var(--outline); border-radius: var(--bubble); box-shadow: var(--pop); }
.privacy-note { border: 1.5px solid var(--field-line); border-radius: var(--bubble-sm); }
.heart { border: 1.5px solid var(--ink); }

/* Speech-bubble tail for callout cards, like the logo */
.bubble-tail { position: relative; margin-bottom: 26px; }
.bubble-tail::before, .bubble-tail::after { content: ""; position: absolute; left: 48px; width: 0; height: 0; border-style: solid; }
.bubble-tail::before { bottom: -22px; border-width: 22px 4px 0 22px; border-color: var(--ink) transparent transparent transparent; }
.bubble-tail::after { bottom: -16px; left: 50.5px; border-width: 17px 3px 0 17px; border-color: var(--surface) transparent transparent transparent; }
.podfox-card.bubble-tail::after { border-top-color: var(--navy-soft); }

/* Sidebar: active item as a little bubble */
.nav a.active { background: #fff; color: var(--ink); border-radius: var(--bubble-sm); box-shadow: 3px 3px 0 var(--mist); }
.nav a.active svg { color: var(--crimson); }

/* Sidebar: Podfox "Deep teal" gradient (brand guide gradient-deep-teal), run top to bottom.
   Teal sits behind the logo; the menu text lands where the blend has darkened (5:1+),
   with the brand's black text shadow for extra legibility. */
.sidebar { background: linear-gradient(175deg, #009999 0%, #0d3a59 55%, #0d3a59 100%); }
.sidebar .nav a:not(.active), .sidebar .nav-label, .sidebar .brand-sub, .sidebar-foot { text-shadow: 0 1px 3px rgba(6, 5, 3, 0.45); }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--crimson); font-weight: 700; text-decoration: underline; cursor: pointer; }
.exhibit-card h3 { display: flex; align-items: center; gap: 8px; }
.exhibit-card p + p { margin-top: 6px; }

/* Legal pages */
.legal-page { max-width: 720px; margin: 0 auto; padding: 32px 20px 48px; line-height: 1.6; }
.legal-page h1 { margin: 16px 0 12px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }

/* Preview and subscribe, before an account exists */
.preview-page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 20px 48px; display: grid; gap: 20px; }
.subscribe-page { max-width: 560px; }
.preview-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-price { font-family: var(--font-display, "Paytone One", sans-serif); font-size: 40px; color: var(--navy); margin-bottom: 8px; }
.refund-notice { margin: 0; }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 2px; }

/* Beta feedback button */
.feedback-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 9px 16px; font-family: inherit; font-size: var(--fs-min); font-weight: 700; line-height: 1.2; color: #fff; background: var(--navy); border: 0; border-radius: 999px; cursor: pointer; }
.feedback-fab:hover { background: var(--crimson); }
@media (max-width: 860px) { .feedback-fab { right: 12px; bottom: 82px; } }
