/*
  tea-site-styles: shared Season 3 styles for tayvinbayless.com
  ------------------------------------------------------------
  Ships as the WPCode snippet "tea-site-styles" (migration step W1).

  SAFE NEXT TO THE OLD PAGES: every rule starts with .tea-s3, the wrapper class
  that only the new pages have. A page without <div class="tea-s3"> is not touched.

  Tokens and components: ../visual-design.md
  Fonts: DM Serif Display (headings), DM Sans (body), Lexend (labels).
  This file does not load the fonts. Locally fonts-local.css does; on the site
  they come from Google Fonts, as today (add Lexend to that link).
*/

.tea-s3 {
  --tea-wall: #F7F0E7;
  --tea-paper: #FFFDF9;
  --tea-ink: #28211E;
  --tea-ink-soft: #5E5249;
  --tea-gold: #F5A623;        /* fills only, never text on cream */
  --tea-gold-deep: #C67A00;   /* large accents, 24px and up */
  --tea-gold-text: #8A4F00;   /* links and small gold text */
  --tea-gold-wash: #FFF4DE;
  --tea-walnut: #7A4A2A;
  --tea-oak: #D0B48E;
  --tea-oak-edge: #AA7A4D;
  --tea-chalk: #335B46;
  --tea-chalk-yellow: #FFD66B;
  --tea-teal: #6EC4B7;
  --tea-coral: #F6886A;
  --tea-leaf: #91B170;
  --tea-denim: #6384A0;
  --tea-line: rgba(122, 74, 42, 0.22);
  --tea-shadow: 6px 6px 0 rgba(122, 74, 42, 0.15);
  --tea-serif: 'DM Serif Display', Georgia, serif;
  --tea-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tea-label: 'Lexend', 'DM Sans', system-ui, sans-serif;

  font-family: var(--tea-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tea-ink);
  background: var(--tea-wall);
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

/* Japanese pages (lang="ja" on the .tea-s3 wrapper, 2026-11-18): the Latin fonts have no
   Japanese letters, so name the system's Japanese fonts next, and give the text a little
   more line height. */
.tea-s3:lang(ja) {
  --tea-serif: 'DM Serif Display', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  --tea-sans: 'DM Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
  --tea-label: 'Lexend', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
  line-break: strict; word-break: normal; overflow-wrap: anywhere;
}
.tea-s3:lang(ja) p, .tea-s3:lang(ja) li { line-height: 1.85; }

/* ---------- base (only inside the wrapper) ---------- */
.tea-s3 *, .tea-s3 *::before, .tea-s3 *::after { box-sizing: border-box; }
.tea-s3 h1, .tea-s3 h2, .tea-s3 h3, .tea-s3 h4,
.tea-s3 p, .tea-s3 ul, .tea-s3 ol, .tea-s3 li, .tea-s3 figure, .tea-s3 blockquote { margin: 0; padding: 0; }
.tea-s3 img { max-width: 100%; height: auto; display: block; }
.tea-s3 a { color: var(--tea-gold-text); text-underline-offset: 3px; }
.tea-s3 a:hover { color: var(--tea-ink); }
.tea-s3 a:focus-visible, .tea-s3 summary:focus-visible { outline: 3px solid var(--tea-gold-deep); outline-offset: 3px; border-radius: 4px; }
.tea-s3 h1, .tea-s3 h2 { font-family: var(--tea-serif); font-weight: 400; line-height: 1.15; color: var(--tea-ink); text-wrap: balance; }
.tea-s3 h1 { font-size: clamp(38px, 6vw, 58px); }
.tea-s3 h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 0.5rem; }
.tea-s3 h3 { font-family: var(--tea-sans); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--tea-ink); }
.tea-s3 .tea-accent { color: var(--tea-gold-deep); }

/* ---------- layout ---------- */
.tea-s3 .tea-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tea-s3 .tea-wrap-narrow { max-width: 760px; }
.tea-s3 .tea-section { padding: 0 0 64px; }
.tea-s3 .tea-section-first { padding-top: 64px; }
.tea-s3 .tea-lead { color: var(--tea-ink-soft); max-width: 640px; }
.tea-s3 .tea-small { font-size: 15px; color: var(--tea-ink-soft); }
.tea-s3 .tea-center { text-align: center; }
.tea-s3 .tea-center .tea-lead { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
  .tea-s3 .tea-section { padding-bottom: 48px; }
  .tea-s3 .tea-section-first { padding-top: 48px; }
}

/* ---------- pills and buttons ---------- */
.tea-s3 .tea-pill {
  display: inline-block; font-family: var(--tea-label); font-weight: 600; font-size: 12px; line-height: 1.5;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: var(--tea-paper); border: 1.5px solid var(--tea-walnut); color: var(--tea-walnut);
}
.tea-s3 .tea-pill-gold { background: var(--tea-gold); border-color: var(--tea-gold); color: var(--tea-ink); }
.tea-s3 .tea-pill-teal { background: var(--tea-teal); border-color: var(--tea-teal); color: var(--tea-ink); }
.tea-s3 .tea-pill-leaf { background: var(--tea-leaf); border-color: var(--tea-leaf); color: var(--tea-ink); }
.tea-s3 .tea-pill-coral { background: var(--tea-coral); border-color: var(--tea-coral); color: var(--tea-ink); }

