/* Year archive and its shared weather summaries, aligned with the history view. */
.year-main { padding-top: 0; }
.year-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 64px; align-items: center; padding: 56px 0 44px; }
.year-hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: #eaf1f4; border-bottom: 1px solid #d3dfe5; }
.year-eyebrow { color: #58717f; font-size: 10px; font-weight: 650; letter-spacing: 1.9px; line-height: 1.6; }
.year-main .year-hero h1 { font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -.045em; margin-top: 16px; }
.year-hero h1 em { color: #25627a; font-weight: 400; white-space: nowrap; }
.year-hero-description { max-width: 600px; color: #566c79; margin-top: 20px; font-size: 16px; line-height: 1.85; }
.year-navigation { border-left: 1px solid #c7d8e0; padding-left: 32px; }
.year-navigation .year-eyebrow { display: block; font-size: 9px; letter-spacing: 1.3px; }
.year-navigation-controls { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; margin-top: 14px; gap: 6px; }
.year-navigation-controls :is(a, .year-navigation-disabled) { display: grid; place-items: center; min-height: 46px; font-size: 22px; border-radius: 4px; }
.year-navigation-controls a:hover { background: #dce8ee; color: #25627a; }
.year-navigation-disabled { color: #a2b5bf; }
.year-main .year-navigation-controls select { width: 100%; background-color: #fff; border: 1px solid #b8cbd6; padding: 10px 30px 10px 12px; font-size: 18px; }
.year-navigation-count { margin-top: 14px; font-size: 12px; color: #426477; }
.year-navigation-source { margin-top: 8px; font-size: 10px; color: #59717f; }
.year-jump-nav { display: flex; align-items: center; gap: 36px; border-bottom: 1px solid #dce4e8; padding: 22px 0; font-size: 13px; }
.year-jump-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.year-jump-nav a > span:first-child { font-size: 10px; color: #708692; }
.year-jump-nav a:last-child { margin-left: auto; }
.year-jump-nav a:hover { color: #a5512f; }
.year-empty { padding: 48px 0; }
.year-empty p { margin-top: 16px; color: #59717f; }

.yearly-data-shell { min-width: 0; color: #173c50; --yearly-line: #dce4e8; }
.yearly-section { margin-top: 48px; }
.yearly-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.yearly-section-heading h2 { margin-top: 8px; }
.yearly-section-heading > p { max-width: 300px; color: #59717f; font-size: 13px; line-height: 1.8; }
.yearly-key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.yearly-key-group { min-width: 0; --metric-accent: #25627a; --metric-soft: #eaf1f4; }
.yearly-data-shell [data-tone="warm"] { --metric-accent: #a65d36; --metric-soft: #f5ebe2; }
.yearly-data-shell [data-tone="cold"] { --metric-accent: #356c91; --metric-soft: #e6eff6; }
.yearly-data-shell [data-tone="precipitation"] { --metric-accent: #367784; --metric-soft: #e7f0f2; }
.yearly-data-shell [data-tone="snow"] { --metric-accent: #527a8e; --metric-soft: #eaf1f4; }
.yearly-data-shell [data-tone="wind-cloud"] { --metric-accent: #4a786e; --metric-soft: #e7f0ed; }
.yearly-data-shell .yearly-key-group-title { font-size: 10px; color: #59717f; letter-spacing: 1.4px; font-weight: 650; text-transform: uppercase; margin-bottom: 16px; }
.yearly-key-metrics { display: grid; }
.archive-page .yearly-key-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: baseline; border: 0; border-top: 1px solid var(--yearly-line); border-radius: 0; background: transparent; padding: 20px 0; min-width: 0; box-shadow: none; }
.yearly-key-label { font-size: 12px; line-height: 1.6; color: #426071; }
.yearly-key-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; color: var(--metric-accent); }
.yearly-key-number { font-size: 28px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.8px; line-height: 1.1; }
.yearly-key-unit { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 10px; color: #59717f; }
.yearly-key-detail { grid-column: 1 / -1; font-size: 10px; color: #59717f; line-height: 1.6; }
.archive-page .yearly-key-metric:first-child { display: block; border: 0; background: var(--metric-soft); border-radius: 4px; padding: 24px 20px; margin-bottom: 12px; }
.yearly-key-metric:first-child .yearly-key-label { color: var(--metric-accent); }
.yearly-key-metric:first-child .yearly-key-value { margin-top: 16px; }
.yearly-key-metric:first-child .yearly-key-number { font-size: 44px; }
.yearly-key-metric:first-child .yearly-key-detail { margin-top: 14px; }
.yearly-months-section, .yearly-days-section { border-top: 1px solid var(--yearly-line); padding-top: 40px; }
.yearly-monthly-section + .yearly-monthly-section { margin-top: 36px; }
.yearly-data-shell .yearly-monthly-section h3 { font-size: 15px; font-weight: 550; }
.yearly-monthly-section h3 > span { color: #708692; font-size: 12px; font-weight: 400; margin-left: 6px; }
.yearly-chart-description { color: #59717f; font-size: 12px; margin: 8px 0 18px; line-height: 1.7; }
.yearly-table-scroll { overflow: auto; border: 1px solid var(--yearly-line); border-radius: 5px; scrollbar-color: #a7bdc8 #edf2f5; }
.yearly-table-scroll:focus-visible { outline: 3px solid #b8672c; outline-offset: 4px; }
.yearly-monthly-table, .yearly-calendar { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.yearly-monthly-table { min-width: 760px; font-size: 12px; }
.yearly-monthly-table :is(td, th) { height: 48px; text-align: center; border-right: 2px solid #f7f9fa; border-bottom: 2px solid #f7f9fa; padding: 6px 4px; font-weight: 450; }
.yearly-monthly-table thead th { color: #59717f; font-weight: 500; font-size: 11px; background: #f7f9fa; }
.yearly-monthly-table tr > th:first-child { position: sticky; left: 0; z-index: 2; width: 140px; text-align: left; padding-left: 16px; background: #edf2f5; color: #426071; font-size: 11px; }
.yearly-monthly-table tr > :last-child { border-right: 0; }
.yearly-monthly-table tbody tr:last-child > * { border-bottom: 0; }
.yearly-chart-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: #59717f; font-size: 10px; }
.yearly-color-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #59717f; font-size: 10px; }
.yearly-color-scale { display: inline-block; width: 100px; height: 6px; border-radius: 2px; }
.yearly-color-scale[data-scale="temperature"] { background: linear-gradient(90deg, #465ae6, #96c8fc 25%, #e6ffdc 45%, #fff05a 65%, #ffc828 80%, #ff5a00); }
.yearly-color-scale[data-scale="precipitation"] { background: linear-gradient(90deg, #f1f7fc, #99ccff, #007fff, #004c99); }
.yearly-color-scale[data-scale="wind"] { background: linear-gradient(90deg, #e6ffe6, #90ee90, #3cb371, #006400); }
.yearly-color-scale[data-scale="snow"] { background: linear-gradient(90deg, #f8fcff, #96ccff, #3c88e6, #0e3c82); }
.yearly-scroll-hint { display: none; }
.yearly-segmented-control { display: flex; flex-wrap: wrap; gap: 0 24px; border: 0; border-bottom: 1px solid var(--yearly-line); padding: 0; margin: 0 0 22px; }
.yearly-segment { position: relative; cursor: pointer; }
.yearly-segment input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.archive-page .yearly-segment-label { position: relative; display: block; padding: 12px 0 16px; min-height: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #59717f; font-size: 12px; font-weight: 500; pointer-events: none; box-shadow: none; }
.archive-page .yearly-segment input:checked + .yearly-segment-label { border-color: #25627a; background: transparent; color: #25627a; box-shadow: none; }
.yearly-segment:hover .yearly-segment-label { color: #25627a; }
.yearly-calendar-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; color: #59717f; font-size: 10px; flex-wrap: wrap; }
.yearly-legend > [data-param], .yearly-day-cell > [data-param] { display: none; }
.yearly-legend-unit { padding-left: 8px; border-left: 1px solid #c5d3db; }
.yearly-missing-key { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.yearly-missing-key i { width: 12px; height: 12px; border: 1px solid var(--yearly-line); }
.yearly-calendar { min-width: 1060px; font-size: 10px; }
.yearly-calendar :is(td, th) { padding: 0; border-right: 2px solid #f7f9fa; border-bottom: 2px solid #f7f9fa; text-align: center; height: 40px; font-weight: 450; }
.yearly-calendar thead th { color: #59717f; background: #edf2f5; height: 36px; font-size: 10px; }
.yearly-calendar tr > th:first-child { width: 60px; position: sticky; left: 0; z-index: 2; background: #edf2f5; color: #426071; font-size: 11px; font-weight: 500; }
.yearly-calendar tr > :last-child { border-right: 0; }
.yearly-calendar tbody tr:last-child > * { border-bottom: 0; }
.yearly-calendar .yearly-day-cell { position: relative; }
.yearly-day-cell, .yearly-missing-key i { background: repeating-linear-gradient(135deg, #f7f9fa, #f7f9fa 3px, #e5ecef 3px, #e5ecef 4px); }
.yearly-value-cell { width: 100%; height: 100%; min-height: 38px; place-items: center; }
.yearly-value-cell:hover { position: relative; outline: 2px solid #173c50; outline-offset: -2px; z-index: 1; }
.yearly-empty-cell { background: #edf2f5; }
.yearly-calendar-note { font-size: 11px; color: #59717f; line-height: 1.8; margin-top: 18px; max-width: 720px; }
@media (max-width: 1000px) {
  .year-hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; }
  .year-navigation { padding-left: 24px; }
  .yearly-key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .yearly-scroll-hint { display: inline; }
}
@media (max-width: 640px) {
  .year-main { padding-top: 0; }
  .year-hero { display: block; padding: 36px 0 28px; }
  .year-main .year-hero h1 { font-size: 43px; }
  .year-hero-description { font-size: 14px; line-height: 1.8; margin-top: 18px; }
  .year-navigation { padding: 24px 0 0; margin-top: 24px; border-left: 0; border-top: 1px solid #c7d8e0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; }
  .year-navigation .year-eyebrow { letter-spacing: .8px; font-size: 9px; }
  .year-navigation-controls { grid-column: 2; grid-row: 1 / 4; width: 166px; grid-template-columns: 30px minmax(0, 1fr) 30px; margin: 0; gap: 3px; }
  .year-navigation-count { font-size: 10px; margin: 0; }
  .year-navigation-source { font-size: 9px; margin: 0; }
  .year-main .year-navigation-controls select { font-size: 16px; padding-left: 10px; }
  .year-jump-nav { padding: 16px 0; font-size: 12px; gap: 16px; }
  .year-jump-nav a { gap: 7px; }
  .yearly-section { margin-top: 32px; }
  .yearly-section-heading { display: block; margin-bottom: 24px; }
  .yearly-section-heading > p { max-width: none; margin-top: 12px; }
  .archive-main .yearly-section-heading h2 { font-size: 28px; }
  .yearly-key-grid { gap: 24px 20px; }
  .yearly-key-group-title { margin-bottom: 12px; }
  .archive-page .yearly-key-metric { display: block; padding: 16px 0; }
  .yearly-key-value { margin-top: 8px; }
  .yearly-key-label { font-size: 11px; }
  .yearly-key-number { font-size: 28px; }
  .yearly-key-detail { font-size: 10px; margin-top: 6px; }
  .archive-page .yearly-key-metric:first-child { padding: 20px 14px; }
  .yearly-key-metric:first-child .yearly-key-number { font-size: 34px; }
  .yearly-key-metric:first-child .yearly-key-detail { margin-top: 12px; }
  .yearly-months-section, .yearly-days-section { padding-top: 28px; }
  .yearly-monthly-table { min-width: 740px; }
  .yearly-monthly-table tr > th:first-child { width: 126px; padding-left: 12px; }
  .yearly-segmented-control { gap: 0 20px; }
  .archive-page .yearly-segment-label { padding-bottom: 12px; font-size: 11px; }
  .yearly-calendar-meta { gap: 12px; }
  .yearly-color-scale { width: 80px; }
  .yearly-chart-footer { gap: 12px; }
}
@media (max-width: 360px) {
  .year-navigation { display: block; }
  .year-navigation-controls { width: 100%; margin: 12px 0; }
  .year-navigation-count { margin-top: 12px; }
  .year-navigation-source { margin-top: 6px; }
  .yearly-key-grid { gap: 24px 14px; }
  .yearly-key-metric:first-child .yearly-key-number { font-size: 30px; }
}
@media print {
  .year-navigation, .year-jump-nav, .yearly-scroll-hint { display: none; }
  .yearly-table-scroll { overflow: visible; }
}
