/* ==========================================================================
   Talmud Daily — landing page template styles
   Self-contained. Scoped under .td-page so it never leaks into the rest of
   the site. Asset url()s point to ../images/talmud-daily/.
   ========================================================================== */

.td-page {
  --ink: #172020;
  --ink-soft: #2A2A2A;
  --paper: #EAE2D0;          /* brand cream — primary canvas */
  --paper-pure: #F2EDDF;     /* slightly lighter cream for layered surfaces */
  --burgundy: #500E0F;
  --sage: #A7A885;
  --muted: #5E5C50;
  --rule: #C9BFA6;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hind", -apple-system, "Helvetica Neue", Arial, sans-serif;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.td-page *, .td-modal-backdrop * { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* WORDMARK — Talmud Daily logo (SVG) */
.td-page .wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.td-page .wordmark img { display: block; height: 28px; width: auto; }
.td-page .wordmark.lg img { height: 64px; }
.td-page .wordmark.xl img { height: 100px; }

/* TD monogram (icon) */
.td-page .monogram { display: inline-block; line-height: 0; }
.td-page .monogram img { display: block; height: 28px; width: auto; }

/* NAV */
.td-page nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.td-page nav.top .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.td-page nav.top .links { display: flex; gap: 32px; align-items: center; font-size: 14px; font-family: var(--sans); }
.td-page nav.top .links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.td-page nav.top .links a:hover { color: var(--burgundy); }
.td-page .btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 1px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.td-page .btn:hover { background: var(--burgundy); }
.td-page .btn-lg { padding: 18px 32px; font-size: 16px; }
.td-page .btn-xl { padding: 22px 40px; font-size: 17px; }
.td-page .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.td-page .btn-ghost:hover { background: var(--ink); color: var(--paper); }
/* Buttons inside the burgundy hero/CTA bands */
.td-page .hero .btn, .td-page .final-cta .btn {
  background: var(--paper);
  color: var(--burgundy);
}
.td-page .hero .btn:hover, .td-page .final-cta .btn:hover {
  background: var(--sage);
  color: var(--ink);
}
.td-page .hero .btn-ghost, .td-page .final-cta .btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--sage);
}
.td-page .hero .btn-ghost:hover, .td-page .final-cta .btn-ghost:hover {
  background: var(--sage);
  color: var(--ink);
  border-color: var(--sage);
}

/* HERO — full-bleed burgundy band */
.td-page .hero {
  background: var(--burgundy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 96px 0 96px;
}
.td-page .hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 880px;
  background: url("../images/talmud-daily/monogram-cream.svg") no-repeat center/contain;
  opacity: 0.07;
  pointer-events: none;
}
.td-page .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.td-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.td-page .hero-text { min-width: 0; }
.td-page .hero-video-wrap { min-width: 0; }

/* Promo video (hero) */
.td-page .hero-video-frame { position: relative; width: 100%; min-height: 380px; }
.td-page .hero-video-frame iframe { border: 0; }

/* Play button overlay shown until the video is playing; removed on click */
.td-page .video-card {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #2A0708 url("../images/talmud-daily/monogram-cream.svg") no-repeat center/45% auto;
  background-blend-mode: normal;
  border: 1px solid rgba(167,168,133,0.25);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 32px;
  z-index: 1;
}
.td-page .video-card .play-btn {
  justify-self: center;
  align-self: center;
  width: 92px; height: 92px;
  background: var(--paper);
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--burgundy);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: auto;
}
.td-page .video-card .play-btn:hover {
  transform: scale(1.06);
  background: var(--sage);
  color: var(--ink);
}
.td-page .video-card .play-btn svg { width: 30px; height: 30px; margin-left: 6px; }
.td-page .video-card .video-foot { align-self: end; }
.td-page .video-card .video-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 6px;
}
.td-page .video-card .video-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  line-height: 1.25;
}
.td-page .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 32px;
}
.td-page h1.hero-h {
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 78px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin-bottom: 28px;
}
.td-page h1.hero-h em { font-style: italic; }
.td-page .hero-sub {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--paper);
  opacity: 0.92;
  margin-bottom: 36px;
  font-weight: 400;
}
.td-page .hero-cta {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.td-page .hero-secondary {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sage);
  margin-top: 22px;
}
.td-page .hero-secondary a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

