/* ─────────────────────────────────────────────────────────────
   Today — a daily reading page.
   Narrow reading column. Breviary metaphor for "manuscript"
   display; minimal column for "quiet". The teaching's tradition
   tints the page via --trad.
   ───────────────────────────────────────────────────────────── */

html, body { min-height: 100%; }
body.today-body {
  background: var(--bg);
  overflow-x: hidden;
}

/* ───────── header ───────── */
.td2-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 36px; min-height: 60px;
  background: color-mix(in srgb, var(--bg), transparent 10%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 50%);
}
.td2-brand {
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.td2-brand .sep { color: var(--muted); }
.td2-brand .sub { color: var(--text3); }
.td2-nav { display: flex; gap: 16px 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.td2-nav a {
  font-family: "Jost", sans-serif;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  position: relative; padding: 4px 0;
}
.td2-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right 300ms ease;
}
.td2-nav a:hover, .td2-nav a.active { color: var(--accent-hi); }
.td2-nav a:hover::after, .td2-nav a.active::after { right: 0; }

/* ───────── page wrapper ───────── */
.td2-page {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.td2-page::before {
  /* tradition halo behind the column */
  content: "";
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 1200px; max-width: 100vw;
  height: 600px;
  background: radial-gradient(ellipse 40% 60% at 50% 40%, color-mix(in srgb, var(--trad) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.td2-page > * { position: relative; z-index: 1; }

/* ───────── date header ───────── */
.td2-date {
  text-align: center;
  margin-bottom: 64px;
}
.td2-date-eye {
  font-family: "Cinzel", serif;
  font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.td2-date-eye::before, .td2-date-eye::after {
  content: ""; width: 36px; height: 1px; background: var(--border2);
}
.td2-date-roman {
  font-family: "Cinzel", serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
  display: inline-flex; align-items: baseline; gap: 18px;
  flex-wrap: wrap; justify-content: center;
  text-shadow: 0 0 60px color-mix(in srgb, var(--trad), transparent 60%);
}
.td2-date-roman .sep {
  color: var(--accent);
  font-size: 0.6em;
  letter-spacing: 0;
}
.td2-date-plain {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text3);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap; justify-content: center;
}
.td2-date-plain .weekday {
  color: var(--accent);
  font-style: normal;
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
}
.td2-date-quiet {
  font-family: "Cinzel", serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.td2-date-quiet .weekday {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
.td2-jump {
  background: transparent;
  border: 0;
  margin-top: 16px;
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
}
.td2-jump:hover { color: var(--accent); }

.td2-date-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.td2-date-keep {
  display: inline-flex; align-items: center;
}

.td2-press-hint {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px dashed color-mix(in srgb, var(--border2), transparent 40%);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.td2-press-hint .gl { color: var(--accent); margin-right: 6px; }
.td2-press-hint em { color: var(--text3); font-style: italic; }

.td2-dispatch-wrap {
  position: relative;
}
.td2-dispatch-keep {
  position: absolute;
  top: 16px; right: 16px;
}

/* ───────── teaching ───────── */
.td2-teaching {
  margin-bottom: 64px;
}
.td2-teach-hero {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--trad), transparent 70%);
}
.td2-trad-glyph {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 12px var(--trad));
}
.td2-teach-meta { flex: 1; min-width: 0; }
.td2-teach-trad {
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 4px;
}
.td2-teach-era {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.td2-teach-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  text-wrap: balance;
  flex: 1; min-width: 0;
}
.td2-teach-titlewrap {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.td2-teach-source {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--text3);
  margin-bottom: 36px;
}
.td2-teach-body p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 300;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 26px;
  text-wrap: pretty;
}
.td2-teach-body p:last-child { margin-bottom: 0; }

/* manuscript: drop cap on first paragraph */
.display-manuscript .td2-teach-body p.first::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  float: left;
  font-size: 4.8em;
  line-height: 0.85;
  padding: 8px 12px 0 0;
  color: var(--trad);
  font-weight: 500;
  text-shadow: 0 0 24px color-mix(in srgb, var(--trad), transparent 60%);
}

.td2-divider {
  display: flex; align-items: center; justify-content: center;
  margin: 40px 0;
  color: var(--accent-lo);
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 0.3em;
}
.td2-divider::before, .td2-divider::after {
  content: ""; width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--border2), transparent);
  margin: 0 18px;
}

.display-quiet .td2-divider {
  font-size: 0;
}
.display-quiet .td2-divider::before, .display-quiet .td2-divider::after {
  width: 28px;
}

/* notes */
.td2-notes {
  padding: 18px 22px;
  border-left: 2px solid var(--accent-lo);
  background: color-mix(in srgb, var(--bg2), transparent 40%);
  border-radius: 0 4px 4px 0;
}
.td2-notes-label {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.td2-notes p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text3);
  line-height: 1.65;
  margin: 0;
}

