/* =====================================================
   ON THIS DAY, day pages + hub (Day 101)
   "Leaf Front Page": the approved combination of the Calendar Leaf
   (B2) and Front Page (B3) design options. Used by every generated
   page under /on-this-day/, see automation/build-otd-pages.js, which
   writes the HTML; this file is hand-written and never generated.
   The site's own navbar/tokens come from ../style.css (loaded first).
   ===================================================== */

.otd-page {
  background: #e9e4d6;
  color: #151515;
  font-family: var(--font-body), sans-serif;
  padding: 22px 0 0;
}
.otd-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 56px);
}
.otd-page a { color: inherit; text-decoration: none; }
.otd-page a:focus-visible { outline: 3px solid #9a5400; outline-offset: 3px; }

/* ----- Masthead: calendar leaf + newspaper title ----- */
.otd-head { display: flex; gap: 30px; align-items: stretch; }

.otd-leaf { width: 196px; flex: none; position: relative; padding-top: 10px; }
.otd-leaf::before, .otd-leaf::after {
  content: ''; position: absolute; top: 0; width: 14px; height: 26px;
  border-radius: 7px; background: #151515; z-index: 2;
}
.otd-leaf::before { left: 38px; }
.otd-leaf::after { right: 38px; }
.otd-leaf-sheet {
  background: #f6efe0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 0 #8a5400, 0 14px 22px rgba(0, 0, 0, 0.22);
}
.otd-leaf-month {
  background: linear-gradient(135deg, #f4a900, #e07b00);
  padding: 20px 10px 7px; text-align: center;
  font-family: var(--font-data); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: #0a0e1a;
}
.otd-leaf-day {
  text-align: center; font-family: var(--font-data); font-weight: 700;
  font-size: 104px; line-height: 1.06; color: #241d12;
}
.otd-leaf-year { margin: 0 16px 14px; border-top: 2px dashed #b9a977; padding-top: 9px; text-align: center; }
.otd-leaf-year span {
  display: inline-block; border: 2px solid #9a5400; color: #9a5400; border-radius: 5px;
  padding: 2px 12px; font-family: var(--font-data); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 3px; transform: rotate(-4deg);
}

.otd-mast { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.otd-mast-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 2px;
  text-transform: uppercase; color: #4a4a4a;
}
.otd-paper {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2.3rem, 7vw, 4.1rem); line-height: 1.02; letter-spacing: -1px;
}
.otd-dateline {
  border-top: 1px solid #151515; border-bottom: 3px solid #151515; padding: 6px 0;
  font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 3px;
  text-transform: uppercase;
}

/* ----- Body: story column + sidebar ----- */
.otd-body { display: flex; gap: 34px; padding: 22px 0 0; }
.otd-story-col { flex: 1; min-width: 0; }

.otd-story + .otd-story { margin-top: 26px; padding-top: 20px; border-top: 1px solid #151515; }
.otd-story h1 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.1rem); line-height: 1.06;
}
.otd-story h2 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.1;
}
.otd-story-year {
  font-family: var(--font-data); font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: #8a1c1c; margin-bottom: 6px;
}
.otd-story p {
  margin-top: 14px; font-family: 'Playfair Display', serif;
  font-size: 1.08rem; line-height: 1.65; hyphens: auto;
}
.otd-story.otd-cols p { column-count: 2; column-gap: 26px; text-align: justify; }

