:root {
    --bg-1: #eff5f9;
    --bg-2: #f8fbfd;
    --ink: #112f43;
    --ink-soft: #3f5b6e;
    --surface: #ffffff;
    --surface-soft: #f4f8fb;
    --line: #d4e0ea;
    --accent: #127c71;
    --accent-strong: #0f6058;
    --accent-soft: #def4f1;
    --warm: #f09d5c;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --shadow-lg: 0 16px 46px rgba(12, 40, 58, 0.1);
    --shadow-md: 0 8px 26px rgba(12, 40, 58, 0.08);
    --content-width: 1140px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at 11% -12%, #d7e8f2 0%, rgba(215, 232, 242, 0) 38%),
        radial-gradient(circle at 88% 112%, #d7f0eb 0%, rgba(215, 240, 235, 0) 40%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 48%, #ffffff 100%);
}

a {
    color: var(--accent-strong);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover {
    color: #0b4a45;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Outfit", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: 0.8rem;
    top: -120px;
    z-index: 120;
    padding: 0.5rem 0.8rem;
    background: #0e3f5f;
    color: #ffffff;
    border-radius: 0 0 9px 9px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(6px);
    background: rgba(249, 252, 254, 0.86);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-menu-toggle,
.site-header-mobile-spacer,
.brand-logo-mobile,
.mobile-nav-shell {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
}

.brand-logo-desktop {
    display: block;
    height: 40px;
    border-radius: 9px;
    transform: translateY(6px);
}

.brand-logo-mobile {
    display: none;
    height: 28px;
}

.site-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-shell[hidden] {
    display: none;
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    gap: 0.04rem;
}

.brand-name {
    color: #0c3852;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #466577;
    line-height: 1;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav {
    margin-left: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    color: #17364a;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
    color: #0f2d40;
    border-color: #c7d6e2;
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.header-search-form {
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(160px, 210px) auto;
    align-items: center;
    gap: 0.35rem;
}

.header-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-search-form input[type="search"] {
    min-width: 0;
    border: 1px solid #b7cbd9;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #12354a;
    padding: 0.46rem 0.78rem;
    font-size: 0.88rem;
}

.header-search-form input[type="search"]:focus {
    outline: 2px solid #2c7dbf;
    outline-offset: 1px;
}

.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #c5d6e1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #31586e;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
    border-color: #9db5c6;
    background: #ffffff;
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.header-search-submit:focus-visible {
    outline: 2px solid #2c7dbf;
    outline-offset: 1px;
}

.header-search-submit svg {
    width: 0.95rem;
    height: 0.95rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.6rem 1.2rem 2.2rem;
}

.site-main > :first-child {
    margin-top: 0.4rem;
}

.hero,
.map-section,
.content-shell,
.map-legend-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.hero,
.map-section,
.content-shell,
.map-legend-section {
    margin: 0.95rem 0;
    padding: 1.15rem;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    right: -56px;
    top: -64px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #e0f5f1 0%, rgba(224, 245, 241, 0) 70%);
    z-index: -1;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.28rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2d596d;
}

.eyebrow-heading {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2d596d;
}

.hero h1,
.page-header h1 {
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.lede {
    margin-top: 0.48rem;
    font-size: 1.03rem;
    color: var(--ink-soft);
    max-width: 72ch;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.section-heading p {
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.section-copy {
    color: var(--ink-soft);
    margin-top: 0.35rem;
}

.stats-grid {
    margin-top: 0.78rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.62rem;
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #ffffff 0%, #f6fbfd 100%);
    padding: 0.68rem 0.76rem;
    display: flex;
    align-items: center;
    gap: 0.78rem;
}

.stat-card-body {
    min-width: 0;
}

.stat-label {
    margin: 0;
    color: #385b6f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.69rem;
    font-weight: 700;
}

.stat-card strong {
    margin: 0;
    display: block;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.7rem;
    color: var(--accent-strong);
    line-height: 1;
    flex: 0 0 auto;
    min-width: 2.5ch;
}

.stat-note {
    margin: 0.12rem 0 0;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #48687b;
}

.chip-list {
    margin: 0.58rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.chip {
    border: 1px solid #bdd5d2;
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 0.2rem 0.56rem;
    font-size: 0.78rem;
    color: #1a5e56;
    font-weight: 600;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.72rem;
}

.cta-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #ffffff 0%, #f7fbfd 100%);
    padding: 0.88rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(12, 40, 58, 0.09);
}

.cta-card h3 {
    font-size: 1.04rem;
    margin-bottom: 0.35rem;
}

.cta-card p {
    color: #49667a;
    font-size: 0.92rem;
}

.page-header {
    padding-bottom: 1rem;
}

.breadcrumbs {
    margin-bottom: 0.35rem;
    color: #516d7f;
    font-size: 0.87rem;
}

.section-shell h2 {
    margin-bottom: 0.36rem;
}

.section-shell + .section-shell {
    margin-top: 1rem;
}

.state-grid,
.city-list,
.allergen-list,
.impact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.62rem;
}

.state-grid {
    display: block;
    column-width: 220px;
    column-gap: 0.62rem;
}

.state-grid li,
.city-list li,
.allergen-list li,
.impact-list li,
.news-list article,
.search-results li {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0.8rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.state-grid > li {
    display: inline-block;
    width: 100%;
    margin: 0 0 0.62rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.state-grid li:hover,
.city-list li:hover,
.allergen-list li:hover,
.news-list article:hover,
.search-results li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 43, 61, 0.1);
}

.state-grid a,
.city-list a,
.allergen-list a {
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
}

.state-grid span,
.city-list span,
.allergen-list span,
.impact-list span {
    display: block;
    margin-top: 0.2rem;
    color: var(--ink-soft);
}

.allergen-list li {
    padding: 0.58rem 0.7rem;
}

.allergen-list a {
    font-size: 1.06rem;
}

.allergen-list-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    line-height: 1.3;
}

.allergen-list-alias {
    display: inline;
    margin-top: 0;
    color: #597486;
    font-size: 0.92rem;
}

.state-grid-link {
    display: inline-flex;
    margin-bottom: 0.42rem;
}

.state-location-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
}

.state-location-links li {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    transition: none;
}

.state-location-links li:hover {
    transform: none;
    box-shadow: none;
}

.state-location-links a {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    color: #426579;
}

.state-location-links a:hover,
.state-location-links a:focus-visible {
    color: var(--accent-strong);
}

.impact-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.impact-list strong {
    display: block;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    color: #15394f;
}

.allergen-group + .allergen-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.72rem;
}

.meta-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.72rem;
    background: var(--surface-soft);
}

.meta-grid h3 {
    margin-bottom: 0.24rem;
    font-size: 1rem;
}

.category-chart-tabs {
    margin-top: 0.85rem;
}

.category-chart-tablist {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: end;
    margin-bottom: -1px;
    border-bottom: 1px solid var(--line);
}

.category-chart-tab {
    position: relative;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 245, 249, 0.98) 100%);
    color: var(--ink-soft);
    min-height: 3.6rem;
    padding: 0.85rem 1rem 0.8rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.category-chart-tab::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0.45rem;
    height: 3px;
    border-radius: 999px;
    background: rgba(18, 124, 113, 0.18);
    transform: scaleX(0.2);
    opacity: 0;
    transition:
        transform 160ms ease,
        opacity 160ms ease,
        background-color 160ms ease;
}

.category-chart-tab:hover,
.category-chart-tab:focus-visible {
    outline: none;
    z-index: 2;
    border-color: rgba(18, 124, 113, 0.28);
    border-bottom-color: transparent;
    color: var(--accent-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-chart-tab:hover::after,
.category-chart-tab:focus-visible::after {
    transform: scaleX(0.7);
    opacity: 1;
}

.category-chart-tab.is-active {
    z-index: 3;
    border-color: var(--line);
    border-bottom-color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
    color: var(--accent-strong);
    box-shadow:
        0 -10px 22px rgba(12, 40, 58, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(1px);
}

.category-chart-tab.is-active::after {
    background: linear-gradient(90deg, var(--accent) 0%, var(--warm) 100%);
    transform: scaleX(1);
    opacity: 1;
}

.category-chart-card {
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: #ffffff;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.category-chart-card h3 {
    margin-bottom: 0.12rem;
}

.category-chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 468px;
}

.category-chart-card canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 720px) {
    .category-chart-tablist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-chart-tab {
        min-height: 3.2rem;
        padding-inline: 0.7rem;
    }

    .category-chart-canvas-wrap {
        height: 416px;
    }
}

.table-wrap {
    overflow-x: auto;
}

.historical-data-shell {
    display: grid;
    gap: 0.9rem;
}

.historical-data-controls {
    display: grid;
    gap: 0.35rem;
    max-width: 34rem;
}

.historical-data-label {
    color: #27475b;
    font-size: 0.94rem;
    font-weight: 600;
}

.historical-data-select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfd0dc;
    border-radius: 14px;
    background: #ffffff;
    color: #17384d;
    font: inherit;
    padding: 0.72rem 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.historical-data-figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #ffffff 0%, #f7fbfd 100%);
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
}

.historical-data-media {
    width: 100%;
}

.historical-data-image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #ffffff;
    object-fit: contain;
}

