/**
 * Schedule lessons — structured content, anthem grid, long overlay scroll.
 * Loaded after lesson-stylish-ch2.css (scoped under .ch2-stylish where useful).
 */

main.chapter-main.schedule-lesson {
  width: 100%;
  max-width: none;
}

.schedule-lesson .h-schedule {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.65rem;
  color: #0f172a;
}

/* Second Schedule — symbol thumbnails (use .article-btn for overlay JS) */
.schedule-lesson .schedule-symbol-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  max-width: 56rem;
}

.schedule-lesson .schedule-symbol-card.article-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.55rem 0.65rem;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: var(--card, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  font: inherit;
  color: inherit;
  width: 100%;
}

.schedule-lesson .schedule-symbol-card.article-btn:hover {
  border-color: var(--primary, #1d4ed8);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.12);
}

.schedule-lesson .schedule-symbol-card.article-btn:focus-visible {
  outline: 2px solid var(--primary, #1d4ed8);
  outline-offset: 2px;
}

.schedule-lesson .schedule-symbol-card__imgwrap {
  border-radius: 8px;
  background: #f1f5f9;
  padding: 0.35rem;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-lesson .schedule-symbol-card__imgwrap img {
  max-width: 100%;
  height: auto;
  max-height: 5rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.schedule-lesson .schedule-symbol-card__imgwrap--anthem {
  position: relative;
  overflow: hidden;
}

.schedule-lesson .schedule-symbol-card__anthem-watermark {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0.16;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.schedule-lesson .schedule-symbol-card__anthem-label {
  position: relative;
  z-index: 1;
  font-size: 2.25rem;
  line-height: 1;
  opacity: 0.88;
}

.schedule-lesson .schedule-symbol-card__cap {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.schedule-lesson .schedule-symbol-figure {
  margin: 0 0 1rem;
  text-align: center;
}

.schedule-lesson .schedule-symbol-figure img {
  max-width: min(100%, 28rem);
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.schedule-lesson .schedule-symbol-figure--anthem-banner img {
  max-height: 4.75rem;
  width: auto;
}

.schedule-lesson .schedule-symbol-figure__cite {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content .schedule-symbol-figure {
  margin-bottom: 1rem;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content .schedule-symbol-figure img {
  max-width: 100%;
  max-height: min(38vh, 20rem);
  width: auto;
  height: auto;
}

.schedule-lesson .schedule-county-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem 1rem;
}

.schedule-lesson .schedule-county-grid li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid var(--border, #e2e8f0);
  font-size: 0.92rem;
}

.schedule-lesson .schedule-county-grid .co-num {
  font-weight: 700;
  color: var(--accent, #0d9488);
  min-width: 1.5rem;
}

.schedule-lesson .schedule-anthem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0;
}

@media (max-width: 640px) {
  .schedule-lesson .schedule-anthem {
    grid-template-columns: 1fr;
  }
}

.schedule-lesson .schedule-anthem .stanza {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: var(--card, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  font-size: 0.88rem;
  line-height: 1.45;
}

.schedule-lesson .schedule-anthem .stanza .sw {
  font-style: italic;
  color: #334155;
}

.schedule-lesson .schedule-anthem .stanza .en {
  color: #0f172a;
}

.schedule-lesson .schedule-legal-block {
  font-size: 0.9rem;
  line-height: 1.55;
}

.schedule-lesson .schedule-legal-block h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.schedule-lesson .schedule-legal-block h4:first-child {
  margin-top: 0;
}

.schedule-lesson .schedule-legal-block ol,
.schedule-lesson .schedule-legal-block ul {
  margin: 0.35rem 0 0.75rem 1.25rem;
  padding: 0;
}

.schedule-lesson .schedule-overlay-scroll {
  max-height: min(70vh, 36rem);
  overflow: auto;
  padding-right: 0.35rem;
}

.schedule-lesson .schedule-fifth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.schedule-lesson .schedule-fifth-table th,
.schedule-lesson .schedule-fifth-table td {
  border: 1px solid var(--border, #e2e8f0);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  text-align: left;
}

.schedule-lesson .schedule-fifth-table th {
  background: rgba(13, 148, 136, 0.1);
  font-weight: 600;
}

.schedule-lesson .schedule-fifth-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.9);
}

.schedule-lesson details.schedule-transcript {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--border, #cbd5e1);
  background: #fff;
}

.schedule-lesson details.schedule-transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}

.schedule-lesson details.schedule-transcript pre {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  max-height: min(50vh, 24rem);
  overflow: auto;
}

.schedule-lesson .schedule-inline-note {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

/* Schedule article overlays — match chapter overlay typography (lesson-stylish-ch2 + constitution-article-content) */
.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content > ul {
  margin: 0;
  padding-left: 1.35rem;
  list-style-type: disc;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content > ul > li {
  color: var(--text, #0f172a);
  line-height: 1.55;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content > ul > li + li {
  margin-top: 0.4rem;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content h4 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 0.98rem;
  color: #0f766e;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content .schedule-fifth-table {
  margin: 0;
}

.ch2-stylish .overlay.stylish-overlay .overlay-content .constitution-article-content > p.schedule-inline-note {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

/* Third Schedule — oath overlays: step list, name blank, closing line */
.schedule-lesson .oath-content {
  margin-top: 0.75rem;
}

.schedule-lesson .oath-text-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text, #0f172a);
}

.schedule-lesson .oath-steps-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
}

.schedule-lesson .oath-clauses.oath-steps {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

.schedule-lesson .oath-clauses.oath-steps > li {
  padding-left: 0.35rem;
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--text, #0f172a);
}

.schedule-lesson .oath-clauses.oath-steps > li:last-child {
  margin-bottom: 0;
}

.schedule-lesson .oath-name-blank {
  display: inline-block;
  min-width: 14rem;
  max-width: min(100%, 22rem);
  height: 1em;
  margin: 0 0.12em;
  padding: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid currentColor;
  background: none;
  font: inherit;
  color: inherit;
  opacity: 0.92;
}

.schedule-lesson .oath-closing {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.schedule-lesson .oath-closing strong {
  font-weight: 700;
  color: var(--text, #0f172a);
}

/* Fourth Schedule — full text layout */
.schedule-lesson .schedule-four-heading__body {
  text-align: center;
}

.schedule-lesson .schedule-four-schedule-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text, #0f172a);
}

.schedule-lesson .schedule-four-distribution-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
}

.schedule-lesson .schedule-four-distribution-title--repeat {
  margin-top: 0.75rem;
}

.schedule-lesson .schedule-four-crossrefs {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.schedule-lesson .schedule-four-overlay-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.schedule-lesson .schedule-four-overlay-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.schedule-lesson .schedule-four-overlay-header h3 {
  margin: 0 0 0.35rem;
}

.schedule-lesson .schedule-four-main-list {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
}

.schedule-lesson .schedule-four-main-list > li {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.schedule-lesson .schedule-four-sublist {
  margin: 0.45rem 0 0.25rem;
  padding-left: 1.25rem;
  list-style-type: lower-alpha;
}

.schedule-lesson .schedule-four-sublist > li {
  margin: 0.3rem 0;
  line-height: 1.5;
}

/* Sixth Schedule — overlay title styling */
.schedule-lesson .schedule-six-overlay-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.schedule-lesson .schedule-six-overlay-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.schedule-lesson .schedule-six-overlay-header h3 {
  margin: 0 0 0.35rem;
}

.schedule-lesson .schedule-six-overlay-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Sixth Schedule — numbered subsection titles (e.g., 1. Interpretation, 2. Suspension...) */
.schedule-lesson .overlay.stylish-overlay[id^="article-sch6-"] .constitution-article-content h5 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f766e;
  text-decoration: underline;
}
