/* Natal sky archive — page layouts (mockup): the archive, the day page, the event page. */

/* ---- archive hero + featured ---- */
.arch-hero { padding: 56px 0 28px; }
.arch-hero .wrap { display: grid; gap: 14px; }
.arch-hero .lead { font-size: 14px; }
@media (min-width: 900px) { .arch-hero { padding: 84px 0 36px; } }

.featured { margin-top: 8px; }
.feat-card {
  position: relative; display: grid; gap: 24px; align-items: center; padding: 22px; border-radius: 26px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--el) 30%, var(--hair));
  background: radial-gradient(70% 90% at 15% 50%, color-mix(in srgb, var(--el) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel));
}
.feat-wheel { width: min(100%, 340px); margin: 0 auto; aspect-ratio: 1; }
.feat-words { display: grid; gap: 10px; }
.feat-name { font: italic 400 clamp(52px, 9vw, 88px)/0.95 var(--display); }
.feat-name a { text-decoration: none; }
.feat-signs { font-size: 13px; letter-spacing: .1em; }
.feat-signs .sym, .day-pair .sym { color: var(--el); }
.feat-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.feat-sm { color: var(--muted); font-size: 12px; max-width: 52ch; }
.feat-video { width: 100%; max-width: 240px; margin: 0 auto; }
.feat-video video, .day-media video { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #0b0a16; border: 1px solid var(--hair); object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 900px) {
  .feat-card { grid-template-columns: 320px 1fr 230px; padding: 30px 36px; gap: 40px; }
  .feat-wheel { width: 320px; }
  .feat-video { max-width: 230px; }
}

/* ---- coming-up rail ---- */
.rail { margin-top: 44px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rail-head h2 { font: italic 400 32px/1 var(--display); }
.rail-all { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 380px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
.rail-track > .card { scroll-snap-align: start; }
@media (min-width: 720px) { .rail-track { margin: 0 -32px; padding-left: 32px; padding-right: 32px; } }

/* ---- filters ---- */
.browse { margin-top: 36px; }
.filters { position: sticky; top: 60px; z-index: 10; display: grid; gap: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 18px; }
.f-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--muted); }
.f-search:focus-within { border-color: var(--moon); color: var(--pearl); }
.f-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 13px; color: var(--pearl); }
.f-search input::placeholder { color: var(--dim); }
.f-search kbd { font: 10px var(--mono); color: var(--dim); border: 1px solid var(--hair-2); border-radius: 5px; padding: 1px 6px; display: none; }
@media (min-width: 900px) { .f-search kbd { display: inline; } }
.f-when { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); width: max-content; max-width: 100%; }
.f-when button { border: 0; background: transparent; border-radius: 999px; height: 32px; padding: 0 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; }
.f-when button[aria-pressed="true"] { background: var(--pearl); color: var(--ground); }
.f-toggle { justify-self: start; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; cursor: pointer; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.f-toggle span:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: var(--moon); color: var(--ground); font-size: 10px; letter-spacing: 0; }
.f-panel { display: none; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; }
.filters.open .f-panel { display: grid; }
.f-field { display: grid; gap: 6px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); min-width: 0; }
.f-field select { height: 38px; border-radius: 12px; border: 1px solid var(--hair-2); background: var(--panel); padding: 0 10px; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--pearl); min-width: 0; width: 100%; }
.f-field select:focus { border-color: var(--moon); outline: none; }
.f-wide { grid-column: 1 / -1; }
.f-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.f-phases button, .f-els button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--hair-2); background: var(--panel); cursor: pointer; font-size: 10.5px; letter-spacing: .02em; text-transform: none; color: var(--muted); min-width: 0; }
.f-phases button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-phases button[aria-pressed="true"], .f-els button[aria-pressed="true"] { border-color: var(--pearl); color: var(--pearl); background: color-mix(in srgb, var(--pearl) 8%, var(--panel)); }
.f-els { display: flex; flex-wrap: wrap; gap: 6px; }
.f-els i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.f-els button[aria-pressed="true"] { border-color: var(--c); }
.switch { display: inline-flex; align-items: center; gap: 10px; height: 34px; cursor: pointer; color: var(--muted); font-size: 11.5px; letter-spacing: .02em; text-transform: none; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 11px; background: var(--hair-2); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--pearl); transition: transform .2s; }
.switch input:checked + i { background: #ffc46b; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--moon); outline-offset: 2px; }
.f-status { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#count { color: var(--pearl); font-size: 12px; letter-spacing: .06em; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chips button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--muted); font-size: 11px; cursor: pointer; }
.active-chips button::after { content: "×"; color: var(--dim); font-size: 14px; }
.active-chips .clear { border-style: dashed; }
.active-chips .clear::after { content: ""; }
@media (max-width: 719px) {
  .filters { position: static; }
  .f-status { order: 5; }
}
@media (min-width: 720px) {
  .filters { grid-template-columns: 1fr auto auto; align-items: center; }
  .f-panel { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .f-status { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .f-panel { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .f-panel .f-wide { grid-column: span 4; }
  .f-panel .f-field:not(label) { grid-column: span 2; }
  .f-panel .f-wide, .f-panel .f-wide.f-field { grid-column: span 4; }
  .f-panel label.f-field.f-ev { grid-column: span 2; }
  .f-phases { grid-template-columns: repeat(8, 1fr); }
  .f-phases button { flex-direction: column; height: 56px; justify-content: center; gap: 3px; padding: 4px; font-size: 9.5px; }
  .f-phases button span { max-width: 100%; }
}
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); }
.empty p:first-child { font: italic 400 30px/1.2 var(--display); color: var(--pearl); margin-bottom: 8px; }
.more-wrap { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.more-note { color: var(--dim); font-size: 11px; }

/* ---- day / event page ---- */
.crumbs { padding: 22px 0 6px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--dim); font-size: 11px; letter-spacing: .1em; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hair-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pearl); }
.day-hero { display: grid; gap: 28px; padding: 18px 0 34px; align-items: start; }
.day-hero-text { display: grid; gap: 16px; align-content: start; }
.day-h1 { display: grid; gap: 10px; }
.day-name { font: italic 400 clamp(60px, 13vw, 124px)/.9 var(--display); }
.event-page .day-name { font-size: clamp(48px, 10vw, 96px); line-height: .95; }
.day-pair { font: 400 13px/1.5 var(--mono); letter-spacing: .12em; }
.day-pair i { font-style: normal; color: var(--dim); margin: 0 4px; }
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); margin-top: 6px; }
.facts > div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.facts dt { color: var(--dim); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.facts dd .sym { color: var(--el); }
.fact-note { color: var(--moon); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.hero-events { margin-top: 2px; }
.day-media { width: 100%; max-width: 360px; margin: 0 auto; }
.day-media figcaption, .side-wheel figcaption, .ev-poster figcaption { color: var(--dim); font-size: 11px; margin-top: 10px; text-align: center; }
.day-media-wheel svg { width: 100%; aspect-ratio: 1; }
@media (min-width: 960px) {
  .day-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-top: 30px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .day-media { margin: 0; position: sticky; top: 84px; }
}

.day-layout { display: grid; gap: 40px; padding-top: 12px; }
@media (min-width: 960px) { .day-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }
.prose { display: grid; gap: 34px; max-width: 70ch; }
.prose h2 { display: flex; align-items: center; gap: 12px; font: italic 400 34px/1.1 var(--display); margin-bottom: 10px; }
.prose h2 .sym { font-style: normal; font-size: 24px; color: var(--el); }
.prose p { color: var(--muted); font-size: 13.5px; line-height: 1.8; text-wrap: pretty; }
.prose p strong { color: var(--pearl); font-weight: 400; }
.prose p em { color: var(--pearl); }
.music-chips { margin-top: 14px; }
.h2-ico { flex: 0 0 auto; }
.cta-card { display: grid; gap: 18px; padding: 24px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--el) 35%, var(--hair)); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--el) 12%, transparent), transparent 60%), var(--panel); }
.prose .cta-title, .cta-title { font: italic 400 36px/1.1 var(--display); color: var(--pearl); }
.prose .cta-sub, .cta-sub { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin-top: 8px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 720px) { .cta-card { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } .cta-actions { flex-direction: column; } }

