:root {
  --brand: #478ac9;
  --brand-dark: #2c6aa6;
  --accent: #db545a;
  --text: #111;
  --muted: #5d6670;
  --line: #e2e6ea;
  --surface: #fff;
  --surface-alt: #f4f6f8;
  --footer: #333;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .12);
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--surface); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.loading-screen, .page-loading { min-height: 70vh; }
.fatal { padding: 4rem 1rem; text-align: center; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 12px 28px; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ------------------------------------------------------------ header */

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo img { height: 56px; width: auto; }
.logo { font: 700 1.2rem var(--font-head); color: var(--text); text-decoration: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; }
.nav-link { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-link:hover, .nav-link.active { color: var(--brand); }
.submenu-toggle { background: none; border: 0; padding: 4px; margin-left: -8px; cursor: pointer; color: inherit; font-size: .8rem; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 8px 0; display: none;
}
.nav-item.open > .submenu { display: block; }
.submenu-link { display: block; padding: 8px 18px; color: var(--text); text-decoration: none; }
.submenu-link:hover { background: var(--surface-alt); color: var(--brand); }

.hamburger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.hamburger span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: block; z-index: 60; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: rgba(0, 0, 0, .95); overflow-y: auto;
    transform: translateX(100%); transition: transform .25s; padding: 20px 0;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { color: #fff; text-align: center; padding: 12px 20px; font-size: 1.1rem; }
  .nav-parent { justify-content: center; }
  .submenu-toggle { color: #fff; font-size: 1rem; }
  .submenu { position: static; display: none; background: transparent; box-shadow: none; padding: 0 0 8px; }
  .submenu-link { color: #ccc; text-align: center; }
  .submenu-link:hover { background: transparent; color: #fff; }
  body.menu-open { overflow: hidden; }
}

/* ------------------------------------------------------------ sections */

.section { padding: 60px 0; }
.section + .section { padding-top: 30px; }
.section-heading { color: var(--text); }
.section-subheading { font: 500 1.15rem var(--font-head); color: var(--brand); margin-top: -.3em; }
.intro { margin-bottom: 1.5rem; }
.intro.center { text-align: center; }
.intro.center .prose { max-width: 760px; margin: 0 auto; }
.prose > :last-child { margin-bottom: 0; }
.prose img { margin: 1rem 0; border-radius: var(--radius); }

.section-hero {
  background-size: cover; background-position: 50% 50%; color: #fff;
  min-height: 600px; display: flex; align-items: stretch;
}
.section-hero.hero-image-only { min-height: 420px; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; text-align: right; padding-top: 30px; padding-bottom: 40px; }
.hero-title { font-size: clamp(2.25rem, 7vw, 6rem); font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-subtitle { font: 700 clamp(1rem, 2.6vw, 2.25rem) var(--font-head); margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
@media (max-width: 575px) {
  .section-hero { min-height: 300px; }
  .section-hero.hero-image-only { min-height: 220px; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .split-media { order: 0; }
}

.section-badge { padding: 30px 0; }
.podcast-badge { display: inline-block; transition: transform .15s; }
.podcast-badge:hover { transform: scale(1.04); }
.podcast-badge img { max-width: 276px; margin: 0 auto; }

.section-archive-links { padding: 10px 0 30px; }
.archive-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.archive-link { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem var(--font-head); text-decoration: none; }
.archive-link svg { width: 1.6em; height: 1.6em; }

.card-surface { background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px 24px; }
.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-list li { border-bottom: 1px solid var(--line); }
.episode-list li:last-child { border-bottom: 0; }
.episode { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; text-decoration: none; font-weight: 600; }
.episode .play { width: 1.1em; height: 1.1em; flex: none; margin-top: .25em; }
.episode-pending { color: var(--muted); font-weight: 600; padding-left: calc(1.1em + 10px); }
.episode-pending em { font-weight: 400; }
.section-current-episodes .split { align-items: start; }

.archive-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.archive-jump a { border: 1px solid var(--brand); border-radius: 999px; padding: 4px 16px; text-decoration: none; font-weight: 600; }
.archive-jump a:hover { background: var(--brand); color: #fff; }
.archive-group { margin-bottom: 2.5rem; }
.archive-group h2 { font-size: 1.5rem; border-bottom: 3px solid var(--brand); padding-bottom: .3em; }

.section-links-panel { padding: 0; }
.section-links-panel .container { max-width: none; padding: 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; }
.panel-links { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 60px max(30px, calc((100vw - 1140px) / 2 + 20px)); padding-right: 40px; }
.panel-link { font: 700 1.4rem var(--font-head); text-decoration: none; }
.panel-feature { background: var(--brand); color: #fff; padding: 60px 40px; text-align: center; }
.panel-feature h2 { font-size: clamp(2rem, 4vw, 3rem); }
.panel-feature a { color: #ffe9a8; font-weight: 700; }
.panel-feature .prose { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }
@media (max-width: 800px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-links { padding: 40px 20px; align-items: center; text-align: center; }
}

.social-icons { display: flex; gap: 12px; }
.social-icons a { color: var(--brand); display: block; width: 32px; height: 32px; }
.social-icons.large a { width: 44px; height: 44px; }
.social-icons svg { width: 100%; height: 100%; }
.social-icons a:hover { color: var(--brand-dark); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-few { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery-item { padding: 0; border: 0; background: var(--surface-alt); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 88vh; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { padding: 16px 20px 20px; text-align: center; }
.card-body h3 { margin-bottom: .2em; }
.card-body > :last-child { margin-bottom: 0; }
.card-link { transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); color: inherit; }

.section-quote .quote-card { margin: 0; background: var(--surface-alt); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0; font-size: 1.15rem; font-style: italic; }
.quote-card figcaption { margin-top: 12px; font-weight: 700; color: var(--brand); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { background: var(--brand); color: #fff; text-align: left; padding: 12px 14px; font-family: var(--font-head); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) td { background: var(--surface-alt); }
.data-table td.empty { text-align: center; color: var(--muted); padding: 28px; }

.resource-group { margin-bottom: 1.8rem; }
.resource-group h3 { color: var(--brand); border-bottom: 2px solid var(--line); padding-bottom: .3em; }
.resource-group ul { margin: 0; padding-left: 1.2rem; }
.resource-group li { margin: .4em 0; }

.contact-form { display: grid; gap: 6px; max-width: 640px; margin: 0 auto; }
.contact-form label { font-weight: 600; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c8ced4; border-radius: var(--radius); font: inherit; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.contact-form .btn { margin-top: 16px; justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { color: #227a3b; font-weight: 600; margin-top: 12px; }
.form-error { color: #b42318; font-weight: 600; margin-top: 12px; }

.blog-post h1 { margin-top: .5rem; }
.blog-hero { width: 100%; border-radius: var(--radius); margin: 1rem 0 2rem; }

/* ------------------------------------------------------------ footer */

.site-footer { background: var(--footer); color: #ddd; padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #9cc4ec; }
.site-footer .social-icons a { color: #fff; }
.footer-text { margin: 0; font-size: .9rem; color: #aaa; }