/* SIGN-UP MODAL */
.td-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 32, 32, 0.78);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.td-modal-backdrop.open { display: flex; }
.td-modal-card {
  background: var(--paper);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 56px 48px 44px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  --ink: #172020;
  --ink-soft: #2A2A2A;
  --paper: #EAE2D0;
  --paper-pure: #F2EDDF;
  --burgundy: #500E0F;
  --sage: #A7A885;
  --muted: #5E5C50;
  --rule: #C9BFA6;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hind", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
}
.td-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
}
.td-modal-close::before {
  content: "";
  width: 16px; height: 1.5px;
  background: var(--ink);
  transform: rotate(45deg);
  position: absolute;
}
.td-modal-close::after {
  content: "";
  width: 16px; height: 1.5px;
  background: var(--ink);
  transform: rotate(-45deg);
  position: absolute;
}
.td-modal-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.td-modal-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.td-modal-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 32px;
}
.td-modal-footnote {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
/* Gravity Forms living inside the modal inherit the cream styling */
.td-modal-card .gform_wrapper { margin: 0; }

/* Field stack + spacing */
.td-modal-card .gform_wrapper .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.td-modal-card .gform_wrapper .gfield { grid-column: 1 / -1; min-width: 0; }
/* Allow GF's own column sizing if the form uses it */
.td-modal-card .gform_wrapper .gfield.gfield--width-half { grid-column: span 1; }

/* Labels */
.td-modal-card .gform_wrapper .gfield_label,
.td-modal-card .gform_wrapper legend.gfield_label,
.td-modal-card .gform_wrapper .ginput_complex label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.3;
  display: block;
}
.td-modal-card .gform_wrapper .gfield_required {
  color: var(--muted);
  font-weight: 700;
  margin-left: 4px;
}
.td-modal-card .gform_wrapper .gfield_required_text { color: var(--muted); }

/* Inputs, selects, textareas */
.td-modal-card .gform_wrapper input[type="text"],
.td-modal-card .gform_wrapper input[type="email"],
.td-modal-card .gform_wrapper input[type="tel"],
.td-modal-card .gform_wrapper input[type="url"],
.td-modal-card .gform_wrapper input[type="number"],
.td-modal-card .gform_wrapper textarea,
.td-modal-card .gform_wrapper select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-pure);
  color: var(--ink);
  border-radius: 1px;
  line-height: 1.4;
  box-shadow: none;
}
.td-modal-card .gform_wrapper input::placeholder,
.td-modal-card .gform_wrapper textarea::placeholder { color: var(--muted); }
.td-modal-card .gform_wrapper input:focus,
.td-modal-card .gform_wrapper textarea:focus,
.td-modal-card .gform_wrapper select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: none;
}

/* Select — custom chevron */
.td-modal-card .gform_wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23500E0F' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Name field — First / Last two-up */
.td-modal-card .gform_wrapper .ginput_complex.ginput_container_name {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.td-modal-card .gform_wrapper .ginput_complex span { padding: 0; }

/* Submit button */
.td-modal-card .gform_wrapper .gform_footer { margin: 22px 0 0; padding: 0; }
.td-modal-card .gform_wrapper .gform_button,
.td-modal-card .gform_wrapper input[type="submit"] {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 24px;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.15s;
}
.td-modal-card .gform_wrapper .gform_button:hover,
.td-modal-card .gform_wrapper input[type="submit"]:hover { background: var(--burgundy); }

/* Field description / sub-labels */
.td-modal-card .gform_wrapper .gfield_description,
.td-modal-card .gform_wrapper .ginput_complex .name_first label,
.td-modal-card .gform_wrapper .ginput_complex .name_last label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

/* Validation — keep readable on cream, drop the harsh default red blocks */
.td-modal-card .gform_wrapper .gform_validation_errors {
  background: transparent;
  border: 1px solid var(--burgundy);
  border-radius: 1px;
  box-shadow: none;
}
.td-modal-card .gform_wrapper .gform_validation_errors > h2 {
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 13px;
}
.td-modal-card .gform_wrapper .gfield_description.validation_message,
.td-modal-card .gform_wrapper .validation_message {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--burgundy);
  background: transparent;
  border: none;
  padding: 4px 0 0;
}
.td-modal-card .gform_wrapper .gfield_error input,
.td-modal-card .gform_wrapper .gfield_error select,
.td-modal-card .gform_wrapper .gfield_error textarea { border-color: var(--burgundy); }
.td-modal-card .gform_wrapper .gfield_error .gfield_label { color: var(--burgundy); }

