/* Month and year tables for a listed place (ADR 0049): /us/seattle/2026/12 and /us/seattle/2026. */

.mt-eyebrow { color: var(--accent-sun); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; }
.mt-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; font-size: 0.95rem; }
.mt-nav a { color: var(--accent-moon); text-decoration: none; }
.mt-nav a:hover { text-decoration: underline; }
.mt-nav .mt-next { margin-left: auto; }

.mt-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 18px 0; }
.mt-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.mt-stat h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.mt-stat strong { font-size: 1.3rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mt-stat p, .mt-stat ul { margin: 0; color: var(--muted); font-size: 0.9rem; }
.mt-stat ul { padding: 0; list-style: none; display: grid; gap: 4px; color: var(--text); }

.mt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.mt-table th, .mt-table td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mt-table thead th { color: var(--muted); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface); position: sticky; top: 0; }
.mt-table thead tr.mt-groups th { border-bottom: 0; padding-bottom: 0; }
.mt-table tbody th { font-weight: 600; position: sticky; left: 0; background: var(--surface); }
.mt-table tbody tr:last-child th, .mt-table tbody tr:last-child td { border-bottom: 0; }
.mt-table tr.is-today th, .mt-table tr.is-today td { background: var(--accent-sun-soft); }
.mt-table tr.is-weekend th { color: var(--accent-moon); }
.mt-table .mt-sub { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.mt-table .mt-sun { border-left: 1px solid var(--line); }
.mt-table .mt-moon { border-left: 1px solid var(--line); }
.mt-up { color: #1a7f4b; }
.mt-down { color: #b0402b; }
.mt-phase { display: inline-flex; gap: 6px; align-items: center; }
.mt-phase svg { width: 18px; height: 18px; flex: none; }
.mt-phase .moon-dark { fill: var(--line); }
.mt-phase .moon-lit { fill: var(--accent-moon); }
.mt-phase-name { font-weight: 600; }
.mt-note { color: var(--muted); font-size: 0.88rem; max-width: 80ch; margin: 12px 0 0; }

/* The year's daylight chart: bands drawn in a stretched SVG, labels in HTML. */
.yr-chart { position: relative; margin: 18px 0 8px; padding: 0 0 0 44px; }
.yr-plot { position: relative; height: clamp(220px, 40vw, 340px); border-radius: 10px; overflow: hidden; background: var(--yr-night); }
.yr-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.yr-astro { fill: var(--yr-astro); }
.yr-nautical { fill: var(--yr-nautical); }
.yr-civil { fill: var(--yr-civil); }
.yr-day { fill: var(--yr-day); }
.yr-today { stroke: var(--text); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.yr-hours { position: absolute; left: 0; top: 0; height: clamp(220px, 40vw, 340px); width: 40px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.72rem; }
.yr-hours li { position: absolute; right: 4px; transform: translateY(-50%); }
.yr-months { position: relative; height: 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.72rem; }
.yr-months li { position: absolute; top: 4px; }
.yr-h0 { top: 0%; }
.yr-h1 { top: 12.5%; }
.yr-h2 { top: 25%; }
.yr-h3 { top: 37.5%; }
.yr-h4 { top: 50%; }
.yr-h5 { top: 62.5%; }
.yr-h6 { top: 75%; }
.yr-h7 { top: 87.5%; }
.yr-h8 { top: 100%; }
.yr-m1 { left: 0.00%; }
.yr-m2 { left: 8.49%; }
.yr-m3 { left: 16.16%; }
.yr-m4 { left: 24.66%; }
.yr-m5 { left: 32.88%; }
.yr-m6 { left: 41.37%; }
.yr-m7 { left: 49.59%; }
.yr-m8 { left: 58.08%; }
.yr-m9 { left: 66.58%; }
.yr-m10 { left: 74.79%; }
.yr-m11 { left: 83.29%; }
.yr-m12 { left: 91.51%; }
.yr-k-day { background: var(--yr-day); }
.yr-k-civil { background: var(--yr-civil); }
.yr-k-nautical { background: var(--yr-nautical); }
.yr-k-astro { background: var(--yr-astro); }
.yr-k-night { background: var(--yr-night); }
.yr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.85rem; }
.yr-legend li { display: inline-flex; align-items: center; gap: 6px; }
.yr-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.yr-page { --yr-night: #1f2740; --yr-astro: #33406a; --yr-nautical: #4e5f96; --yr-civil: #8ea0d6; --yr-day: #f6d48a; }

@media print {
  .mt-nav, .place-tools, .more-places { display: none; }
  .mt-scroll { overflow: visible; border: 0; }
  .mt-table thead th, .mt-table tbody th { position: static; }
}
