/* A featured eclipse's page (the total solar eclipse of August 2, 2027):
   what it adds to an eclipse's own page (eclipse.css). The hero is a night
   panel in both themes, in the brand's sky colors; everything else follows
   the theme. Dark theme: eclipse-feature-dark.css. */

/* ---- Hero ---------------------------------------------------------------- */
.fe-crumbs { margin-bottom: -16px; }
.fe-hero {
  --fe-ink: #f6efe2;
  --fe-soft: #c4c8d8;
  --fe-gold: #e3c48a;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 26px 24px 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 20%, #18224a 0%, rgb(24 34 74 / 0) 60%),
    linear-gradient(160deg, #0b1130 0%, #05071a 100%);
  color: var(--fe-ink);
  box-shadow: var(--shadow);
}
@media (min-width: 760px) {
  .fe-hero { grid-template-columns: minmax(0, 1fr) 260px; padding: 32px 34px 22px; }
  .fe-hero-art { grid-column: 2; grid-row: 1; align-self: center; }
  .fe-stats, .fe-jump { grid-column: 1 / -1; }
}
.fe-hero-text { min-width: 0; }
.fe-hero .eyebrow { color: var(--fe-soft); }
.fe-hero .kind-total { background: #f6efe2; color: #0b1130; }
.fe-hero h1 { color: var(--fe-ink); }
.fe-headline {
  margin-top: 6px !important;
  color: var(--fe-gold);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.fe-hero .eclipse-summary { color: var(--fe-soft); }
.fe-hero-art { width: min(260px, 62vw); height: auto; justify-self: center; }
@media (max-width: 759px) { .fe-hero-art { position: absolute; top: -70px; right: -96px; width: 210px; opacity: 0.35; pointer-events: none; } .fe-hero-text { position: relative; } }

.fe-countdown { margin-top: 18px; max-width: 440px; }
.fe-countdown .countdown-label { color: var(--fe-soft); }
.fe-countdown .countdown-units > span { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); }
.fe-countdown .countdown-units b { color: var(--fe-ink); }
.fe-countdown .countdown-units small { color: var(--fe-soft); }
.fe-countdown-note { margin-top: 6px !important; color: var(--fe-soft); font-size: 0.8rem; }
.fe-hero.is-over .countdown-units, .fe-hero.is-over .fe-countdown-note { display: none; }

.fe-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: 8px; margin: 0; }
.fe-stats > div { padding: 10px 12px; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px; background: rgb(255 255 255 / 0.04); min-width: 0; }
.fe-stats dt { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.78rem; color: var(--fe-soft); }
.fe-stats dd { margin: 2px 0 0; display: flex; flex-direction: column; }
.fe-stats strong { font-size: 1.25rem; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--fe-ink); }
.fe-stats dd > span { font-size: 0.78rem; color: var(--fe-soft); }
.fe-stats .ec-info { width: 20px; height: 20px; font-size: 0.78rem; color: var(--fe-soft); border-color: rgb(255 255 255 / 0.25); }
.fe-hero .ec-pop { color: var(--text); }
.fe-jump { margin-top: 0 !important; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.fe-jump a { color: var(--fe-gold); }

/* ---- Sections ------------------------------------------------------------ */
.fe-section { gap: 14px; }
.fe-sub { margin-top: 6px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-sun); }

/* Choosing a spot. */
.fe-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 10px; }
.fe-picks li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 0.92rem; }
.fe-pick-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fe-pick-big { font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--accent-sun); font-variant-numeric: tabular-nums; }