.tea-s3 .tea-btn {
  display: inline-block; font-family: var(--tea-sans); font-weight: 700; font-size: 16px; line-height: 1.3;
  text-decoration: none; text-align: center; padding: 14px 26px; border-radius: 6px; border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tea-s3 .tea-btn-gold { background: var(--tea-gold); color: var(--tea-ink); box-shadow: var(--tea-shadow); }
.tea-s3 .tea-btn-gold:hover { color: var(--tea-ink); transform: translate(2px, 2px); box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15); }
.tea-s3 .tea-btn-outline { border-color: var(--tea-walnut); color: var(--tea-walnut); background: transparent; }
.tea-s3 .tea-btn-outline:hover { background: var(--tea-walnut); color: #fff; }
.tea-s3 .tea-btn-small { padding: 8px 18px; font-size: 15px; box-shadow: none; }
.tea-s3 .tea-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .tea-s3 .tea-btn { transition: none; } }

/* ---------- top bar ---------- */
.tea-s3 .tea-nav { background: rgba(247, 240, 231, 0.96); border-bottom: 1px solid var(--tea-line); }
.tea-s3 .tea-nav .tea-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.tea-s3 .tea-logo { font-weight: 700; font-size: 18px; color: var(--tea-ink); text-decoration: none; white-space: nowrap; }
.tea-s3 .tea-logo span { color: var(--tea-gold-deep); }
.tea-s3 .tea-nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.tea-s3 .tea-nav-links a { color: var(--tea-ink-soft); text-decoration: none; padding: 6px 0; }
.tea-s3 .tea-nav-links a:hover, .tea-s3 .tea-nav-links a[aria-current="page"] { color: var(--tea-ink); }
.tea-s3 .tea-nav-links a[aria-current="page"] { border-bottom: 2px solid var(--tea-gold); }
.tea-s3 .tea-nav-links a.tea-btn { color: var(--tea-ink); padding: 8px 18px; border-bottom-width: 2px; }
@media (min-width: 761px) { .tea-s3 .tea-nav { position: sticky; top: 0; z-index: 10; } }
@media (max-width: 480px) {
  .tea-s3 .tea-logo { font-size: 17px; }
  .tea-s3 .tea-nav-links { gap: 16px; }
}

