/* jewish-dates.css - Scroll & Stone
   The generated static date pages: festival dates (*-dates.html), the
   jewish-holidays.html hub, on-this-day.html and on-this-day-<month>-<day>.html.
   Night ground and vellum text, as the site; gold only on the eyebrow and links,
   following keep-posted.css's room pattern. Tables stack to cards at phone width. */

.dates-room {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem);
}

.dates-room .eyebrow {
  font-family: var(--utility);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.dates-room .eyebrow a { text-decoration: none; }
.dates-room .eyebrow a:hover { text-decoration: underline; }

.dates-room h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}

.dates-room h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.2rem 0 0.6rem;
  color: var(--gold-soft);
}

.dates-room p,
.dates-room li {
  font-size: 1.05rem;
  line-height: 1.62;
  color: color-mix(in srgb, var(--vellum) 88%, transparent);
}
.dates-room p + p { margin-top: 0.75rem; }
.dates-room a { color: var(--gold-soft); }

.dates-answer {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.6vw, 1.35rem) !important;
  line-height: 1.5 !important;
  color: var(--vellum) !important;
}

.dates-note {
  margin-top: 0.9rem;
  font-family: var(--utility);
  font-size: 0.85rem !important;
  color: color-mix(in srgb, var(--vellum) 66%, transparent) !important;
}

/* ---- tables ---- */
.dates-table-wrap { margin: 1.8rem 0 0.5rem; }
.dates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--utility);
  font-size: 0.9rem;
  line-height: 1.45;
}
.dates-table caption {
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--vellum) 62%, transparent);
  padding-bottom: 0.6rem;
}
.dates-table th,
.dates-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.7rem 0.65rem 0;
  border-top: 1px solid rgba(203, 185, 149, 0.22);
}
.dates-table thead th {
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--vellum) 70%, transparent);
  border-top: 0;
}
.dates-table tbody th { font-weight: 600; white-space: nowrap; }
.dates-table a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dates-past {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--vellum) 55%, transparent);
}

@media (max-width: 640px) {
  .dates-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dates-table, .dates-table caption, .dates-table tbody, .dates-table tr, .dates-table th, .dates-table td { display: block; width: 100%; }
  .dates-table tr { padding: 0.8rem 0; border-top: 1px solid rgba(203, 185, 149, 0.28); }
  .dates-table th, .dates-table td { border: 0; padding: 0.15rem 0; }
  .dates-table tbody th { font-size: 1rem; padding-bottom: 0.35rem; white-space: normal; }
  .dates-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: color-mix(in srgb, var(--vellum) 62%, transparent);
  }
}

/* ---- link lists ---- */
.dates-links { list-style: none; padding: 0; margin-top: 0.4rem; }
.dates-links li { padding: 0.35rem 0; border-top: 1px solid rgba(203, 185, 149, 0.16); }
.dates-links li:first-child { border-top: 0; }
.dates-links--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); column-gap: 1.5rem; }
.dates-links--grid li:nth-child(-n+3) { border-top: 0; }
.dates-more {
  margin-top: 2rem !important;
  font-family: var(--utility);
  font-size: 0.9rem !important;
}

/* ---- on-this-day day pages ---- */
.otd-events { list-style: none; padding: 0; margin-top: 0.6rem; }
.otd-event {
  padding: 1rem 0;
  border-top: 1px solid rgba(203, 185, 149, 0.22);
}
.otd-event:first-child { border-top: 0; }
.otd-event-when {
  font-family: var(--utility);
  font-size: 0.78rem !important;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--vellum) 66%, transparent) !important;
}
.otd-event h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0.2rem 0 0.35rem;
}
.otd-event-note {
  margin-top: 0.4rem;
  font-family: var(--utility);
  font-size: 0.85rem !important;
  color: color-mix(in srgb, var(--vellum) 70%, transparent) !important;
}
.otd-draft-label {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  font-family: var(--utility);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--pomegranate);
  color: var(--vellum);
  vertical-align: middle;
}
.otd-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.4rem;
  font-family: var(--utility);
  font-size: 0.9rem;
}

/* ---- on-this-day.html month grid ---- */
.otd-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.6rem 2rem;
  margin-top: 1.8rem;
}
.otd-month h2 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.otd-days {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}
.otd-days li { padding: 0; font-family: var(--utility); font-size: 0.85rem !important; }
.otd-days a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border: 1px solid rgba(203, 185, 149, 0.22);
  border-radius: 3px;
  text-decoration: none;
  color: color-mix(in srgb, var(--vellum) 80%, transparent);
}
.otd-days a:hover { border-color: var(--gold); color: var(--vellum); }
.otd-days a.has-festival {
  border-color: rgba(199, 162, 75, 0.7);
  color: var(--gold-soft);
  font-weight: 600;
}
.otd-key {
  margin-top: 1rem;
  font-family: var(--utility);
  font-size: 0.85rem !important;
  color: color-mix(in srgb, var(--vellum) 66%, transparent) !important;
}