/* Confirmation message after submit */
.td-modal-card .gform_confirmation_message {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
  padding: 8px 0;
}

@media (max-width: 540px) {
  .td-modal-card .gform_wrapper .ginput_complex.ginput_container_name { grid-template-columns: 1fr; }
}


.td-page .hero-meta {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(167,168,133,0.4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.td-page .hero-meta .k {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 8px;
}
.td-page .hero-meta .v {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--paper);
  font-weight: 400;
  line-height: 1.05;
}

/* SECTION */
.td-page .s {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 48px;
}
.td-page .s.narrow { max-width: 880px; }
.td-page .s.wide { max-width: 1400px; }
.td-page .section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 28px;
}
.td-page h2.section-h {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 32ch;
}
.td-page h2.section-h em { font-style: italic; font-weight: 400; }
.td-page p.section-lede {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 24px;
  font-weight: 400;
}
.td-page p.section-body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 18px;
}

/* THE OFFER */
.td-page .offer {
  background: var(--paper-pure);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.td-page .offer .inner { max-width: 1240px; margin: 0 auto; padding: 96px 48px; }
.td-page .offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 80px;
  margin-top: 48px;
}
.td-page .offer-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.td-page .offer-item:nth-last-child(-n+2) { border-bottom: none; }
.td-page .offer-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.12em;
  padding-top: 6px;
  min-width: 36px;
}
.td-page .offer-text {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
}

/* WHAT IT IS */
.td-page .what-it-is { padding: 96px 48px 64px; max-width: 880px; margin: 0 auto; }

/* THE ARC */
.td-page .arc-row {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: 28px 36px;
  border-radius: 1px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
}
.td-page .arc-row.finale {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  margin-top: 32px;
  margin-bottom: 0;
}
.td-page .arc-label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--burgundy);
}
.td-page .arc-row.finale .arc-label { color: var(--sage); }
.td-page .arc-body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.td-page .arc-row.finale .arc-body { color: var(--paper); }
.td-page .sedarim-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.td-page .seder {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: 24px 20px;
  border-radius: 1px;
}
.td-page .seder-h {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.td-page .seder-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.td-page .seder-translation {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
}
.td-page .tractates { list-style: none; }
.td-page .tractates li {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
  line-height: 1.3;
  font-weight: 400;
}
.td-page .tractates li:last-child { border-bottom: none; }

/* THE RHYTHM */
.td-page .rhythm-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 48px 0 24px;
}
.td-page .day {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: 26px 18px;
  text-align: center;
  border-radius: 1px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.td-page .day .name {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.td-page .day .label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.td-page .day .duration {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.td-page .day.rest {
  background: transparent;
  border: 1px dashed var(--rule);
}
.td-page .day.rest .label { color: var(--muted); font-style: italic; }
.td-page .day.weekly {
  background: var(--burgundy);
  color: var(--paper);
  border-color: var(--burgundy);
}
.td-page .day.weekly .name { color: rgba(245,241,232,0.65); }
.td-page .day.weekly .label { color: var(--paper); }
.td-page .day.weekly .duration { color: rgba(245,241,232,0.7); }
.td-page .rhythm-note {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}
.td-page .rhythm-callout {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  margin-top: 24px;
  line-height: 1.4;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.td-page .rhythm-callout em { font-style: italic; color: var(--burgundy); }

/* SECTION with side photo (text + image two-column) */
.td-page .s.with-photo .s-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.td-page .s.with-photo .s-text { min-width: 0; }
.td-page .s.with-photo .s-photo {
  width: 100%;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  overflow: hidden;
  line-height: 0;
}
.td-page .s.with-photo .s-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.td-page .s.with-photo.photo-left .s-text { order: 2; }
.td-page .s.with-photo.photo-left .s-photo { order: 1; }

/* Rhythm — intro row with text + side photo */
.td-page .rhythm-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
  margin-bottom: 40px;
}
.td-page .rhythm-text { min-width: 0; }
.td-page .rhythm-photo { min-width: 0; line-height: 0; overflow: hidden; min-height: 280px; }
.td-page .rhythm-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Sample audio — full 2-column */
.td-page .sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
}
.td-page .sample-main { min-width: 0; }
.td-page .sample-photo { min-width: 0; line-height: 0; overflow: hidden; min-height: 480px; }
.td-page .sample-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.85);
}