.td2-teach-foot {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: "Jost", sans-serif;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.td2-link {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s, color .15s;
}
.td2-link:hover { color: var(--accent-hi); gap: 10px; }
.td2-link.subtle { color: var(--text3); }
.td2-link.subtle:hover { color: var(--accent); }

/* ───────── question prompt ───────── */
.td2-prompt {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 36px;
}
.td2-prompt-eye {
  font-family: "Cinzel", serif;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 14px;
}
.td2-prompt-eye::before, .td2-prompt-eye::after {
  content: ""; width: 32px; height: 1px; background: var(--accent-lo);
}
.td2-prompt-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.4;
  margin: 0 auto 16px;
  max-width: 30ch;
  text-wrap: balance;
}
.td2-prompt-theme {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.td2-prompt-theme a {
  color: var(--accent);
  text-decoration: none;
}
.td2-prompt-theme a:hover { color: var(--accent-hi); }

/* ───────── dispatch alongside ───────── */
.td2-dispatch {
  margin-bottom: 56px;
}
.td2-dispatch-eye {
  font-family: "Cinzel", serif;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  text-align: center;
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
}
.td2-dispatch-eye::before, .td2-dispatch-eye::after {
  content: ""; width: 32px; height: 1px; background: var(--border2);
}
.td2-dispatch-card {
  display: block;
  padding: 28px 30px;
  border: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 4px;
  text-decoration: none; color: inherit;
  transition: all .2s;
}
.td2-dispatch-card:hover {
  border-color: var(--accent-lo);
  transform: translateY(-2px);
}
.td2-dispatch-meta {
  font-family: "Jost", sans-serif;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.td2-dispatch-meta .kind { color: var(--accent); }
.td2-dispatch-meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--border2);
}
.td2-dispatch-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 8px;
  text-wrap: balance;
}
.td2-dispatch-card:hover .td2-dispatch-title { color: var(--accent-hi); }
.td2-dispatch-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 18px;
}
.td2-dispatch-cta {
  font-family: "Jost", sans-serif;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

/* ───────── day navigation ───────── */
.td2-daynav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.td2-daynav a {
  text-decoration: none; color: inherit;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background .15s;
}
.td2-daynav a:hover { background: var(--bg2); }
.td2-daynav a:last-child { text-align: right; }
.td2-daynav .dn-label {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.td2-daynav a:hover .dn-label { color: var(--accent); }
.td2-daynav .dn-date {
  font-family: "Cinzel", serif;
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text2);
}
.td2-daynav-mid {
  text-align: center;
  padding: 0 12px;
}
.td2-daynav-mid .dn-today {
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
}
.td2-daynav-mid .dn-today-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ───────── subscribe nudge ───────── */
.td2-subscribe {
  text-align: center;
  margin: 48px auto 0;
  padding: 28px 24px;
}
.td2-subscribe p {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--text3);
  margin-bottom: 12px;
}

/* ───────── footer ───────── */
.td2-foot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 18px;
}
.td2-foot .brand {
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.td2-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.td2-foot .links a {
  font-family: "Jost", sans-serif;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text3);
}
.td2-foot .links a:hover { color: var(--accent); }

/* ───────── breakpoints ───────── */
@media (max-width: 720px) {
  .td2-head { padding: 0 16px; }
  .td2-nav { gap: 14px; overflow-x: auto; }
  .td2-nav a { white-space: nowrap; }
  .td2-page { padding: 40px 20px 64px; }
  .td2-teach-hero { gap: 14px; }
  .td2-daynav { grid-template-columns: 1fr 1fr; }
  .td2-daynav-mid { display: none; }
}


/* ───────── mobile nav scroll fix ─────────
   Force the nav to be a scrollable horizontal strip so all links remain
   reachable when there's not enough room. Without min-width:0 + flex:1,
   flex layout lets the nav overflow the viewport (which body clips). */
@media (max-width: 800px) {
  .td2-head { gap: 12px; }
  .td2-brand .sep, .td2-brand .sub { display: none; }
  .td2-nav {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-end;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .td2-nav::-webkit-scrollbar { display: none; }
  .td2-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
