/* Torah Restoration: shared layout for feast pages (feasts/*.html).
   Wide screens: text column stays ~700px for easy reading; a sticky sidebar
   uses the right margin for dates and an "On this page" menu. */

.feast-layout { display: block; }
.feast-aside { margin-bottom: 32px; }
.feast-aside .dates-box { margin: 0; }
.feast-toc { display: none; }

@media (min-width: 1100px) {
  .feast-layout { display: grid; grid-template-columns: minmax(0, 700px) 300px; gap: 56px; justify-content: center; align-items: start; }
  .feast-layout > .reading { margin: 0; max-width: 700px; }
  .feast-aside { order: 2; position: sticky; top: 96px; margin-bottom: 0; max-height: calc(100vh - 116px); overflow-y: auto; }
  .feast-aside .dates-box { padding: 24px 24px 20px; }
  .feast-aside .dates-box .dl-name { font-size: 18px; }
  .feast-aside .dates-box .dl-date { font-size: 13px; }
  .feast-aside .dates-list li { flex-direction: column; gap: 0; padding: 8px 0; }
  .feast-aside .dates-list .dl-date { align-self: flex-start; }
  .feast-aside .dates-note { font-size: 11px; line-height: 1.6; }
  .feast-toc { display: block; margin-top: 24px; padding-left: 4px; }
  .feast-toc .box-label { margin-bottom: 10px; }
  .feast-toc ol { list-style: none; border-left: 1px solid var(--parchment-dark); }
  .feast-toc li a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 2px solid transparent; font-family: var(--ui); font-size: 13px; line-height: 1.4; color: var(--stone); }
  .feast-toc li a:hover { color: var(--olive-deep); }
  .feast-toc li a.active { color: var(--midnight); border-left-color: var(--gold); }
}

/* Slightly tighter gaps around boxes and headings, same text size and line height */
.feast-layout .scripture { margin: 24px 0; }
.feast-layout .aside-box { margin: 24px 0; }
.feast-layout .readings-box { margin-top: 32px; }
.feast-layout .declaration { margin-top: 40px; }
.article-body .feast-layout h2 { margin-top: 36px; padding-top: 16px; }
.article-body .feast-layout h2[id] { scroll-margin-top: 90px; }
.article-body.feast-body { padding-bottom: 40px; }
.sources-section { padding: 48px 0; }

/* Continue Reading: three cards across instead of two plus one */
.continue-reading .container.wide-cr { max-width: 1060px; }
.continue-reading { padding: 48px 0; }

/* Big closing line in the final box (e.g. "Next year in Jerusalem!") */
.declaration .closing-line-big { font-size: clamp(34px, 5vw, 44px); font-weight: 700; line-height: 1.2; }
.declaration .closing-trio { text-align: center; }
.declaration .closing-trio > span { display: block; }
.declaration .ct-heb { font-family: var(--hebrew); font-style: normal; font-size: clamp(28px, 4vw, 36px); color: var(--gold); line-height: 1.4; margin-bottom: 6px; }
.declaration .ct-translit { font-family: var(--ui); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--stone-light); margin-top: 10px; }