.historical-data-image[hidden],
.historical-data-unavailable[hidden] {
    display: none;
}

.historical-data-unavailable {
    aspect-ratio: 16 / 9;
    display: grid;
    place-content: center;
    gap: 0.45rem;
    border: 1px dashed #bfd0dc;
    border-radius: 16px;
    background: linear-gradient(160deg, #f8fbfd 0%, #edf5fa 100%);
    padding: 1.5rem;
    text-align: center;
}

.historical-data-unavailable strong {
    color: #1b3f55;
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 1.1rem;
}

.historical-data-unavailable p {
    margin: 0;
    color: #567285;
    font-size: 0.96rem;
}

.historical-data-caption {
    margin-top: 0.6rem;
    color: #4f6d80;
    font-size: 0.92rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
}

th,
td {
    border: 1px solid var(--line);
    padding: 0.48rem;
    text-align: left;
}

th {
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    background: #f4f8fb;
}

tbody tr:nth-child(even) {
    background: #fbfdff;
}

.empty-state {
    border: 1px dashed #bfd0dc;
    border-radius: var(--radius-md);
    background: #f7fbfe;
    color: #47677a;
    padding: 0.75rem;
}

.news-list {
    display: grid;
    gap: 0.72rem;
}

.post-meta {
    margin: 0.38rem 0;
    font-size: 0.9rem;
    color: #4f6d80;
}

.news-article .richtext-body {
    margin-top: 0.85rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-article .richtext-body > * + * {
    margin-top: 0.75rem;
}

.news-article .richtext-body a,
.news-article .richtext-body code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-article .richtext-body pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comments-shell {
    margin-top: 1rem;
}

.comments-shell h2 {
    margin-bottom: 0.75rem;
}

#remark42 {
    min-height: 12rem;
}

.news-article .richtext-body img,
.news-article .richtext-body svg,
.news-list article img,
.news-list article svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.news-list article .richtext-body {
    margin-top: 0.52rem;
}

.news-list article .richtext-body > * + * {
    margin-top: 0.6rem;
}

.search-shell h1 {
    margin-bottom: 0.56rem;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.58rem;
    margin-top: 0.38rem;
}

.search-form input[type="text"] {
    border: 1px solid #b7cbd9;
    border-radius: 10px;
    background: #ffffff;
    color: #12354a;
    padding: 0.58rem 0.7rem;
    font-size: 0.97rem;
}

.search-form input[type="text"]:focus {
    outline: 2px solid #2c7dbf;
    outline-offset: 1px;
}

.button,
.search-form input[type="submit"] {
    border: 1px solid #1b6f9e;
    border-radius: 10px;
    background: linear-gradient(180deg, #2a88bf 0%, #1f6e9b 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.58rem 0.92rem;
    cursor: pointer;
}

.button:hover,
.search-form input[type="submit"]:hover {
    filter: brightness(0.96);
}

.search-summary {
    margin-top: 0.52rem;
    color: #49697c;
}

.search-results {
    list-style: none;
    margin: 0.72rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.56rem;
}

.search-results h2 {
    font-size: 1.08rem;
    margin-bottom: 0.23rem;
}

.search-result-type {
    margin-bottom: 0.24rem;
    color: #527288;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-results p {
    color: #4c6a7d;
}

.pagination {
    margin-top: 0.72rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a {
    border: 1px solid #c0d2de;
    border-radius: 9px;
    text-decoration: none;
    background: #f7fbfe;
    padding: 0.32rem 0.7rem;
    font-weight: 600;
}

.error-shell {
    text-align: center;
    padding: 1.5rem 1.1rem;
}

.error-shell p {
    margin-top: 0.45rem;
}

#allergy-map {
    position: relative;
    width: 100%;
    margin-top: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid #cbd9e3;
    background: linear-gradient(180deg, #f7fbff 0%, #edf4fa 100%);
    overflow: hidden;
}

#allergy-map > svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 49 / 31;
}

#allergy-map.is-loading::after {
    content: "Loading map...";
    position: absolute;
    top: 0.62rem;
    right: 0.78rem;
    font-size: 0.84rem;
    color: #476073;
}

#allergy-map .us-map-bg {
    fill: transparent;
}

