/* ===========================================================================
   Wel-Tea — Pour Into You.  Shared styles (redesign, October 2026)

   White pages, warm navy for text and headings, pink and ombré
   (navy → plum → pink) for buttons and accents, an italic serif for display
   headings and sage tags. Pink is never used as a page background.

   Every text and background pair is checked for WCAG 2.2 AA contrast by the
   browser tests. Nothing here needs inline styles or inline code.
   =========================================================================== */

@font-face {
  font-family: "WelTea Serif";
  src: url("/assets/fonts/weltea-serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #FAF8F7;
  --beige: #F6EFE6;
  --beige-line: #E7DACB;
  --surface-2: #F3F1F2;
  --surface-3: #E9E6EA;
  --line: #E8E6EB;
  --line-strong: #D2CFD8;

  /* Text */
  --ink: #1D2135;
  --muted: #5B5F72;
  --field: #868A9A;  /* field borders: at least 3:1 on white, soft and beige */

  /* Brand */
  --navy: #232B4D;
  --navy-700: #2F3966;
  --navy-900: #171C33;
  --navy-50: #EEF0F7;
  --plum: #5B3A7A;
  --pink: #C63A70;
  --pink-700: #A92F5E;
  --pink-text: #B8336A;
  --rose-line: #D9708F;
  --sage: #5C7A62;
  --sage-text: #3F5A45;
  --sage-50: #EEF3EE;
  --amber: #7A4A00;
  --amber-50: #FBF1E2;
  --peach: #F2C2AC;
  --peach-2: #E39A82;
  --heart: #E2557F;
  --focus: #B8336A;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --white: #FFFFFF;

  /* Video */
  --screen: #15172A;
  --on-screen: #F5F3F7;
  --on-screen-muted: #CFCBD8;

  --ombre: linear-gradient(140deg, #232B4D 0%, #5B3A7A 55%, #C63A70 100%);
  --ombre-button: linear-gradient(135deg, #C63A70 0%, #8E3A78 100%);
  --ombre-button-hover: linear-gradient(135deg, #A92F5E 0%, #763068 100%);
  --tile: linear-gradient(140deg, #F4EEF6 0%, #ECEFF8 100%);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "WelTea Serif", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29, 33, 53, 0.06);
  --shadow: 0 1px 2px rgba(29, 33, 53, 0.05), 0 8px 24px rgba(29, 33, 53, 0.08);
  --shadow-lg: 0 20px 50px rgba(29, 33, 53, 0.18);

  --header-h: 68px;
  --tabbar-h: 0px;
  --pills-h: 0px;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--navy); line-height: 1.2; font-weight: 700; }
h1, h2 { font-family: var(--font-display); font-style: italic; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); }
h3, h4 { font-family: var(--font-sans); color: var(--ink); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
img, svg { max-width: 100%; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-text); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.lede { color: var(--muted); font-size: 1.0625rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.eyebrow, .section-label {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Breathing room when a new group starts after a list or a paragraph */
:is(ul, ol, p, div, section) + .section-label { margin-top: 24px; }
.loading { color: var(--muted); }

.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--ombre-button);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(198, 58, 112, 0.22);
  transition: box-shadow 0.15s ease, transform 0.05s ease, background-color 0.15s ease;
}
.button:hover { background: var(--ombre-button-hover); color: var(--white); box-shadow: 0 8px 20px rgba(169, 47, 94, 0.28); }
.button:active { transform: translateY(1px); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.button--block { width: 100%; }
.button--small { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; }

.button--quiet {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.button--quiet:hover { background: var(--navy-50); color: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-sm); }

.button--navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.button--navy:hover { background: var(--navy-700); color: var(--white); }

.button--danger { background: var(--surface); color: var(--error); border: 1.5px solid #E6B3AE; box-shadow: none; }
.button--danger:hover { background: var(--error-bg); color: var(--error); border-color: var(--error); box-shadow: none; }

.button--light { background: var(--white); color: var(--navy); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.button--light:hover { background: var(--navy-50); color: var(--navy); }
.button--outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.8); box-shadow: none; }
.button--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions > * { min-width: 0; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover { color: var(--pink-text); text-decoration-thickness: 2px; }

.links { display: grid; gap: 10px; margin-top: 24px; }
.links p { margin: 0; }

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
.form { display: grid; gap: 20px; margin-top: 8px; }
.form > * { min-width: 0; }
.form--wide { max-width: 46rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 600; color: var(--ink); }
.hint { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.15s ease;
}
.input:hover { border-color: var(--navy-700); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 36px; }
.input--code { max-width: 12rem; font-size: 1.5rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

.password-row { display: flex; gap: 8px; }
.password-row .input { flex: 1 1 auto; }
.password-row > .button { flex: 0 0 auto; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; font-weight: 600; color: var(--ink); }
fieldset.group, .group { display: grid; gap: 10px; }

.check { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.check > div { min-width: 0; }
.check input[type="checkbox"], .check input[type="radio"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.check label { font-weight: 400; color: var(--ink); }
.check label strong { color: var(--navy); }
.check--card {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check--card:hover { border-color: var(--line-strong); }
.check--card:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }

.form-section { padding-top: 22px; border-top: 1px solid var(--line); }
.form-section > h2 { font-size: 1.35rem; }
.counter { font-size: 0.875rem; color: var(--muted); }

.rules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.9375rem; color: var(--muted); }
.rules li { display: flex; gap: 8px; align-items: baseline; }
.rules li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.75em; height: 0.75em;
  border: 2px solid var(--field);
  border-radius: 50%;
  transform: translateY(0.05em);
}
.rules li.met { color: var(--sage-text); }
.rules li.met::before { background: var(--sage); border-color: var(--sage); }

.captcha { min-height: 78px; }
.captcha-note { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Messages, panels, lists
   --------------------------------------------------------------------------- */
.notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.notice + .notice { margin-top: 12px; }
.notice--error { background: var(--error-bg); border-color: #F4C7C2; border-left-color: var(--error); color: var(--error); }
.notice--success { background: var(--sage-50); border-color: #D2E0D4; border-left-color: var(--sage); color: var(--sage-text); }
.notice strong { font-weight: 700; }
.notice-area { display: grid; gap: 12px; }
.notice-area:empty { display: none; }

/* A gentle note with a rose edge */
.note {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--rose-line);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9375rem;
}

.callout {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  color: var(--ink);
}
.callout > :last-child { margin-bottom: 0; }

.panel-box {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.panel-box > :last-child { margin-bottom: 0; }

.empty {
  padding: 28px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}
.empty > :last-child { margin-bottom: 0; }
.empty h2 { color: var(--navy); }

.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: 2px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.facts--compact > div { padding: 9px 0; }

.section { margin-top: 32px; }
.band { margin-top: 52px; }
.band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.band__head > * { min-width: 0; }
.band__head h2 { margin: 0; }

.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li + li { margin-top: 4px; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.35em; }

.ext-hint { display: block; font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.privacy-note { font-size: 0.875rem; color: var(--muted); }

/* Badges, tags, statuses */
.badge, .tag, .status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}
.badge { background: var(--navy-50); color: var(--navy); }
.badge--pink { background: var(--navy); color: var(--white); }
.tag { background: var(--sage); color: var(--white); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.status { background: var(--surface-2); color: var(--ink); }
.status--good { background: var(--sage-50); color: var(--sage-text); }
.status--warn { background: var(--amber-50); color: var(--amber); }
.status--bad { background: var(--error-bg); color: var(--error); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips > li { max-width: 100%; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--line-strong); background: var(--soft); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--peach-2); }
.dot--1 { background: #8FB096; } .dot--2 { background: #E0A458; } .dot--3 { background: #E39A82; }
.dot--4 { background: #9A8BC8; } .dot--5 { background: #7FA3C9; } .dot--0 { background: var(--pink); }
.hashtags { margin: 0; color: var(--pink-text); font-weight: 600; font-size: 0.9375rem; }
.hashtags a { color: var(--pink-text); text-decoration: none; margin-right: 10px; display: inline-block; }
.hashtags a:hover { text-decoration: underline; }
/* Light pink on the dark video screen */
.tile__info .hashtags, .tile__info .hashtags a { color: #F7B3CB; }

/* People: initials avatar and verified tick */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--peach) 0%, var(--peach-2) 100%);
  color: var(--navy-900);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.avatar--small { width: 36px; height: 36px; font-size: 0.8125rem; }
.avatar--large { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 1.75rem; border-width: 3px; }
.avatar { position: relative; overflow: hidden; }
/* A contributor's photo sits on top of their initials */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--surface); }
.avatar-holder { display: inline-flex; flex: 0 0 auto; }
.verified { flex: 0 0 auto; width: 18px; height: 18px; color: var(--sage); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person > div { min-width: 0; }
.person__name { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: var(--ink); }
.person__name a { color: inherit; text-decoration: none; }
.person__name a:hover { text-decoration: underline; }
.person__role { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------------------
   Header, phone menu, tab bar, footer
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--navy); text-decoration: none; }
.site-logo:hover { color: var(--navy); }
.site-logo img { flex: 0 0 auto; width: 36px; height: 36px; }
.site-logo span { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.site-logo small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav { margin-left: auto; }
.site-nav ul, .site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .site-menu a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"], .site-menu a[aria-current="page"] { background: var(--navy-50); color: var(--navy); }
.site-nav a.nav-search { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site-nav a.nav-search .icon { width: 18px; height: 18px; color: var(--pink-text); }

a.nav-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1.5px solid var(--pink-text);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--pink-text);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
a.nav-help:hover { background: var(--soft); color: var(--pink-700); }
.site-nav a.nav-help[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: var(--white); }

.header-help { margin-left: auto; }
.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary::after {
  content: "";
  width: 0.45em; height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.site-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.site-menu nav {
  position: absolute;
  left: 12px; right: 12px;
  top: calc(100% + 6px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.site-menu ul { display: grid; gap: 2px; }
.site-menu a { width: 100%; border-radius: 12px; }

@media (max-width: 1099px) { .site-logo small { display: none; } }
@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .site-nav { display: none; }
  .site-header__inner { gap: 8px; padding: 0 14px; }
  .site-logo { flex: 0 0 auto; gap: 8px; }
  .site-logo img { width: 32px; height: 32px; }
  .site-logo span { font-size: 1.35rem; }
  .site-menu > summary { padding: 8px 12px; }
  a.nav-help { padding: 6px 12px; }
}
@media (min-width: 900px) { .site-menu, a.nav-help.header-help { display: none; } }
@media (max-width: 359px) { .site-logo span { display: none; } }

/* Quick links (Home, Watch, Discover, Your space): on phones and tablets they
   sit at the top, inside the sticky header, so they never cover the page. */
.tabbar { display: none; }
@media (max-width: 899px) {
  .has-tabbar { --tabbar-h: 56px; }
  .has-tabbar .tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    height: var(--tabbar-h);
    padding: 3px 8px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 48px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a:hover { background: var(--soft); color: var(--navy); }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { background: var(--beige); color: var(--navy); }
  .tabbar a[aria-current="page"] .icon { color: var(--pink); }
}

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.page:focus { outline: none; }
.page--narrow { max-width: 780px; }
@media (max-width: 599px) { .page { padding: 24px 16px 48px; } }
/* After the phone rule on purpose, and more specific, so flush pages stay flush */
.page.page--flush { max-width: none; padding: 0; }

.site-footer { flex: 0 0 auto; background: var(--navy-900); color: var(--on-screen-muted); font-size: 0.9375rem; }
.site-footer__inner { display: grid; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 36px 24px 40px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { display: inline-block; padding: 4px 0; color: var(--on-screen); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--peach); }
.footer-crisis {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-screen);
  font-weight: 600;
}
.footer-brand { color: var(--on-screen); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }

/* ---------------------------------------------------------------------------
   Phase 3 account pages: brand panel beside (desktop) or above (phone)
   --------------------------------------------------------------------------- */
.shell { flex: 1 0 auto; display: grid; grid-template-columns: 1fr; }
.brand {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "mark art" "words art";
  align-items: center;
  column-gap: 16px;
  padding: 18px 16px 20px;
  background: var(--ombre);
  color: var(--white);
}
.brand > .wordmark { grid-area: mark; justify-self: start; }
.brand > .brand-art { grid-area: art; }
.brand > .brand-words { grid-area: words; }
.wordmark { color: var(--white); font-family: var(--font-display); font-style: italic; font-size: 1.75rem; font-weight: 700; line-height: 1.1; text-decoration: none; }
.wordmark:hover { color: var(--white); text-decoration: underline; }
.brand :focus-visible { outline-color: var(--white); }
.slogan { margin: 2px 0 0; color: var(--white); font-family: var(--font-display); font-style: italic; font-size: 1.125rem; }
.brand-art { flex: 0 0 auto; width: 72px; height: auto; color: var(--white); }
.brand-art .heart { fill: var(--peach); }
.main { display: flex; justify-content: center; padding: 32px 16px 48px; }
.main:focus { outline: none; }
.panel { width: 100%; max-width: 30rem; }
@media (min-width: 900px) {
  .shell { grid-template-columns: minmax(320px, 5fr) 7fr; }
  .brand {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "mark" "art" "words";
    align-items: start;
    row-gap: 24px;
    min-height: 100vh;
    padding: 40px 48px 48px;
  }
  .brand > .brand-art { width: min(100%, 280px); align-self: center; justify-self: center; }
  .slogan { margin: 0; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1.08; }
  .brand-note { max-width: 22rem; margin: 14px 0 0; font-size: 1rem; opacity: 0.95; }
  .main { align-items: center; padding: 64px 48px; }
}
@media (max-width: 899px) { .brand-note { display: none; } }
.footer { flex: 0 0 auto; padding: 18px 16px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 0.9375rem; text-align: center; }
.footer p { margin: 0; }
.footer a { color: var(--navy); }
@media (min-width: 900px) { .footer { padding: 18px 48px; text-align: left; } }

.qr { display: block; width: 200px; height: 200px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.secret {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.steps { display: grid; gap: 18px; margin: 0; padding-left: 1.3em; }
.factor { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.factor p { margin: 0; }

/* ---------------------------------------------------------------------------
   Home
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 44px 26px;
  border-radius: var(--radius-xl);
  background: var(--ombre);
  color: var(--white);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; min-width: 0; }
.hero h1 { margin: 0 0 14px; color: var(--white); font-size: clamp(2.5rem, 7vw, 3.9rem); line-height: 1.03; }
.hero p { max-width: 34rem; color: var(--on-screen); font-size: 1.125rem; }
.hero .eyebrow { color: var(--peach); }
.hero h1:has(+ .hero__tagline) { margin-bottom: 6px; }
.hero .hero__tagline { margin: 0 0 18px; color: var(--peach); font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; letter-spacing: 0.005em; }
.hero .brand-art { width: 140px; justify-self: center; }
.hero :focus-visible { outline-color: var(--white); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr auto; padding: 68px 68px; } .hero .brand-art { width: 220px; } }

.trust { list-style: none; display: grid; gap: 12px; margin: 22px 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.trust li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.trust li > div { min-width: 0; }
.trust .icon { margin-top: 2px; color: var(--pink); }
.trust strong { display: block; color: var(--ink); }
.trust span { color: var(--muted); font-size: 0.9375rem; }

.crisis {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.crisis > div { min-width: 0; }
.crisis h2, .crisis h3 { margin: 0 0 6px; }
.crisis p { margin: 0 0 12px; }
.crisis__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); color: var(--pink); box-shadow: var(--shadow-sm); }

.labels-grid { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.labels-grid li { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.labels-grid strong { display: flex; align-items: center; gap: 8px; color: var(--navy); }
.labels-grid p { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }

.join { display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--radius-xl); background: var(--navy); color: var(--on-screen); }
.join h2 { color: var(--white); margin: 0 0 6px; }
.join p { margin: 0; color: var(--on-screen-muted); }
@media (min-width: 900px) { .join { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* ---------------------------------------------------------------------------
   Cards and video rows
   --------------------------------------------------------------------------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--plain { list-style: none; margin: 0; padding: 0; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--tile); color: var(--navy); }
.card__art .play-dot { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--pink); box-shadow: var(--shadow); }
.card__art svg { width: 24px; height: 24px; margin-left: 3px; }
.card__body { display: grid; gap: 8px; min-width: 0; padding: 16px 18px 20px; }
.card__body > * { min-width: 0; margin: 0; }
.card__body h3 { font-size: 1.0625rem; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link:hover { color: var(--navy); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.area-card .card__body { padding: 20px; }
.area-card h3 { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.area-card .card__go { margin-top: 4px; color: var(--pink-text); font-size: 0.9375rem; font-weight: 700; }

.vlist { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.vrow { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 12px; border-radius: var(--radius); transition: background-color 0.15s ease; }
.vrow:hover { background: var(--soft); }
.vrow:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.vrow__tile { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 72px; height: 96px; border-radius: 12px; background: var(--tile); color: var(--navy); }
.vrow__tile .icon { width: 26px; height: 26px; }
.vrow__tile--wide { width: 112px; height: 72px; }
.vrow__text { display: grid; gap: 4px; min-width: 0; }
.vrow__text > * { margin: 0; }
.vrow__title { color: var(--ink); font-weight: 700; text-decoration: none; }
.vrow__title::after { content: ""; position: absolute; inset: 0; }
.vrow__title:focus-visible { outline: none; }
.vrow__meta { color: var(--muted); font-size: 0.9375rem; }
.vrow__aside { position: relative; z-index: 1; margin-left: auto; flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
   Explore
   --------------------------------------------------------------------------- */
.search { position: relative; display: flex; gap: 10px; max-width: 52rem; }
.search .input { min-height: 56px; padding-left: 50px; border-color: var(--field); border-radius: 16px; box-shadow: var(--shadow-sm); }
.search__icon { position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; color: var(--pink-text); pointer-events: none; }
.search .button { min-height: 56px; border-radius: 16px; }
.filters { display: grid; gap: 12px; margin: 24px 0 8px; }

/* ---------------------------------------------------------------------------
   Help now
   --------------------------------------------------------------------------- */
.help-list { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }
.help-card { display: grid; gap: 10px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.help-card h2 { margin: 0; }
.help-card p { margin: 0; }
.help-card--urgent { border-color: #F4C7C2; border-left-color: var(--error); background: var(--error-bg); }
.help-card--urgent h2 { color: var(--error); }

/* ---------------------------------------------------------------------------
   Video player: a poster first; the video site loads only after a tap
   --------------------------------------------------------------------------- */
.player { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ombre); color: var(--white); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000000; }
.poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 24px 20px; text-align: center; }
.poster p { margin: 0; color: var(--white); }
.poster :focus-visible { outline-color: var(--white); }
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.play-button:hover { transform: scale(1.05); }
.play-button .icon { width: 34px; height: 34px; margin-left: 5px; }
.poster__title { max-width: 30rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; font-weight: 700; }
.poster__source { color: var(--on-screen-muted); font-size: 0.875rem; }
.poster__notice { max-width: 30rem; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(15, 16, 30, 0.6); font-size: 0.9375rem; }
/* In the tall tile and the phone reel the name tag and title sit over the
   lower part of the video, so the Play button stays in the upper part. */
.tile__screen .poster, .slide .poster { justify-content: flex-start; padding-top: 22%; }
/* Keep the poster clear of the round buttons down the right of the reel */
.slide .poster { padding-left: 16px; padding-right: 80px; }

/* Name tag and title over a video that hasn't started */
.tile__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 64px 18px 18px;
  background: linear-gradient(to top, rgba(12, 13, 26, 0.92) 0%, rgba(12, 13, 26, 0.7) 55%, rgba(12, 13, 26, 0) 100%);
  color: var(--white);
  pointer-events: none;
}
.tile__info > * { pointer-events: auto; }
.tile__info .person__name, .tile__info .person__name a { color: var(--white); }
.tile__info .person__role { color: var(--on-screen-muted); }
.tile__info .verified { color: #A9D3B1; }
.tile__title { margin: 12px 0 0; color: var(--white); font-size: 1.125rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.label-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  background: rgba(35, 43, 77, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slide .label-pill { font-size: 0.6875rem; letter-spacing: 0.06em; }
.is-playing .tile__info { display: none; }

/* ---------------------------------------------------------------------------
   Watch page — desktop: streams | video | details
   --------------------------------------------------------------------------- */
.watch-status { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.watch-status:empty { display: none; }
.watch-status .notice { margin-top: 14px; }
.watch-filter p { margin: 12px 0 0; }

.pills { display: none; }
.stage { display: none; }

@media (min-width: 900px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 24px 64px;
  }
  .streams { display: none; }
}
@media (min-width: 1200px) {
  .stage { grid-template-columns: 220px minmax(0, 1fr) 400px; }
  .streams { display: block; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .pills {
    display: flex;
    gap: 10px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

.streams { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.streams nav > ul { list-style: none; display: grid; gap: 2px; margin: 0 0 22px; padding: 0; }
.streams a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.streams a:hover { background: var(--surface-2); color: var(--ink); }
.streams a[aria-current="true"] { background: var(--navy-50); color: var(--navy); }
.streams a .icon { width: 18px; height: 18px; color: var(--muted); }
.streams .count-pill { margin-left: auto; min-width: 26px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); font-size: 0.8125rem; text-align: center; }
.streams__note { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

.stage__center { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage__video { display: flex; gap: 18px; align-items: center; justify-content: center; width: 100%; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--screen);
  box-shadow: 0 28px 70px rgba(29, 33, 53, 0.3);
}
.tile__screen { position: relative; aspect-ratio: 9 / 16; height: min(74vh, 700px); }
@media (min-width: 900px) and (max-width: 1199px) {
  .stage { grid-template-columns: minmax(0, 1fr) 340px; }
  .tile__screen { height: min(68vh, 600px); }
}
.tile__screen > .player { position: absolute; inset: 0; }
.stage__arrows { display: grid; gap: 14px; flex: 0 0 auto; }
.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, background-color 0.15s ease;
}
.round-button:hover { background: var(--navy-50); }
.round-button:disabled { opacity: 0.4; cursor: not-allowed; }
.round-button .icon { width: 22px; height: 22px; }

/* Toolbar inside the bottom of the video tile (light icons on dark) */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  margin: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
}
.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-screen);
  font: inherit;
  cursor: pointer;
}
.tool-button:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.tool-button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); }
.tool-button:focus-visible { outline-color: var(--peach); }
.tool-button.heart-button[aria-pressed="true"] .icon { fill: var(--heart); stroke: var(--heart); }
.tool-button.fav-button[aria-pressed="true"] .icon { fill: #E0A458; stroke: #E0A458; }
.tool-total { color: var(--on-screen-muted); font-size: 0.8125rem; font-weight: 700; }
.stage__count { margin: 12px 0 0; color: var(--muted); font-size: 0.875rem; font-weight: 700; }

/* Details panel */
.stage__side {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--beige-line);
  border-radius: var(--radius-xl);
  background: var(--beige);
}
.stage__side .side-section { border-top-color: var(--beige-line); }
.stage__side .note { background: rgba(255, 255, 255, 0.6); }
.stage__side .res { border-color: var(--beige-line); }
.person-card { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.person-card .actions { gap: 8px; }
.stage__title { margin: 22px 0 10px; color: var(--navy); font-family: var(--font-display); font-style: italic; font-size: 1.75rem; line-height: 1.15; }
.stage__title:focus { outline: none; }
.stage__desc { margin: 0 0 12px; color: var(--ink); }
.stage__side .hashtags { margin-bottom: 14px; }
.side-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-section > :last-child { margin-bottom: 0; }

/* Resources and supports */
.info-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.res { position: relative; display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.res > div { display: grid; gap: 4px; min-width: 0; }
.res > div > * { margin: 0; }
.res h3 { font-size: 1rem; }
.res h3 a { color: var(--ink); text-decoration: none; }
.res h3 a:hover { color: var(--navy); text-decoration: underline; }
.res__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--navy); }
.res__icon .icon { width: 20px; height: 20px; }
.res--crisis { border-color: #EDC9D5; border-left: 4px solid var(--pink); }
.res--crisis .res__icon { color: var(--pink); }
.res .tag { margin-top: 4px; }
.info-item { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.info-item:last-child { padding-bottom: 0; border-bottom: 0; }
.transcript { max-height: 22rem; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 0.9375rem; white-space: pre-wrap; }
details.more > summary { display: flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; cursor: pointer; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.byline__link { white-space: nowrap; }

.upnext ol { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.upnext button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.upnext button:hover { border-color: var(--line); background: var(--surface); }
.upnext button > span:last-child { min-width: 0; }
.upnext .vrow__tile { width: 48px; height: 64px; }
.upnext__title { display: block; color: var(--ink); font-weight: 700; }
.upnext__by { display: block; color: var(--muted); font-size: 0.875rem; }

/* ---------------------------------------------------------------------------
   Watch page — phones and tablets: the reel
   --------------------------------------------------------------------------- */
@media (max-width: 899px) {
  :root { --pills-h: 64px; }
  .pills {
    display: flex;
    gap: 8px;
    align-items: center;
    height: var(--pills-h);
    padding: 9px 14px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .pills::-webkit-scrollbar { display: none; }
}
.pills .chips { flex-wrap: nowrap; }
.pills .chip { flex: 0 0 auto; white-space: nowrap; }

.reel { display: none; }
@media (max-width: 899px) {
  .reel {
    display: block;
    /* The screen height minus the header (and its 1px line), the stream pills
       and the tab bar (and the phone's home-bar area), so the whole video and
       its buttons sit on screen without the page itself scrolling. */
    height: calc(100vh - var(--header-h) - 1px - var(--pills-h) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px));
    height: calc(100svh - var(--header-h) - 1px - var(--pills-h) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px));
    min-height: 340px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    background: var(--screen);
  }
}
.slide { position: relative; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: var(--screen); color: var(--white); }
.slide > .player { position: absolute; inset: 0; }
.slide :focus-visible { outline-color: var(--white); }
.slide .tile__info { padding: 72px 84px 18px 16px; }
.slide__desc { margin: 6px 0 0; color: var(--on-screen); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide__tags { margin: 6px 0 0; color: var(--white); font-size: 0.9375rem; font-weight: 600; }
.slide__disclaimer { margin: 6px 0 0; color: var(--on-screen-muted); font-size: 0.8125rem; font-style: italic; }
/* Shorter phone screens: the slide measures itself, so the Play button, the
   content notice and the name tag never sit on top of each other. The note
   and description stay in the More sheet. */
.slide { container-type: size; }
@container (max-height: 580px) {
  .slide .poster { padding-top: 16px; gap: 8px; }
  .slide .poster__source { display: none; }
  .slide .poster__notice { padding: 8px 12px; font-size: 0.8125rem; }
  .slide .play-button { width: 64px; height: 64px; }
  .slide .play-button .icon { width: 26px; height: 26px; margin-left: 4px; }
  .slide .tile__info { padding-top: 36px; }
  .slide .slide__desc { -webkit-line-clamp: 1; }
}
@container (max-height: 470px) {
  .slide .slide__desc, .slide .slide__disclaimer { display: none; }
  .slide .tile__title { margin-top: 8px; font-size: 1rem; }
  .slide .rail { gap: 6px; bottom: 12px; }
  .slide .rail-circle { width: 40px; height: 40px; }
  .slide .rail-button .icon { width: 19px; height: 19px; }
}
/* Very short (a phone turned sideways): round buttons only; their names stay
   for screen readers and show as tooltips. */
@container (max-height: 380px) {
  .slide .rail { gap: 8px; bottom: 10px; }
  .slide .rail-button > span:not(.rail-circle) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .slide .tile__info { padding-top: 24px; padding-bottom: 12px; }
  .slide .label-pill { display: none; }
}

.rail { position: absolute; right: 12px; bottom: 18px; z-index: 3; display: grid; gap: 12px; justify-items: center; }
.is-playing .rail { top: 50%; bottom: auto; transform: translateY(-50%); }
.rail-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.rail-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(21, 23, 42, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.rail-button:hover .rail-circle { background: rgba(47, 57, 102, 0.95); }
.rail-button .icon { width: 22px; height: 22px; }
.heart-button[aria-pressed="true"] .icon { fill: var(--heart); stroke: var(--heart); }
.fav-button[aria-pressed="true"] .icon { fill: #E0A458; stroke: #E0A458; }
.heart-count { font-size: 0.75rem; }
.reel-end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 24px; scroll-snap-align: start; background: var(--screen); color: var(--on-screen); text-align: center; }
.reel-end h2 { color: var(--white); }
.reel-end p { color: var(--on-screen-muted); }

/* Tabs (kept for any page that uses them) */
[role="tablist"] { display: flex; gap: 2px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--line); }
[role="tab"] { min-height: 48px; padding: 12px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
[role="tab"][aria-selected="true"] { border-bottom-color: var(--pink); color: var(--navy); }

/* Dialogs: a bottom sheet on phones */
.sheet { width: min(600px, calc(100% - 32px)); max-height: 86vh; padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: rgba(15, 16, 30, 0.6); }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 16px 14px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet__head::before { content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--line-strong); }
.sheet__head h2 { min-width: 0; margin: 0; font-size: 1.6rem; }
.sheet__body { padding: 18px 24px 26px; }
.sheet__body > :last-child { margin-bottom: 0; }
.close-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.close-button:hover { background: var(--surface-3); }
@media (max-width: 899px) {
  .sheet { width: 100%; max-width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .sheet__head { padding-left: 18px; }
  .sheet__body { padding: 16px 18px 24px; }
}

/* ---------------------------------------------------------------------------
   Portals (contributor and team)
   --------------------------------------------------------------------------- */
.app { display: grid; gap: 24px; }
.app > * { min-width: 0; }
@media (min-width: 900px) {
  .app { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .side-nav { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
}
.side-nav ul { list-style: none; display: grid; gap: 2px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--soft); }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.side-nav a:hover { background: var(--surface); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--pink); }
.count { min-width: 1.75em; padding: 0 7px; border-radius: var(--radius-pill); background: var(--pink); color: var(--white); font-size: 0.8125rem; line-height: 1.6; text-align: center; }
@media (max-width: 899px) {
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; }
  .side-nav a { border: 1px solid var(--line); background: var(--surface); }
}
.app__main > h1 { margin-bottom: 0.3em; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0 20px; }
.toolbar .field { min-width: min(100%, 15rem); }

.records { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.record { display: grid; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.record > * { min-width: 0; margin: 0; }
.record__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.record__head > * { min-width: 0; }
.record__head h2, .record__head h3, .record__head h4 { margin: 0; color: var(--ink); font-family: var(--font-sans); font-style: normal; font-size: 1.0625rem; }
.record__head h2 a, .record__head h3 a, .record__head h4 a { color: var(--ink); }
.record__head h2 a:hover, .record__head h4 a:hover { color: var(--navy); }
.record__meta { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.record--unread { border-left: 4px solid var(--pink); }
.record .callout { padding: 12px 14px; }

.preview { max-width: 420px; }
.preview .player { border-radius: var(--radius); }
.preview .player--horizontal { aspect-ratio: 16 / 9; }
.preview .player--vertical { aspect-ratio: 9 / 16; max-height: 70vh; }

.history { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.history li { padding: 2px 0 2px 14px; border-left: 3px solid var(--line-strong); }
.history p { margin: 0; }

.stats { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.stat { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.stat__number { color: var(--navy); font-family: var(--font-display); font-style: italic; font-size: 2.25rem; font-weight: 700; line-height: 1.1; }
.stat a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Reflections (feelings and a private note)
   --------------------------------------------------------------------------- */
.feelings { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); margin-bottom: 12px; }
.feelings .feeling { padding: 8px 2px; font-size: 0.75rem; }
.feeling {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}
.feeling:hover { border-color: var(--line-strong); }
.feeling:active { transform: scale(0.98); }
.feeling[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-50); color: var(--navy); }
.feeling__emoji { font-size: 1.375rem; line-height: 1; }
.stage__side .feeling { border-color: var(--beige-line); }
.stage__side .feeling[aria-pressed="true"] { border-color: var(--navy); }

.stage__center--empty { justify-content: flex-start; }
.stage__center--empty .empty { width: 100%; max-width: 520px; margin-top: 24px; }

/* ---------------------------------------------------------------------------
   Tall, reel-shaped video cards
   --------------------------------------------------------------------------- */
.tiles { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.vtile { min-width: 0; }
.vtile__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ombre);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vtile__link:hover { color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vtile__link:focus-visible { outline-offset: 3px; }
.vtile--1 { background: linear-gradient(160deg, #2A2F55 0%, #5B3A7A 60%, #C63A70 100%); }
.vtile--2 { background: linear-gradient(160deg, #232B4D 0%, #3E4F86 55%, #8E3A78 100%); }
.vtile--3 { background: linear-gradient(160deg, #3A2547 0%, #6E3B6E 55%, #D2577F 100%); }
.vtile--4 { background: linear-gradient(160deg, #1E2A44 0%, #2F5A6E 55%, #5B3A7A 100%); }
.vtile--5 { background: linear-gradient(160deg, #2B2140 0%, #4B2B5E 50%, #A93F6E 100%); }
.vtile__pill {
  position: absolute;
  top: 12px; left: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 16, 30, 0.72);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vtile__play {
  position: absolute;
  top: 45%; left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.vtile__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.vtile__text { position: relative; display: grid; gap: 4px; padding: 56px 16px 16px; background: linear-gradient(to top, rgba(12, 13, 26, 0.9) 0%, rgba(12, 13, 26, 0) 100%); }
.vtile__title { color: var(--white); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vtile__by { color: var(--on-screen-muted); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtile .actions { margin-top: 8px; }

/* ---------------------------------------------------------------------------
   Discover (Explore)
   --------------------------------------------------------------------------- */
.discover { display: grid; gap: 32px; max-width: 1440px; margin: 0 auto; padding: 40px 24px 72px; }
.discover > * { min-width: 0; }
@media (min-width: 1000px) {
  .discover { grid-template-columns: minmax(0, 1fr) 380px; padding-top: 48px; }
  .discover__side { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}
@media (max-width: 599px) { .discover { padding: 24px 16px 48px; } }
.discover__main h1 { margin-bottom: 8px; font-size: clamp(2rem, 4.6vw, 2.9rem); }
.discover__main .search { margin-top: 22px; }
.discover__side { padding: 26px; border: 1px solid var(--beige-line); border-radius: var(--radius-xl); background: var(--beige); }
.discover__side h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; }
.discover__side .chip { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; border-color: var(--beige-line); }
.discover__side .section-label { margin-top: 22px; }
.stream-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.stream-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.stream-list a:hover { border-color: var(--navy); color: var(--navy); }
.stream-list a[aria-current="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip--feeling { border-style: dashed; }
.results-block { margin-top: 26px; }

/* Tips from contributors */
.tips { list-style: none; display: grid; gap: 8px; margin: 0 0 8px; padding: 0; }
.tips li { position: relative; padding: 12px 14px 12px 38px; border: 1px solid var(--beige-line); border-radius: 12px; background: var(--surface); }
.tips li::before { content: ""; position: absolute; left: 14px; top: 1.05em; width: 12px; height: 12px; border-radius: 50%; background: var(--ombre-button); }

/* Your space */
.space-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.reflection-feelings { display: flex; flex-wrap: wrap; gap: 6px; }
.reflection-feelings span { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy); font-size: 0.8125rem; font-weight: 700; }
.reflection-note { white-space: pre-wrap; }

/* Contributor profile (laid out like the owner's design, October 13, 2026) */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 18px; padding: 0; color: var(--muted); font-size: 0.9375rem; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.phero { display: grid; gap: 28px; align-items: start; padding: 30px 24px; border: 1px solid var(--beige-line); border-radius: var(--radius-xl); background: var(--beige); }
.phero__main { min-width: 0; }
.phero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.06; overflow-wrap: anywhere; }
.phero h1 em { color: var(--pink); }
.phero h1 .verified { width: 26px; height: 26px; margin-left: 10px; vertical-align: middle; }
.phero__status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; margin: 0 0 16px; padding: 6px 14px 6px 12px; border: 1px solid var(--beige-line); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font-size: 0.875rem; font-weight: 700; }
.phero__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(198, 58, 112, 0.18); }
.phero__where { padding-left: 10px; border-left: 1px solid var(--beige-line); color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.phero__tagline { max-width: 36rem; margin: 0 0 22px; color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.1875rem; line-height: 1.5; overflow-wrap: anywhere; }
.phero__side { display: grid; gap: 14px; width: 100%; max-width: 230px; justify-self: center; }
.portrait { position: relative; }
.portrait .avatar-holder { display: block; }
.avatar--portrait { display: flex; width: 100%; height: auto; aspect-ratio: 4 / 5; border: 0; border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--peach) 0%, #F7E3D8 50%, var(--peach-2) 100%); font-family: var(--font-display); font-style: italic; font-size: 3.5rem; box-shadow: var(--shadow); }
.avatar--portrait img { border-radius: var(--radius-lg); }
.portrait__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.95); color: var(--navy); font-size: 0.8125rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.portrait__badge .icon { width: 16px; height: 16px; color: var(--sage); }
.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--white); }
.pstats > div { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; padding: 12px 6px; text-align: center; }
.pstats > div + div { border-left: 1px solid var(--beige-line); }
.pstats dd { margin: 0; color: var(--navy); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3125rem; line-height: 1.15; overflow-wrap: anywhere; }
.pstats dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 860px) {
  .phero { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; padding: 44px 48px; }
  .phero__side { max-width: 240px; justify-self: end; }
}
.button--ghost { background: transparent; color: var(--navy); border: 1.5px solid transparent; box-shadow: none; }
.button--ghost:hover { background: rgba(255, 255, 255, 0.75); color: var(--navy); border-color: var(--beige-line); box-shadow: none; }

#profile-more .owner-tools { margin-top: 22px; }
.pnote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 28px 0 0; padding: 18px 4px; border-top: 1px solid var(--beige-line); border-bottom: 1px solid var(--beige-line); }
.pnote__label { margin: 0; color: var(--pink-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pnote__body { flex: 1 1 280px; min-width: 0; margin: 0; color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.125rem; }
.pinfo { display: grid; gap: 36px; margin-top: 40px; }
.pinfo > section { min-width: 0; }
@media (min-width: 860px) { .pinfo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }
.pnum { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; color: var(--muted); font-family: inherit; font-style: normal; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pnum span { color: var(--pink-text); font-family: var(--font-display); font-style: italic; font-size: 1.125rem; letter-spacing: 0; text-transform: none; }
.pinfo__copy p { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.65; overflow-wrap: anywhere; }
.ptags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.ptags li { max-width: 100%; padding: 6px 14px; border: 1px solid var(--beige-line); border-radius: var(--radius-pill); background: var(--beige); color: var(--navy); font-size: 0.875rem; font-weight: 600; overflow-wrap: anywhere; }
.pcreds { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.pcred { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.pcred > div { min-width: 0; }
.pcred__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--beige); color: var(--pink); }
.pcred__name { margin: 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.pcred__issuer { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; }
.pcred__verified { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--sage-text); font-size: 0.8125rem; font-weight: 700; }
.pcred__verified .icon { width: 16px; height: 16px; }

.pvideos__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.pvideos__head > div { flex: 1 1 320px; min-width: 0; }
.pvideos__head h2 { margin: 0 0 6px; font-size: clamp(1.9rem, 4vw, 2.4rem); }
.pvideos__head .lede { margin: 0; }
.pvideos__count { margin: 0; color: var(--muted); font-weight: 700; }
.pfeatured { display: grid; gap: 22px; margin-bottom: 28px; padding: 22px; border: 1px solid var(--beige-line); border-radius: var(--radius-xl); background: var(--beige); box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .pfeatured { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px; } .pfeatured__thumb { max-width: 220px; } }
.pfeatured__thumb { position: relative; display: block; width: 100%; max-width: 200px; aspect-ratio: 9 / 14; border-radius: 22px; color: var(--white); text-decoration: none; box-shadow: var(--shadow); }
.pfeatured__thumb:hover { color: var(--white); }
.pfeatured__thumb:focus-visible { outline-offset: 3px; }
.pfeatured__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--white); color: var(--pink-text); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pfeatured__pill { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 4px 10px; overflow: hidden; border-radius: var(--radius-pill); background: rgba(15, 16, 30, 0.72); color: var(--white); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.pfeatured__body { min-width: 0; }
.pfeatured__title { margin: 0 0 10px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.85rem); overflow-wrap: anywhere; }
.pfeatured__copy { color: var(--muted); overflow-wrap: anywhere; }
.pfeatured__landed { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--pink); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--white); }
.pfeatured__landed-label { margin: 0 0 2px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pfeatured__landed-text { margin: 0; color: var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; }
.pfeatured .stats-line { margin: 12px 0 4px; }
.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.pfilters__label { margin: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pfilters__chips { flex: 1 1 300px; min-width: 0; }
.pfilters__sortbox { margin-left: auto; }
.pfilters__sort { width: auto; min-width: 11rem; }
.chip__count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; padding: 0 6px; border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy); font-size: 0.8125rem; }
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.pshelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .pshelf { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .pshelf { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ptoggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 22px 0 0; padding: 12px 18px; border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--beige); color: var(--navy); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ptoggle:hover { background: #F1E6DA; }
.ptoggle__count { margin-left: auto; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.ptoggle .icon { flex: 0 0 auto; width: 20px; height: 20px; }
.pcatalog { margin-top: 14px; }

.pfoot { display: grid; gap: 28px; margin-top: 56px; }
@media (min-width: 860px) { .pfoot { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.pcta { min-width: 0; padding: 34px 28px; border-radius: var(--radius-xl); background: var(--ombre); color: var(--white); box-shadow: var(--shadow); }
.pcta__kicker { margin: 0 0 8px; color: var(--peach); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pcta__title { margin: 0 0 12px; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.pcta__title em { color: var(--peach); }
.pcta p { max-width: 34rem; color: var(--on-screen); }
.pcta .pcta__fine { margin: 14px 0 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pcta :focus-visible { outline-color: var(--white); }
.prelated { min-width: 0; }
.prelated .section-label { font-family: inherit; font-style: normal; }
.prelated__list { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; padding: 0; }
.prelated__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.prelated__item:hover { border-color: var(--line-strong); background: var(--soft); color: var(--ink); }
.prelated__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--beige); color: var(--pink); }
.prelated__body { display: grid; flex: 1 1 auto; min-width: 0; }
.prelated__name { font-weight: 700; overflow-wrap: anywhere; }
.prelated__type { color: var(--muted); font-size: 0.875rem; }
.prelated__arrow { display: inline-flex; color: var(--muted); }
.pverify { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--beige); font-size: 0.9375rem; }
.pverify > div { min-width: 0; }
.pverify__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--white); }
.pverify__icon .icon { width: 16px; height: 16px; }
.pverify p { margin: 0; }
.pverify .pverify__title { margin: 0 0 4px; color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Owner's requests from testing (October 12, 2026)
   --------------------------------------------------------------------------- */

/* Views, watch time and hearts in one line */
.stats-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.stats-line li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.stats-line .icon { width: 18px; height: 18px; color: var(--pink-text); }
.stats-line--large { font-size: 1rem; color: var(--ink); }
.stats-line--large .icon { width: 20px; height: 20px; }
.stats-line--tile { margin-top: 8px; font-size: 0.8125rem; gap: 4px 12px; }
.stats-line--tile .icon { width: 15px; height: 15px; }
.tile__info .stats-line { color: var(--on-screen); font-size: 0.875rem; }
.tile__info .stats-line .icon { color: #F7B3CB; }
.stage__stats { margin: 4px 0 10px; }
.slide__stats { margin-top: 6px; }
.profile-stats { margin: 4px 0 14px; }
.summary-text { margin: 0 0 12px; }
@container (max-height: 580px) { .slide .slide__stats { display: none; } }

/* Feelings: totals for everyone */
.feeling__count { min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--navy); color: var(--white); font-size: 0.6875rem; font-weight: 700; line-height: 1.5; }
.feeling[aria-pressed="true"] .feeling__count { background: var(--pink); }
.feeling-summary { margin: 0 0 12px; color: var(--ink); font-size: 0.9375rem; }
.feeling-summary__lead { color: var(--muted); font-weight: 600; }
.feeling-summary__item { white-space: nowrap; }

/* A small red flag to report an external resource */
.res--reportable { padding-right: 56px; }
.res__report {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid #F4C7C2;
  border-radius: 50%;
  background: var(--error-bg);
  color: var(--error);
  cursor: pointer;
}
.res__report .icon { width: 17px; height: 17px; }
.res__report:hover { background: #FDE2DE; border-color: var(--error); }

/* Share dialog */
.share__link { font-size: 0.9375rem; }
.share__status { margin: 4px 0 0; min-height: 1.5em; color: var(--muted); font-size: 0.9375rem; }
.share__status--done { color: var(--sage-text); font-weight: 700; }

/* "Your video" and "Your profile" tools for contributors */
.owner-tools { margin: 6px 0 4px; padding: 14px 16px; border: 1.5px dashed var(--rose-line); border-radius: var(--radius); background: var(--surface); }
.owner-tools .section-label { margin-top: 0; }
.owner-tools .privacy-note { margin: 0 0 10px; }
.owner-tools .actions { gap: 8px; }

/* Photos */
.photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 6px 0 18px; }
.photo-row > div { min-width: 0; flex: 1 1 200px; }
.photo-row .label { margin: 0; }
.photo-row .hint { margin: 2px 0 8px; }
.photo-preview { display: flex; justify-content: center; margin: 4px 0 14px; }
.portal-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.portal-name h2 { min-width: 0; margin: 0; }

/* Deleting things: always behind a clearly marked, closed section */
.danger-zone { margin-top: 18px; padding: 14px 16px; border: 1px solid #F4C7C2; border-radius: var(--radius); background: var(--error-bg); }
.danger-zone > summary { display: flex; align-items: center; min-height: 44px; color: var(--error); font-weight: 700; cursor: pointer; }
.danger-zone[open] > summary { margin-bottom: 8px; }
.danger-zone p { margin: 0 0 12px; }
.danger-zone-plain { padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone-plain h2 { color: var(--error); }

/* Hashtags to pick for a video */
.hashtag-groups { display: grid; gap: 14px; }
.hashtag-group__title { margin: 0 0 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hashtag-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag-pick__item { position: relative; display: inline-flex; max-width: 100%; }
/* The (invisible) checkbox covers its pill, so a tap anywhere on it toggles it */
.hashtag-pick__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hashtag-pick {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid var(--field);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.hashtag-pick:hover { border-color: var(--navy); }
.hashtag-pick__input:checked + .hashtag-pick { border-color: var(--navy); background: var(--navy); color: var(--white); }
.hashtag-pick__input:focus-visible + .hashtag-pick { outline: 3px solid var(--focus); outline-offset: 2px; }
.hashtag-pick__input:disabled + .hashtag-pick { opacity: 0.6; cursor: not-allowed; }

/* Wide (horizontal) videos fill the middle column on computers */
.tile.tile--wide { flex: 1 1 auto; width: 100%; max-width: 960px; }
.tile--wide .tile__screen { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: 74vh; }
.tile--wide .poster { justify-content: center; padding-top: 20px; padding-bottom: 150px; }
.tile--wide .tile__info { padding-top: 40px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .tile--wide .tile__screen { max-height: 68vh; }
}

.record__title { margin: 0; font-family: var(--font-sans); font-style: normal; font-size: 1.0625rem; overflow-wrap: anywhere; }

/* Full screen: a button on the playing video (only where the browser allows it) */
.fs-button {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  max-width: calc(100% - 24px);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(21, 23, 42, 0.8);
  color: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.fs-button .icon { width: 18px; height: 18px; }
.fs-button:hover { background: rgba(47, 57, 102, 0.95); }
.fs-button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.is-playing .fs-button { display: inline-flex; }
/* In full screen only the video (and the way out) shows. The reel or stage
   holding it stays in place even if the screen turns and the layout changes. */
.reel:has(:fullscreen) { display: block; }
.stage:has(:fullscreen) { display: block; }
.slide:fullscreen { background: #000000; }
.slide:fullscreen .rail, .slide:fullscreen .tile__info { display: none; }
.tile__screen:fullscreen { border-radius: 0; background: #000000; }
.tile__screen:fullscreen .tile__info { display: none; }

/* Phones turned sideways: the stream pills and the tab bar step aside so the
   video gets the whole height under the header. Full screen gives the rest. */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  :root { --pills-h: 0px; }
  .pills { display: none; }
  .has-tabbar { --tabbar-h: 0px; }
  .has-tabbar .tabbar { display: none; }
  .reel { min-height: 0; }
}

/* Profile changes waiting for the team */
.waiting { margin: 10px 0 14px; border-left-color: var(--amber); background: var(--amber-50); }
.waiting__title { margin: 0 0 4px; color: var(--amber); font-weight: 700; }
.waiting p { margin: 0 0 8px; }
.waiting__list { list-style: none; display: grid; gap: 6px; margin: 0 0 10px; padding: 0; }
.waiting__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.waiting__label { font-weight: 700; }
.waiting__photo { display: inline-flex; }

/* Current and new details, side by side, for the team */
.compare { width: 100%; margin: 6px 0 14px; border-collapse: collapse; table-layout: fixed; font-size: 0.9375rem; }
.compare th, .compare td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.compare thead th { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tbody th { width: 28%; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Site content editor and previews (Update 008, October 13, 2026)
   --------------------------------------------------------------------------- */
.content-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.content-jump a { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--navy); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.content-jump a:hover { border-color: var(--line-strong); background: var(--soft); }
.content-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--beige-line); border-radius: var(--radius); background: var(--beige); }
.content-bar__text { margin: 0; }
.content-bar .actions { margin: 0; }
#page-list { margin-top: 16px; }
.content-filters { display: grid; gap: 0 16px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.content-row .record__head { align-items: flex-start; }
.content-row__text { margin: 0; flex: 1 1 260px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.content-row__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.content-edit { margin-top: 12px; padding: 16px; border: 1.5px dashed var(--rose-line); border-radius: var(--radius); background: var(--surface); }
.content-source { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--soft); }
.content-source .section-label { margin: 0 0 4px; }
.content-source__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.content-history { margin-top: 12px; }
.content-history:empty { display: none; }
.content-editor { margin-top: 18px; padding: 20px; border: 1px solid var(--beige-line); border-radius: var(--radius-lg); background: var(--beige); }
.content-editor .field { background: transparent; }
.page-sections { display: grid; gap: 12px; }
.page-section { min-width: 0; margin: 0; padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page-section legend { padding: 0 6px; font-weight: 700; color: var(--navy); }
.page-section .actions { margin-top: 0; gap: 8px; }
.page-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; margin-top: 14px; }
.page-add .field { flex: 1 1 240px; }
.page-add .button { margin-bottom: 18px; }
.content-preview { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.content-links { display: grid; gap: 8px; padding-left: 1.2em; }
.preview-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 760px; margin: 0 auto; padding: 12px 16px; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow-lg); }
.preview-bar p { flex: 1 1 260px; margin: 0; font-weight: 600; }
.preview-bar :focus-visible { outline-color: var(--white); }