/* ---------- hero ---------- */
.tea-s3 .tea-hero { padding: 56px 0 0; }
.tea-s3 .tea-hero .tea-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; }
.tea-s3 .tea-hero h1 { margin: 14px 0 12px; }
.tea-s3 .tea-hero-sub { font-size: 20px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.tea-s3 .tea-hero .tea-buttons { margin: 24px 0 40px; }
.tea-s3 .tea-hero-art { align-self: end; }
.tea-s3 .tea-hero-art img { width: 100%; }
.tea-s3 .tea-desk-band { height: 18px; background: var(--tea-oak); border-top: 3px solid var(--tea-oak-edge); }
@media (max-width: 760px) {
  .tea-s3 .tea-hero { padding-top: 36px; }
  .tea-s3 .tea-hero .tea-wrap { grid-template-columns: 1fr; gap: 0; }
  .tea-s3 .tea-hero .tea-buttons { margin-bottom: 28px; }
  .tea-s3 .tea-hero .tea-buttons .tea-btn { flex: 1 1 100%; }
  .tea-s3 .tea-hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* option: on phones the art comes first, sitting on its own desk band */
@media (max-width: 760px) {
  .tea-s3 .tea-hero-art-first { padding-top: 16px; }
  .tea-s3 .tea-hero-art-first .tea-hero-art { order: -1; max-width: none; width: auto; margin: 0 -20px 28px; }
  .tea-s3 .tea-hero-art-first .tea-hero-art img { max-width: 420px; margin: 0 auto; }
  .tea-s3 .tea-hero-art-first .tea-hero-art::after { content: ""; display: block; height: 16px; background: var(--tea-oak); border-top: 3px solid var(--tea-oak-edge); }
  .tea-s3 .tea-hero-art-first > .tea-desk-band { display: none; }
  .tea-s3 .tea-hero-art-first .tea-buttons { margin-bottom: 36px; }
}

/* plain page header (policies, students) */
.tea-s3 .tea-page-head { padding: 48px 0 28px; }
.tea-s3 .tea-page-head h1 { font-size: clamp(34px, 5vw, 48px); margin: 12px 0 10px; }
.tea-s3 .tea-page-head-art .tea-wrap { display: grid; grid-template-columns: 1fr 190px; gap: 28px; align-items: end; }
.tea-s3 .tea-page-head-art { padding-bottom: 0; }
.tea-s3 .tea-page-head-art .tea-page-head-text { padding-bottom: 28px; }
@media (max-width: 640px) {
  .tea-s3 .tea-page-head-art .tea-wrap { grid-template-columns: 1fr 96px; gap: 12px; }
}

/* ---------- trust bar ---------- */
.tea-s3 .tea-trust { background: var(--tea-walnut); color: #fff; }
.tea-s3 .tea-trust .tea-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
.tea-s3 .tea-trust b { font-family: var(--tea-label); font-weight: 600; font-size: 18px; margin-right: 4px; }
@media (max-width: 600px) {
  .tea-s3 .tea-trust .tea-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .tea-s3 .tea-trust span { line-height: 1.35; }
  .tea-s3 .tea-trust b { display: block; margin: 0; }
}

/* ---------- bubble cards ---------- */
.tea-s3 .tea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.tea-s3 .tea-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .tea-s3 .tea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tea-s3 .tea-grid, .tea-s3 .tea-grid-2 { grid-template-columns: 1fr; gap: 18px; } }
.tea-s3 .tea-card {
  background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 14px;
  box-shadow: var(--tea-shadow); padding: 22px; position: relative;
}
.tea-s3 .tea-card h3 { margin: 6px 0; }
.tea-s3 .tea-card p { color: var(--tea-ink-soft); font-size: 16px; }
.tea-s3 .tea-card-num { font-family: var(--tea-label); font-weight: 600; color: var(--tea-gold-text); font-size: 14px; }
.tea-s3 .tea-sticker {
  width: 86px; height: 86px; border-radius: 50%; overflow: hidden; background: var(--tea-wall);
  border: 3px solid var(--tea-gold); float: right; margin: -6px -6px 6px 10px;
}
.tea-s3 .tea-sticker img { width: 150%; max-width: none; margin: -6% 0 0 -25%; }
/* raised cards: an icon (or sticker) sits on the top edge, text centered */
.tea-s3 .tea-grid-raised { gap: 70px 22px; margin-top: 84px; }
.tea-s3 .tea-grid-raised .tea-card { text-align: center; padding: 62px 22px 24px; }
.tea-s3 .tea-grid-raised .tea-pill { margin-bottom: 4px; }
.tea-s3 .tea-grid-raised .tea-sticker {
  float: none; position: absolute; top: -52px; left: 50%; transform: translateX(-50%); margin: 0;
  width: 104px; height: 104px; border-width: 4px; box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15);
}
@media (max-width: 600px) { .tea-s3 .tea-grid-raised { gap: 62px; margin-top: 76px; } }
.tea-s3 .tea-sticker-icon { display: grid; place-items: center; background: var(--tea-gold-wash); }
.tea-s3 .tea-sticker-icon img { width: 60%; max-width: none; margin: 0; }
.tea-s3 .tea-card-more { display: inline-block; margin-top: 14px; font-weight: 700; }

/* ---------- chalkboard panel ---------- */
.tea-s3 .tea-board {
  background: var(--tea-chalk); color: #F3F1EA; border: 14px solid var(--tea-walnut); border-radius: 8px;
  padding: 36px 32px; box-shadow: var(--tea-shadow);
}
.tea-s3 .tea-board h2 { color: #fff; font-family: var(--tea-label); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); }
.tea-s3 .tea-board h2 .tea-accent, .tea-s3 .tea-board b { color: var(--tea-chalk-yellow); }
.tea-s3 .tea-board ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; margin-top: 20px; }
.tea-s3 .tea-board li b { display: block; font-family: var(--tea-label); font-weight: 600; }
.tea-s3 .tea-board a { color: var(--tea-chalk-yellow); }
@media (max-width: 700px) {
  .tea-s3 .tea-board { padding: 26px 20px; border-width: 10px; }
  .tea-s3 .tea-board ul { grid-template-columns: 1fr; }
}

/* ---------- prices ---------- */
.tea-s3 .tea-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; align-items: stretch; }
@media (max-width: 800px) { .tea-s3 .tea-prices { grid-template-columns: 1fr; } }
.tea-s3 .tea-price { text-align: center; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; }
.tea-s3 .tea-price-featured { border-color: var(--tea-gold); border-width: 3px; }
.tea-s3 .tea-price-amount { font-family: var(--tea-serif); font-size: 56px; line-height: 1; margin: 12px 0 4px; }
.tea-s3 .tea-price-len { font-family: var(--tea-label); font-weight: 600; color: var(--tea-walnut); }
.tea-s3 .tea-price-note { font-size: 14px; color: var(--tea-ink-soft); }
.tea-s3 .tea-price p.tea-price-text { margin: 12px 0 20px; }
.tea-s3 .tea-price .tea-btn { margin-top: auto; }
.tea-s3 .tea-callout { margin-top: 28px; background: var(--tea-gold-wash); border: 2px dashed var(--tea-gold-deep); border-radius: 14px; padding: 20px 24px; }
.tea-s3 .tea-callout p { margin-top: 8px; }

