/* Fonts, served from this site (static/fonts/), not from Google. The DM Sans and DM Serif
   Display files are the ones the WordPress site served; Lexend is the project's own copy.
   "latin" covers English; "latin-ext" loads only on a page that uses other European letters. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/assets/fonts/dm-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/assets/fonts/dm-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-serif-display-normal-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-serif-display-normal-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/Lexend.ttf') format('truetype'); }

/*
  extra.css: what the WordPress theme used to supply around the shared stylesheet.
  site.css (copied from website-redesign/build/site.css at build time) holds the look;
  this file only adds the page frame for episode and phrase pages, the audio player,
  and the 404 page. Edit the look in site.css, not here.
*/
html { scroll-behavior: smooth; }
body { margin: 0; background: #F7F0E7; }
body.tea-s3-page { font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.7; color: #28211E; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; }
.tea-skip { position: absolute; left: -9999px; }
.tea-skip:focus { left: 12px; top: 12px; z-index: 10; background: #FFFDF9; padding: 8px 14px; border: 2px solid #7A4A2A; border-radius: 8px; }

/* Episode and phrase pages */
.tea-main { box-sizing: border-box; max-width: 800px; margin: 0 auto; padding: 44px 20px 72px; }
.tea-main *, .tea-main *::before, .tea-main *::after { box-sizing: border-box; }
body.tax-phrase .tea-main { max-width: 1080px; }
.tea-main .entry-title, .tea-main .page-title { margin: 0 0 10px; text-wrap: balance; }
.tea-main .entry-header { margin-bottom: 26px; }
.tea-main .entry-content p { margin: 0 0 1.2em; }
.tea-main .episode-answer-summary p { margin: 0 0 12px; }
.tea-main .episode-answer-summary__links { font-size: 16px; }
.tea-main iframe { max-width: 100%; }
.tea-main .teatime-email-signup { margin: 40px 0 0; }

.tea-player { background: #FFFDF9; border: 2px solid #7A4A2A; border-radius: 14px; padding: 16px 18px; margin: 0 0 32px; }
.tea-player audio { display: block; width: 100%; }
.tea-player p { font-family: 'Lexend', sans-serif; font-size: 14px; color: #5E5249; margin: 10px 0 0; }

.tea-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(122, 74, 42, 0.22); }
.tea-post-nav a { flex: 1; text-decoration: none; font-weight: 600; }
.tea-post-nav a span { display: block; font-family: 'Lexend', sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #5E5249; }
.tea-post-nav .tea-next { text-align: right; }

body.tax-phrase .ast-archive-description { max-width: 760px; margin-bottom: 36px; }
body.tax-phrase .ast-archive-description p { margin: 0; }
.tea-phrase-episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tea-phrase-episodes .entry-title { margin: 0 0 6px; }
.tea-phrase-episodes .ep-season-badge-inline { margin: 0 10px 6px 0; vertical-align: middle; }
.tea-phrase-episodes .entry-meta { font-family: 'Lexend', sans-serif; font-size: 14px; color: #5E5249; }
.tea-phrase-episodes p { margin: 10px 0 0; color: #5E5249; font-size: 16px; }

@media (max-width: 600px) { .tea-main { padding-top: 30px; } .tea-post-nav { flex-direction: column; } .tea-post-nav .tea-next { text-align: left; } }

/* The episode player's controls (static/player.js). Hidden until the script starts, so a
   browser without scripts shows its own player instead. */
.tea-pl-slot { min-height: 1px; }
.tea-pl { display: flex; align-items: center; gap: 8px; }
.tea-pl[hidden] { display: none; }
.tea-pl button, .tea-pl select { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 14px; color: #7A4A2A; background: #FFF4DE; border: 2px solid #7A4A2A; border-radius: 999px; height: 44px; min-width: 44px; padding: 0 10px; cursor: pointer; }
.tea-pl button:hover, .tea-pl select:hover { background: #7A4A2A; color: #fff; }
.tea-pl button:focus-visible, .tea-pl select:focus-visible, .tea-pl-seek:focus-visible { outline: 3px solid #C67A00; outline-offset: 2px; }
.tea-pl .tea-pl-play { background: #F5A623; color: #28211E; width: 48px; height: 48px; padding: 0; flex: none; }
.tea-pl .tea-pl-play svg { width: 20px; height: 20px; display: block; margin: 0 auto; fill: currentColor; }
.tea-pl .tea-pl-play .tea-pl-icon-pause, .tea-player.is-playing .tea-pl-play .tea-pl-icon-play { display: none; }
.tea-player.is-playing .tea-pl-play .tea-pl-icon-pause { display: block; }
.tea-pl-seek { flex: 1; min-width: 60px; height: 44px; margin: 0; accent-color: #C67A00; cursor: pointer; }
.tea-pl-time { font-family: 'Lexend', sans-serif; font-size: 13px; color: #5E5249; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tea-pl select { appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center; padding: 0 12px; }
.tea-pl.is-pinned { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFFDF9; border-top: 2px solid #7A4A2A; box-shadow: 0 -4px 14px rgba(40, 33, 30, 0.12); padding: 8px max(12px, calc((100vw - 760px) / 2)); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
body.tea-has-pinned-player { padding-bottom: 72px; }
@media (max-width: 600px) {
  .tea-pl { flex-wrap: wrap; gap: 6px; }
  .tea-pl-seek { order: 5; flex: 1 1 100%; height: 32px; }
  .tea-pl-time { flex: 1; min-width: 0; text-align: right; font-size: 12px; }
  .tea-pl button, .tea-pl select { padding: 0 8px; }
  body.tea-has-pinned-player { padding-bottom: 104px; }
}

/* Email sign-up box. static/signup.js sets its height so it never scrolls; on phones the
   form uses the box's side padding too, so it stays wide enough to read. */
@media (max-width: 480px) {
  .tea-s3 .tea-signup iframe, body.tea-s3-page .teatime-email-signup iframe { width: calc(100% + 44px); max-width: none; margin-left: -22px; margin-right: -22px; }
}
@media (max-width: 340px) {
  .tea-s3 .tea-signup, body.tea-s3-page .teatime-email-signup { margin-left: -8px; margin-right: -8px; }
}

/* A plain page (privacy policy) that opens with a paragraph, not a heading: keep it off the band above. */
.tea-s3 .tea-page-head + .tea-desk-band + main.tea-section > .tea-prose > p:first-child { margin-top: 30px; }
