/* Monthly comparisons share the history and year archive's editorial rhythm. */
.month-main { padding-top: 0; }
.month-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: center; gap: 56px; 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; letter-spacing: 1.9px; line-height: 1.6; }
.month-main .month-hero h1 { font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -.045em; margin-top: 16px; }
.month-hero h1 em { color: #25627a; font-weight: 400; white-space: nowrap; }
.month-hero-description { max-width: 600px; color: #566c79; margin-top: 20px; font-size: 16px; line-height: 1.85; }
.month-navigation { border-left: 1px solid #c7d8e0; padding-left: 32px; }
.month-navigation .month-eyebrow { display: block; font-size: 9px; letter-spacing: 1.3px; }
.month-navigation-controls { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; align-items: center; margin-top: 14px; }
.month-navigation-controls a { display: grid; place-items: center; min-height: 46px; font-size: 22px; border-radius: 4px; }
.month-navigation-controls a:hover { background: #dce8ee; color: #25627a; }
.month-main .month-navigation select { width: 100%; padding: 10px 30px 10px 12px; background-color: #fff; border: 1px solid #b8cbd6; font-size: 16px; }
.month-navigation-count { margin-top: 14px; font-size: 12px; color: #426477; }
.month-navigation-source { margin-top: 8px; font-size: 10px; color: #59717f; }
.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 { font-size: 10px; color: #708692; }
.month-jump-nav a:last-child { margin-left: auto; }
.month-jump-nav a:hover { color: #a5512f; }
.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, .month-section-heading > div > p:last-child:not(:first-child) { color: #59717f; font-size: 13px; line-height: 1.8; max-width: 300px; }
.month-section-heading > div > p:last-child:not(:first-child) { margin-top: 12px; max-width: none; }
.month-view [data-tone="warm"] { --month-accent: #a65d36; --month-soft: #f5ebe2; }
.month-view [data-tone="cold"] { --month-accent: #356c91; --month-soft: #e6eff6; }
.month-view [data-tone="precipitation"] { --month-accent: #367784; --month-soft: #e7f0f2; }
.month-view [data-tone="snow"] { --month-accent: #527a8e; --month-soft: #eaf1f4; }
.month-view [data-tone="wind-cloud"] { --month-accent: #4a786e; --month-soft: #e7f0ed; }
.month-weather-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid #dce4e8; margin-bottom: 24px; }
.month-weather-tabs[hidden], .month-record-group[hidden] { display: none; }
.month-weather-tabs button { position: relative; padding: 12px 0 16px; min-height: 44px; font-size: 13px; font-weight: 550; color: #59717f; }
.month-weather-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: transparent; }
.month-weather-tabs button[aria-selected="true"] { color: var(--month-accent); }
.month-weather-tabs button[aria-selected="true"]::after { background: var(--month-accent); }
.month-weather-tabs button:hover { color: var(--month-accent); }
.month-record-group { margin-top: 28px; }
.month-record-group[role="tabpanel"] { margin-top: 0; }
.month-group-title { font-size: 10px; font-weight: 650; color: #59717f; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 16px; }
.month-record-group[role="tabpanel"] > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.month-data-note { color: #59717f; font-size: 11px; line-height: 1.8; margin-bottom: 20px; border-left: 2px solid #c7d8e0; padding-left: 12px; }
.month-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.month-record-grid:has(> .month-record-card:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.month-record-grid:has(> .month-record-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.month-record-card { min-width: 0; border-top: 1px solid #dce4e8; padding-top: 20px; }
.month-record-card h4 { font-size: 13px; font-weight: 550; color: #426071; }
.month-record-description { color: #59717f; font-size: 11px; line-height: 1.6; margin-top: 7px; min-height: 36px; }
.month-record-entries { list-style: none; margin: 0; padding: 0; }
.month-record-entry { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; font-variant-numeric: tabular-nums; }
.month-record-entry + .month-record-entry { border-top: 1px solid #e4eaed; }
.month-record-rank { min-width: 18px; color: #708692; font-size: 10px; }
.month-record-year { color: #426071; font-size: 14px; text-decoration: underline; text-decoration-color: #bccdd5; text-underline-offset: 4px; }
.month-record-year:hover { color: var(--month-accent); text-decoration-color: currentColor; }
.month-record-value { color: #59717f; font-size: 14px; margin-left: auto; white-space: nowrap; }
.month-record-value > span { font-size: 11px; }
.month-record-entry:first-child { padding: 10px 0 18px; }
.month-record-entry:first-child .month-record-year, .month-record-entry:first-child .month-record-value { color: var(--month-accent); font-family: Georgia, 'Times New Roman', serif; font-size: 27px; }
.month-record-entry:first-child .month-record-value > span { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.month-record-current { background: var(--month-soft); }
.month-current-label { font-size: 9px; color: #59717f; }
.month-section-note { color: #59717f; font-size: 11px; line-height: 1.8; margin-top: 24px; }
.month-climate-section, .month-years-section { border-top: 1px solid #dce4e8; padding-top: 40px; }
.month-climate-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.month-climate-group { min-width: 0; }
.month-climate-group h3 { font-size: 15px; font-weight: 550; }
.month-climate-description { color: #59717f; font-size: 12px; margin-top: 8px; line-height: 1.7; }
.month-period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.month-period { min-width: 0; border-top: 1px solid #dce4e8; padding-top: 18px; }
.month-period h4 { font-size: 11px; font-weight: 500; color: #426071; font-variant-numeric: tabular-nums; }
.month-period dl { margin-top: 20px; }
.month-period-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; font-size: 10px; color: #59717f; margin-top: 10px; }
.month-period-metric dd { color: #426071; white-space: nowrap; font-variant-numeric: tabular-nums; }
.month-period-metric:first-child { display: block; margin-bottom: 20px; }
.month-period-metric:first-child dt { font-size: 10px; margin-bottom: 8px; }
.month-period-metric:first-child dd { color: var(--month-accent); font-size: 11px; }
.month-period-metric:first-child dd > span { font-size: 32px; font-family: Georgia, 'Times New Roman', serif; letter-spacing: -1px; }
.month-sort-label { display: flex; flex-direction: column; gap: 8px; min-width: 200px; font-size: 11px; color: #59717f; }
.month-sort-label select { border: 1px solid #c5d3db; background-color: white; padding: 10px 36px 10px 14px; }
.month-sort-status { font-size: 12px; color: #59717f; margin-bottom: 16px; }
.month-table-hint { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; line-height: 1.6; color: #59717f; padding: 14px 18px; background: #edf2f5; border: 1px solid #dce4e8; border-bottom: 0; border-radius: 6px 6px 0 0; }
.month-table-hint > span { font-size: 20px; }
.month-table-scroll { overflow: auto; overflow-anchor: none; max-height: 620px; border: 1px solid #dce4e8; border-radius: 0 0 6px 6px; background: white; scrollbar-color: #a7bdc8 #edf2f5; }
.month-table-scroll:focus-visible { outline: 3px solid #b8672c; outline-offset: 4px; }
.month-table { width: 100%; min-width: 1140px; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; color: #426071; }
.month-table :is(th, td) { text-align: right; white-space: nowrap; border-bottom: 1px solid #e5ebee; padding: 12px 16px; }
.month-table th { position: sticky; top: 0; z-index: 3; background: #f3f6f8; border-bottom-color: #cfdee5; }
.month-table .sortable-header-button { justify-content: flex-end; }
.month-table :is(th, td)[data-id="year"] { position: sticky; left: 0; z-index: 2; background: white; border-right: 1px solid #dce4e8; text-align: left; }
.month-table th[data-id="year"] { z-index: 4; background: #f3f6f8; }
.month-table td[data-id="year"] a { color: #25627a; text-decoration: underline; text-decoration-color: #c1d2da; text-underline-offset: 4px; }
.month-table tbody tr:hover td { box-shadow: inset 0 0 0 999px #173c5005; }
@media (max-width: 1000px) {
  .month-hero { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
  .month-navigation { padding-left: 24px; }
  .month-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-climate-groups { grid-template-columns: 1fr; gap: 32px; }
}
@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-hero h1 em { display: block; }
  .month-hero-description { margin-top: 18px; font-size: 14px; line-height: 1.8; }
  .month-navigation { margin-top: 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid #c7d8e0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
  .month-navigation .month-eyebrow { font-size: 9px; letter-spacing: .8px; }
  .month-navigation-controls { grid-column: 2; grid-row: 1 / 4; width: 192px; grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 3px; margin: 0; }
  .month-main .month-navigation select { padding-left: 10px; }
  .month-navigation-count { font-size: 10px; margin: 0; }
  .month-navigation-source { font-size: 9px; margin: 0; }
  .month-jump-nav { gap: 16px; padding: 16px 0; font-size: 11px; }
  .month-jump-nav a { gap: 6px; }
  .month-section { margin-top: 32px; }
  .month-section-heading { display: block; margin-bottom: 24px; }
  .month-section-heading > p { max-width: none; margin-top: 12px; }
  .month-main .month-section-heading h2 { font-size: 28px; }
  .month-weather-tabs { gap: 0 22px; }
  .month-weather-tabs button { font-size: 12px; padding-bottom: 12px; }
  .month-record-grid { gap: 24px 20px; }
  .month-record-card h4 { font-size: 12px; }
  .month-record-description { font-size: 10px; min-height: 32px; }
  .month-record-entry { gap: 6px; flex-wrap: wrap; }
  .month-record-rank { min-width: 16px; font-size: 9px; }
  .month-record-year, .month-record-value { font-size: 12px; }
  .month-record-value > span { font-size: 9px; }
  .month-record-entry:first-child .month-record-year { font-size: 25px; }
  .month-record-entry:first-child .month-record-value { font-size: 24px; margin-left: 22px; width: 100%; }
  .month-record-current .month-record-value { margin-left: 22px; }
  .month-record-card:only-child .month-record-description { min-height: auto; }
  .month-record-card:only-child .month-record-entry:first-child .month-record-value { width: auto; margin-left: auto; }
  .month-climate-section, .month-years-section { padding-top: 28px; }
  .month-period-grid { gap: 14px; }
  .month-period h4 { font-size: 10px; }
  .month-period-metric { font-size: 9px; }
  .month-period-metric:first-child dd > span { font-size: 30px; }
  .month-sort-label { margin-top: 20px; }
  .month-table-scroll { max-height: 520px; }
}
@media (max-width: 360px) {
  .month-navigation { display: block; }
  .month-navigation-controls { width: 100%; margin: 12px 0; grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .month-navigation-count { margin-top: 12px; }
  .month-navigation-source { margin-top: 6px; }
  .month-jump-nav { gap: 12px; font-size: 10px; }
  .month-record-grid { grid-template-columns: 1fr; }
  .month-record-description { min-height: auto; }
  .month-period-grid { gap: 10px; }
  .month-period-metric:first-child dd > span { font-size: 28px; }
}
@media print {
  .month-navigation, .month-jump-nav, .month-weather-tabs, .month-sort-label, .month-table-hint { display: none; }
  .month-record-group[hidden] { display: block; }
  .month-record-group[role="tabpanel"] > h3 { position: static; width: auto; height: auto; clip-path: none; }
  .month-table-scroll { max-height: none; overflow: visible; }
}