#allergy-map .us-map-land {
    fill: #e8f2f8;
}

#allergy-map .us-map-region-state {
    fill: #e8f2f8;
    stroke: #90a8b8;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

#allergy-map .us-map-outline {
    fill: none;
    stroke: #6f8998;
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}

#allergy-map .us-map-boundaries {
    fill: none;
    stroke: #b0c2ce;
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
}

#allergy-map .us-pr-inset-box {
    fill: #f8fbfe;
    stroke: #8ea2b1;
    stroke-width: 1.2;
}

#allergy-map .us-pr-inset-label,
#allergy-map .us-pr-label {
    font-size: 12px;
    font-weight: 600;
    fill: #3f5968;
}

#allergy-map .us-pr-outline {
    fill: none;
    stroke: #6f8998;
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}

.map-week-controls {
    margin-top: 0.66rem;
    border: 1px solid #c9d8e5;
    border-radius: 12px;
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf3fb 100%);
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    padding: 0.4rem 0.68rem;
}

.map-region-tabs {
    display: none;
}

.map-week-controls.is-loading {
    opacity: 0.75;
}

.map-week-label-line {
    font-size: 0.91rem;
    color: #183345;
}

.map-week-track {
    position: relative;
    height: 3.55rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
    touch-action: none;
    isolation: isolate;
}

