/* Eclipse page (/eclipse-2027/ and translations). Loaded only there, on top
   of site.css: same palette, type and document layout (.doc). No boxed
   cards: typographic rows with a hairline, like the press and Classics
   pages. The two maps are inline SVG drawn from data (see
   tools/eclipse-2027-map.mjs); their colours come from the site palette. */

.ec-doc { max-width: 820px; }
.ec-kicker { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow) !important; }
.ec-kicker + h1 { margin-top: 6px; }
.ec-doc .updated { margin: 6px 0 18px; }
.ec-doc h2 { scroll-margin-top: 80px; }
.ec-doc p, .ec-doc li { overflow-wrap: break-word; }

/* Key facts: hairline rows. */
.ec-facts { margin: 8px 0 0; }
.ec-fact {
  display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 2px 18px;
  padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ec-fact:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ec-fact dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--glow); padding-top: 3px; }
.ec-fact dd { margin: 0; color: var(--on-surface); }
@media (max-width: 560px) { .ec-fact { grid-template-columns: 1fr; } }

/* Maps. Strokes keep their width whatever the scale; labels are sized in
   the SVG's own units, larger on phones where the map is drawn smaller. */
.ec-figure { margin: 22px 0 8px; }
.ec-map { display: block; width: 100%; height: auto; }
.ec-sea { fill: rgba(159, 195, 232, 0.05); }
.ec-coast { fill: none; stroke: rgba(234, 224, 231, 0.55); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ec-band { fill: rgba(242, 205, 124, 0.26); stroke: none; }
.ec-limit { fill: none; stroke: rgba(242, 205, 124, 0.8); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ec-center { fill: none; stroke: var(--glow); stroke-width: 1.4; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.ec-cov { fill: none; stroke: var(--moon); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ec-dur { fill: none; stroke: var(--rose); stroke-opacity: 0.85; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.ec-zoom { fill: none; stroke: var(--on-surface); stroke-opacity: 0.6; stroke-width: 1; vector-effect: non-scaling-stroke; }

.ec-map text {
  font-family: var(--font); font-size: 17px; fill: var(--on-surface);
  paint-order: stroke; stroke: #1c1526; stroke-width: 4px; stroke-linejoin: round;
}
.ec-place circle { fill: var(--on-surface); stroke: #1c1526; stroke-width: 1.5px; }
.ec-map .ec-region { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--on-surface-variant); opacity: 0.85; }
.ec-map .ec-sea-label { font-size: 14px; font-style: italic; fill: var(--moon); opacity: 0.8; }
.ec-map .ec-cov-label { font-family: var(--mono); font-size: 13px; fill: var(--moon); }
.ec-map .ec-dur-label { font-family: var(--mono); font-size: 14px; fill: var(--rose); }

@media (max-width: 560px) {
  .ec-map text { font-size: 30px; stroke-width: 6px; }
  .ec-map .ec-region { font-size: 22px; }
  .ec-map .ec-cov-label, .ec-map .ec-dur-label { font-size: 24px; }
  .ec-map .minor { display: none; }
  .ec-place circle { r: 8px; }
}

.ec-figure figcaption p { margin: 6px 0 0; font-size: 13.5px; color: var(--outline) !important; }
.ec-legend {
  list-style: none; margin: 12px 0 0; padding: 0 !important;
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--on-surface-variant);
}
.ec-legend li { margin: 0 !important; display: inline-flex; align-items: center; gap: 8px; }
.ec-key { display: inline-block; width: 22px; height: 0; flex: none; }
.ec-key-band { height: 10px; background: rgba(242, 205, 124, 0.32); }
.ec-key-center { border-top: 1.5px dashed var(--glow); }
.ec-key-cov { border-top: 1.5px dotted var(--moon); }
.ec-key-dur { border-top: 1.5px dotted var(--rose); }
.ec-key-zoom { width: 14px; height: 10px; border: 1px solid rgba(234, 224, 231, 0.6); }

/* Times table: real table on wide screens, stacked rows on phones. */
.ec-table-wrap { margin: 14px 0 0; }
.ec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ec-table th, .ec-table td { padding: 10px 10px 10px 0; text-align: left; vertical-align: baseline; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.ec-table thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--outline); border-top: 0; padding-top: 0; }
.ec-table td { font-family: var(--mono); font-size: 15px; color: var(--on-surface); white-space: nowrap; }
.ec-table tbody th { font-weight: 600; color: var(--on-surface); }
.ec-city { display: block; }
.ec-tz { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--outline); }
.ec-mid span { margin-left: 6px; font-size: 11.5px; color: var(--outline); }
.ec-table td.ec-total { color: var(--glow); font-family: var(--font); }
.ec-table td.ec-partial { color: var(--on-surface-variant); font-family: var(--font); }
.ec-table tr.ec-group th { padding-top: 22px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); border-top: 0; }
.ec-table tbody:first-of-type tr.ec-group th { padding-top: 10px; }
.ec-note { margin-top: 12px; font-size: 13.5px; color: var(--outline) !important; }

@media (max-width: 680px) {
  .ec-table thead { display: none; }
  .ec-table, .ec-table tbody, .ec-table tr { display: block; }
  .ec-table tbody tr:not(.ec-group) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px;
    padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .ec-table th, .ec-table td { display: block; padding: 0; border-top: 0; white-space: normal; }
  .ec-table tbody th { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ec-table tbody th .ec-city, .ec-table tbody th .ec-tz { display: inline; }
  .ec-table td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--outline); }
  .ec-table td.ec-total, .ec-table td.ec-partial { grid-column: 1 / -1; }
  .ec-table td.ec-total::before, .ec-table td.ec-partial::before { display: none; }
  .ec-mid span { display: none; }
  .ec-table tr.ec-group th { padding: 22px 0 4px; }
}

/* Closing call to action. */
.ec-cta { margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ec-cta h2 { margin-top: 0; }
.ec-cta p { margin: 0 0 18px; }
.ec-closing { margin: 22px 0 0 !important; font-weight: 600; color: var(--on-surface) !important; }