/* SAMPLE AUDIO */
.td-page .sample-block {
  background: var(--ink);
  color: var(--paper);
}
.td-page .sample-block .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 48px;
}
.td-page .sample-block .section-eyebrow { color: var(--sage); }
.td-page .sample-block h2.section-h { color: var(--paper); max-width: 20ch; }
.td-page .sample-block p.section-lede { color: rgba(234,226,208,0.78); }
.td-page .player {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1px;
  padding: 28px 32px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: center;
}
.td-page .player .play {
  width: 64px; height: 64px;
  background: var(--paper); color: var(--burgundy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
}
.td-page .player .play svg { width: 22px; height: 22px; margin-left: 3px; }
.td-page .player .info .day-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 8px;
}
.td-page .player .info .title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 14px;
}
.td-page .player .info .progress {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(234,226,208,0.6);
}
.td-page .player .info .bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.td-page .player .info .bar::after {
  content: "";
  display: block;
  width: 28%;
  height: 100%;
  background: var(--sage);
}
.td-page .player .meta-right {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234,226,208,0.65);
  font-weight: 600;
  text-align: right;
  line-height: 1.6;
}
.td-page .episode-list {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.td-page .episode-list .ep {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 28px;
  align-items: center;
  font-family: var(--sans);
  color: rgba(234,226,208,0.78);
  font-size: 14px;
  cursor: pointer;
}
.td-page .episode-list .ep:hover { background: rgba(255,255,255,0.02); }
.td-page .episode-list .ep .day-no { font-family: var(--serif); color: var(--sage); font-style: italic; font-size: 16px; }
.td-page .episode-list .ep .ep-title { color: var(--paper); font-family: var(--serif); font-size: 18px; }
.td-page .episode-list .ep .dur { font-size: 12px; letter-spacing: 0.1em; color: rgba(234,226,208,0.55); }
.td-page .episode-list .ep .mini-play {
  width: 28px; height: 28px;
  background: transparent;
  color: var(--sage);
  border: 1px solid rgba(167,168,133,0.5);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.td-page .episode-list .ep .mini-play svg { width: 10px; height: 10px; margin-left: 2px; }

/* FOUNDING 100 — full-bleed burgundy interstitial band */
.td-page .founding-band {
  background: var(--burgundy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.td-page .founding-band .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 48px;
}
.td-page .founding-band .fb-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.td-page .founding-band .fb-visual img {
  max-width: 100%;
  height: auto;
  display: block;
}
.td-page .founding-band .fb-text { min-width: 0; }
.td-page .founding-band .fb-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 14px;
}
.td-page .founding-band .fb-headline {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 14px;
}
.td-page .founding-band .fb-headline em { font-style: italic; }
.td-page .founding-band .fb-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--paper);
  opacity: 0.92;
}
.td-page .founding-band .fb-body em { font-style: italic; }
.td-page .founding-band .fb-body a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
.td-page .founding-band .fb-body a:hover {
  color: var(--sage);
  border-bottom-color: var(--sage);
}
.td-page .founding-band .fb-cta {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--paper);
  font-weight: 600;
  border: none;
  padding: 18px 28px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.td-page .founding-band .fb-cta:hover { background: var(--sage); color: var(--ink); }