.map-week-track::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.8rem;
    height: 2px;
    background: #9eb2c4;
}

.map-week-tick {
    position: absolute;
    bottom: 0.8rem;
    width: 1px;
    height: 0.48rem;
    background: #8ea4b8;
    z-index: 1;
    pointer-events: none;
}

.map-week-tick-label {
    position: absolute;
    left: 50%;
    bottom: 1.45rem;
    transform: translateX(-50%);
    font-size: 0.64rem;
    line-height: 1;
    letter-spacing: 0;
    color: #2f4a5c;
    white-space: nowrap;
    pointer-events: none;
}

.map-week-viewport {
    position: absolute;
    top: 0;
    bottom: 0;
    height: auto;
    width: 68px;
    margin: 0;
    border: 1px solid rgba(29, 116, 208, 0.45);
    border-radius: 0;
    background: rgba(214, 231, 246, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transform: none;
    cursor: grab;
    touch-action: none;
    z-index: 3;
    padding: 0 0.18rem;
    appearance: none;
    -webkit-appearance: none;
    color: #0f3f72;
}

.map-week-viewport:active {
    cursor: grabbing;
}

.map-week-viewport:focus-visible {
    outline: 2px solid #0d4f96;
    outline-offset: 2px;
}

.map-week-viewport-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    color: inherit;
    pointer-events: auto;
    cursor: pointer;
}

