/* US Lake Levels — main stylesheet. Mobile-first, system fonts, no framework. */

:root {
	--navy: #0b2a4a;
	--navy-2: #12385f;
	--blue: #0b5fd1;
	--blue-600: #0a52b5;
	--blue-50: #eaf3fe;
	--sky: #8fd3ff;
	--ink: #1d2939;
	--ink-2: #475467;
	--muted: #667085;
	--line: #e3e9f1;
	--bg: #f4f7fb;
	--card: #fff;
	--up: #0f7b55;
	--up-bg: #e3f5ec;
	--down: #c0352b;
	--down-bg: #fdecea;
	--warn: #8a5a00;
	--warn-bg: #fff6df;
	--chart-fill: #2f80ed;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--shadow-lg: 0 8px 24px rgba(11, 42, 74, .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 64px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font-size: .88em; background: var(--blue-50); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: .95em; height: .95em; display: inline; vertical-align: -2px; }
.page-pad { padding-top: 24px; padding-bottom: 48px; }
.page-narrow { max-width: 860px; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 8px 0 8px; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 70ch; }
.empty { padding: 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ------------------------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-600); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn--glass { background: rgba(255, 255, 255, .95); color: var(--navy); border-color: transparent; border-radius: 999px; min-height: 38px; font-size: .9rem; box-shadow: var(--shadow); }
.btn--glass:hover { background: #fff; color: var(--blue); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--blue-50); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.more .icon { width: 1em; height: 1em; }

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--navy); }
.brand__tag { font-size: .7rem; color: var(--blue); margin-top: 2px; }
.brand__img { max-height: 44px; width: auto; }
.brand--light .brand__name { color: #fff; }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a { display: block; padding: 21px 10px 19px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.nav__list a:hover { color: var(--blue); }
.nav__list a.is-active, .nav__list .current-menu-item > a { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.header-search { border-top: 1px solid var(--line); padding: 12px 0; background: #fff; }
@media (min-width: 1024px) {
	.nav { display: block; }
	.menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; padding: 0 16px 24px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__head { display: flex; align-items: center; height: var(--header-h); border-bottom: 1px solid var(--line); margin: 0 -16px 8px; padding: 0 16px; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0f3f7; }
.mobile-menu__list a .icon { color: var(--navy); }
.mobile-menu__list a[aria-current] { color: var(--blue); }
.mobile-menu__promo { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); }
.mobile-menu__promo div { display: flex; flex-direction: column; font-size: .85rem; }
.mobile-menu__promo strong { font-size: .95rem; }
.mobile-menu__promo span { color: var(--ink-2); }
body.menu-open { overflow: hidden; }

.demo-banner { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; border-bottom: 1px solid #f3d98f; text-align: center; }

/* ------------------------------------------------------------------ Search */
.search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-width: 640px; }
.search__icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search__input { flex: 1; min-width: 0; height: 50px; padding: 0 12px 0 44px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); border-radius: 12px; }
.search__input:focus { outline: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 95, 209, .18); }
.search__btn { display: grid; place-items: center; width: 46px; height: 40px; margin-right: 5px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; cursor: pointer; }
.search__btn:hover { background: var(--blue-600); }
.search--compact .search__input { height: 44px; }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; max-height: 60vh; overflow-y: auto; }
.search__list li { margin: 0; }
.search__list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search__list a:hover, .search__list [aria-selected="true"] a { background: var(--blue-50); }
.search__list .sr-thumb { width: 44px; height: 32px; border-radius: 6px; overflow: hidden; flex: none; background: var(--blue-50); }
.search__list .sr-thumb svg, .search__list .sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search__list .sr-name { font-weight: 600; }
.search__list .sr-meta { display: block; font-size: .8rem; color: var(--muted); }
.search__list .sr-empty { padding: 10px; color: var(--muted); }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy); }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__svg, .banner__img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 26, 48, .88) 0%, rgba(6, 26, 48, .62) 45%, rgba(6, 26, 48, .1) 100%); }
.hero__in { padding: 44px 16px 40px; }
.hero__title { color: #fff; font-size: clamp(1.75rem, 5vw, 2.8rem); line-height: 1.12; max-width: 15ch; margin: 0 0 14px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero__lede { max-width: 52ch; color: #e6eef8; font-size: 1.02rem; margin-bottom: 22px; }
.hero__popular { margin: 16px 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #fff; }
.hero__popular span { font-weight: 700; }
.hero__popular a { color: #fff; }
.hero .search { border-color: transparent; }
@media (min-width: 760px) { .hero__in { padding: 72px 16px 64px; } }

/* Quick links (mobile homepage) */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 16px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.quick span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
@media (min-width: 760px) { .quick { display: none; } }

/* ------------------------------------------------------------------ Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 20px; padding-bottom: 8px; }
.stat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue); flex: none; }
.stat__ic--green { background: var(--up-bg); color: var(--up); }
.stat strong { display: block; color: var(--navy); font-size: 1.05rem; }
.stat span { display: block; color: var(--muted); font-size: .8rem; }
.stats--cards .stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 20px; } .home .stats { padding-top: 28px; } }

/* ------------------------------------------------------------------ Sections & cards */
.section { padding-top: 28px; padding-bottom: 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__head h2 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card__title { font-size: 1.12rem; margin-bottom: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h2 { margin-bottom: 2px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.lcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.lcard__img { width: 100%; height: 100%; object-fit: cover; }
.lcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.lcard__title { margin: 0; font-size: 1rem; }
.lcard__title a { color: var(--navy); text-decoration: none; }
.lcard__title a:hover { color: var(--blue); }
.lcard__state { margin: 0 0 6px; font-size: .82rem; color: var(--muted); }
.lcard__value { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lcard__value--na { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.lcard__chg { margin: 2px 0 0; }
.lcard__time { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.lcard__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.lcard__go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; }
.lcard__go .icon { width: 16px; height: 16px; }
.spark { flex: 1; height: 26px; }
.spark path { fill: none; stroke: var(--chart-fill); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark--falling path { stroke: var(--down); }

/* Change indicators: icon + sign + text, never colour alone */
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg .icon { width: 1em; height: 1em; stroke-width: 2.4; }
.chg--rising { color: var(--up); }
.chg--falling { color: var(--down); }
.chg--steady, .chg--na { color: var(--muted); }
.chg--lg { font-size: 1.15rem; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; }
.pill--rising { background: var(--up-bg); color: var(--up); }
.pill--falling { background: var(--down-bg); color: var(--down); }
.pill--steady { background: #eef2f6; color: var(--ink-2); }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef2f6; color: var(--ink-2); }
.fresh .icon { width: 1em; height: 1em; }
.fresh--fresh { background: var(--up-bg); color: var(--up); }
.fresh--aging { background: var(--warn-bg); color: var(--warn); }
.fresh--stale, .fresh--unavailable { background: var(--down-bg); color: var(--down); }

/* Home split */
.split { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 16px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }
.browse { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 560px) { .browse { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.browse__form { display: grid; gap: 10px; }
select { height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23667085' stroke-width='1.8'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: .92rem; color: var(--ink); }

.sgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.sgrid__t { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: #e6edf5; color: #98a2b3; font-size: clamp(.5rem, 1.6vw, .68rem); font-weight: 700; text-decoration: none; }
.sgrid__t--l1 { background: #9ec5f4; color: var(--navy); }
.sgrid__t--l2 { background: #4b8fe6; color: #fff; }
.sgrid__t--l3 { background: var(--blue); color: #fff; }
a.sgrid__t:hover { background: var(--navy); color: #fff; }
.sgrid--lg { gap: 5px; max-width: 720px; margin: 0 auto; }
.sgrid--lg .sgrid__t { font-size: clamp(.55rem, 1.8vw, .85rem); border-radius: 6px; }

.updates { width: 100%; border-collapse: collapse; font-size: .9rem; }
.updates th, .updates td { padding: 9px 4px; border-bottom: 1px solid #eef2f6; text-align: left; }
.updates th { font-weight: 600; }
.updates th a { color: var(--ink); text-decoration: none; }
.updates th a:hover { color: var(--blue); }
.updates th span { color: var(--muted); font-weight: 400; }
.updates td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.updates td:last-child { text-align: right; font-size: .8rem; }
@media (max-width: 480px) { .updates td:nth-child(3) { display: none; } }

.guides { display: grid; gap: 12px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(3, 1fr); } .guides--list { grid-template-columns: repeat(2, 1fr); } }
.guide { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.guide:hover { border-color: #b9d3f6; }
.guide strong { color: var(--navy); }
.guide span:last-child { font-size: .88rem; color: var(--muted); }
.guide__ic { color: var(--blue); }
.trust { display: flex; gap: 14px; align-items: flex-start; margin: 24px auto 40px; padding: 18px; background: var(--blue-50); border-radius: var(--radius); color: var(--ink-2); font-size: .92rem; }
.trust .icon { color: var(--blue); width: 28px; height: 28px; }
.trust p { margin: 0; }

/* ------------------------------------------------------------------ Banner (lake/state) */
.banner { position: relative; isolation: isolate; color: #fff; background: var(--navy); overflow: hidden; }
.banner__art { position: absolute; inset: 0; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 26, 48, .45), rgba(6, 26, 48, .75)); }
.banner__in { padding: 14px 16px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.banner__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.banner__title { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); margin: 18px 0 2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.banner__sub { margin: 0; color: #e6eef8; font-weight: 500; }
.banner--state .banner__in { min-height: 170px; }
@media (min-width: 760px) { .banner__in { min-height: 190px; padding-bottom: 28px; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: .82rem; }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--light li, .crumbs--light a, .crumbs--light li + li::before { color: #e6eef8; }

/* Tabs */
.tabs { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.tabs__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__in::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 14px 12px 12px; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--blue); }
.tabs a.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

.lake__body { padding-top: 18px; padding-bottom: 32px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .92rem; }
.notice--info { background: var(--blue-50); color: var(--navy); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }

/* Current level */
.current { display: grid; gap: 18px; }
@media (min-width: 860px) { .current { grid-template-columns: 1fr 1.05fr; gap: 28px; } }
.current__value { margin: 0; font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.current__value--na { font-size: 1.8rem; color: var(--muted); }
.current__metric { margin: 6px 0 10px; color: var(--muted); font-size: .88rem; }
.current__chg { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid #eef2f6; }
@media (min-width: 860px) { .facts { border-top: 0; border-left: 1px solid #eef2f6; padding-left: 24px; } }
.facts > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f2f5f9; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts dd small { font-weight: 400; }
.facts__wide dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.meter { flex: 1 1 120px; height: 10px; border-radius: 99px; background: #e7edf4; overflow: hidden; }
.meter__bar { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #20a36b, #19b67a); }

/* Chart */
.chart__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chart__head .card__title { margin: 0; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.seg button { border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; font: 500 .82rem/1 var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.seg button:hover:not([aria-pressed="true"]) { background: #fff; }
.seg__short { display: none; }
@media (max-width: 560px) { .seg__long { display: none; } .seg__short { display: inline; } .seg { width: 100%; } .seg button { flex: 1; } }
.chart__plot { position: relative; height: 260px; margin: 4px -6px 6px; }
.chart__plot.is-loading { opacity: .5; transition: opacity .2s; }
.ull-chart__svg { width: 100%; height: 100%; overflow: visible; }
.ull-chart__svg .grid { stroke: #edf1f6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ull-chart__svg .ytick, .ull-chart__svg .xtick, .ull-chart__svg .yunit { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ull-chart__svg .area { fill: url(#ull-area); }
.ull-chart__svg .line { fill: none; stroke: var(--chart-fill); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ull-chart__svg .last, .ull-chart__svg .hover-dot { fill: #fff; stroke: var(--chart-fill); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.ull-chart__svg .hover-line { stroke: #9fb3c8; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart__tip { position: absolute; top: 6px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .78rem; white-space: nowrap; pointer-events: none; color: var(--muted); }
.chart__tip strong { display: block; color: var(--navy); font-size: .95rem; }
.chart__empty { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); background: #f8fafc; border-radius: var(--radius-sm); }
.chart__summary { font-size: .86rem; color: var(--ink-2); margin: 6px 0 4px; }
@media (max-width: 560px) { .chart__plot { height: 220px; } }

/* Change cards */
.changes { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .changes { grid-template-columns: repeat(3, 1fr); } }
.change { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; }
.change h3 { margin: 0 0 2px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.change__v { margin: 0; }
.change__v .chg { font-size: 1.35rem; }
.change p.small { margin: 2px 0 0; }
.change__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef2f6; color: var(--ink-2); flex: none; }
.change--rising .change__ic { background: var(--up-bg); color: var(--up); }
.change--falling .change__ic { background: var(--down-bg); color: var(--down); }

/* About + map */
.about-grid { display: grid; gap: 16px; margin-bottom: 0; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.55fr 1fr; } }
.about { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .about { grid-template-columns: 220px 1fr; } }
.about__media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-50); }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: .95rem; color: var(--ink-2); }
.prose p { margin-bottom: .8em; }
.prose h2 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 10px; }
.tags li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; font-size: .8rem; color: var(--ink-2); }
.tags .icon { width: 1em; height: 1em; color: var(--blue); }
.location { margin-bottom: 16px; }
.location__map { position: relative; height: 220px; border-radius: var(--radius-sm); overflow: hidden; background: #dfeaf5 repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .45) 18px 20px); display: grid; place-items: center; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__load { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: 600 .9rem/1 var(--font); box-shadow: var(--shadow-lg); cursor: pointer; }
.location__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.location__foot p { display: flex; gap: 8px; align-items: center; margin: 0; }
.location__foot p .icon { color: var(--blue); }
.location__foot small { display: block; color: var(--muted); }
.location__links { display: flex; gap: 8px; }

.kv { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kv th, .kv td { padding: 9px 6px; border-bottom: 1px solid #f0f3f7; text-align: left; }
.kv th { font-weight: 600; color: var(--ink-2); }

.series { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.series li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 12px; background: #f8fafc; border-radius: var(--radius-sm); font-size: .9rem; }
.series span { color: var(--muted); }

.near { list-style: none; padding: 0; margin: 0; }
.near a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f0f3f7; color: var(--ink); text-decoration: none; }
.near a:hover .near__name { color: var(--blue); }
.near li:last-child a { border-bottom: 0; }
.near__name { flex: 1; min-width: 0; font-weight: 600; }
.near__name small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.near__v { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.near .icon-chev-r { color: var(--muted); }

/* Mobile action bar on lake pages */
.actionbar { position: sticky; bottom: 0; z-index: 45; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.actionbar a, .actionbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 18px; border: 0; background: none; color: var(--ink-2); font: 500 .72rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.actionbar .icon { color: var(--navy); }
@media (min-width: 760px) { .actionbar { display: none; } }

/* ------------------------------------------------------------------ State directory */
.state__body { padding-top: 16px; padding-bottom: 40px; }
.state .stats { padding-top: 0; margin-bottom: 16px; }
.state__intro { max-width: 80ch; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters__search { position: relative; flex: 1 1 260px; }
.filters__search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters__search input { width: 100%; height: 42px; padding: 0 12px 0 40px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; }
.filters__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 95, 209, .15); }
.table-card { padding: 0; overflow: hidden; }
.ltable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ltable thead th { position: sticky; top: 0; background: #f8fafc; color: var(--ink-2); font-weight: 600; font-size: .8rem; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ltable td, .ltable tbody th { padding: 12px 14px; border-bottom: 1px solid #f0f3f7; text-align: left; vertical-align: middle; font-variant-numeric: tabular-nums; }
.ltable tbody tr:hover { background: #fafcff; }
.ltable__lake { font-weight: 500; }
.ltable__lake > span:last-child { display: flex; flex-direction: column; }
.ltable__lake a { font-weight: 600; text-decoration: none; }
.ltable__lake a:hover { text-decoration: underline; }
.ltable__lake small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.ltable__thumb { display: none; }
.ltable__v { font-weight: 600; }
.ltable__go a { color: var(--muted); }
.ltable__ad td { padding: 8px; background: #fbfcfe; }
.ltable--plain td { padding: 9px 14px; }
@media (max-width: 759px) {
	.ltable thead { display: none; }
	.ltable tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid #f0f3f7; }
	.ltable td, .ltable tbody th { padding: 0; border: 0; }
	.ltable__lake { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; order: 1; }
	.ltable__thumb { display: block; width: 56px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; }
	.ltable__thumb svg, .ltable__thumb img { width: 100%; height: 100%; object-fit: cover; }
	.ltable__go { order: 2; }
	.ltable__v { order: 3; margin-left: 68px; }
	.ltable tbody td:nth-of-type(2) { order: 4; }
	.ltable tbody td:nth-of-type(3), .ltable tbody td:nth-of-type(4) { display: none; }
	.ltable__ad td { flex: 1 1 100%; display: block !important; }
	.ltable--plain tbody tr { flex-wrap: nowrap; justify-content: space-between; }
	.ltable--plain tbody td:nth-of-type(3) { display: block; }
}

.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 10px; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.pager .is-current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager__next { display: inline-flex !important; gap: 4px; color: var(--blue) !important; }
.pager__gap { align-self: center; color: var(--muted); }

.state-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .state-list { grid-template-columns: repeat(3, 1fr); } }
.state-list a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.state-list small { margin-left: auto; color: var(--muted); font-weight: 400; }
.group .near a { padding-left: 0; }

/* Map page */
.map-card { padding: 8px; }
.lake-map { height: min(70vh, 560px); border-radius: var(--radius-sm); background: #dfeaf5; }
.map-list { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.leaflet-popup-content a { font-weight: 700; }

/* ------------------------------------------------------------------ Ads */
.wl-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: var(--ad-h-m, 250px); margin: 16px auto; max-width: 1200px; overflow: hidden; }
.wl-ad__label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: #98a2b3; margin-bottom: 4px; }
.wl-ad--test { border: 2px dashed #c7d2e0; border-radius: var(--radius-sm); color: var(--muted); font-size: .8rem; background: #fafcff; }
@media (min-width: 760px) { .wl-ad { min-height: var(--ad-h-d, 90px); } }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--navy); color: #c8d5e3; margin-top: 24px; }
.site-footer__grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 24px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #e6eef8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand p { max-width: 42ch; font-size: .9rem; margin-top: 12px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: .8rem; }
.site-footer__legal p { margin: 0 0 6px; }

/* Entries */
.entry__content img { height: auto; border-radius: var(--radius-sm); }
.entry__img { border-radius: var(--radius); margin: 12px 0; height: auto; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- User tools: units, My Lakes, near me, insights, conditions, alerts, compare, embed ---------- */
.unit-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: #eef2f7; }
.unit-toggle button { border: 0; background: transparent; min-width: 34px; min-height: 28px; padding: 0 8px; border-radius: 999px; font: 600 .78rem/1 var(--font); color: var(--ink-2); cursor: pointer; }
.unit-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.unit-toggle--header { display: none; }
@media (min-width: 900px) { .unit-toggle--header { display: inline-flex; margin-left: auto; } }
.mobile-menu__units { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); }
[data-unit="m"] .current__alt { display: none; }
.current__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.banner__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.star .star__on { display: none; }
.star[aria-pressed="true"] .star__on { display: inline; }
.star[aria-pressed="true"] .star__off { display: none; }
.star[aria-pressed="true"] .icon { fill: #f5b301; stroke: #c98f00; }
.actionbar .star span { font-size: .72rem; }
.actionbar .star .star__off { display: inline; }
.actionbar .star[aria-pressed="true"] .star__off { display: none; }

.summary { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-50); color: var(--navy); font-weight: 500; }
.summary .icon { flex: none; color: var(--blue); margin-top: 2px; }

.insights__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .insights__grid { grid-template-columns: repeat(2, 1fr); } }
.insight { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.insight h3 { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.insight__v { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.insight__v--below { color: var(--down); }
.insight__v--above { color: var(--up); }
.range { position: relative; height: 12px; border-radius: 999px; background: #eef2f7; margin: 10px 0; }
.range__band { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: #b9d6fb; }
.range__mark { position: absolute; top: -4px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--navy); }
.gauge { position: relative; height: 14px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin: 10px 0 6px; }
.gauge__fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7fb5f5, var(--blue)); border-radius: 999px; }
.gauge__over { position: absolute; inset: 0 0 0 auto; width: 6px; background: var(--up); }
.gauge__ends { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.chart__ly { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.chart__ly.is-disabled { opacity: .5; cursor: not-allowed; }
.chart__ly-key { width: 22px; border-top: 2px dashed #8a94a6; }
.ull-chart__svg .line--ly { stroke: #8a94a6; stroke-dasharray: 5 4; stroke-width: 1.8; }
.ull-chart__svg .grid--zero { stroke: #98a2b3; }

.cond-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cond-grid { grid-template-columns: 2fr 1fr 1fr; } }
.cond { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cond h3 { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.cond__v { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.fc { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .fc { grid-template-columns: repeat(4, 1fr); } }
.fc li { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius-sm); background: #f6f9fc; font-size: .82rem; }
.fc__name { font-weight: 600; color: var(--ink-2); }
.fc__t { font-size: 1.15rem; color: var(--navy); }
.fc__w { display: inline-flex; align-items: center; gap: 4px; }
.nws-alerts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.nws-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); }
.nws-alert div { display: flex; flex-direction: column; gap: 2px; }
.nws-alert--extreme, .nws-alert--severe { background: var(--down-bg); color: var(--down); }
.nws-alert strong { color: inherit; }

.tools-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 900px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tools-grid > .card { margin-bottom: 0; }
.signup .card__title, .tools .card__title { display: flex; align-items: center; gap: 8px; }
.signup form { display: grid; gap: 10px; }
.fld { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: var(--radius-sm); font: 400 1rem var(--font); color: var(--ink); background: #fff; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-msg.is-ok { color: var(--up); }
.form-msg.is-err { color: var(--down); }
.tools { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.embed { width: 100%; }
.embed summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--navy); }
.embed__code { width: 100%; font: .78rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f6f9fc; resize: vertical; margin: 6px 0; }
.embed .btn { margin-right: 10px; }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.mini-list li { padding: 0 14px; }
.mini-list li.muted, .mini-list li.is-loading { padding: 14px; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f3f7; color: var(--ink); text-decoration: none; }
.mini-list li:last-child a { border-bottom: 0; }
.mini-list .near__name { display: flex; flex-direction: column; flex: 1; font-weight: 600; }
.mini-list .near__name small { color: var(--muted); font-weight: 400; }
.mini-list .near__v { font-weight: 700; color: var(--navy); }
.hero .js-near-me { margin-top: 12px; }

.compare__pick { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .compare__pick { grid-template-columns: repeat(3, 1fr) auto; } }
.compare .seg a { padding: 7px 10px; border-radius: 8px; font: 500 .82rem/1 var(--font); color: var(--ink-2); text-decoration: none; }
.compare .seg a[aria-current="true"] { background: var(--blue); color: #fff; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend span, .legend__dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.table-scroll { overflow-x: auto; margin: 0 -18px 10px; }
.alerts-page { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 60px; }
.alerts-page__card { max-width: 540px; text-align: center; padding: 32px 24px; }
.alerts-page__ic { display: inline-flex; padding: 12px; border-radius: 50%; background: var(--blue-50); color: var(--blue); margin-bottom: 12px; }
.alerts-page__ic .icon { width: 28px; height: 28px; }

@media print {
	.site-header, .tabs, .actionbar, .wl-ad, .site-footer, .seg, .location, .tools-grid, .unit-toggle, .chart__ly, .star { display: none !important; }
	body { background: #fff; }
	.card { box-shadow: none; }
}