/* ----- Clip-out quiz coupon ----- */
.otd-coupon {
  position: relative; margin-top: 22px; border: 2px dashed #9a5400;
  background: #f3efe2; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.otd-coupon-scissors {
  position: absolute; top: -12px; left: 16px; background: #e9e4d6;
  padding: 0 4px; width: 20px; height: 20px; box-sizing: content-box;
}
.otd-coupon-kicker {
  font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 3px;
  text-transform: uppercase; color: #9a5400;
}
.otd-coupon-title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: 1.45rem; line-height: 1.1; margin-top: 3px;
}
.otd-coupon-sub { font-size: 0.88rem; color: #4a4a4a; margin-top: 3px; }
.otd-coupon-btn {
  flex: none; background: #151515; color: #f6efe0 !important; padding: 13px 20px;
  font-family: var(--font-data); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
  text-align: center;
}
.otd-coupon-btn:hover { background: #2a2a2a; }

/* ----- Sidebar ----- */
.otd-side {
  width: 236px; flex: none; border-left: 1px solid #151515; padding-left: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.otd-side h2 {
  font-family: var(--font-data); font-size: 0.85rem; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; border-bottom: 3px solid #151515; padding-bottom: 6px;
}
.otd-near-list { display: flex; flex-direction: column; margin-top: 12px; }
.otd-near { display: block; padding: 11px 0; border-bottom: 1px solid #aaa; }
.otd-near:first-child { padding-top: 0; }
.otd-near:last-child { border-bottom: 0; }
.otd-near-date { font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 2px; color: #8a1c1c; text-transform: uppercase; }
.otd-near-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; margin-top: 2px; }
.otd-near:hover .otd-near-title { text-decoration: underline; }
.otd-share {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid #151515; padding: 11px;
  font-family: var(--font-data); font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
}
.otd-share:hover { background: #151515; color: #f6efe0 !important; }

/* ----- Pager (previous / next date that has a page) ----- */
.otd-pager {
  border-top: 3px solid #151515; margin-top: 26px; padding-top: 12px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-data); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
}
.otd-pager a:hover { text-decoration: underline; }

/* ----- Footer links (About/Contact/Privacy/Terms stay reachable) ----- */
.otd-foot {
  padding: 22px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.88rem; color: #4a4a4a;
}
.otd-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ----- Hub page (/on-this-day/) ----- */
.otd-hub-intro {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1.6;
  max-width: 62ch; margin-top: 20px;
}
.otd-hub h1 {
  font-family: 'Playfair Display', serif; font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.06; margin-top: 18px;
}
.otd-hub-month { margin-top: 28px; }
.otd-hub-month h2 {
  font-family: var(--font-data); font-size: 1rem; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; border-bottom: 3px solid #151515; padding-bottom: 6px;
}
.otd-hub-list {
  list-style: none; margin-top: 12px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 28px;
}
.otd-hub-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #c9c2ae;
}
.otd-hub-list a:hover .otd-hub-title { text-decoration: underline; }
.otd-hub-d { font-family: var(--font-data); font-weight: 600; color: #8a1c1c; min-width: 1.8em; }
.otd-hub-title { font-family: 'Playfair Display', serif; font-weight: 700; flex: 1; line-height: 1.25; }
.otd-hub-y { font-family: var(--font-data); font-size: 0.8rem; color: #4a4a4a; }

/* ----- Phone / narrow ----- */
@media (max-width: 760px) {
  .otd-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .otd-mast { width: 100%; }
  .otd-leaf { width: 150px; }
  .otd-leaf-month { padding: 18px 8px 6px; font-size: 0.8rem; letter-spacing: 3px; }
  .otd-leaf-day { font-size: 78px; }
  .otd-leaf-year span { font-size: 1.15rem; }
  .otd-body { flex-direction: column; gap: 24px; }
  .otd-story.otd-cols p { column-count: 1; text-align: left; }
  .otd-side { width: auto; border-left: 0; padding-left: 0; border-top: 1px solid #151515; padding-top: 18px; }
  .otd-coupon { flex-direction: column; align-items: stretch; }
  .otd-coupon-btn { width: 100%; }
  .otd-mast-top { flex-direction: column; gap: 2px; }
}

/* =====================================================
   "SCOREBOARD NIGHT" (B2), dark stadium-scoreboard skin (Day 102).
   Applied by adding `otd-night` to <main> on day pages, the hub and
   did-you-know.html. The Records pages share this file but do not use
   the class, so they keep the paper look.
   ===================================================== */
.otd-night { background: #0a0e1a; color: #f1ede2; padding-bottom: 8px; }
.otd-night a:focus-visible { outline-color: #f4a900; }
.otd-night .otd-head { background: #050810; border: 2px solid #2a3350; border-radius: 12px; padding: 20px 24px; gap: 24px; align-items: center; }
.otd-night .otd-leaf { width: auto; padding-top: 0; }
.otd-night .otd-leaf::before, .otd-night .otd-leaf::after { display: none; }
.otd-night .otd-leaf-sheet { display: flex; gap: 8px; align-items: stretch; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.otd-night .otd-leaf-day, .otd-night .otd-leaf-month, .otd-night .otd-leaf-year span {
  background: #141b30; border: 1px solid #2a3350; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #f4a900;
}
.otd-night .otd-leaf-day { order: 1; font-size: 60px; line-height: 1; padding: 8px 14px; }
.otd-night .otd-leaf-month { order: 2; font-size: 1.15rem; letter-spacing: 3px; padding: 8px 14px; }
.otd-night .otd-leaf-year { order: 3; margin: 0; border: 0; padding: 0; display: flex; }
.otd-night .otd-leaf-year span { transform: none; font-size: 1.9rem; letter-spacing: 3px; padding: 8px 14px; color: #39d98a; }
.otd-night .otd-mast-top { color: #8a93ad; }
.otd-night .otd-paper { font-family: var(--font-data); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(1.7rem, 4.5vw, 2.5rem); color: #f1ede2; }
.otd-night .otd-dateline { border-top: 1px solid #2a3350; border-bottom: 2px solid #2a3350; color: #8a93ad; }

.otd-night .otd-story + .otd-story { border-top-color: #2a3350; }
.otd-night .otd-story h1, .otd-night .otd-story h2 { font-family: var(--font-data); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #f1ede2; }
.otd-night .otd-story-year { color: #f4a900; }
.otd-night .otd-story p { font-family: var(--font-body), sans-serif; color: #e6e1d4; font-size: 1.05rem; line-height: 1.7; }
.otd-night .otd-story.otd-cols p { column-count: 1; text-align: left; }

.otd-night .otd-coupon { border: 1px solid #39d98a; border-radius: 12px; background: #141b30; }
.otd-night .otd-coupon-scissors { display: none; }
.otd-night .otd-coupon-kicker { color: #39d98a; }
.otd-night .otd-coupon-title { font-family: var(--font-data); font-weight: 600; color: #f1ede2; }
.otd-night .otd-coupon-sub { color: #8a93ad; }
.otd-night .otd-coupon-btn { background: #39d98a; color: #0a0e1a !important; border-radius: 999px; font-weight: 700; }
.otd-night .otd-coupon-btn:hover { background: #5ee6a6; }

.otd-night .otd-side { border-left-color: #2a3350; }
.otd-night .otd-side h2 { color: #8a93ad; border-bottom-color: #2a3350; }
.otd-night .otd-near { background: #141b30; border: 1px solid #2a3350; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.otd-night .otd-near:first-child { padding-top: 10px; }
.otd-night .otd-near-date { color: #f4a900; }
.otd-night .otd-near-title { font-family: var(--font-body), sans-serif; font-weight: 700; font-size: .95rem; }
.otd-night .otd-share { border-color: #2a3350; border-radius: 999px; }
.otd-night .otd-share:hover { background: #f1ede2; color: #0a0e1a !important; }
.otd-night .otd-pager { border-top-color: #2a3350; color: #8a93ad; }
.otd-night .otd-foot { color: #8a93ad; }

.otd-night.otd-hub h1 { font-family: var(--font-data); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.otd-night .otd-hub-intro { font-family: var(--font-body), sans-serif; color: #e6e1d4; }
.otd-night .otd-hub-month h2 { color: #8a93ad; border-bottom-color: #2a3350; }
.otd-night .otd-hub-list a { border-bottom-color: #2a3350; }
.otd-night .otd-hub-d { color: #f4a900; }
.otd-night .otd-hub-title { font-family: var(--font-body), sans-serif; }
.otd-night .otd-hub-y { color: #8a93ad; }
@media (max-width: 760px) {
  .otd-night .otd-head { align-items: flex-start; padding: 16px; }
  .otd-night .otd-leaf-day { font-size: 44px; padding: 6px 10px; }
  .otd-night .otd-leaf-month { font-size: .95rem; letter-spacing: 2px; padding: 6px 10px; }
  .otd-night .otd-leaf-year span { font-size: 1.4rem; padding: 6px 10px; }
  .otd-night .otd-side { border-top-color: #2a3350; }
}

/* =====================================================
   "CALENDAR LEAF NIGHT", day pages + did-you-know.html (Day 102).
   A dark page with a paper calendar leaf on the left and the story on the
   right. Class `otd-cal` goes on <main> together with `otd-night`.
   ===================================================== */
.otd-cal .cal-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 18px; font-family: var(--font-data); letter-spacing: 3px; font-size: .75rem; text-transform: uppercase; color: #8a93ad; }
.otd-cal .cal-brand { color: #f4a900; font-weight: 700; letter-spacing: 1px; font-size: .95rem; text-decoration: none; }
.otd-cal .cal-grid { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; }
.otd-cal .cal-leaf { position: relative; padding-top: 14px; }
.otd-cal .cal-ring { position: absolute; top: 0; width: 14px; height: 30px; background: #0a0e1a; border: 3px solid #cfc6ae; border-radius: 8px; z-index: 2; }
.otd-cal .cal-ring-l { left: 38px; } .otd-cal .cal-ring-r { right: 38px; }
.otd-cal .cal-sheet { background: #f6efe0; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 0 #8a5400; }
.otd-cal .cal-month { background: #e8a000; color: #0a0e1a; text-align: center; padding: 22px 8px 10px; font-family: var(--font-data); letter-spacing: 5px; font-size: .85rem; text-transform: uppercase; }
.otd-cal .cal-day { text-align: center; font-family: var(--font-data); font-weight: 700; font-size: 6.2rem; line-height: 1.05; color: #241d12; padding: 8px 0 0; }
.otd-cal .cal-year { text-align: center; padding: 6px 0 18px; }
.otd-cal .cal-year span { display: inline-block; border: 2px dashed #9a5400; color: #9a5400; border-radius: 6px; padding: 1px 12px; font-family: var(--font-data); font-size: 1.15rem; letter-spacing: 3px; transform: rotate(-4deg); }
.otd-cal .cal-eyebrow { font-family: var(--font-data); text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; color: #f4a900; margin-bottom: 6px; }
.otd-cal .otd-story { padding: 0; margin-bottom: 18px; border: 0; }
.otd-cal .otd-story + .otd-story { border-top: 1px solid #2a3350; padding-top: 18px; }
.otd-cal .otd-story-year { display: none; }
.otd-cal .otd-story h1, .otd-cal .otd-story h2 { font-family: 'Baloo 2', var(--font-body), sans-serif; text-transform: none; letter-spacing: 0; font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.08; margin: 0 0 14px; color: #fff; }
.otd-cal .otd-story h2 { font-size: 1.6rem; }
.otd-cal .otd-story p { font-size: 1.05rem; line-height: 1.7; color: #e6e1d4; margin: 0 0 12px; }
.otd-cal .otd-story p + p { color: #aab2c8; font-size: 1rem; }
.otd-cal .cal-quiz { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #101830; border: 1px dashed #3a4770; border-radius: 12px; padding: 16px 18px; margin-top: 8px; }
.otd-cal .cal-quiz-kicker { font-family: var(--font-data); text-transform: uppercase; letter-spacing: 3px; font-size: .7rem; color: #f4a900; }
.otd-cal .cal-quiz-title { font-family: 'Baloo 2', var(--font-body), sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; margin: 2px 0; }
.otd-cal .cal-quiz-sub { font-size: .85rem; color: #8a93ad; }
.otd-cal .cal-btn { background: #f4a900; color: #0a0e1a !important; font-weight: 800; border-radius: 999px; padding: 12px 22px; text-decoration: none; white-space: nowrap; }
.otd-cal .cal-btn:hover { background: #ffc233; }
.otd-cal .cal-bottom { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.otd-cal .cal-chip { flex: 1 1 200px; background: #101830; border: 1px solid #2a3350; border-radius: 10px; padding: 10px 14px; text-decoration: none; color: #f1ede2; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.otd-cal .cal-chip small { color: #8a93ad; font-size: .72rem; }
.otd-cal .cal-chip b { font-family: var(--font-data); letter-spacing: 1px; font-weight: 600; }
.otd-cal .cal-chip-r { text-align: right; }
.otd-cal .cal-chip:hover { border-color: #f4a900; }
.otd-cal .cal-share { flex: 0 1 auto; justify-content: center; align-items: center; font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) {
  .otd-cal .cal-grid { grid-template-columns: 1fr; gap: 22px; }
  .otd-cal .cal-leaf { max-width: 190px; margin: 0 auto; width: 100%; }
  .otd-cal .cal-day { font-size: 5rem; }
  .otd-cal .cal-quiz { flex-direction: column; align-items: stretch; }
  .otd-cal .cal-btn { text-align: center; }
}

/* Calendar Leaf Night, records figure on the leaf, and the two hub pages */
.otd-cal .cal-day.cal-fig { font-size: 3.6rem; line-height: 1.5; padding: 0 6px; word-break: break-word; }
.otd-cal .cal-day.cal-fig-long { font-size: 2.3rem; line-height: 2.1; }
.otd-cal.otd-hub h1 { font-family: 'Baloo 2', var(--font-body), sans-serif; text-transform: none; letter-spacing: 0; font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.08; color: #fff; margin: 0 0 12px; }
.otd-cal .cal-hubhead { margin-bottom: 28px; align-items: center; }
.otd-cal .otd-hub-intro { font-size: 1.05rem; line-height: 1.7; }
@media (max-width: 760px) { .otd-cal .cal-day.cal-fig { font-size: 2.8rem; } .otd-cal .cal-day.cal-fig-long { font-size: 1.8rem; } }

/* ---- Breadcrumbs + "keep reading" links (Day 107, AdSense readiness) ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 14px; font-size: 0.82rem; line-height: 1.5; color: inherit; opacity: 0.8; }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.crumbs i { font-style: normal; opacity: 0.6; }
.crumbs [aria-current] { opacity: 0.85; }
.rel-box { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid currentColor; border-color: rgba(127,127,127,0.35); border-radius: 12px; }
.rel-box h2 { margin: 0 0 10px; font-size: 1.15rem; }
.rel-group + .rel-group { margin-top: 14px; }
.rel-group h3 { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: none; opacity: 0.75; font-weight: 700; }
.rel-group ul { margin: 0; padding: 0; list-style: none; }
.rel-group li { margin: 0 0 6px; line-height: 1.45; }
.rel-group a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.rel-group small { opacity: 0.7; margin-left: 6px; }