.map-week-viewport-arrow-left {
    left: 0;
    padding-left: 0.08rem;
    padding-right: 0.14rem;
}

.map-week-viewport-arrow-right {
    right: 0;
    padding-left: 0.14rem;
    padding-right: 0.08rem;
}

.map-week-viewport-arrow[hidden] {
    display: none;
}

.map-week-hint {
    margin: 0;
    font-size: 0.66rem;
    color: #4e6374;
}

.map-legend-section {
    margin-top: 0.4rem;
}

.map-legend-section h2 {
    margin-bottom: 0.55rem;
    font-size: 1.16rem;
}

.map-legend-section .eyebrow-heading {
    font-size: 0.72rem;
}

.map-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
    gap: 0.75rem;
}

.legend-column {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.8rem;
}

.legend-column strong {
    font-family: "Outfit", "Segoe UI", sans-serif;
}

.legend-column ul {
    list-style: none;
    margin: 0.46rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #3f5968;
}

.legend-column li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d5dde5;
    display: inline-block;
}

.legend-level {
    font-weight: 600;
    color: #1f2b34;
}

.legend-range {
    color: #637180;
}

#allergy-map .us-marker {
    cursor: pointer;
    outline: none;
}

#allergy-map .us-marker .marker-shadow {
    fill: rgba(10, 37, 51, 0.22);
}

#allergy-map .us-marker .marker-shell {
    fill: none;
    stroke: #1f2b34;
    stroke-width: 1.8;
}

#allergy-map .us-marker:hover .marker-shell,
#allergy-map .us-marker:focus .marker-shell,
#allergy-map .us-marker.is-active .marker-shell {
    stroke: #0b405e;
    stroke-width: 2.4;
}

.map-popup-host {
    position: absolute;
    z-index: 6;
    width: min(390px, calc(100% - 16px));
}

.map-popup-host[hidden] {
    display: none;
}

.map-popup {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d2dce4;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(25, 46, 60, 0.2);
}

.map-popup .map-popup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.map-popup .map-popup-close {
    border: 0;
    background: transparent;
    color: #4a5f6d;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.map-popup .map-popup-close:hover {
    color: #19384b;
}

.map-popup p {
    margin: 0.45rem 0 0;
}

.map-popup-category-graphic {
    --map-popup-graphic-scale: 0.7;
    position: relative;
    width: min(100%, calc(300px * var(--map-popup-graphic-scale)));
    height: calc(320px * var(--map-popup-graphic-scale));
    margin: 0.4rem auto 0.22rem;
    overflow: visible;
}

.map-popup-category-graphic-inner {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 320px;
    transform: translateX(-50%) scale(var(--map-popup-graphic-scale));
    transform-origin: top center;
}

.map-popup-category-connectors {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 300px;
    height: 320px;
    aspect-ratio: auto;
    overflow: visible;
    pointer-events: none;
}

.map-popup-category-connectors line {
    stroke: #7590a3;
    stroke-width: 3.75;
    stroke-linecap: butt;
    opacity: 0.95;
}

.map-popup-category-wheel {
    position: absolute;
    top: 56px;
    left: 46px;
    width: 208px;
    height: 208px;
    display: grid;
    grid-template-areas:
        "tree grass"
        "mold weed";
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #1f2b34;
    box-shadow: 0 10px 24px rgba(25, 46, 60, 0.18);
    z-index: 1;
}

.map-popup-quad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-popup-quad::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.map-popup-quad-tree {
    grid-area: tree;
}

.map-popup-quad-grass {
    grid-area: grass;
}

.map-popup-quad-weed {
    grid-area: weed;
}

.map-popup-quad-mold {
    grid-area: mold;
}

.map-popup-quad-icon {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(247, 250, 252, 0.92);
    box-shadow: inset 0 0 0 1px rgba(31, 43, 52, 0.12);
}

.map-popup-quad-icon svg {
    display: block;
    width: 1.7rem;
    height: 1.7rem;
    aspect-ratio: auto;
}

.map-popup-quad-tree .map-popup-quad-icon {
    transform: translate(13px, 13px);
}