/* ---------- page head on a chalkboard, with the host standing beside it ---------- */
.tea-s3 .tea-page-head-board { padding-bottom: 0; }
.tea-s3 .tea-page-head-board .tea-wrap { max-width: 960px; display: grid; grid-template-columns: 1fr 250px; grid-template-areas: "board host" "jump host"; column-gap: 0; align-items: end; }
.tea-s3 .tea-page-head-board .tea-board {
  grid-area: board; align-self: stretch;
  /* chalk dust: faint wiped patches, then the doodle in the top right corner */
  background-image:
    url(img/chalk-doodle-stage-1.svg),
    radial-gradient(ellipse 46% 30% at 22% 88%, rgba(243,241,234,.09), transparent 70%),
    radial-gradient(ellipse 34% 26% at 78% 30%, rgba(243,241,234,.07), transparent 70%),
    linear-gradient(100deg, transparent 0 38%, rgba(243,241,234,.045) 44% 52%, transparent 60%);
  background-repeat: no-repeat;
  background-position: right 22px top 20px, 0 0, 0 0, 0 0;
  background-size: 170px auto, auto, auto, auto;
}
.tea-s3 .tea-page-head-board .tea-board h1 { color: #fff; font-family: var(--tea-label); font-weight: 600; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.2; margin: 14px 0 14px; max-width: calc(100% - 180px); }
.tea-s3 .tea-page-head-board .tea-board h1 .tea-accent { color: var(--tea-chalk-yellow); white-space: nowrap; padding-bottom: 9px; background: url(img/chalk-underline.svg) no-repeat left bottom / 100% 11px; }
.tea-s3 .tea-page-head-board .tea-board .tea-lead { color: #F3F1EA; margin: 0; }
.tea-s3 .tea-page-head-board .tea-board-host { grid-area: host; width: 300px; max-width: none; height: auto; margin-left: -50px; position: relative; z-index: 1; }
.tea-s3 .tea-page-head-board .tea-jump { grid-area: jump; margin: 18px 0 24px; }
@media (max-width: 800px) {
  .tea-s3 .tea-page-head-board .tea-wrap { grid-template-columns: 1fr clamp(170px, 38vw, 270px); grid-template-areas: "board board" "jump host"; }
  .tea-s3 .tea-page-head-board .tea-board { background-position: right 12px top 12px, 0 0, 0 0, 0 0; background-size: 104px auto, auto, auto, auto; }
  .tea-s3 .tea-page-head-board .tea-board h1 { max-width: none; margin-top: 18px; }
  .tea-s3 .tea-page-head-board .tea-board-host { width: 100%; margin: clamp(-80px, -9vw, -38px) 0 0; }
  .tea-s3 .tea-page-head-board .tea-jump { margin: 14px 0 18px; align-self: center; }
}

/* ---------- numbered steps ---------- */
.tea-s3 .tea-steps { counter-reset: tea-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 28px 0; list-style: none; }
.tea-s3 .tea-steps li { counter-increment: tea-step; padding-top: 52px; position: relative; }
.tea-s3 .tea-steps li::before {
  content: counter(tea-step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tea-gold); font-family: var(--tea-label); font-weight: 600; display: grid; place-items: center;
}
.tea-s3 .tea-steps b { display: block; }
@media (max-width: 800px) {
  .tea-s3 .tea-steps { grid-template-columns: 1fr; gap: 18px; }
  .tea-s3 .tea-steps li { padding: 4px 0 0 56px; min-height: 40px; }
}

/* ---------- review quotes ---------- */
.tea-s3 .tea-quotes { columns: 2 320px; column-gap: 22px; margin-top: 28px; }
.tea-s3 .tea-quote { break-inside: avoid; margin-bottom: 22px; }
.tea-s3 .tea-quote p { color: var(--tea-ink); font-size: 17px; }
.tea-s3 .tea-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--tea-ink-soft); }
.tea-s3 .tea-quote cite b { color: var(--tea-ink); }
.tea-s3 .tea-byline { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.tea-s3 .tea-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid var(--tea-gold); flex: none; }

/* ---------- questions (details/summary) ---------- */
.tea-s3 .tea-faq details { border-bottom: 1px solid var(--tea-line); padding: 16px 0; }
.tea-s3 .tea-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.4; }
.tea-s3 .tea-faq details p { margin-top: 8px; color: var(--tea-ink-soft); max-width: 720px; }

/* ---------- closing call to action ---------- */
.tea-s3 .tea-cta { text-align: center; }
.tea-s3 .tea-cta img { width: 160px; margin: 0 auto 12px; }
.tea-s3 .tea-cta .tea-lead { margin: 0 auto 22px; }

/* ---------- plain text pages (policies, student page) ---------- */
.tea-s3 .tea-prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 84px; }
.tea-s3 .tea-prose h3 { margin: 22px 0 6px; }
.tea-s3 .tea-prose p { margin: 0 0 14px; }
.tea-s3 .tea-prose ul, .tea-s3 .tea-prose ol { margin: 0 0 14px; padding-left: 22px; }
.tea-s3 .tea-prose li { margin-bottom: 8px; }
.tea-s3 .tea-prose li::marker { color: var(--tea-gold-deep); }
.tea-s3 .tea-prose .tea-card { margin: 18px 0; }
.tea-s3 .tea-prose .tea-card p { color: var(--tea-ink); font-size: 17px; }
.tea-s3 .tea-prose .tea-card > :last-child { margin-bottom: 0; }
.tea-s3 .tea-rule { border: 0; border-top: 3px solid var(--tea-oak); margin: 0; }