/* One stretch of the path. */
.fe-region { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 4px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.fe-region-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.fe-region-head h3 { font-size: 1.2rem; }
.fe-region-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.fe-advisory { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #fdecea; color: #8c2a17; font-size: 0.8rem; font-weight: 600; }
.fe-advisory .ec-info { width: 20px; height: 20px; font-size: 0.78rem; color: inherit; border-color: currentColor; }
.fe-region-lede { max-width: 76ch; }
.fe-region-lede .ec-info, .fe-weather-label .ec-info, .fe-culture .ec-info, .fe-q .ec-info, .fe-saros .ep-lede .ec-info, .fe-why-sum .ec-info, .fe-chart .footnote .ec-info, .fe-around-card h3 .ec-info, .fe-plan-card h3 .ec-info { display: inline-grid; vertical-align: middle; width: 20px; height: 20px; font-size: 0.78rem; margin-left: 4px; }
.fe-stops th[scope="row"] { white-space: normal; min-width: 9rem; }
/* Keeps the last column's hidden heading inside the scrolling table, not the page. */
.fe-stops thead th { position: relative; }
.fe-stop-note { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.fe-stops tr.is-outside th[scope="row"], .fe-stops td.fe-partial { color: var(--muted); }
.fe-stops strong { color: var(--accent-sun); font-variant-numeric: tabular-nums; }
.fe-az { display: block; font-size: 0.75rem; color: var(--muted); }
.fe-view { color: var(--accent-moon); font-size: 0.85rem; text-underline-offset: 3px; }
.fe-weather { padding: 12px 14px; border-radius: 12px; background: var(--accent-moon-soft); max-width: 82ch; font-size: 0.92rem; }
.fe-weather-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-moon); margin-bottom: 4px !important; }
.fe-culture { max-width: 82ch; font-size: 0.92rem; color: var(--muted); }

/* Why so long. */
.fe-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 12px; }
.fe-why-card { gap: 6px; }
.fe-why-card h3 { font-size: 1.02rem; }
.fe-why-card p:not(.fe-why-n) { font-size: 0.92rem; }
.fe-why-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-sun-soft); color: var(--accent-sun); font-weight: 700; }
.fe-why-sum { max-width: 76ch; padding-left: 14px; border-left: 3px solid var(--accent-sun); }

/* Charts: SVG on the card, thin marks, recessive axes. */
.fe-chart { margin: 0; gap: 10px; }
.fe-chart figcaption h3 { font-size: 1rem; }
.fe-chart figcaption p { font-size: 0.85rem; }
.fe-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.fe-grid { stroke: var(--line); stroke-width: 1; }
.fe-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.fe-land { fill: var(--accent-sun-soft); stroke: var(--accent-sun); stroke-opacity: 0.35; stroke-width: 1; }
.fe-land-label { fill: var(--muted); font-size: 10px; font-weight: 600; pointer-events: none; }
.fe-line { fill: none; stroke: var(--accent-sun); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fe-line-speed { stroke: var(--accent-moon); }
.fe-peak { fill: var(--accent-sun); stroke: var(--surface); stroke-width: 2; }
.fe-note { fill: var(--text); font-size: 12px; font-weight: 700; }
.fe-hit { fill: transparent; cursor: default; }
.fe-hit:hover { fill: var(--accent-sun); fill-opacity: 0.18; }

/* Longest totalities compared: horizontal bars. */
.fe-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fe-bars li { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) 4.2rem; align-items: center; gap: 10px; font-size: 0.88rem; }
.fe-bar-label { display: flex; flex-direction: column; line-height: 1.25; }
.fe-bar-label a { color: var(--text); text-underline-offset: 3px; }
.fe-bar-label .muted { font-size: 0.78rem; }
.fe-chart svg.fe-bar-track { display: block; width: 100%; height: 14px; overflow: hidden; }
.fe-bar { fill: var(--muted); fill-opacity: 0.45; }
.fe-bars li.is-this .fe-bar { fill: var(--accent-sun); fill-opacity: 1; }
.fe-bars li.is-this { font-weight: 700; }
.fe-bar-value { text-align: right; font-variant-numeric: tabular-nums; }

