/* Talking About Tanakh — visual layer for Bootstrap 5.3.8. */
:root {
  --navy: #102b43;
  --gold: #bd842f;
  --ink: #263b4c;
  --muted: #667480;
  --line: #e5e0d7;
  --warm: #f8f6f1;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.site-container { width: 100%; max-width: 1248px; padding-right: 40px; padding-left: 40px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 1100; padding: 8px 16px; color: #fff; background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Quiet header, one accent. */
.site-header { border-bottom: 1px solid #edeae3; }
.site-header .navbar { min-height: 82px; }
.brand { gap: 10px; color: var(--navy); margin-right: 28px; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 54px; height: 54px; color: var(--gold); display: inline-flex; flex: 0 0 54px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title { display: block; color: var(--navy); font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: .015em; white-space: nowrap; }
.brand-byline { display: block; margin-top: 2px; color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: .01em; white-space: nowrap; }
.footer-brand .brand-title { font-size: 20px; }
.footer-brand .brand-byline { font-size: 15px; margin-top: 2px; }
.site-header .navbar-nav .nav-link { position: relative; padding: 29px 11px; color: var(--navy); font-size: 16px; font-weight: 500; }
.site-header .nav-link.active::after { content: ""; position: absolute; height: 2px; bottom: 18px; left: 11px; right: 11px; background: var(--gold); }
.site-header .nav-link:hover { color: var(--gold); }
.btn-support, .btn-primary-dark, .btn-outline-brand { display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: 3px; padding: 12px 21px; min-height: 48px; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; transition: background-color .18s, color .18s, border-color .18s; }
.btn-support { background: var(--gold); border: 1px solid var(--gold); color: #fff; --bs-btn-active-bg: var(--gold); --bs-btn-active-border-color: var(--gold); --bs-btn-active-color: #fff; }
.btn-support:hover { background: var(--gold); border-color: var(--gold); color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.btn-primary-dark { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.btn-primary-dark:hover { background: #20445f; border-color: #20445f; color: #fff; }
.btn-primary-dark .bi { font-size: 18px; line-height: 1; }
.btn-outline-brand { background: transparent; border: 1px solid var(--gold); color: var(--gold); --bs-btn-active-bg: var(--gold); --bs-btn-active-border-color: var(--gold); --bs-btn-active-color: var(--navy); }
.btn-outline-brand:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.mobile-link { padding: 13px 0; font-size: 18px; color: var(--navy); border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-link.active { color: var(--gold); }
.offcanvas { --bs-offcanvas-width: min(360px, 90vw); }

/* A full-width image treatment leaves enough room for the headline. */
.hero-section { position: relative; overflow: hidden; background: #faf8f3; isolation: isolate; }
.hero-panel { min-height: 438px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy-inner { width: 100%; padding: 48px 0 50px; }
.eyebrow { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--gold); font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 25px; height: 1px; margin-top: calc(.75em - .5px); background: var(--gold); }
.section-heading-row .eyebrow { margin-bottom: 10px; }
.display-title, .section-title, .section-subtitle, .host-name, .series-heading h3, .featured-title { font-family: var(--serif); font-weight: 400; color: var(--navy); }
.display-title { font-size: clamp(44px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -.04em; margin: 21px 0 20px; }
.display-title span { font-size: .78em; letter-spacing: -.045em; white-space: nowrap; }
.hero-lead { max-width: 100%; font-size: 18px; color: #566779; line-height: 1.65; margin-bottom: 25px; }
.hero-image-wrap { position: absolute; inset: 0 0 0 auto; width: 57%; z-index: 0; overflow: hidden; }
.hero-image-wrap::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #faf8f3 0%, rgba(250,248,243,.94) 8%, rgba(250,248,243,.38) 33%, rgba(250,248,243,0) 55%); }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }

/* Introduction and shared section rhythm. */
.section-space { padding: 54px 0; }
#episodes { padding-bottom: 96px; }
.section-soft { background: #eef1f3; border-top: 1px solid #dce3e7; border-bottom: 1px solid #dce3e7; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about-intro { max-width: 650px; }
.about-cell .eyebrow { margin-bottom: 14px; }
.section-subtitle { font-size: 32px; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 14px; }
.about-cell p { margin: 0; font-size: 17px; color: var(--muted); max-width: 590px; }
.about-host { border-left: 1px solid var(--line); padding-left: 56px; }
.host-name { margin-bottom: 10px; font-size: 26px; letter-spacing: -.025em; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading-row > div { display: flex; flex-direction: column; }
.section-title { font-size: 36px; line-height: 1.25; letter-spacing: -.035em; margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .015em; text-transform: uppercase; text-decoration: none; }
.text-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.text-link .bi { flex-shrink: 0; }

/* Three lists with aligned archive links. */
.series-section-heading, .books-section-heading { justify-content: center; text-align: center; margin-bottom: 40px; }
.series-section-heading > div, .books-section-heading > div { align-items: center; min-width: 0; }
.series-section-heading .eyebrow, .books-section-heading .eyebrow { justify-content: center; margin: 12px 0 0; }
.series-section-heading .eyebrow::before, .books-section-heading .eyebrow::before { content: none; }
.series-section-heading .section-title { font-size: clamp(36px, 4vw, 48px); }

.series-column { display: flex; flex-direction: column; padding: 0 29px; min-width: 0; }
.series-grid > div:first-child .series-column { padding-left: 0; }
.series-grid > div:last-child .series-column { padding-right: 0; }
.series-divider { border-left: 1px solid var(--line); }
.series-label { margin-bottom: 14px; }
.series-heading { margin-bottom: 12px; min-height: 0; align-items: flex-start; }
.series-heading h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.035em; margin: 0; }
.series-description { min-height: 106px; margin: 0 0 17px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.series-list { list-style: none; padding: 0; margin: 0 0 23px; }
.series-list li { border-bottom: 1px solid #eeeae3; }
.series-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; color: var(--navy); font-size: 17px; font-weight: 500; text-decoration: none; }
.series-list a:hover { color: var(--gold); background: #fbfaf7; }
.series-list .bi-book { font-size: 16px; color: var(--gold); }
.series-list .bi-chevron-right { font-size: 10px; color: var(--gold); }
.btn-sm-custom { min-height: 46px; padding: 11px 14px; font-size: 13px; letter-spacing: .025em; }
.series-footer .bi { margin-left: 4px !important; }

/* Books and lessons remain easy-to-scan rows. */
.section-alt { background: #faf9f6; border-top: 1px solid #f0ece5; border-bottom: 1px solid #f0ece5; }
#books { padding: 34px 0; }
#books .section-heading-row { margin-bottom: 20px; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }
.table thead th { padding: 11px 12px; color: #697785; font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .02em; text-transform: uppercase; white-space: normal; }
.table tbody td { padding: 15px 12px; font-size: 16px; color: var(--muted); }
.table tbody td strong { font-weight: 500; color: var(--navy); }
.table tbody td:first-child, .table thead th:first-child { padding-left: 0; }
.table tbody td:last-child, .table thead th:last-child { padding-right: 0; }
.books-table .icon-col { width: 45px; }
.books-table tbody td:first-child { color: var(--gold); font-size: 18px; }
.coming-soon { color: var(--muted); font-size: 14px; }
.episode-table tbody td:first-child { color: var(--gold); width: 36px; }
.episode-table tbody tr:hover { background: #fbfaf7; }
.pdf-link { color: var(--gold); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.pdf-link:hover { text-decoration: underline; }

/* A single featured lesson above the archive preview. */
.featured-episode { padding: 27px 30px; margin-bottom: 48px; border: 1px solid #ebe6dc; border-radius: 4px; background: var(--warm); }
.featured-title { font-size: 31px; letter-spacing: -.035em; line-height: 1.25; margin: 0 0 9px; }
.featured-meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.featured-meta span { width: 3px; height: 3px; border-radius: 50%; background: #a99e89; }
.featured-description { max-width: 490px; margin-bottom: 9px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.audio-ui { display: flex; align-items: center; gap: 17px; padding: 20px 0 20px 28px; border-left: 1px solid var(--line); }
.play-button, .mini-play { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--navy); }
.play-button { width: 48px; height: 48px; flex: 0 0 48px; font-size: 24px; }
.play-button:hover, .mini-play:hover { background: #30536b; }
.audio-track-wrap { flex: 1; min-width: 0; }
.audio-track { height: 4px; background: #dddcd7; border-radius: 5px; overflow: hidden; }
.audio-progress { display: block; width: 0%; height: 100%; background: var(--gold); }
.audio-time { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 14px; }
.volume-button { color: var(--muted); font-size: 19px; }
.mini-play { width: 40px; height: 40px; font-size: 22px; }
.audio-status { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* A light footer continues the page palette. */
.site-footer { padding: 44px 0 24px; background: #eef1f3; border-top: 1px solid var(--line); }
.footer-main { padding-bottom: 25px; }
.footer-brand { gap: 10px; color: var(--gold); }
.footer-mark { display: inline-flex; align-items: center; width: 42px; height: 42px; flex: 0 0 42px; }
.footer-mark svg { width: 100%; height: 100%; }
.footer-heading { margin: 0 0 13px; font-family: var(--sans); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .065em; color: var(--navy); }
.footer-text { max-width: 340px; font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; line-height: 1.5; }
.footer-links a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--navy); text-decoration: underline; }
.newsletter-form { max-width: 390px; }
.newsletter-form .form-control { min-width: 0; min-height: 48px; font-size: 14px; border-color: #dfd8cb; border-radius: 3px 0 0 3px; }
.newsletter-form .btn { min-height: 48px; padding: 10px 16px; font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: 13px; }
.footer-bottom a { font-size: inherit; }

@media (max-width: 1199.98px) {
  .site-container { padding-left: 30px; padding-right: 30px; }
  .site-header .navbar-nav .nav-link { padding-left: 8px; padding-right: 8px; font-size: 16px; }
  .brand { margin-right: 15px; }
  .site-header .btn-support { padding-left: 16px; padding-right: 16px; }
  .hero-panel { min-height: 405px; }
  .series-column { padding-left: 22px; padding-right: 22px; }
  .series-heading { gap: 10px !important; min-height: 0; align-items: flex-start; }
  .series-heading h3 { font-size: 26px; }
  .series-description { min-height: 106px; font-size: 16px; }
  .about-grid { gap: 40px; }
}
@media (max-width: 991.98px) {
  .site-header .navbar { min-height: 72px; }
  .hero-copy { width: 75%; }
  .hero-copy-inner { padding-top: 46px; padding-bottom: 46px; }
  .hero-image-wrap { width: 59%; }
  .hero-image-wrap::before { background: linear-gradient(90deg, #faf8f3 0%, rgba(250,248,243,.88) 30%, rgba(250,248,243,.15) 100%); }
  .hero-lead { max-width: 100%; font-size: 18px; line-height: 1.65; }
  .display-title { font-size: 48px; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; }
  .about-host { padding-left: 40px; }
  .section-subtitle { font-size: 32px; }
  .host-name { font-size: 26px; }
  .series-heading { min-height: 0; }
  .series-description { min-height: 0; }
  .series-column, .series-grid > div:first-child .series-column, .series-grid > div:last-child .series-column { padding: 25px 0; }
  .series-grid > div:first-child .series-column { padding-top: 0; }
  .series-grid > div:last-child .series-column { padding-bottom: 0; }
  .series-divider { border-left: 0; border-top: 1px solid var(--line); }
  .series-heading h3 { font-size: 26px; }
  .series-description { min-height: 0; max-width: 570px; font-size: 16px; }
  .series-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .series-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .audio-ui { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .footer-main > div:last-child { max-width: 560px; }
}
@media (max-width: 767.98px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 18px; }
  .site-container { padding-left: 22px; padding-right: 22px; }
  .site-header .navbar { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand .brand-title { font-size: 15px; }
  .brand .brand-byline { font-size: 12px; margin-top: 2px; }
  .brand { margin-right: 0; }
  .hero-panel { min-height: 0; }
  .hero-copy { width: 100%; }
  .hero-copy-inner { padding: 38px 0 33px; }
  .display-title { margin-top: 19px; font-size: 44px; }
  .display-title span { white-space: normal; font-size: .82em; }
  .hero-lead { font-size: 18px; max-width: 100%; line-height: 1.65; }
  .hero-image-wrap { position: relative; width: calc(100% + 44px); max-width: none; margin-left: -22px; height: 200px; }
  .hero-image-wrap::before { background: linear-gradient(180deg, #faf8f3, rgba(250,248,243,0) 35%); }
  .hero-image { object-position: center 56%; }
  .hero-actions { gap: 10px !important; }
  .hero-actions .btn { padding-left: 16px; padding-right: 16px; font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  .about-host { border-left: 0; border-top: 1px solid var(--line); padding: 23px 0 0; }
  .section-subtitle { max-width: 450px; font-size: 29px; }
  .section-heading-row { margin-bottom: 23px; gap: 15px; flex-wrap: wrap; }
  .section-title { font-size: 32px; }
  .series-heading { min-height: 0; }
  .section-space { padding: 38px 0; }
  #episodes { padding-bottom: 64px; }
  .series-list { display: block; margin-bottom: 20px; }
  .series-list a { min-height: 49px; font-size: 17px; }
  .series-description { font-size: 16px; min-height: 0; }
  .series-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .btn-sm-custom { min-height: 46px; font-size: 13px; padding: 11px 14px; }
  .books-table thead { display: none; }
  .books-table, .books-table tbody { display: block; }
  .books-table tbody tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) 112px; gap: 4px 10px; padding: 17px 0; border-bottom: 1px solid var(--line); }
  .books-table tbody td { display: block; padding: 0; border: 0; font-size: 16px; }
  .books-table tbody td:first-child { grid-area: 1 / 1 / 3 / 2; }
  .books-table tbody td:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
  .books-table tbody td:nth-child(4) { grid-area: 2 / 2 / 3 / 3; font-size: 14px; }
  .books-table tbody td:last-child { grid-area: 1 / 3 / 3 / 4; align-self: center; }
  .books-table .text-link { font-size: 14px; letter-spacing: 0; gap: 4px; min-height: 44px; }
  .featured-episode { padding: 22px 20px; margin-bottom: 32px; }
  .featured-title { font-size: 31px; }
  .featured-description { font-size: 16px; }
  .episode-table thead { display: none; }
  .episode-table, .episode-table tbody { display: block; }
  .episode-table tbody tr { display: grid; grid-template-columns: 25px minmax(0, 1fr) 48px 65px; column-gap: 7px; padding: 18px 0; border-bottom: 1px solid var(--line); row-gap: 8px; }
  .episode-table tbody td { display: block; padding: 0; border: 0; font-size: 16px; }
  .episode-table tbody td:first-child { grid-area: 1 / 1 / 3 / 2; padding-top: 2px; }
  .episode-table tbody td:nth-child(2) { grid-area: 2 / 2 / 3 / 3; font-size: 14px; padding-top: 3px; align-self: center; }
  .episode-table tbody td:nth-child(3) { grid-area: 1 / 2 / 2 / 5; }
  .episode-table tbody td:nth-child(5) { grid-area: 2 / 3 / 3 / 4; align-self: center; }
  .episode-table tbody td:nth-child(6) { grid-area: 2 / 4 / 3 / 5; align-self: center; }
  .mini-play { width: 44px; height: 44px; font-size: 22px; }
  .pdf-link { display: inline-flex; align-items: center; justify-content: end; min-height: 44px; font-size: 15px; }
  .pdf-link .bi { margin-right: 3px !important; }
  .footer-brand .brand-title { font-size: clamp(15px, 4.3vw, 20px); }
  .footer-brand .brand-byline { font-size: 14px; }
  .newsletter-form .input-group { flex-direction: column; gap: 10px; }
  .newsletter-form .input-group > .form-control, .newsletter-form .input-group > .btn { width: 100%; border-radius: 3px; margin-left: 0; }
  .footer-main { padding-bottom: 22px; }
  .footer-text { font-size: 14px; }
  .footer-links a { display: inline-block; padding: 5px 0; font-size: 14px; }
  .newsletter-form { max-width: none; }
}
@media (max-width: 374.98px) {
  .brand { gap: 6px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand .brand-title { font-size: 13.5px; }
  .brand .brand-byline { font-size: 11px; }
  .site-container { padding-left: 17px; padding-right: 17px; }
  .display-title { font-size: 39px; }
  .hero-actions .btn { width: 100%; font-size: 14px; }
  .hero-image-wrap { width: calc(100% + 34px); margin-left: -17px; }
  .section-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shared Episodes navigation: Bootstrap dropdown and mobile collapse. */
.episodes-menu {
  --bs-dropdown-link-color: var(--navy);
  --bs-dropdown-link-hover-color: var(--navy);
  --bs-dropdown-link-hover-bg: var(--warm);
  --bs-dropdown-link-active-color: var(--gold);
  --bs-dropdown-link-active-bg: var(--warm);
  min-width: 260px;
  padding: 8px;
  border-color: var(--line);
  border-radius: 4px;
}
.episodes-menu .dropdown-item { padding: 11px 12px; font-size: 16px; white-space: normal; border-radius: 2px; }
.episodes-toggle .bi-chevron-down { font-size: 10px; }
.episodes-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.mobile-episodes-toggle { border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
#mobileEpisodes .mobile-link { font-size: 16px; }

/* reCAPTCHA branding is disclosed beside each protected form. */
.grecaptcha-badge { visibility: hidden !important; }
