:root {
  color-scheme: light;
  --paper: #e9f0ec;
  --surface: #fbfcfa;
  --ink: #202c27;
  --muted: #4f5f56;
  --line: #d3ded8;
  --forest: #173c31;
  --forest-soft: #e1ebe5;
  --rust: #a6432e;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration-color: #a9b7ae; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9f4a31; outline-offset: 3px; }
::selection { color: #fff; background: #31584a; }
.topbar { position: sticky; top: 0; z-index: 5; min-height: 78px; display: flex; align-items: center; gap: 36px; padding: 0 clamp(18px, 4vw, 62px); background: var(--forest); border-bottom: 1px solid #31574a; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #a7c1b2; border-radius: 50%; color: #eff6f1; font: 22px/1 Georgia, serif; }
.brand strong { display: block; color: #fff; font: 500 16px Georgia, serif; }
.brand small { display: block; margin-top: 4px; color: #d4e2d9; font-size: 11px; }
.primary-nav { display: flex; align-self: stretch; align-items: center; gap: 27px; }
.primary-nav a { display: grid; align-items: center; height: 100%; color: #d1ded7; font-size: 13px; text-decoration: none; position: relative; }
.primary-nav a[aria-current="page"] { color: #fff; font-weight: 650; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e6a35c; }
.search-box { margin-left: auto; display: flex; align-items: center; gap: 9px; width: min(350px, 32vw); padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.search-box svg { flex: 0 0 17px; width: 17px; fill: none; stroke: #59665e; stroke-width: 1.8; }
.search-box input { min-width: 0; width: 100%; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box:focus-within { border-color: #6b8577; box-shadow: 0 0 0 2px #e3ece7; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 11px/1.2 inherit; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1560px; min-height: calc(100vh - 142px); margin: auto; }
.sidebar { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 78px); overflow-y: auto; padding: 32px 22px 26px; border-right: 1px solid var(--line); background: #e7efeb; }
.side-label { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 4px; color: #46564d; font-size: 12px; text-decoration: none; }
.side-nav a:hover, .side-nav a[aria-current="page"] { color: var(--forest); background: #dce8e1; }
.side-nav span { color: var(--muted); font-variant-numeric: tabular-nums; }
.theme-filter { padding-top: 22px; margin-top: 24px; border-top: 1px solid #d1ded7; }
.filter-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.filter-title-row::-webkit-details-marker { display: none; }
.filter-title-row h2 { margin: 0; font: 500 16px Georgia, serif; }
.filter-chevron { width: 8px; height: 8px; margin-right: 3px; border-right: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.theme-filter:not([open]) .filter-chevron { transform: rotate(-45deg); }
.filter-actions { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 5px; color: var(--muted); font-size: 11px; }
.filter-actions button { padding: 2px 0; border: 0; color: var(--forest); background: none; cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
.filter-actions button:disabled { color: #68766e; cursor: default; text-decoration: none; }
.theme-options { display: grid; gap: 3px; max-height: 44vh; overflow: auto; }
.theme-option { display: flex; align-items: flex-start; gap: 8px; padding: 5px 1px; color: #46564d; font-size: 12px; line-height: 1.4; cursor: pointer; }
.theme-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--forest); }
.main-content { min-width: 0; padding: 44px clamp(22px, 5vw, 80px) 76px; }
.view-heading { max-width: 850px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.view-heading h1 { margin: 0; font: 500 clamp(36px, 4.5vw, 54px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.view-heading p { max-width: 680px; margin: 13px 0 0; color: #4e5d54; font: 15px/1.65 Georgia, serif; }
.content-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1000px; padding: 20px 0 12px; }
.result-count { margin: 0; color: var(--muted); font-size: 12px; }
.sort-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.sort-control select { padding: 5px 23px 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; font-size: 11px; }
.results { max-width: 1000px; }
.episode-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 22px 0 23px; border-bottom: 1px solid var(--line); }
.episode-date { padding-top: 4px; color: var(--rust); font: 600 12px/1.35 Georgia, serif; font-variant-numeric: tabular-nums; }
.episode-body { min-width: 0; }
.episode-row h2 { margin: 0; font: 500 21px/1.28 Georgia, serif; }
.episode-row h2 a { text-decoration: none; text-decoration-color: transparent; }
.episode-row h2 a:hover { text-decoration: underline; text-decoration-color: #a9b7ae; text-underline-offset: 4px; }
.episode-meta { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.episode-summary { max-width: 760px; margin: 12px 0 0; color: #3f5047; font: 14px/1.65 Georgia, serif; }
.episode-count { align-self: start; padding: 5px 8px; color: var(--forest); background: var(--forest-soft); font-size: 10px; white-space: nowrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 4px 7px; color: #465b4f; background: var(--forest-soft); border-radius: 3px; font-size: 10px; }
.tag-more { color: var(--muted); background: transparent; }
.insight-list { margin-top: 22px; }
.insight { padding: 17px 0 19px; border-bottom: 1px solid var(--line); }
.insight h2, .insight h3 { margin: 0 0 6px; color: #33453b; font: 500 17px/1.35 Georgia, serif; }
.insight p { max-width: 780px; margin: 0; color: #3f5047; font: 14px/1.65 Georgia, serif; }
.insight-foot { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 11px; }
.insight-foot a { color: var(--forest); font-weight: 600; }
.detail-back { display: inline-block; margin-bottom: 19px; color: var(--forest); font-size: 12px; }
.detail-title { max-width: 850px; margin: 0; font: 500 clamp(30px, 4vw, 44px)/1.12 Georgia, serif; letter-spacing: -.02em; }
.detail-meta { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.detail-themes { margin-top: 14px; }
.section-heading { margin: 29px 0 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); font: 500 21px Georgia, serif; }
.practice-questions { max-width: 780px; margin: 0; padding: 0; list-style: none; }
.practice-questions li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #3f5047; font: 14px/1.65 Georgia, serif; }
.creative-nuances { max-width: 780px; margin-top: 36px; }
.creative-nuances .section-heading { margin-top: 0; }
.creative-nuances ul { margin: 0; padding: 0; list-style: none; }
.creative-nuances li { padding: 14px 0; border-bottom: 1px solid var(--line); color: #3f5047; font: 14px/1.65 Georgia, serif; }
.question-source { display: block; margin-top: 7px; color: var(--muted); font: 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.question-source a { color: var(--forest); }
.theme-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.theme-row { padding: 17px 0; border-bottom: 1px solid var(--line); }
.theme-row h2 { margin: 0; font: 500 17px Georgia, serif; }
.theme-row p { margin: 6px 0 9px; color: var(--muted); font: 13px/1.55 Georgia, serif; }
.theme-row button { padding: 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 40px 0; color: var(--muted); font: 15px/1.6 Georgia, serif; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font: 500 21px Georgia, serif; }
.error-state { padding: 24px; border: 1px solid #cfaaa0; background: #fffaf8; color: #70351f; font-size: 13px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 62px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .topbar { gap: 22px; }
  .brand { min-width: 205px; }
  .layout { grid-template-columns: 220px minmax(0,1fr); }
  .sidebar { padding-inline: 17px; }
  .main-content { padding-inline: 30px; }
}
@media (max-width: 680px) {
  .topbar { position: relative; min-height: 70px; flex-wrap: wrap; gap: 10px 15px; padding: 12px 17px; }
  .brand { min-width: 0; flex: 1; }
  .brand-mark { width: 34px; height: 34px; }
  .search-box { order: 3; width: 100%; margin: 0; }
  .search-box input { height: 38px; }
  .primary-nav { order: 2; gap: 14px; }
  .primary-nav a { font-size: 11px; }
  .layout { display: block; }
  .sidebar { position: static; max-height: none; overflow: visible; padding: 15px 18px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-label { display: none; }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; }
  .side-nav a { flex: 0 0 auto; padding: 8px 9px; font-size: 11px; }
  .theme-filter { padding-top: 12px; margin-top: 10px; }
  .filter-title-row h2 { margin-bottom: 8px; font-size: 14px; }
  .theme-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 40vh; gap: 2px 12px; overflow-y: auto; padding: 3px 0 5px; }
  .theme-option { align-items: center; padding: 6px 2px; font-size: 11px; }
  .theme-option input { margin: 0; }
  .privacy-note { display: none; }
  .main-content { padding: 26px 19px 48px; }
  .view-heading { padding-bottom: 19px; }
  .view-heading p { font-size: 14px; }
  .content-tools { align-items: flex-start; padding-top: 15px; }
  .episode-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; padding-block: 17px; }
  .episode-date { grid-column: 1 / -1; grid-row: 1; padding: 0; font-size: 11px; }
  .episode-body { grid-column: 1 / -1; grid-row: 2; }
  .episode-count { justify-self: start; grid-column: 1 / -1; grid-row: 3; }
  .episode-row h2 { font-size: 19px; }
  .theme-list { grid-template-columns: 1fr; }
  .footer { display: grid; gap: 5px; padding: 15px 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  .results { animation: arrive .24s ease-out both; }
  @keyframes arrive { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