.map-popup-quad-grass .map-popup-quad-icon {
    transform: translate(-13px, 13px);
}

.map-popup-quad-weed .map-popup-quad-icon {
    transform: translate(-13px, -13px);
}

.map-popup-quad-mold .map-popup-quad-icon {
    transform: translate(13px, -13px);
}

.map-popup-quad-label {
    --map-popup-label-overlap: 6px;
    position: absolute;
    z-index: 3;
    max-width: 180px;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #eff7fb;
    white-space: nowrap;
}

.map-popup-quad-name {
    font-weight: 700;
}

.map-popup-quad-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.34rem 0.58rem;
    background: linear-gradient(180deg, rgba(20, 45, 61, 0.98), rgba(11, 27, 38, 0.98));
    border: 1px solid rgba(132, 162, 184, 0.28);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(16, 32, 44, 0.16);
}

.map-popup-quad-severity {
    font-size: 1rem;
}

.map-popup-quad-label-tree {
    transform: translate(calc(-100% + var(--map-popup-label-overlap)), calc(-100% + var(--map-popup-label-overlap)));
}

.map-popup-quad-label-grass {
    transform: translate(calc(0% - var(--map-popup-label-overlap)), calc(-100% + var(--map-popup-label-overlap)));
}

.map-popup-quad-label-weed {
    transform: translate(calc(0% - var(--map-popup-label-overlap)), calc(0% - var(--map-popup-label-overlap)));
}

.map-popup-quad-label-mold {
    transform: translate(calc(-100% + var(--map-popup-label-overlap)), calc(0% - var(--map-popup-label-overlap)));
}

.map-popup-allergens {
    margin-top: 0.7rem;
}

.map-popup-allergens table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.35rem;
    table-layout: fixed;
}

.map-popup-allergens th,
.map-popup-allergens td {
    border: 1px solid #d7dfe4;
    padding: 0.35rem;
    font-size: 0.8rem;
}

.map-popup-allergens th {
    text-align: left;
    background: #f5f7fb;
    font-weight: 600;
}

.map-popup-allergens td {
    word-break: break-word;
}

.map-popup-allergens .top-allergen-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.25rem;
    vertical-align: middle;
    border: 1px solid #d7dfe4;
}

@media (max-width: 640px) {
    .map-popup-host {
        width: min(340px, calc(100% - 16px));
    }

    .map-popup {
        padding: 0.65rem 0.72rem;
    }

    .map-popup-category-graphic {
        --map-popup-graphic-scale: 0.56;
    }
}

.map-empty {
    margin: 1rem;
    color: #3f5968;
}

.site-footer {
    margin-top: 1.2rem;
    padding: 0.95rem 1.2rem 1.05rem;
    border-top: 1px solid rgba(191, 210, 221, 0.9);
    background: rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.46rem;
    align-items: center;
    text-align: center;
}

.site-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
}

.site-footer-nav li {
    position: relative;
    font-size: 0.88rem;
    line-height: 1.3;
}

.site-footer-nav li + li::before {
    content: "|";
    position: absolute;
    left: -0.45rem;
    color: #8ba0af;
}