/* Minute by minute. */
.fe-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.fe-steps li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.fe-steps time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; padding-top: 1px; }
.fe-steps li.is-contact time { color: var(--text); font-weight: 700; }
.fe-steps h3 { font-size: 1rem; }
.fe-steps p { font-size: 0.92rem; color: var(--muted); }
.fe-steps li.is-total { background: linear-gradient(90deg, var(--accent-sun-soft), transparent 70%); border-radius: 0 12px 12px 0; padding-left: 10px; margin-left: -10px; }
@media (max-width: 480px) { .fe-steps li { grid-template-columns: 5.2rem minmax(0, 1fr); gap: 10px; } }

/* The sky during totality: a night disk in both themes. */
.fe-sky { display: grid; gap: 14px; }
@media (min-width: 860px) { .fe-sky { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.fe-sky-chart { margin: 0; gap: 8px; }
.fe-sky-chart svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.fe-sky-chart figcaption { font-size: 0.85rem; }
.fe-sky-bg { fill: #10183a; }
.fe-sky-ground { fill: #241c14; }
.fe-sky-horizon { fill: none; stroke: #c9a86a; stroke-width: 1.5; stroke-opacity: 0.8; }
.fe-sky-ring { fill: none; stroke: rgb(255 255 255 / 0.14); stroke-dasharray: 3 4; }
.fe-sky-ring-label { fill: rgb(255 255 255 / 0.45); font-size: 10px; }
.fe-sky-planet circle { fill: #ffe9b8; stroke: #10183a; stroke-width: 1.5; }
.fe-sky-planet text { fill: #ffe9b8; font-size: 13px; font-weight: 700; paint-order: stroke; stroke: #10183a; stroke-width: 3px; }
.fe-sky-star circle { fill: #dfe6ff; }
.fe-sky-star text { fill: #aab6e0; font-size: 11px; paint-order: stroke; stroke: #10183a; stroke-width: 3px; }
.fe-sky-dir { fill: var(--muted); font-size: 11px; }
.fe-sky-list h3 { font-size: 1rem; margin-bottom: 6px; }
.fe-sky-list tr.is-planet th { color: var(--accent-sun); }
.fe-sky-list p { margin-top: 10px !important; font-size: 0.92rem; }

/* Saros 136: columns and the table. */
.fe-saros { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.fe-col rect { fill: var(--muted); fill-opacity: 0.4; }
.fe-col.is-peak rect { fill-opacity: 0.7; }
.fe-col.is-this rect { fill: var(--accent-sun); fill-opacity: 1; }
.fe-col-year { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fe-col.is-this .fe-col-year { fill: var(--text); font-weight: 700; }
.fe-col-value { fill: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fe-saros-table tr.is-this { background: var(--accent-sun-soft); }
.fe-saros-table th a { color: var(--text); text-underline-offset: 3px; }

/* Before and after. */
.fe-around { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; }
.fe-around-card { gap: 8px; }
.fe-around-card h3 { font-size: 1rem; }
.fe-around-card p { font-size: 0.92rem; }
.fe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fe-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.fe-list li.is-this strong { color: var(--accent-sun); }
.fe-list a { color: var(--accent-moon); text-underline-offset: 3px; font-weight: 600; }
.fe-list .muted { flex-basis: 100%; font-size: 0.85rem; }

/* Heat, crowds and travel. */
.fe-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 12px; }
.fe-plan-card { gap: 8px; }
.fe-plan-card h3 { font-size: 1rem; }
.fe-plan-card .ep-tips { font-size: 0.92rem; }

/* Questions. */
.fe-faq { display: grid; gap: 0; max-width: 820px; }
.fe-q { border-top: 1px solid var(--line); }
.fe-q:last-child { border-bottom: 1px solid var(--line); }
.fe-q summary { padding: 12px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fe-q summary::-webkit-details-marker { display: none; }
.fe-q summary::after { content: "+"; color: var(--accent-sun); font-weight: 700; }
.fe-q[open] summary::after { content: "−"; }
.fe-q p { padding: 0 0 14px; color: var(--muted); max-width: 76ch; }

@media print {
  .fe-hero { background: none; color: inherit; box-shadow: none; border: 1px solid var(--line); }
  .fe-hero-art, .fe-countdown, .fe-view { display: none; }
}