/* jump menu */
.tea-s3 .tea-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; }
.tea-s3 .tea-jump b { margin-right: 4px; }
.tea-s3 .tea-jump a {
  text-decoration: none; background: var(--tea-paper); border: 1.5px solid var(--tea-walnut); color: var(--tea-walnut);
  border-radius: 999px; padding: 4px 14px; font-weight: 500;
}
.tea-s3 .tea-jump a:hover { background: var(--tea-walnut); color: #fff; }

/* tables: scroll inside their own box on small screens, never the page */
.tea-s3 .tea-table-box { overflow-x: auto; margin: 0 0 14px; border: 2px solid var(--tea-walnut); border-radius: 14px; background: var(--tea-paper); }
.tea-s3 .tea-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tea-s3 .tea-table th, .tea-s3 .tea-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--tea-line); vertical-align: top; }
.tea-s3 .tea-table th { font-family: var(--tea-label); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--tea-walnut); background: var(--tea-gold-wash); }
.tea-s3 .tea-table tr:last-child td { border-bottom: 0; }
.tea-s3 .tea-table td:first-child { font-weight: 700; }
.tea-s3 .tea-table th, .tea-s3 .tea-table td { overflow-wrap: normal; }
@media (max-width: 600px) { .tea-s3 .tea-table th, .tea-s3 .tea-table td { padding: 10px 12px; } }

/* ---------- band: a full-width tinted section with an icon on its top edge ---------- */
.tea-s3 .tea-band { background: var(--tea-gold-wash); border-top: 3px solid var(--tea-oak); border-bottom: 3px solid var(--tea-oak); margin: 52px 0 64px; padding: 0 0 56px; }
.tea-s3 .tea-band-head { text-align: center; margin-bottom: 40px; }
.tea-s3 .tea-band-head .tea-sticker { float: none; width: 104px; height: 104px; border-width: 4px; margin: -54px auto 16px; background: var(--tea-paper); box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15); }
.tea-s3 .tea-band-head h2 { margin-top: 10px; }
.tea-s3 .tea-band-head .tea-lead { margin: 0 auto; }
.tea-s3 .tea-band-head .tea-buttons { justify-content: center; margin-top: 20px; }
.tea-s3 .tea-band-sub { font-family: var(--tea-label); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--tea-walnut); text-align: center; }
.tea-s3 .tea-band .tea-grid { margin-top: 16px; }
.tea-s3 .tea-band .tea-more { text-align: center; }
@media (max-width: 600px) { .tea-s3 .tea-band { margin-bottom: 48px; padding-bottom: 44px; } }
.tea-s3 .tea-episode { display: flex; flex-direction: column; align-items: flex-start; }
.tea-s3 .tea-episode .tea-card-more { margin-top: auto; padding-top: 14px; }
.tea-s3 .tea-episode h3 { font-family: var(--tea-serif); font-weight: 400; font-size: 23px; line-height: 1.2; margin: 8px 0; }
.tea-s3 .tea-more { margin-top: 22px; font-weight: 700; }

/* ---------- home: about strip ---------- */
.tea-s3 .tea-about { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.tea-s3 .tea-about img { width: 150px; }
.tea-s3 .tea-about img.tea-about-photo { height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 4px solid var(--tea-gold); box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15); }
@media (max-width: 600px) {
  .tea-s3 .tea-about { grid-template-columns: 1fr; gap: 12px; }
  .tea-s3 .tea-about img { width: 120px; }
  .tea-s3 .tea-about img.tea-about-photo { height: 120px; }
}

/* ---------- email signup ---------- */
.tea-s3 .tea-signup { background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 14px; box-shadow: var(--tea-shadow); padding: 28px 22px 10px; text-align: center; }
.tea-s3 .tea-signup iframe { display: block; width: 100%; max-width: 560px; margin: 8px auto 0; border: 0; }

