/* Only week/year templates load this file. Homepage and 404 keep their own layout. */
.static-page { --static-ink: #30382b; --static-muted: #626c59; }
.static-page main { max-width: 1040px; margin-block: 0 auto; padding: 1.25rem 0 3.5rem; }
.static-page main a { color: var(--static-ink); }
.static-page .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 2rem; color: var(--static-muted); font-size: .8125rem; }
.static-page .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: #c1c8b8; }
.static-page .breadcrumbs > span[aria-hidden] { color: #a9b19e; }
.static-page .section-kicker { margin: 0 0 .6rem; color: var(--static-muted); font-size: .6875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.static-page .page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.static-page .page-title-row > div { min-width: 0; }
.static-page .current-week, .static-page .year-intro { text-align: left; }
.static-page .week-heading, .static-page .year-intro h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.055em; }
.static-page .week-heading #week-number, .static-page .year-intro h1 span { color: var(--foreground); background: linear-gradient(transparent 72%, var(--primary) 72%, var(--primary) 94%, transparent 94%); }
.static-page .year-intro { padding: 0; container-type: normal; }
.static-page .year-intro h1 span { display: inline; font-size: inherit; line-height: inherit; }
.static-page .week-range, .static-page .year-span { justify-content: flex-start; margin: .8rem 0 0; color: var(--static-muted); font-size: 1rem; line-height: 1.65; }
.static-page .week-context { --week-state-height: calc(.6875rem * 1.4 + .5rem); display: grid; grid-template-columns: max-content; grid-template-rows: auto var(--week-state-height); align-items: center; justify-items: end; gap: .55rem; flex-shrink: 0; }
.static-page .week-context > :is(.current-badge, .week-reset) { grid-area: 2 / 1; }
.static-page .year-label { font-size: .8125rem; color: var(--static-muted); }
.static-page .year-label span { color: var(--static-ink); font-weight: 600; }
.static-page .week-reset { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: 0; font-size: .8125rem; text-transform: none; letter-spacing: 0; }
.static-page .current-badge { display: inline-flex; align-items: center; width: fit-content; padding: .25rem .55rem; border-radius: 5px; background: var(--primary); color: #30382b; font-size: .6875rem; font-weight: 600; line-height: 1.4; }
.static-page .year-count { flex-shrink: 0; max-width: 9rem; padding: .85rem 1rem; border-left: 2px solid var(--primary); color: var(--static-muted); font-size: .75rem; }
.static-page .year-count strong { display: block; color: var(--foreground); font-size: 2rem; font-weight: 550; letter-spacing: -.05em; line-height: 1.2; }
.static-page .period-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; margin-top: 1.75rem; padding-block: .45rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: .875rem; }
.static-page .period-navigation a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; width: fit-content; padding: .4rem .5rem; border-radius: 6px; }
.static-page .period-navigation a[rel="next"] { justify-self: end; text-align: right; }
.static-page .period-navigation .week-next { flex-direction: row-reverse; }
.static-page .period-navigation .period-overview { color: var(--static-muted); text-align: center; }
.static-page .period-label { color: var(--static-muted); font-size: .8125rem; text-align: center; font-variant-numeric: tabular-nums; }
.static-page .week-calendar { margin-top: 1.5rem; }
.static-page .day { --day-top-padding: 1rem; --day-number-space: .4rem; --day-marker-space: .45rem; }
.static-page .day time { padding-block: 1rem .85rem; }
.static-page .day-number { margin-top: .4rem; }
.static-page .day-marker { margin-top: .45rem; }
.static-page .week-lookup { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 10px; background: #f0f2ec; padding: 0 1rem; }
.static-page .week-lookup:not([hidden]) > summary { min-height: 48px; padding-block: .8rem; color: var(--static-ink); }
.static-page .lookup-form { max-width: 38rem; padding: .25rem 0 1rem; }
.static-page .lookup-controls button { background: var(--static-ink); color: white; border-color: var(--static-ink); }
.static-page .lookup-help { color: var(--static-muted); }
.static-page .week-details { display: grid; gap: 1.25rem; align-items: start; }
.static-page .info-panel, .static-page .month-panel { padding: 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.static-page .info-panel h2, .static-page .section-heading h2, .static-page .reading-section h2 { margin: 0 0 1.15rem; color: var(--foreground); font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.static-page .info-panel p { color: var(--static-muted); line-height: 1.65; }
.static-page .info-panel .section-kicker { font-size: .6875rem; margin: 0 0 .6rem; }
.static-page .info-panel .holidays-note { margin: 1rem 0 .5rem; }
.static-page .week-namedays li { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: .25rem 1.25rem; padding: .85rem 0; border-top: 1px solid var(--border); font-size: .875rem; line-height: 1.6; }
.static-page .week-namedays time { color: var(--static-muted); }
.static-page .week-namedays li > span { color: var(--static-ink); font-weight: 500; }
.static-page .week-holiday-list li { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .85rem 0; border-top: 1px solid var(--border); line-height: 1.6; }
.static-page .week-holiday-list strong { font-weight: 550; }
.static-page .week-holiday-list .holiday-kind { color: var(--static-muted); font-size: .8125rem; }
.static-page .is-red { color: var(--holiday); }
.static-page .is-eve { color: #ae4841; }
.static-page .section-link { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: underline; text-decoration-color: #c1c8b8; }
.static-page .page-section { margin-top: 2rem; }
.static-page .reading-section { padding-top: 2rem; }
.static-page .reading-section p { max-width: 65ch; font-size: .9375rem; color: var(--static-muted); }
.static-page .reading-section a { display: inline-flex; align-items: center; min-height: 44px; }
.static-page .section-navigation { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; padding-top: .75rem; font-size: .8125rem; }
.static-page .section-navigation a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
.static-page .section-navigation a span { color: #758362; }
.static-page .section-navigation .current-week-jump { margin-left: auto; font-weight: 600; }
.static-page .year-weeks { margin-top: 2rem; }
.static-page .section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.static-page .section-heading h2 { margin: 0; }
.static-page .section-heading > span { font-size: .8125rem; color: var(--static-muted); }
.static-page .month-navigation { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin-bottom: 1.5rem; }
.static-page .month-navigation a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .3rem; border: 1px solid var(--border); border-radius: 7px; background: var(--card); font-size: .8125rem; }
.static-page .months-grid { display: grid; gap: 1.25rem; }
.static-page .month-panel { padding: 0; overflow: clip; scroll-margin-top: 1.5rem; }
.static-page .month-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--border); }
.static-page .month-heading h3 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.025em; }
.static-page .month-heading > span { color: var(--static-muted); font-family: var(--font-geist-mono), monospace; font-size: .75rem; }
.static-page .month-weeks { list-style: none; margin: 0; padding: .3rem .75rem; }
.static-page .month-weeks li { scroll-margin-top: 1rem; }
.static-page .month-weeks li + li { border-top: 1px solid var(--border); }
.static-page a.week-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1rem; gap: .75rem; align-items: center; padding: .8rem .65rem; min-height: 77px; border-radius: 8px; text-decoration: none; }
.static-page .week-row-number { display: flex; flex-direction: column; gap: .1rem; }
.static-page .week-row-label { color: var(--static-muted); font-size: .625rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; }
.static-page .week-row-number strong { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.04em; font-weight: 550; font-variant-numeric: tabular-nums; }
.static-page .week-row-content { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.static-page .week-row-range { font-size: .875rem; font-weight: 450; line-height: 1.5; }
.static-page .week-row-holidays { font-size: .75rem; line-height: 1.6; text-wrap: pretty; }
.static-page .holiday-separator { color: #8d9583; }
.static-page .week-row-arrow { color: #89947c; font-size: 1rem; }
.static-page .month-weeks .is-current .week-row { background: #f0f8da; }
.static-page .month-weeks .is-current .week-row-number strong { font-weight: 650; }
.static-page .month-panel:target, .static-page .month-weeks li:target .week-row { outline: 2px solid var(--ring); outline-offset: -2px; }
.static-page .grouping-note { margin: 1rem 0 0; max-width: 65ch; color: var(--static-muted); font-size: .8125rem; line-height: 1.65; }
.static-page .year-holidays { padding: 1.5rem; container-type: inline-size; }
.static-page .year-holidays > p { max-width: 65ch; }
.static-page .year-holidays .holiday-item { padding-block: .85rem; }
.static-page .year-holidays .is-eve .holiday-name { color: #ae4841; }
.static-page .year-holidays .holidays-legend { margin-top: 1.25rem; }
.static-page :is(h2, .page-section) { scroll-margin-top: 1.5rem; }
@media (min-width: 900px) {
  .static-page .months-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .static-page .week-details { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .static-page .week-namedays-panel { grid-column: 1; grid-row: 1; }
  .static-page .week-holidays-panel { grid-column: 2; grid-row: 1; }
}
@media (max-width: 599px) {
  .static-page main { padding-top: .5rem; padding-bottom: 2rem; }
  .static-page .breadcrumbs { margin-bottom: 1.25rem; }
  .static-page .page-title-row { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .static-page .week-context { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--week-state-height); gap: .25rem .75rem; width: 100%; }
  .static-page .week-context .year-label { justify-self: start; }
  .static-page .week-context > :is(.current-badge, .week-reset) { grid-area: 1 / 2; }
  .static-page .week-heading, .static-page .year-intro h1 { font-size: 2.5rem; }
  .static-page .year-count { display: flex; align-items: baseline; gap: .5rem; max-width: none; padding: .15rem .65rem; }
  .static-page .year-count strong { font-size: 1.125rem; }
  .static-page .period-navigation { margin-top: 1rem; gap: .25rem; font-size: .75rem; }
  .static-page .period-navigation a { padding-inline: .125rem; }
  .static-page .period-navigation svg { width: 16px; height: 16px; }
  .static-page .period-detail { display: none; }
  .static-page .period-overview { max-width: 6.5rem; }
  .static-page .week-calendar { margin-top: 1rem; }
  .static-page .day time { padding-block: .6rem; }
  .static-page .info-panel { padding: 1.15rem; }
  .static-page .week-namedays li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .static-page .week-namedays time { font-size: .8125rem; }
  .static-page .week-lookup { margin-block: 1rem; }
  .static-page .month-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .static-page .section-navigation { column-gap: 1rem; }
  .static-page .section-navigation .current-week-jump { margin-left: 0; }
  .static-page .month-heading { padding: 1rem 1.1rem; }
  .static-page .month-weeks { padding-inline: .5rem; }
  .static-page a.week-row { grid-template-columns: 2.5rem minmax(0, 1fr) .75rem; gap: .6rem; padding-inline: .5rem; }
  .static-page .year-holidays .holiday-item { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
@media (hover: hover) {
  :root:not([data-input="touch"]) .static-page :is(.period-navigation a, .month-navigation a, a.week-row):hover { background: #f0f2ec; text-decoration: none; }
  :root:not([data-input="touch"]) .static-page .month-weeks .is-current a.week-row:hover { background: #e7f3c8; }
  :root:not([data-input="touch"]) .static-page .lookup-controls button:hover { background: #48543e; }
}
