/* Monthly comparisons share the station archive's editorial layout. */
.month-main { padding-top: 0; }
.month-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 64px; padding: 56px 0 44px; }
.month-hero::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: #eaf1f4; border-bottom: 1px solid #d3dfe5; }
.month-eyebrow { color: #58717f; font-size: 10px; font-weight: 650; line-height: 1.6; letter-spacing: 1.9px; }
.month-main .month-hero h1 { margin-top: 16px; font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -.045em; }
.month-hero h1 em { color: #25627a; font-weight: 400; }
.month-description { max-width: 570px; margin-top: 20px; color: #566c79; font-size: 16px; line-height: 1.85; }
.month-period-form { padding-left: 32px; border-left: 1px solid #c7d8e0; min-width: 0; }
.month-period-form label { display: block; font-size: 9px; letter-spacing: 1.3px; }
.month-period-field + .month-period-field { margin-top: 18px; }
.month-period-controls { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 6px; margin-top: 8px; }
.month-period-controls :is(a, .month-period-disabled) { display: grid; place-items: center; min-height: 46px; border-radius: 4px; font-size: 22px; }
.month-period-controls a:hover { background: #dce8ee; color: #25627a; }
.month-period-disabled { color: #a2b5bf; }
.month-main .month-period-controls select { width: 100%; padding: 10px 30px 10px 12px; border: 1px solid #b8cbd6; background-color: #fff; font-size: 16px; }
.month-period-count { margin-top: 20px; color: #426477; font-size: 12px; }
.month-source { margin-top: 8px; color: #59717f; font-size: 10px; }
.month-jump-nav { display: flex; align-items: center; gap: 36px; padding: 22px 0; border-bottom: 1px solid #dce4e8; font-size: 13px; }
.month-jump-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.month-jump-nav a > span:first-child { color: #708692; font-size: 10px; }
.month-jump-nav a:last-child { margin-left: auto; }
.month-jump-nav a:hover, .month-related-links a:hover { color: #a5512f; }
.month-related-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 18px; color: #59717f; font-size: 11px; }
.month-related-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 28px; }
.month-section { margin-top: 48px; }
.month-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.month-section-heading h2 { margin-top: 8px; }
.month-section-heading > p { max-width: 300px; color: #59717f; font-size: 13px; line-height: 1.8; }
.month-section-heading > div > p:last-child:not(:first-child) { margin-top: 12px; color: #59717f; font-size: 12px; }
.month-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.month-summary-group { min-width: 0; }
.month-main .month-summary-group h3 { margin-bottom: 16px; color: #59717f; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; }
.month-summary-entries { display: grid; gap: 12px; }
.month-record { padding: 24px; border-radius: 4px; background: #f5ebe2; color: #a65d36; }
.month-record[data-tone="low"] { background: #e6eff6; color: #356c91; }
.month-record-label { font-size: 12px; line-height: 1.6; }
.month-record-value { margin-top: 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 42px; font-weight: 400; line-height: 1.15; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.month-record-station { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; color: #426071; font-size: 12px; line-height: 1.6; text-decoration: underline; text-decoration-color: #b1c3cd; text-underline-offset: 4px; }
.month-record-station span { flex-shrink: 0; }
.month-record-station:hover { color: inherit; text-decoration-color: currentColor; }
.month-summary-note { margin-top: 14px; color: #59717f; font-size: 11px; line-height: 1.8; }
.month-stations { padding-top: 40px; border-top: 1px solid #dce4e8; }
.month-sort-label { display: flex; flex-direction: column; gap: 8px; min-width: 200px; color: #59717f; font-size: 11px; }
.month-sort-label select { padding: 10px 36px 10px 14px; border: 1px solid #c5d3db; background-color: #fff; }
.month-sort-status { margin-bottom: 16px; color: #59717f; font-size: 12px; }
.month-table-hint { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 18px; border: 1px solid #dce4e8; border-bottom: 0; border-radius: 6px 6px 0 0; background: #edf2f5; color: #59717f; font-size: 11px; line-height: 1.6; }
.month-table-hint > span { display: none; }
.month-table-wrap { max-height: 640px; overflow: auto; overflow-anchor: none; border: 1px solid #dce4e8; border-radius: 0 0 6px 6px; background: #fff; scrollbar-color: #a7bdc8 #edf2f5; }
.month-table { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; color: #426071; font-size: 13px; font-variant-numeric: tabular-nums; }
.month-table :is(th, td) { padding: 14px 18px; border-bottom: 1px solid #e5ebee; text-align: right; white-space: nowrap; }
.month-table th { position: sticky; top: 0; z-index: 3; background: #f3f6f8; border-bottom-color: #cfdee5; font-weight: 550; }
.month-table :is(th, td):first-child { position: sticky; left: 0; z-index: 2; border-right: 1px solid #dce4e8; background: #fff; text-align: left; }
.month-table th:first-child { z-index: 4; background: #f3f6f8; }
.month-table .sortable-header-button { justify-content: flex-end; }
.month-table th:first-child .sortable-header-button { justify-content: flex-start; }
.month-table tbody tr:hover td { box-shadow: inset 0 0 0 999px #173c5005; }
.month-table tbody tr:last-child td { border-bottom: 0; }
.month-station-link { color: #25627a; text-decoration: underline; text-decoration-color: #c1d2da; text-underline-offset: 4px; }
.month-station-link:hover { color: #a5512f; text-decoration-color: currentColor; }
.month-table-date { color: #708692; font-size: 10px; }
.month-table .month-table-empty { padding: 36px 18px; text-align: center; }
.period-selected-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; color: #426477; font-size: 13px; font-variant-numeric: tabular-nums; }
.period-view .month-period-field input { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid #b8cbd6; background: #fff; }
/* The same month across years keeps the year visible while comparing stations. */
.month-years-view .month-related-links > p { align-self: center; }
.month-record-year { margin-top: 8px; color: #59717f; font-size: 10px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.month-years-table-description { max-width: 760px; margin: -8px 0 18px; color: #59717f; font-size: 12px; line-height: 1.8; }
.month-years-view .month-sort-label { max-width: 280px; }
.month-years-view .month-table-hint > span { display: inline; }
.month-years-table { min-width: 1400px; table-layout: fixed; }
.month-years-table :is(th, td):first-child { width: 104px; }
.month-years-table td { vertical-align: top; }
.month-years-table th { white-space: normal; }
.month-years-table .sortable-header-button__label { white-space: normal; }
.month-years-table .month-year-link { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 400; white-space: nowrap; }
.month-years-metric { white-space: normal; }
.month-years-metric-value { margin-bottom: 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; line-height: 1.3; }
.month-years-metric :is(a, .month-years-metric-missing) { font-size: 11px; line-height: 1.6; }
.month-years-metric-missing { color: #708692; }
@media (max-width: 1000px) {
  .month-hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
  .month-period-form { padding-left: 24px; }
  .month-summary-grid { gap: 20px; }
  .month-record { padding: 22px 18px; }
  .month-record-value { font-size: 36px; }
  .month-table-hint > span { display: inline; }
}
@media (max-width: 640px) {
  .month-main { padding-top: 0; }
  .month-hero { display: block; padding: 36px 0 28px; }
  .month-main .month-hero h1 { font-size: 43px; }
  .month-description { margin-top: 18px; font-size: 14px; line-height: 1.8; }
  .month-period-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid #c7d8e0; }
  .month-period-field + .month-period-field { margin-top: 0; }
  .month-period-controls { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 2px; }
  .month-main .month-period-controls select { padding-left: 8px; padding-right: 24px; background-position: right 5px center; }
  .month-period-count, .month-source { grid-column: 1 / -1; margin: 0; }
  .month-source { margin-top: -8px; }
  .month-jump-nav { flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; font-size: 12px; }
  .month-jump-nav a { gap: 7px; }
  .month-jump-nav a:last-child { flex-basis: 100%; margin-left: 0; }
  .month-related-links { gap: 4px 20px; padding-top: 12px; }
  .month-section { margin-top: 32px; }
  .month-section-heading { display: block; margin-bottom: 24px; }
  .month-main .month-section-heading h2 { font-size: 28px; }
  .month-section-heading > p { max-width: none; margin-top: 12px; }
  .month-summary-grid { grid-template-columns: 1fr; gap: 28px; }
  .month-summary-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-record { padding: 20px 14px; }
  .month-record-label { font-size: 11px; }
  .month-record-value { font-size: 32px; }
  .month-record-station { font-size: 11px; }
  .month-summary-note { font-size: 10px; }
  .month-stations { padding-top: 28px; }
  .month-sort-label { margin-top: 20px; }
  .month-table-hint { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 10px; }
  .month-table :is(th, td) { padding: 12px; }
  .month-table :is(th, td):first-child { max-width: 150px; white-space: normal; overflow-wrap: anywhere; }
  .month-years-view .month-period-form { grid-template-columns: minmax(0, 1fr); }
  .month-years-view .month-period-controls { max-width: 280px; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
  .month-years-view .month-sort-label { max-width: none; }
  .month-years-table-description { font-size: 11px; }
  .month-years-table :is(th, td):first-child { width: 96px; }
}
@media (max-width: 360px) {
  .month-period-form { gap: 16px 10px; }
  .period-view .month-period-form { grid-template-columns: minmax(0, 1fr); }
  .month-record-value { font-size: 27px; }
  .month-summary-entries { gap: 8px; }
}
@media print {
  .month-period-form, .month-jump-nav, .month-related-links, .month-sort-label, .month-table-hint { display: none; }
  .month-table-wrap { max-height: none; overflow: visible; }
}