/* ---------- video frame ---------- */
.tea-s3 .tea-video { aspect-ratio: 16 / 9; width: 100%; max-width: 640px; background: var(--tea-ink); color: #F3F1EA; border: 6px solid var(--tea-walnut); border-radius: 8px; box-shadow: var(--tea-shadow); display: grid; place-items: center; text-align: center; padding: 20px; }
.tea-s3 .tea-video iframe, .tea-s3 .tea-video video { width: 100%; height: 100%; border: 0; }
.tea-s3 .tea-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
@media (max-width: 800px) { .tea-s3 .tea-split { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- footer ---------- */
.tea-s3 .tea-footer { background: var(--tea-ink); color: #D9CFC4; font-size: 15px; padding: 36px 0; }
.tea-s3 .tea-footer a { color: #F5D9A8; text-decoration: none; padding: 4px 0; display: inline-block; }
.tea-s3 .tea-footer a:hover { color: #fff; text-decoration: underline; }
.tea-s3 .tea-footer-row { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 10px; }
.tea-s3 .tea-footer-row:last-child { margin-bottom: 0; align-items: center; }

/* Language toggle (2026-11-18): two languages for now, English | 日本語, at the top right of a
   page head. Language names, not flags. When more languages arrive it becomes a menu. */
.tea-s3 .tea-lang-toggle { display: flex; width: fit-content; margin: 0 0 18px auto; padding: 3px; gap: 2px;
  background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 999px; }
.tea-s3 .tea-lang-toggle a { font-family: var(--tea-label); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 8px 14px; border-radius: 999px; color: var(--tea-walnut); text-decoration: none; }
.tea-s3 .tea-lang-toggle a:hover { background: var(--tea-gold-wash); color: var(--tea-ink); }
.tea-s3 .tea-lang-toggle a[aria-current="page"] { background: var(--tea-walnut); color: #fff; }

/* Home's "Latest episodes": WordPress's Query Loop output (ul.wp-block-post-template), with the
   season badge from the season-episode-badges snippet, laid out like .tea-episode cards. */
.tea-s3 .tea-latest .wp-block-post-template { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .tea-s3 .tea-latest .wp-block-post-template { grid-template-columns: 1fr; } }
.tea-s3 .tea-latest .wp-block-post { background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 14px; box-shadow: var(--tea-shadow); padding: 22px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.tea-s3 .tea-latest .ep-season-badge { display: inline-block; font-family: var(--tea-label); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--tea-walnut); color: var(--tea-walnut); background: transparent; }
.tea-s3 .tea-latest .wp-block-post-title { font-family: var(--tea-serif); font-weight: 400; font-size: 23px; line-height: 1.2; margin: 10px 0 8px; color: var(--tea-ink); }
.tea-s3 .tea-latest .wp-block-post-title a { color: inherit; text-decoration: none; }
.tea-s3 .tea-latest .wp-block-post-excerpt { display: flex; flex-direction: column; flex: 1; margin: 0; }
.tea-s3 .tea-latest .wp-block-post-excerpt__excerpt { color: var(--tea-ink-soft); font-size: 16px; margin: 0; }
.tea-s3 .tea-latest .wp-block-post-excerpt__more-text { margin: auto 0 0; padding-top: 14px; }
.tea-s3 .tea-latest .wp-block-post-excerpt__more-link { font-weight: 700; }

/* The sign-up box from the Brevo snippet (#455), in the new look on any page. */
.tea-s3 .teatime-email-signup, body.tea-s3-page .teatime-email-signup { background: var(--tea-paper, #FFFDF9); border: 2px solid #7A4A2A; border-radius: 14px; box-shadow: 6px 6px 0 rgba(122, 74, 42, 0.15); padding: 28px 22px 10px; text-align: center; }
.tea-s3 .teatime-email-signup h2, body.tea-s3-page .teatime-email-signup h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: #28211E; }
.tea-s3 .teatime-email-signup > p, body.tea-s3-page .teatime-email-signup > p { color: #5E5249; font-family: 'DM Sans', system-ui, sans-serif; font-size: 17px; }
.tea-s3 .teatime-email-signup iframe, body.tea-s3-page .teatime-email-signup iframe { background: transparent; border: 0; }

/* Quick facts under a page head (About): small chips in a row. */
.tea-s3 .tea-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; }
.tea-s3 .tea-facts span { font-family: var(--tea-label); font-size: 14px; background: var(--tea-paper); border: 1px solid var(--tea-line); border-radius: 999px; padding: 6px 12px; }

/* A whole card that is a link (Connect). */
.tea-s3 a.tea-link-card { display: block; color: var(--tea-ink); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.tea-s3 a.tea-link-card:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15); }
.tea-s3 a.tea-link-card h3 { margin-top: 10px; }

/* Episodes: the catalog from the server-rendered catalog snippet (#508), restyled. Its own
   inline styles are plain class selectors; these win because they start with .tea-s3. */
.tea-s3 .tea-catalog { padding-top: 32px; }
.tea-s3 .tea-episode-catalog { background: transparent; padding: 0; }
.tea-s3 .tea-episode-catalog__controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tea-s3 .tea-episode-catalog__controls a { background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 999px; color: var(--tea-walnut); font: 600 15px var(--tea-label); padding: 8px 18px; text-decoration: none; }
.tea-s3 .tea-episode-catalog__controls a:hover { background: var(--tea-gold-wash); color: var(--tea-ink); }
.tea-s3 .tea-episode-catalog__controls a[aria-current="page"] { background: var(--tea-walnut); border-color: var(--tea-walnut); color: #fff; }
.tea-s3 .tea-episode-catalog__controls .tea-episode-catalog__sort { margin-left: auto; border-style: dashed; }
.tea-s3 .tea-episode-catalog__intro { color: var(--tea-ink-soft); margin: 0 0 18px; font-family: var(--tea-label); font-size: 14px; }
.tea-s3 .tea-episode-catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tea-s3 .tea-episode-card { background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 14px; box-shadow: var(--tea-shadow); min-height: 0; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.tea-s3 .tea-episode-card__badge { display: inline-block; font: 600 12px var(--tea-label); letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--tea-walnut); color: var(--tea-walnut); margin: 0 0 10px; }
.tea-s3 .tea-episode-card h3 { font: 400 23px/1.2 var(--tea-serif); margin: 0 0 8px; }
.tea-s3 .tea-episode-card h3 a { color: var(--tea-ink); text-decoration: none; }
.tea-s3 .tea-episode-card p { color: var(--tea-ink-soft); flex: 1; margin: 0 0 14px; font-size: 16px; }
.tea-s3 .tea-episode-card__listen { background: none; padding: 0; border-radius: 0; color: var(--tea-gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tea-s3 .tea-episode-catalog__pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tea-s3 .tea-episode-catalog__pager a { min-width: 40px; text-align: center; border: 2px solid var(--tea-walnut); border-radius: 999px; color: var(--tea-walnut); font: 600 15px var(--tea-label); padding: 6px 10px; text-decoration: none; }
.tea-s3 .tea-episode-catalog__pager a[aria-current="page"] { background: var(--tea-walnut); color: #fff; }
@media (max-width: 900px) { .tea-s3 .tea-episode-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tea-s3 .tea-episode-catalog__grid { grid-template-columns: 1fr; } .tea-s3 .tea-episode-catalog__controls .tea-episode-catalog__sort { margin-left: 0; } }

/* Phrases: the glossary from [tea_glossary] (phrase-page-display snippet, #347) and its search. */
.tea-s3 .tea-glossary { padding-top: 32px; }
.tea-s3 .tea-search input { width: 100%; max-width: 560px; font: 16px var(--tea-sans); color: var(--tea-ink); background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 999px; padding: 12px 20px; box-sizing: border-box; }
.tea-s3 .tea-search input:focus { outline: 3px solid var(--tea-gold); outline-offset: 2px; }
.tea-s3 .glossary-no-results { color: var(--tea-ink-soft); margin: 14px 0 0; }
.tea-s3 .glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.tea-s3 .glossary-card { display: block; background: var(--tea-paper); border: 2px solid var(--tea-walnut); border-radius: 14px; box-shadow: var(--tea-shadow); padding: 20px 22px; color: var(--tea-ink); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.tea-s3 .glossary-card:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 rgba(122, 74, 42, 0.15); }
.tea-s3 .glossary-term { font: 400 22px/1.2 var(--tea-serif); color: var(--tea-ink); margin-bottom: 10px; }
.tea-s3 .glossary-def, .tea-s3 .glossary-example { font-size: 15px; color: var(--tea-ink-soft); margin-bottom: 8px; }
.tea-s3 .glossary-label { font: 600 12px var(--tea-label); letter-spacing: 0.5px; text-transform: uppercase; color: var(--tea-walnut); margin-right: 4px; }
.tea-s3 .glossary-meta { font: 600 13px var(--tea-label); color: var(--tea-gold-text); margin-top: 6px; }
@media (max-width: 900px) { .tea-s3 .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tea-s3 .glossary-grid { grid-template-columns: 1fr; } }
.tea-s3 .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Episode pages (single podcast) and phrase pages (phrase archive) come from the theme plus the
   episode-display (#502) and phrase-page-display (#347) snippets, outside any .tea-s3 wrapper.
   body.tea-s3-page is on every page since Stage E1, so these give them the same look. */
body.tea-s3-page.single-podcast, body.tea-s3-page.tax-phrase { font-family: 'DM Sans', system-ui, sans-serif; color: #28211E; background: #F7F0E7; }
body.tea-s3-page.single-podcast .site-content, body.tea-s3-page.tax-phrase .site-content,
body.tea-s3-page.single-podcast .ast-article-single, body.tea-s3-page.single-podcast #primary { background: transparent; }
body.tea-s3-page.single-podcast a, body.tea-s3-page.tax-phrase a { color: #8A4F00; }
body.tea-s3-page.single-podcast .entry-title, body.tea-s3-page.tax-phrase .page-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: #28211E; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
body.tea-s3-page.single-podcast .entry-meta { font-family: 'Lexend', sans-serif; font-size: 14px; color: #5E5249; }
body.tea-s3-page.single-podcast .entry-content { font-size: 18px; line-height: 1.75; }
body.tea-s3-page.single-podcast .entry-content h2, body.tea-s3-page.single-podcast .entry-content h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: #28211E; }
body.tea-s3-page .episode-answer-summary { background: #FFFDF9; border: 2px solid #7A4A2A; border-radius: 14px; box-shadow: 6px 6px 0 rgba(122, 74, 42, 0.15); padding: 22px 24px; margin: 0 0 32px; }
body.tea-s3-page .episode-answer-summary h2 { font-size: 26px; margin: 0 0 10px; }
body.tea-s3-page .ep-phrase-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
body.tea-s3-page .ep-phrase-label { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; color: #7A4A2A; }
body.tea-s3-page a.ep-phrase-link { display: inline-block; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 14px; color: #7A4A2A; background: #FFF4DE; border: 2px solid #7A4A2A; border-radius: 999px; padding: 4px 12px; text-decoration: none; }
body.tea-s3-page a.ep-phrase-link:hover { background: #7A4A2A; color: #fff; }
body.tea-s3-page .episode-transcript { max-width: 760px; }
body.tea-s3-page .ep-season-badge, body.tea-s3-page .ep-season-badge-inline { display: inline-block; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #7A4A2A; border: 2px solid #7A4A2A; border-radius: 999px; padding: 3px 10px; background: transparent; }
body.tea-s3-page.tax-phrase .phrase-back-link { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 14px; }
body.tea-s3-page .phrase-definition-box { background: #FFFDF9; border: 2px solid #7A4A2A; border-radius: 14px; box-shadow: 6px 6px 0 rgba(122, 74, 42, 0.15); padding: 22px 24px; margin: 18px 0 24px; font-size: 18px; line-height: 1.7; }
body.tea-s3-page .phrase-label { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: #7A4A2A; margin-right: 6px; }
body.tea-s3-page .phrase-story-cta { background: #FFF4DE; border: 2px dashed #C67A00; border-radius: 14px; padding: 18px 22px; margin: 0 0 28px; }
body.tea-s3-page.tax-phrase .ast-article-post .ast-article-inner { background: #FFFDF9; border: 2px solid #7A4A2A; border-radius: 14px; box-shadow: 6px 6px 0 rgba(122, 74, 42, 0.15); padding: 20px 22px; }
body.tea-s3-page.tax-phrase .ast-article-post .entry-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.2; }
body.tea-s3-page.tax-phrase .ast-article-post .entry-title a { color: #28211E; text-decoration: none; }

/* Real photos (About, 2026-11-18): the portrait in a circle, and two family photos side by side. */
.tea-s3 .tea-about img.tea-about-photo { object-position: 50% 28%; }
.tea-s3 .tea-photos { display: grid; grid-template-columns: 0.72fr 1fr; gap: 16px; margin: 8px 0 24px; }
.tea-s3 .tea-photos img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border: 3px solid var(--tea-walnut); border-radius: 14px; box-shadow: var(--tea-shadow); }
@media (max-width: 600px) { .tea-s3 .tea-photos { grid-template-columns: 1fr; } .tea-s3 .tea-photos img { max-height: none; } }
/* "All Phrases" at the end of the catalog's buttons: a link to the phrases page, not a filter,
   so it is filled gold with an arrow (2026-11-18). */
.tea-s3 .tea-episode-catalog__controls .tea-episode-catalog__phrases { background: var(--tea-gold); border-color: var(--tea-gold); color: var(--tea-ink); }
.tea-s3 .tea-episode-catalog__controls .tea-episode-catalog__phrases::after { content: " \2192"; }
.tea-s3 .tea-episode-catalog__controls .tea-episode-catalog__phrases:hover { background: var(--tea-gold-wash); border-color: var(--tea-walnut); }

/* TV and book guides (W14, 2026-11-19; scripts/wordpress/publish_guides.py): the guide's Markdown in
   the site's look. Tables scroll sideways on a phone instead of squeezing; the first column is the
   phrase, on a gold wash, as in the printed guides. */
.tea-s3 .tea-guide h1 { font-size: clamp(30px, 4.6vw, 42px); margin: 0 0 12px; }
.tea-s3 .tea-guide h2 { border-top: 3px solid var(--tea-gold); }
.tea-s3 .tea-guide hr { border: 0; border-top: 1px solid var(--tea-line); margin: 28px 0; }
.tea-s3 .tea-table-wrap { overflow-x: auto; margin: 10px 0 18px; -webkit-overflow-scrolling: touch; }
.tea-s3 .tea-guide table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: var(--tea-paper); }
.tea-s3 .tea-guide th, .tea-s3 .tea-guide td { border: 1px solid var(--tea-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.tea-s3 .tea-guide th { background: var(--tea-wall); color: var(--tea-ink-soft); font-weight: 600; }
.tea-s3 .tea-guide td:first-child { background: var(--tea-gold-wash); font-weight: 600; }
.tea-s3 .tea-guide blockquote { margin: 12px 0; padding: 8px 16px; background: var(--tea-paper); border-left: 4px solid var(--tea-gold); border-radius: 4px; }
.tea-s3 .tea-guide-figure { margin: 14px 0 20px; border: 1px solid var(--tea-line); border-radius: 8px; overflow: hidden; background: #fff; }
.tea-s3 .tea-guide-figure img { display: block; width: 100%; height: auto; }
.tea-s3 .tea-guide-download { margin: 18px 0; }
.tea-s3 .tea-guide-list { columns: 2 180px; }