/* AMBASSADORS — host committee grid */
.td-page .ambassadors .amb-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 18px;
}
.td-page .amb-card { text-align: left; }
.td-page .amb-photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.td-page .amb-photo .initials {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--burgundy);
  font-style: italic;
  opacity: 0.55;
}
.td-page .amb-photo img { width: 100%; height: 100%; object-fit: cover; }
.td-page .amb-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.td-page .amb-affil {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* FAQ — accordion using <details>/<summary> */
.td-page .faq { background: var(--paper-pure); }
.td-page .faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.td-page .faq-item { border-bottom: 1px solid var(--rule); }
.td-page .faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.15s;
}
.td-page .faq-item > summary::-webkit-details-marker { display: none; }
.td-page .faq-item > summary:hover { color: var(--burgundy); }
.td-page .faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 32px;
  color: var(--burgundy);
  transition: transform 0.2s;
  line-height: 1;
}
.td-page .faq-item[open] > summary::after { content: "\2212"; }
.td-page .faq-item .a {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 0 56px 28px 0;
}
.td-page .faq-item .a a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
}
.td-page .faq-item .a a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* FINAL CTA — burgundy band */
.td-page .final-cta {
  background: var(--burgundy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.td-page .final-cta::before {
  content: "";
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 880px;
  background: url("../images/talmud-daily/monogram-cream.svg") no-repeat center/contain;
  opacity: 0.05;
  pointer-events: none;
}
.td-page .final-cta .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 132px 48px;
  text-align: center;
  position: relative;
}
.td-page .final-cta .eyebrow { color: var(--sage); margin-bottom: 28px; }
.td-page .final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.td-page .final-cta h2 em { font-style: italic; }
.td-page .final-cta p {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  opacity: 0.92;
  max-width: 52ch;
  margin: 0 auto 44px;
}
.td-page .modal-trigger-btn {
  background: var(--paper);
  color: var(--ink);
  padding: 22px 44px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.td-page .modal-trigger-btn:hover { background: var(--burgundy); color: var(--paper); }

/* FOOTER */
.td-page footer.site {
  background: var(--ink);
  color: rgba(245,241,232,0.5);
  padding: 64px 48px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--sans);
  font-size: 13px;
}
.td-page footer.site .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.td-page footer.site .copyright { color: rgba(245,241,232,0.35); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .td-page nav.top .links a:not(.btn) { display: none; }
  .td-page .hero { padding: 56px 0 64px; }
  .td-page .hero-inner { padding: 0 24px; }
  .td-page .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .td-page .s.with-photo .s-inner { grid-template-columns: 1fr; gap: 36px; }
  .td-page .s.with-photo.photo-left .s-text { order: unset; }
  .td-page .s.with-photo.photo-left .s-photo { order: unset; }
  .td-page .rhythm-intro, .td-page .sample-grid { grid-template-columns: 1fr; gap: 32px; }
  .td-page .sample-photo { min-height: 320px; }
  .td-page .rhythm-photo { min-height: 240px; }
  .td-page .ambassadors .amb-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
  .td-page .founding-band .inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
  .td-page .founding-band .fb-headline { font-size: 30px; }
  .td-page .video-card .play-btn { width: 72px; height: 72px; }
  .td-page .video-card .play-btn svg { width: 24px; height: 24px; }
  .td-page section.s, .td-page .offer .inner, .td-page .sample-block .inner, .td-page .final-cta .inner { padding-left: 24px; padding-right: 24px; }
  .td-page .hero-meta { grid-template-columns: 1fr 1fr; }
  .td-page .offer-grid { grid-template-columns: 1fr; gap: 0; }
  .td-page .offer-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .td-page .offer-item:last-child { border-bottom: none; }
  .td-page .sedarim-grid { grid-template-columns: 1fr 1fr; }
  .td-page .rhythm-week { grid-template-columns: repeat(2, 1fr); }
  .td-page .player { grid-template-columns: 56px 1fr; }
  .td-page .player .meta-right { grid-column: 1 / -1; text-align: left; }
  .td-page .faq-item { grid-template-columns: 1fr; gap: 12px; }
  .td-page .episode-list .ep { grid-template-columns: 60px 1fr; }
  .td-page .episode-list .ep .dur { display: none; }
  .td-page .arc-row { grid-template-columns: 1fr; gap: 8px; }
  .td-page .wordmark.lg img { height: 44px; }
  .td-page .wordmark.xl img { height: 64px; }
}


.inner__links{
        max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    color: white;
    align-items: center;
    padding-top: 20px;
}

.inner__links a{
color: rgba(245, 241, 232, 0.35);
text-decoration:none;
}

.inner__links a:hover{
color: white;
text-decoration:none;
}