/* ==========================================================================
   Schedule Page — Bureaucratic Paper (Phase 3 Redesign, 2026-05-05)
   
   Structural parity with sister pages: prophecy, atelier, transmission,
   archives. Paper document on dark desk. Cloud sky bleeds through desk wash.
   
   Design system:
   - .schedule-document  — outermost wrapper (matches .prophecy-document, etc.)
   - .schedule-cover     — document cover panel (SCH-000 series)
   - .schedule-section   — paper section panels with double-rule headers
   - Holy Days: .holy-day-row flex rows (dot / name / date / countdown stamp)
   - History:  .history-item-main (theme + type caption) + date right-aligned
   ========================================================================== */


/* -------------------------------------------------------------------------
   Page base — dark desk background
   ------------------------------------------------------------------------- */

.schedule-document {
  /* Cloud sky shows through --page-desk-wash overlay */
  background: var(--page-desk-wash, #100e0c);
  min-height: 100vh;
  padding: 2rem 2rem 4rem;
  padding-left: calc(2rem + 70px); /* room for nav rail */
  max-width: none;
}

.hidden {
  display: none !important;
}


/* -------------------------------------------------------------------------
   Document Cover — aged-manila cover panel (SCH-000 series)
   Mirrors .prophecy-cover, .atelier-cover, .transmission-cover
   ------------------------------------------------------------------------- */

.schedule-cover {
  background: var(--paper-bg-aged, #ede8db);
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  box-shadow: var(--shadow-deep, 6px 6px 0 rgba(0,0,0,0.20));
  padding: 2rem 2.5rem 2rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.schedule-doc-number {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--ink-meta, #6b5f50);
  letter-spacing: 0.08em;
}

.schedule-cover-classification {
  font-family: 'Michroma', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
}

.schedule-cover-title {
  font-family: 'Michroma', monospace;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-primary, #0a0908);
  margin: 0 0 0.25rem;
  line-height: 1.1;
}

.schedule-cover-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--ink-meta, #6b5f50);
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
}

.schedule-cover-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  border-right: none; /* each cell has right border */
}

.schedule-cover-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 1rem;
  border-right: 1.5px solid var(--rule-primary, #1a1a1a);
  background: var(--paper-bg-alt, #ffffff);
}

.scf-label {
  font-family: 'Michroma', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
}

.scf-value {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--ink-accent-dark, #0e2a56);
  font-weight: 700;
}


/* -------------------------------------------------------------------------
   Section containers — paper panel with double-rule header
   (identical pattern to .prophecy-section, .atelier-section, etc.)
   ------------------------------------------------------------------------- */

.schedule-section {
  background: var(--paper-bg, #f7f3ea);
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  box-shadow: var(--shadow-md, 3px 3px 0 rgba(0,0,0,0.16));
  border-radius: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  color: var(--ink-primary, #0a0908);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Double-rule aged-manila section header */
.schedule-section-header {
  background: var(--paper-bg-aged, #ede8db);
  border-bottom: 3px double var(--rule-primary, #1a1a1a);
  padding: 0;
}

.schedule-section-title {
  font-family: 'Michroma', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary, #0a0908);
  margin: 0;
  padding: 0.65rem 1.5rem;
}

/* Generic section body padding */
.schedule-section-body {
  padding: 1.25rem 1.5rem;
}


/* -------------------------------------------------------------------------
   Liturgical Context Bureau — lightweight season rows
   (season-color-dot + season-label + week/date, matches .liturgical-season-display)
   ------------------------------------------------------------------------- */

.liturgical-context-content {
  padding: 1.25rem 1.5rem;
}

.context-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  padding: 0.5rem 0;
}

/* Liturgical season display rows (rendered by JS) */
.liturgical-season-display,
.liturgical-context-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
}

.liturgical-season-display:last-child,
.liturgical-context-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.season-color-dot,
.liturgical-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Liturgical season color system */
.season-advent,    .color-advent    { background: #4a1e6e; border-color: #2d1044; }
.season-lent,      .color-lent      { background: #4a1e6e; border-color: #2d1044; }
.season-ordinary,  .color-ordinary  { background: #14532d; border-color: #0a2e18; }
.season-easter,    .color-easter    { background: #854d0e; border-color: #5a3308; }
.season-christmas, .color-christmas { background: #854d0e; border-color: #5a3308; }
.season-pentecost, .color-pentecost { background: #7f1d1d; border-color: #4c1010; }
.season-rose,      .color-rose      { background: #831843; border-color: #4c0e27; }
.season-gold,      .color-gold      { background: #a16207; border-color: #713f12; }
.season-white,     .color-white     { background: #e2e8f0; border-color: #94a3b8; }
.season-red,       .color-red       { background: #7f1d1d; border-color: #4c1010; }
.season-purple,    .color-purple    { background: #4a1e6e; border-color: #2d1044; }
.season-green,     .color-green     { background: #14532d; border-color: #0a2e18; }

.season-label,
.liturgical-season-name {
  font-family: 'Michroma', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-accent-dark, #0e2a56);
  margin-bottom: 0.15rem;
}

.season-week,
.liturgical-week {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--ink-meta, #6b5f50);
}

.season-description,
.liturgical-description {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-primary, #0a0908);
  margin: 0.25rem 0 0;
}


/* -------------------------------------------------------------------------
   Holy Days Commission — tabular flex rows
   .holy-day-row: dot / name / date / countdown stamp
   ------------------------------------------------------------------------- */

.holy-days-content {
  padding: 0.25rem 0;
}

/* Canonical flex row — color dot + name + date right + countdown stamp */
.holy-day-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
}

.holy-day-row:last-child {
  border-bottom: none;
}

/* Pinned "next holy day" gets a subtle aged-manila highlight */
.holy-day-row--next {
  background: var(--paper-bg-aged, #ede8db);
  border-bottom: 1.5px solid var(--rule-primary, #1a1a1a);
}

/* Small color dot (shared with liturgical season palette above) */
.upcoming-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  flex-shrink: 0;
}

.holy-day-name {
  font-family: 'Michroma', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-accent-dark, #0e2a56);
  flex: 1; /* takes remaining space, pushing date + countdown right */
}

.holy-day-date {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--ink-meta, #6b5f50);
  white-space: nowrap;
}

.holy-day-countdown {
  font-family: 'Michroma', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-stamp, #b8332a);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* Description text beneath the next-holy-day row */
.holy-day-description {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-secondary, #3a3530);
  padding: 0.6rem 1.5rem 0.75rem calc(1.5rem + 8px + 0.75rem); /* indent to align under name */
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
}

/* Upcoming observances sub-label */
.holy-days-upcoming-label {
  font-family: 'Michroma', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
  padding: 0.65rem 1.5rem 0.3rem;
  background: var(--paper-bg-alt, #ffffff);
  border-top: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
}

.holy-days-empty {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  padding: 1rem 1.5rem;
}


/* -------------------------------------------------------------------------
   Service type tabs — paper buttons with visible active state
   ------------------------------------------------------------------------- */

.service-tabs {
  display: flex;
  gap: 0;
  background: var(--paper-bg-aged, #ede8db);
  border-bottom: 1.5px solid var(--rule-primary, #1a1a1a);
  overflow-x: auto;
  padding: 0 1rem;
}

.service-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.8rem 1.25rem 0.65rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  min-width: 110px;
  transition: border-color 0.15s ease, background 0.15s ease;
  color: var(--ink-secondary, #3a3530);
}

.service-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.service-tab.active {
  border-bottom-color: var(--ink-accent-dark, #0e2a56);
  background: var(--paper-bg, #f7f3ea);
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.tab-label {
  font-family: 'Michroma', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary, #3a3530);
}

.service-tab.active .tab-label {
  color: var(--ink-accent-dark, #0e2a56);
}

.tab-time {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--ink-meta, #6b5f50);
}


/* -------------------------------------------------------------------------
   Service display area
   ------------------------------------------------------------------------- */

.service-display {
  padding: 1.25rem 1.5rem;
}

/* Loading / empty states */
.service-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--rule-soft, rgba(0,0,0,0.15));
  border-top-color: var(--ink-accent, #1d4a8c);
  border-radius: 50%;
  animation: schedule-spin 0.8s linear infinite;
}

@keyframes schedule-spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  margin: 0;
}

.empty-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.empty-title {
  font-family: 'Michroma', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-accent-dark, #0e2a56);
  margin: 0;
}

.empty-hint {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  margin: 0;
}


/* -------------------------------------------------------------------------
   Service content — rendered service body
   ------------------------------------------------------------------------- */

.service-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.3s ease;
}

.service-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.15));
}

.service-liturgical-badge {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.service-season-badge,
.service-week-badge {
  font-family: 'Michroma', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: var(--ink-accent-dark, #0e2a56);
  padding: 0.15rem 0.5rem;
  border-radius: 0;
}

.service-week-badge {
  background: var(--ink-meta, #6b5f50);
}

.service-theme {
  font-family: 'Michroma', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink-primary, #0a0908);
  margin: 0;
  text-transform: uppercase;
}

/* Service image — dark inset for artwork */
.service-image-container {
  background: #0a0a10;
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  box-shadow: var(--shadow-md, 3px 3px 0 rgba(0,0,0,0.16));
  padding: 0.5rem;
  text-align: center;
}

.service-image {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.service-image-artist {
  font-family: 'Michroma', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.4rem 0 0;
  text-align: center;
}

/* Service text */
.service-text-container {
  padding: 0;
}

.service-text-type {
  font-family: 'Michroma', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.15));
}

.service-text-content {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink-primary, #0a0908);
  margin-bottom: 0.75rem;
}

.service-text-content p {
  margin: 0 0 0.85rem;
}

.service-text-content p:last-child {
  margin-bottom: 0;
}

.service-text-author {
  font-family: 'Michroma', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--ink-accent, #1d4a8c);
  margin: 0;
  text-transform: uppercase;
}

.service-footer {
  border-top: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
  padding-top: 0.6rem;
}

.service-generated-at {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--ink-meta, #6b5f50);
  margin: 0;
}


/* -------------------------------------------------------------------------
   Service history registry — theme-first rows
   ------------------------------------------------------------------------- */

.service-history-content {
  padding: 0.25rem 0;
}

.history-note {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  padding: 1rem 1.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
  cursor: pointer;
  transition: background 0.1s ease;
  gap: 0.75rem;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item:hover {
  background: var(--paper-bg-aged, #ede8db);
}

/* Theme + type caption stacked vertically, takes remaining flex width */
.history-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  overflow: hidden;
}

.history-item-theme {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  color: var(--ink-primary, #0a0908);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Small Michroma caption below theme — service type */
.history-item-type {
  font-family: 'Michroma', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
}

.history-item-date {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--ink-meta, #6b5f50);
  white-space: nowrap;
  flex-shrink: 0;
}

.history-arrow {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--ink-meta, #6b5f50);
  flex-shrink: 0;
}

.history-empty {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
  padding: 1rem 1.5rem;
}


/* -------------------------------------------------------------------------
   Service detail modal — dark overlay + paper panel
   ------------------------------------------------------------------------- */

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--paper-bg, #f7f3ea);
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  box-shadow: var(--shadow-deep, 6px 6px 0 rgba(0,0,0,0.20));
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: var(--ink-primary, #0a0908);
}

.modal-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  background: var(--paper-bg-aged, #ede8db);
  border: none;
  border-bottom: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
  color: var(--ink-meta, #6b5f50);
  font-size: 0.7rem;
  font-family: 'Michroma', monospace;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  width: 100%;
  text-align: right;
  transition: color 0.15s ease;
  z-index: 2;
}

.modal-close:hover {
  color: var(--ink-primary, #0a0908);
}

.modal-body {
  padding: 1.5rem;
}

/* Modal service header */
.modal-service-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px double var(--rule-primary, #1a1a1a);
}

.modal-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-service-season,
.modal-service-id,
.modal-service-timestamp {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--ink-meta, #6b5f50);
}

.modal-service-season {
  font-family: 'Michroma', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-accent-dark, #0e2a56);
}

.modal-service-theme {
  font-family: 'Michroma', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-primary, #0a0908);
  margin: 0;
}

/* Modal image */
.modal-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem;
  background: #0a0a10;
  border: 1.5px solid var(--rule-primary, #1a1a1a);
}

.modal-image-artist {
  font-family: 'Michroma', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
  text-align: center;
  margin: 0 0 1rem;
}

/* Modal text */
.modal-text-badge {
  font-family: 'Michroma', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: var(--ink-accent-dark, #0e2a56);
  padding: 0.15rem 0.5rem;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.modal-text-body {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-primary, #0a0908);
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.modal-text-author {
  font-family: 'Michroma', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-accent, #1d4a8c);
  margin: 0 0 1rem;
}

/* Modal session rationale */
.modal-rationale {
  background: var(--paper-bg-alt, #ffffff);
  border: 1.5px solid var(--rule-primary, #1a1a1a);
  border-left: 4px solid var(--ink-stamp, #b8332a);
  box-shadow: var(--shadow-sm, 2px 2px 0 rgba(0,0,0,0.14));
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}

.modal-rationale-label {
  font-family: 'Michroma', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-meta, #6b5f50);
  margin: 0 0 0.4rem;
}

.modal-rationale-text {
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-primary, #0a0908);
  margin: 0;
  font-style: italic;
}

/* Modal footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--rule-soft, rgba(0,0,0,0.12));
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: var(--ink-meta, #6b5f50);
}

/* Modal loading / error states */
.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-secondary, #3a3530);
}

.modal-error {
  padding: 1.5rem;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
  color: var(--ink-stamp, #b8332a);
  text-align: center;
}


/* -------------------------------------------------------------------------
   Mobile responsive
   ------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .schedule-document {
    padding: 1rem 1rem 3rem;
    padding-left: calc(1rem + 60px);
  }

  .schedule-cover {
    padding: 1.5rem 1.25rem;
  }

  .schedule-cover-fields {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-section-title {
    font-size: 0.65rem;
    padding: 0.5rem 1.25rem;
  }

  .schedule-section-body,
  .service-display {
    padding: 1rem 1.25rem;
  }

  .holy-day-row {
    padding: 0.6rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .holy-day-countdown {
    min-width: auto;
  }

  .history-item {
    padding: 0.65rem 1.25rem;
    gap: 0.5rem;
  }

  .service-tabs {
    padding: 0 0.5rem;
  }

  .service-tab {
    min-width: 90px;
    padding: 0.7rem 0.75rem 0.6rem;
  }

  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body {
    padding: 1.25rem;
  }
}