.site-footer-nav a {
    color: #4f6c7f;
    text-decoration: none;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.site-footer-note {
    margin: 0;
    color: #6a8190;
    font-size: 0.79rem;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .site-header-actions {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-nav {
        flex: 1 1 auto;
    }

    .site-nav ul {
        gap: 0.3rem;
    }

    .header-search-form {
        grid-template-columns: minmax(150px, 190px) auto;
    }
}

@media (max-width: 700px) {
    .site-main {
        padding: 0.45rem 0 1.3rem;
    }

    .site-main > :first-child {
        margin-top: 0.3rem;
    }

    .hero,
    .map-section,
    .content-shell,
    .map-legend-section {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 0.92rem;
        margin: 0.72rem 0;
    }

    .site-footer {
        padding-inline: 0.92rem;
    }

    .site-footer-inner {
        gap: 0.4rem;
    }

    .site-footer-nav ul {
        gap: 0.25rem 0.65rem;
    }

    .state-grid {
        column-width: auto;
        columns: 1;
    }

    #allergy-map svg {
        aspect-ratio: 4 / 3;
    }

    .map-week-track {
        height: 3.45rem;
    }

    .map-week-tick-label {
        font-size: 0.54rem;
    }

    .map-week-viewport {
        width: 54px;
        padding: 0 0.14rem;
    }

    .map-week-viewport-arrow {
        font-size: 0.72rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
        backdrop-filter: none;
        background: rgba(249, 252, 254, 0.98);
    }

    .site-header-inner {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 0.35rem;
        padding: 0.8rem 0.92rem;
    }

    .mobile-menu-toggle,
    .site-header-mobile-spacer {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .site-header-mobile-spacer {
        visibility: hidden;
    }

    .mobile-menu-toggle {
        border: 1px solid #c9d8e5;
        background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
        color: #16384c;
        cursor: pointer;
        padding: 0;
    }

    .mobile-menu-toggle-bars {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-toggle-bars span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .site-header.is-menu-open .mobile-menu-toggle-bars span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.is-menu-open .mobile-menu-toggle-bars span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .mobile-menu-toggle-bars span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .brand {
        justify-self: center;
        max-width: 100%;
    }

    .brand-logo-desktop {
        display: none;
    }

    .brand-logo-mobile {
        display: block;
        height: 30px;
    }

    .site-header-actions {
        display: none;
    }

    .mobile-nav-shell {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 80;
    }

    .mobile-nav-scrim {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(9, 29, 42, 0.34);
        opacity: 0;
        cursor: pointer;
        transition: opacity 180ms ease;
    }

    .mobile-nav-drawer {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 360px);
        background: linear-gradient(180deg, #fbfdff 0%, #eef5fb 100%);
        border-right: 1px solid #d7e3eb;
        box-shadow: 18px 0 42px rgba(10, 32, 45, 0.2);
        padding: 1rem 0.92rem 1.2rem;
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    body.has-mobile-nav-open {
        overflow: hidden;
    }

    body.has-mobile-nav-open .mobile-nav-scrim {
        opacity: 1;
    }

    body.has-mobile-nav-open .mobile-nav-drawer {
        transform: translateX(0);
    }

    .mobile-nav-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 1rem;
        padding-bottom: 0.95rem;
        border-bottom: 1px solid #d9e4ec;
    }

    .mobile-nav-search-form input[type="search"] {
        min-width: 0;
        border: 1px solid #b7cbd9;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: #12354a;
        padding: 0.62rem 0.85rem;
        font-size: 0.92rem;
    }

    .mobile-nav-search-form input[type="search"]:focus {
        outline: 2px solid #2c7dbf;
        outline-offset: 1px;
    }

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.22rem;
    }

    .mobile-nav a {
        display: block;
        padding: 0.86rem 0.4rem;
        color: #17364a;
        font-family: "Outfit", "Segoe UI", sans-serif;
        font-size: 1.03rem;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #dde7ee;
    }

    .mobile-nav a:hover,
    .mobile-nav a:focus-visible {
        color: var(--accent-strong);
    }

    .header-search-form {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .map-week-controls-desktop {
        display: none;
    }

    .map-region-tabs {
        display: block;
        margin-top: 0.66rem;
    }

    .map-region-tabs .category-chart-tablist {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-bottom: 0.72rem;
        gap: 0;
    }

    .map-region-tabs .category-chart-tab {
        min-height: 2.65rem;
        padding: 0.26rem 0.18rem 0.24rem;
        font-size: 0.8rem;
        line-height: 1.15;
        letter-spacing: 0;
        border-radius: 10px 10px 0 0;
    }

    .template-city-location-page .category-chart-tablist {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 0.72rem;
        gap: 0;
    }

    .template-city-location-page .category-chart-tab {
        min-height: 2.65rem;
        padding: 0.26rem 0.18rem 0.24rem;
        font-size: 0.8rem;
        line-height: 1.15;
        letter-spacing: 0;
        border-radius: 10px 10px 0 0;
    }

    #allergy-map > svg {
        aspect-ratio: 2 / 3;
    }
}