.day-side { display: grid; gap: 22px; align-content: start; }
@media (min-width: 960px) { .day-side { position: sticky; top: 84px; } }
.side-wheel { padding: 18px; border-radius: 22px; border: 1px solid var(--hair); background: var(--panel); }
.side-wheel svg { width: 100%; aspect-ratio: 1; }
.side-wheel figcaption { display: grid; gap: 4px; text-align: left; }
.side-wheel figcaption span { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.side-h { font: 500 10.5px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.mini-events { display: grid; gap: 8px; }
.mini-ev { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ev) 35%, var(--hair)); text-decoration: none; background: color-mix(in srgb, var(--ev) 6%, var(--panel)); }
.mini-ev span { display: grid; }
.mini-ev strong { font-weight: 400; font-size: 12.5px; }
.mini-ev small { color: var(--muted); font-size: 11px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; text-decoration: none; }
.pager a:hover { border-color: var(--hair-2); }
.pager small { color: var(--dim); font-size: 10.5px; letter-spacing: .06em; }
.pager span { font: italic 400 22px/1.1 var(--display); }
.pager-next { text-align: right; }

.related { margin-top: 64px; }
.related-head h2 { font: italic 400 34px/1.1 var(--display); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.related-head h2 span { font: 400 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.grid.one { grid-template-columns: 1fr; max-width: 460px; margin-top: 18px; }

.faq { margin-top: 64px; max-width: 820px; }
.faq h2 { font: italic 400 34px/1.1 var(--display); margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-size: 13px; color: var(--pearl); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 12.5px; padding: 0 0 18px; max-width: 70ch; }
.seo-note { margin-top: 64px; }
.seo-cols { display: grid; gap: 20px; }
@media (min-width: 960px) { .seo-cols { grid-template-columns: 1fr 1fr; } }

/* event page */
.ev-badge.big { font-size: 11.5px; gap: 10px; }
.ev-poster { width: 100%; max-width: 360px; margin: 0 auto; }
.ev-poster img { width: 100%; height: auto; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ev) 35%, var(--hair)); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--ev) 70%, transparent); }
.ev-poster a { color: var(--muted); }
.ev-poster-wheel svg { width: 100%; aspect-ratio: 1; }
@media (min-width: 960px) { .ev-poster { margin: 0; position: sticky; top: 84px; } }
.event-page .lead { color: var(--muted); }
.sb-frame .safe, .storyboard .safe { display: none; }
.lastnext.big { font-size: 13px; }
.lastnext.big strong { font-size: 15px; }
.ev-poster.small { max-width: 280px; }
.event-page[data-rarity="lifetime"] .day-name { background: linear-gradient(90deg, #fff1c7, #ffc46b 60%, #fff1c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.event-page[data-rarity="lifetime"] .motion-stage svg, .event-page[data-rarity="lifetime"] .ev-poster img { filter: drop-shadow(0 0 30px #ffc46b55); }


/* ---- the 1940 archive (mockup): the sound, the birthday lines, the noon table, hubs ---- */
.play.hear { height: 40px; padding: 0 16px 0 8px; font-size: 11.5px; border-color: color-mix(in srgb, var(--el, var(--pearl)) 55%, var(--hair-2)); }
.day-media-wheel figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.born { border: 1px solid color-mix(in srgb, var(--el) 40%, var(--hair)); background: color-mix(in srgb, var(--el) 6%, var(--panel)); border-radius: var(--radius); padding: 18px 20px; }
.born h2 { margin-top: 0; }
.born p + p { margin-top: 8px; }
.born strong { font-weight: 500; color: var(--pearl); }
.born-note { color: var(--muted); font-size: 12px; }
.born .hero-actions { margin-top: 12px; }
.sky-table, .month-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12.5px; }
.sky-table th, .sky-table td, .month-table th, .month-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--hair); font-weight: 400; }
.sky-table thead th, .month-table thead th { color: var(--dim); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.sky-table tbody th { color: var(--muted); }
.rx { color: var(--fire); }
.asp-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.asp-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.asp-list small, .rel-links small, .ev-list small, .month-table small { color: var(--dim); font-size: 11px; }
.ev-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ev-list li { border: 1px solid color-mix(in srgb, var(--ev) 30%, var(--hair)); border-radius: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--ev) 5%, var(--panel)); }
.ev-list a { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.ev-list strong { font-weight: 400; }
.ev-list .fam, .lastnext .fam { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.ev-list .fam a, .lastnext .fam a { display: inline; color: var(--pearl); text-decoration: underline; text-decoration-color: var(--hair-2); }
.rel-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.rel-links li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.rel-links a { text-decoration: none; }
.rel-links a:hover { text-decoration: underline; }
.hub-hero { padding: 18px 0 22px; max-width: 760px; }
.hub-hero .lead { margin-top: 12px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.month-table td .sym, .month-table td .phase-ico { margin-right: 4px; }
.month-table .ph { white-space: nowrap; }
.month-table .ph svg { display: inline-block; vertical-align: middle; margin-right: 6px; }
.month-table th a, .month-table td a { text-decoration: none; }
.month-table .snd .play { height: 30px; padding: 0 10px 0 4px; font-size: 10px; }
.hub-events { margin-top: 30px; }
.hub-pager { margin: 28px 0; }
.year-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.mini-cal h3 { font: italic 400 22px/1.2 var(--display); margin-bottom: 6px; }
.mini-cal h3 a { text-decoration: none; }
.mini-cal ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-cal li:first-child { grid-column-start: calc(var(--lead) + 1); }
.mini-cal a { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--hair); border-radius: 8px; text-decoration: none; font-size: 11px; line-height: 1.05; }
.mini-cal a .sym { font-size: 10px; color: var(--moon); }
.mini-cal a:hover { border-color: var(--pearl); }
.mini-cal li.fm a { background: color-mix(in srgb, var(--pearl) 14%, transparent); }
.mini-cal li.nm a { background: #000; }
.mini-cal li.ecl a { border-color: #ffc46b; }
.cal-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; border: 1px solid var(--hair-2); vertical-align: -1px; }
.cal-legend .lg.fm { background: color-mix(in srgb, var(--pearl) 30%, transparent); } .cal-legend .lg.nm { background: #000; } .cal-legend .lg.ecl { border-color: #ffc46b; }
.years-nav { margin: 40px auto; }
.years-nav .lead { margin: 8px 0 18px; max-width: 760px; }
.years-nav .decade { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.years-nav h3 { font: italic 400 20px/1.4 var(--display); }
.years-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.years-nav a { text-decoration: none; color: var(--muted); } .years-nav a:hover { color: var(--pearl); }
.f-decades { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.f-decades button { border: 1px solid var(--hair-2); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 11px; cursor: pointer; color: var(--muted); }
.f-decades button[aria-pressed="true"] { background: var(--pearl); color: var(--ground); border-color: var(--pearl); }
.f-scope { color: var(--dim); font-size: 11px; margin-top: 4px; }
.f-scope button { background: none; border: 0; padding: 0; color: var(--pearl); text-decoration: underline; cursor: pointer; font-size: 11px; }
.month-head h2 a { text-decoration: none; }
@media (max-width: 560px) {
  .month-table th:nth-child(5), .month-table td:nth-child(5) { display: none; }
  .month-table td small { display: block; }
  .year-cal { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mini-cal a { font-size: 10px; border-radius: 6px; }
  .years-nav .decade { grid-template-columns: 1fr; gap: 2px; }
}
.ev-poster-svg svg.poster { width: 100%; height: auto; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ev) 35%, var(--hair)); }
.ev-poster-svg svg.poster .safe { display: none; }
.otd { border-left: 2px solid var(--moon); padding-left: 16px; }
.month-table .play { white-space: nowrap; }
@media (max-width: 560px) { .month-table th, .month-table td { padding: 7px 4px; } .month-table .snd .play { padding: 0 8px 0 3px; } }

/* ---- the live wheel (assets/sky-live.js; owner 2026-11-29): the day's wheel animated in place of a reel thumbnail ---- */
.live-stage { position: relative; }
.live-stage > svg.wheel { display: block; width: 100%; height: auto; aspect-ratio: 1; transform-origin: 50% 50%; }
.live-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.live-layer .tw { opacity: .25; }
.is-live .live-layer .tw { animation: lw-twinkle 3.6s ease-in-out infinite; }
.is-live .wheel .st { animation: lw-star 4.4s ease-in-out infinite; }
.is-live .wheel .st:nth-of-type(2n) { animation-delay: -1.5s; }
.is-live .wheel .st:nth-of-type(3n) { animation-delay: -2.9s; }
.is-live .wheel .sm-glow { animation: lw-line 5.2s ease-in-out infinite; }
.is-live .wheel .sun-g { animation: lw-glyph 5.2s ease-in-out infinite; }
.is-live .live-layer .sun-dot { animation: lw-star 3s ease-in-out infinite; }
.is-playing .live-stage > svg.wheel { animation: lw-beat var(--beat, .75s) ease-out infinite; }
@keyframes lw-twinkle { 0%, 100% { opacity: .08; } 50% { opacity: .9; } }
@keyframes lw-star { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes lw-line { 0%, 100% { stroke-opacity: .18; } 50% { stroke-opacity: .62; } }
@keyframes lw-glyph { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 10px rgba(255, 226, 176, .75)); } }
@keyframes lw-beat { 0% { transform: scale(1.022); filter: brightness(1.18); } 55%, 100% { transform: scale(1); filter: none; } }
.feat-wheel.live-wheel { aspect-ratio: auto; }
.feat-wheel figcaption { display: flex; justify-content: center; margin-top: 12px; }
.feat-wheel { margin: 0 auto; }
@media (min-width: 900px) {
  .feat-card.feat-live { grid-template-columns: 400px 1fr; gap: 56px; }
  .feat-card.feat-live .feat-wheel { width: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-live .live-layer .tw, .is-live .wheel .st, .is-live .wheel .sm-glow, .is-live .wheel .sun-g, .is-live .live-layer .sun-dot, .is-playing .live-stage > svg.wheel { animation: none; }
}
/* the quotable answer under each page's heading (owner 2026-11-29: answer engines read the opening sentences) */
.answer { color: var(--pearl); font-size: 13px; line-height: 1.6; max-width: 62ch; margin: 6px 0 0; }
.hub-hero .answer { margin: 10px 0 4px; }

/* ---- the live wheel, v2 (owner 2026-11-30: "reads as static"; the day page's wheel is the hero) ---- */
.live-stage .live-time { position: absolute; left: 0; right: 0; bottom: -2px; margin: 0; text-align: center; font: 400 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--dim); pointer-events: none; }
.has-live .wheel .sm-static { opacity: 0; transition: opacity .6s; }
.live-layer .tw { opacity: .3; }
.is-live .live-layer .tw { animation: lw-twinkle 2.8s ease-in-out infinite; }
.is-live .wheel .aura { animation: lw-breathe 6s ease-in-out infinite; transform-origin: 500px 500px; }
.is-live .wheel .sun-halo { animation: lw-star 4s ease-in-out infinite; }
.is-live .live-layer .lv-halo { animation: lw-star 3.2s ease-in-out infinite; }
.is-playing .wheel .rim { animation: lw-rim var(--beat, .75s) ease-out infinite; }
.is-playing .live-stage > svg.wheel { animation: lw-beat var(--beat, .75s) ease-out infinite; }
@keyframes lw-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lw-rim { 0% { stroke-width: 9; stroke-opacity: 1; } 60%, 100% { stroke-width: 3; stroke-opacity: .6; } }
@keyframes lw-beat { 0% { transform: scale(1.012); } 55%, 100% { transform: scale(1); } }
/* the light version on cards: the card's wheel answers its clip */
.card.is-playing .card-wheel svg { animation: lw-beat var(--beat, .75s) ease-out infinite; filter: brightness(calc(1 + var(--lvl, 0) * .8)) drop-shadow(0 0 calc(var(--lvl, 0) * 18px) var(--el, #ffd08a)); }
/* the day page: the wheel is the hero — wide on desktop, first on a phone */
.day-media.live-wheel { max-width: 420px; }
@media (max-width: 959px) { .day-hero > .day-media { order: -1; max-width: min(100%, 380px); } }
@media (min-width: 960px) { .day-hero:has(> .live-wheel) { grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; } .day-media.live-wheel { max-width: 440px; } }
@media (min-width: 1200px) { .day-hero:has(> .live-wheel) { grid-template-columns: minmax(0, 1fr) 500px; } .day-media.live-wheel { max-width: 500px; } }
@media (prefers-reduced-motion: reduce) {
  .is-live .wheel .aura, .is-live .wheel .sun-halo, .is-live .live-layer .lv-halo, .is-playing .wheel .rim, .card.is-playing .card-wheel svg { animation: none; }
}
.rarity-why { color: var(--muted); font-size: 11.5px; margin: -6px 0 0; }

/* ---- filters v2 (owner 2026-11-30: "we only can see one row of results at a time"): one pinned line, the rest a popover ---- */
.filters { display: contents; } /* the bar's sticky box is then the whole results section, not the form */
.f-bar { position: sticky; top: 61px; z-index: 12; display: flex; align-items: center; gap: 10px; height: 56px; box-sizing: border-box; padding: 8px 10px 8px 8px; margin: 0 0 10px;
  border: 1px solid var(--hair); border-radius: 18px; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.f-bar .f-search { flex: 1 1 auto; min-width: 0; height: 40px; }
.f-bar .f-toggle { flex: none; height: 36px; display: inline-flex; align-items: center; }
.f-count-line { flex: 0 1 auto; min-width: 0; margin: 0; color: var(--pearl); font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-count-line .c-short { display: none; }
.f-clear { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--hair-2); background: transparent; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.f-bar .f-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; grid-template-columns: 1fr; gap: 14px; padding: 16px; max-height: min(70vh, 640px); overflow: auto;
  border-radius: 20px; border: 1px solid var(--hair-2); background: var(--ground); box-shadow: 0 30px 80px -20px #000c; }
.filters.open .f-bar .f-panel { display: grid; }
.f-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.f-done { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--pearl); color: var(--ground); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-bar .f-decades { margin: 0; }
.f-status { margin: 0 0 14px; display: flex; gap: 12px; align-items: center; min-height: 0; }
.f-status:has(#active:empty):has(#scope:empty) { display: none; }
.active-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
.active-chips::-webkit-scrollbar { display: none; }
.active-chips button { flex: none; white-space: nowrap; }
@media (min-width: 720px) { .f-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .f-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .f-bar { top: 61px; height: 48px; gap: 6px; padding: 5px 6px 5px 5px; border-radius: 16px; }
  .f-bar .f-search { height: 36px; padding: 0 10px; }
  .f-bar .f-toggle { height: 34px; padding: 0 10px; letter-spacing: .08em; }
  .f-count-line { font-size: 10.5px; }
  .f-count-line .c-long { display: none; }
  .f-count-line .c-short { display: inline; }
  .f-clear { height: 30px; padding: 0 8px; }
  /* the sheet: from the bottom, over a dimmed page */
  .f-bar .f-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; max-height: 85vh; border-radius: 22px 22px 0 0; box-shadow: 0 0 0 100vmax #000a; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ---- the live wheel on canvas (owner 2026-11-30: Natal's own painter, assets/sky-app-wheel.js) over its SVG ---- */
.live-stage { position: relative; aspect-ratio: 1; }
.live-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.has-canvas .live-stage > svg.wheel { visibility: hidden; }
.has-canvas .live-layer { display: none; }

/* ---- "Embed this sky" ---- */
.embed-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; border-radius: 22px; border: 1px solid var(--hair-2); background: var(--ground); color: var(--pearl); }
.embed-dialog::backdrop { background: #000b; }
.ed-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.ed-head h2 { font: italic 400 26px/1.1 var(--display); margin: 0; }
.ed-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent; color: var(--pearl); font-size: 20px; cursor: pointer; }
.ed-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ed-row button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.ed-row button small { color: var(--dim); margin-left: 4px; }
.ed-row button[aria-pressed="true"] { background: var(--pearl); color: var(--ground); border-color: var(--pearl); }
.ed-row button[aria-pressed="true"] small { color: var(--ground); }
.ed-code { width: 100%; box-sizing: border-box; font: 11.5px/1.5 var(--mono); color: var(--pearl); background: var(--panel); border: 1px solid var(--hair-2); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.ed-actions { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.ed-done { color: var(--moon); font-size: 12px; }
.ed-preview { position: relative; overflow: hidden; border-radius: 16px; background: repeating-conic-gradient(#ffffff0a 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.ed-preview iframe { border: 0; border-radius: 16px; transform-origin: 0 0; display: block; }

/* ---- the embed page itself (assets/embed.js): a square, a wide or a tall frame ---- */
body.embed { margin: 0; min-height: 100vh; overflow: hidden; }
body.embed.emb-transparent { background: transparent; }
body.embed.emb-light { background: #f6f3fb; --pearl: #1a1630; --muted: #4b4566; --dim: #6c6688; }
.emb { box-sizing: border-box; height: 100vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 6px; padding: 10px 12px 12px; }
.emb-wheel { margin: 0; height: 100%; aspect-ratio: 1; max-width: 100%; min-height: 0; }
.emb-wheel .live-stage { height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
.emb-words { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.emb-date { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.emb-title { margin: 0; font: italic 400 clamp(22px, 7vmin, 40px)/1 var(--display); color: var(--pearl); }
.emb-signs { margin: 0; font-size: 11.5px; color: var(--muted); }
.emb-actions:empty { display: none; }
.emb-actions .play { transform: scale(.92); }
.emb-attr { font-size: 10.5px; letter-spacing: .08em; color: var(--dim); text-decoration: none; }
.emb-attr:hover { color: var(--pearl); }
@media (min-aspect-ratio: 4/3) {
  .emb { grid-template-rows: 1fr; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 18px; }
  .emb-words { justify-items: start; text-align: left; }
}
@media (max-height: 420px) and (max-aspect-ratio: 4/3) { .emb-signs { display: none; } }

/* ---- the free app, said plainly (owner 2026-11-30: visitors from social media land without Safari's App Store banner) ---- */
.site-nav a.pill-on, .site-nav a.pill-on:visited { color: var(--ground); background: var(--pearl); border-color: var(--pearl); font-weight: 500; }
.site-nav a.pill-on:hover { color: var(--ground); background: #fff; }
.app-cta { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--pearl) 22%, var(--hair)); background: color-mix(in srgb, var(--pearl) 5%, var(--panel)); }
.app-cta-line { margin: 0; color: var(--pearl); font-size: 13px; line-height: 1.45; }
.app-cta-sub { margin: 0; color: var(--muted); font-size: 11.5px; }
.app-cta-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { display: block; width: 132px; height: 44px; }
.app-cta-mac { color: var(--muted); font-size: 11.5px; }
.emb-foot { margin: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.emb-app { font-size: 10.5px; letter-spacing: .08em; color: var(--dim); text-decoration: none; }
.emb-app:hover { color: var(--pearl); }
@media (max-width: 959px) { .day-hero .app-cta { padding: 12px 14px; } }
/* a phone visitor sees the wheel, the day's answer and the free app in the first screen */
@media (max-width: 719px) {
  .day-hero:has(> .live-wheel) { gap: 14px; padding-top: 6px; }
  .day-hero > .day-media.live-wheel { max-width: 300px; }
  .day-media.live-wheel figcaption { margin-top: 4px; gap: 6px 12px; }
  .day-media.live-wheel .reel-ig { font-size: 10.5px; }
  .day-hero .day-hero-text { gap: 10px; }
  .day-hero .day-h1 .day-name { font-size: 54px; }
}

/* ---- event pages on Natal's own wheel (owner 2026-11-30): the app wheel (canvas, 96 % of its square) under the event
   overlay (inset 2 % so the two share one geometry) ---- */
.ev-live { margin: 0; width: 100%; max-width: 460px; justify-self: center; display: grid; gap: 10px; }
.ev-live .live-stage { position: relative; aspect-ratio: 1; }
.ev-live .live-stage > svg.wheel { width: 100%; height: 100%; display: block; }
.ev-live .live-canvas { z-index: 1; }
.ev-live .ev-overlay { position: absolute; inset: 2%; z-index: 2; pointer-events: none; display: none; }
.ev-live.has-canvas .ev-overlay { display: block; }
.ev-live .ev-overlay svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ev-live .motion-date { z-index: 3; }
.ev-live .live-time { display: none; }
.ev-live figcaption.motion-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.ev-live figcaption.motion-note span { color: var(--dim); }
@media (max-width: 959px) { .ev-hero > .ev-live { max-width: min(100%, 380px); } }
.emb-wheel.ev-live { display: block; width: auto; max-width: 100%; justify-self: center; }

/* ---- year pages' month cards (owner 2026-11-30): the day cells' square style only on the day cells; a compact header ---- */
.mini-cal h3 a { display: inline; aspect-ratio: auto; border: 0; border-radius: 0; font-size: inherit; line-height: inherit; place-items: initial; }
.mini-cal .mc-head { display: grid; gap: 2px; margin: 0 0 8px; }
.mini-cal h3 { font: italic 400 30px/1.05 var(--display); margin: 0; }
.mini-cal h3 a:hover { color: var(--pearl); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mini-cal .mc-sum { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .04em; line-height: 1.45; }
.mini-cal .mc-sum span { font-family: var(--mono); }
@media (max-width: 719px) { .mini-cal h3 { font-size: 26px; } .mini-cal .mc-sum { font-size: 10px; white-space: normal; } }

/* ---- event-type hubs (/sky/events/<kind>/) and their directory on /sky/ (SEO follow-up 2026-11-30) ---- */
.type-hub .eyebrow svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.hub-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 22px; font-size: 12.5px; }
.hub-jump a { color: var(--muted); text-decoration: none; } .hub-jump a:hover { color: var(--pearl); }
.type-dec { margin: 0 0 26px; scroll-margin-top: 72px; }
.type-dec h2 { font: italic 400 24px/1.3 var(--display); margin-bottom: 8px; }
.type-dec h2 small, .type-dir small { color: var(--dim); font: 400 11px/1 var(--mono, inherit); }
.type-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 0 28px; }
.type-list a { display: grid; grid-template-columns: 128px 74px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 12.5px; }
.type-list a:hover { border-bottom-color: var(--pearl); }
.type-list time { color: var(--pearl); }
.type-list .tl-t { color: var(--dim); font-size: 11.5px; }
.type-list .tl-w { color: var(--muted); }
.type-list .tl-w small { color: var(--dim); }
.type-list li.up time { color: var(--ev, var(--pearl)); }
.hub-related { margin: 34px 0 10px; }
.hub-related h2 { font: italic 400 22px/1.3 var(--display); margin-bottom: 8px; }
.type-dir-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.type-dir-list a, .type-dir a { text-decoration: none; } .type-dir-list a:hover, .type-dir a:hover { text-decoration: underline; }
.type-dir { margin: 40px auto; }
.type-dir .lead { margin: 8px 0 18px; max-width: 760px; }
.type-dir-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 28px; }
.type-dir-group h3 { font: italic 400 20px/1.4 var(--display); margin-bottom: 4px; }
.type-dir-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: 13px; }
.ev-hubs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 12.5px; }
.ev-hubs a { color: var(--pearl); text-decoration: underline; text-decoration-color: var(--hair-2); }
@media (max-width: 560px) {
  .type-list { grid-template-columns: 1fr; }
  .type-list a { grid-template-columns: 112px 64px 1fr; gap: 8px; font-size: 12px; }
}

/* ---- the archive's search on top + a calmer default view (owner 2026-12-01) ----
   The block is pinned under the header but only its search line stays in view: ≤ 56 px on a wide screen (one row:
   kind, year, event type, Sun, search, Advanced), 48 px on a narrower one, where the quick filters sit ABOVE the search
   line and the block sticks at a negative offset so they slide under the (opaque) header. No script needed for any of it,
   so nothing shifts. */
body:has(main.arch-main) .site-head { background: var(--ground); }
.arch-main .arch-hero { padding: 36px 0 18px; }
@media (min-width: 900px) { .arch-main .arch-hero { padding: 56px 0 22px; } }
.arch-main .f-sentinel { height: 0; }
.arch-main .f-bar { position: sticky; top: calc(61px - 48px); z-index: 12; display: grid; gap: 8px; height: auto; width: auto; margin: 0 16px 18px; padding: 0;
  border: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.arch-main .f-quick { display: flex; align-items: center; gap: 6px; height: 40px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.arch-main .f-quick::-webkit-scrollbar { display: none; }
.arch-main .f-main { display: flex; align-items: center; gap: 6px; height: 48px; box-sizing: border-box; padding: 5px 6px 5px 5px; border: 1px solid var(--hair); border-radius: 16px;
  background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.arch-main .f-main .f-search { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 10px; }
.arch-main .f-main .f-toggle { flex: none; height: 34px; padding: 0 10px; letter-spacing: .08em; display: inline-flex; align-items: center; }
.f-seg { display: inline-flex; flex: none; padding: 2px; border: 1px solid var(--hair-2); border-radius: 999px; }
.f-seg button { height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.f-seg button[aria-pressed="true"] { background: var(--pearl); color: var(--ground); }
.f-chip { flex: none; }
.f-chip select { height: 34px; max-width: 160px; border-radius: 999px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--pearl); padding: 0 12px; font-size: 11.5px; }
.f-seg button:focus-visible, .f-chip select:focus-visible { outline: 2px solid var(--moon); outline-offset: 1px; }
.arch-main[data-mode="home"] .f-count-line { display: none; } /* a count belongs to results, not to the sections */
@media (min-width: 720px) { .arch-main .f-bar .f-panel { top: calc(100% + 8px); } } /* a phone keeps the bottom sheet */
@media (min-width: 720px) { .arch-main .f-bar { margin: 0 32px 18px; } }
@media (min-width: 1080px) {
  /* one row, the bordered box itself pinned at the header's edge */
  .arch-main .f-bar { top: 61px; display: flex; align-items: center; gap: 8px; height: 56px; box-sizing: border-box; max-width: 1176px; margin: 0 auto 18px; padding: 7px 10px 7px 8px;
    border: 1px solid var(--hair); border-radius: 18px; background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .arch-main .f-quick { flex: none; height: auto; overflow: visible; }
  .arch-main .f-main { flex: 1 1 auto; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .arch-main .f-main .f-search { height: 40px; }
  .f-chip select { max-width: 132px; }
}
@media (max-width: 1299px) { .arch-main .f-count-line .c-long { display: none; } .arch-main .f-count-line .c-short { display: inline; } }
/* results replace the sections; the sections are the default view */
.arch-main[data-mode="results"] .home-section { display: none; }
.arch-main .results { min-height: 60vh; }
.arch-main .rail-head h2 small, .arch-main .rail-head h2 small { font: 400 11px/1 var(--mono); color: var(--dim); letter-spacing: .1em; margin-left: 8px; font-style: normal; }
.month-now { margin-top: 40px; }
.month-list { margin-bottom: 22px; }
.recent-h { font: italic 400 22px/1.2 var(--display); margin: 6px 0 12px; }
/* lighter below the fold: the browser lays out the long sections only as they near the screen */
.arch-main .years-nav, .arch-main .type-dir, .arch-main .far { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (max-width: 679px) {
  .recent-grid > :nth-child(n+5) { display: none; } /* four recent skies on a phone; the month page has every day */
  .month-list > :nth-child(n+5) { display: none; }
}
@media (max-width: 719px) { .arch-main .f-count-line { display: none; } } /* a phone's bar keeps the search its full width */
/* owner 2026-12-01: a big serif name's descenders (the g of Magma) must never touch the line under it. Cormorant's glyph
   box is ~1.21 em tall, so at line-height 1 it overhangs its line by ~0.105 em top and bottom: the padding reserves that
   space (the type size is unchanged). prod/descender_check.py measures it. */
.day-name { line-height: 1; padding-bottom: .13em; }
.event-page .day-name { line-height: 1; padding-bottom: .13em; }
h1.display { padding-bottom: .08em; }

/* ---- historic moments (2026-12-04): /sky/historic/ and its pages; the wheel framed by the moment's own drawing ---- */
.hist-page { --ev: #d8bd84; --el: #d8bd84; }
.hist-badge svg { flex: none; }
.hist-prec { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--ev) 55%, var(--hair)); color: var(--ev); }
.hist-prec-date { border-color: var(--hair-2); color: var(--muted); }
/* the drawing spills past the wheel (insets, horizons, orbits): the stage gives it a margin inside the figure */
.hist-live .live-stage { margin: 8%; }
.hist-live .live-stage > svg.wheel, .hist-live .ev-overlay svg { overflow: visible; }
/* the time sits under the stage's margin (the drawing's horizons and waveforms use that margin) */
.hist-live .motion-date.hist-time { position: static; margin-top: -4%; font-size: 24px; }
.hist-live figcaption.motion-note { margin-top: 2px; }
.hist-legend { color: var(--dim); font-size: 10.5px; line-height: 1.6; letter-spacing: .03em; text-align: center; max-width: 46ch; margin: 0 auto; text-wrap: pretty; }
.hist-time-note { color: var(--dim); font-size: 12px; margin-top: 10px; }
.hist-source { color: var(--muted); font-size: 12.5px; border-left: 2px solid var(--ev); padding-left: 14px; }
.hist-page .day-name { text-wrap: balance; }
/* the day page's note, linked to the moment's page */
.otd p + p { margin-top: 10px; }
.otd-link { display: grid; gap: 4px; text-decoration: none; }
.otd-link span { text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.otd-link small { color: var(--dim); font-size: 11px; letter-spacing: .04em; }
.otd-link:hover span { text-decoration-color: var(--pearl); }
/* the hub: chips that filter without script (one radio per category; :has() hides the rest) */
.hist-filter { border: 0; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.hist-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hist-filter label { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1px solid var(--hair-2); border-radius: 999px; color: var(--muted); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.hist-filter label small { color: var(--dim); letter-spacing: .04em; }
.hist-filter input:checked + label { background: var(--pearl); color: var(--ground); border-color: var(--pearl); }
.hist-filter input:checked + label small { color: var(--ground); opacity: .7; }
.hist-filter input:focus-visible + label { outline: 2px solid var(--moon); outline-offset: 2px; }
.hist-hub:has(#hc-space:checked) .hist-item:not([data-cat="space"]),
.hist-hub:has(#hc-science:checked) .hist-item:not([data-cat="science"]),
.hist-hub:has(#hc-exploration:checked) .hist-item:not([data-cat="exploration"]),
.hist-hub:has(#hc-culture:checked) .hist-item:not([data-cat="culture"]) { display: none; }
.hist-hub:has(#hc-space:checked) .hist-year:not(:has([data-cat="space"])),
.hist-hub:has(#hc-science:checked) .hist-year:not(:has([data-cat="science"])),
.hist-hub:has(#hc-exploration:checked) .hist-year:not(:has([data-cat="exploration"])),
.hist-hub:has(#hc-culture:checked) .hist-year:not(:has([data-cat="culture"])) { display: none; }
.hist-hub:has(.hist-filter input:not(#hc-all):checked) .hub-jump { display: none; }
.hist-year { margin: 0 0 22px; scroll-margin-top: 72px; }
.hist-year h2 { font: italic 400 26px/1.3 var(--display); margin-bottom: 8px; }
.hist-year h2 small { color: var(--dim); font: 400 11px/1 var(--mono); }
.hist-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 10px 22px; }
.hist-item a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--hair); border-radius: 16px; background: var(--panel); text-decoration: none; }
.hist-item a:hover { border-color: color-mix(in srgb, #d8bd84 50%, var(--hair)); }
.hist-thumb-wrap { display: block; width: 84px; height: 84px; }
.hist-thumb { width: 100%; height: 100%; overflow: visible; }
.hist-thumb text { display: none; }
.hist-thumb * { vector-effect: non-scaling-stroke; }
.hist-txt { display: grid; gap: 3px; min-width: 0; }
.hist-txt time { color: #d8bd84; font-size: 11px; letter-spacing: .06em; }
.hist-txt strong { font: italic 400 21px/1.15 var(--display); color: var(--pearl); }
.hist-txt small { color: var(--dim); font-size: 11px; }
.hist-txt small em { color: var(--muted); }
.hist-year-list .hist-item a { grid-template-columns: 1fr; padding: 10px 14px; }
.hist-year-list p { margin-top: 10px; font-size: 12.5px; }
.hist-home .lead { margin: -4px 0 14px; }
@media (max-width: 560px) {
  .hist-item a { grid-template-columns: 64px 1fr; gap: 12px; }
  .hist-thumb-wrap { width: 64px; height: 64px; }
  .hist-txt strong { font-size: 19px; }
  .hist-live .motion-date.hist-time { font-size: 20px; }
}

/* production: the reels are on Instagram; a posted day shows the reel's poster, its clip and the link */
.feat-video img, .day-media-reel img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #0b0a16; border: 1px solid var(--hair); object-fit: cover; }
.day-media-reel figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.day-media-reel .reel-ig { color: var(--muted); }
.ev-source p { color: var(--dim); font-size: 12px; margin: 0; }
