/* Tennessee Coverage Guide — one stylesheet, no external requests. */
:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f1eee6;
  --ink: #18212b;
  --ink-2: #364352;
  --muted: #5d6876;
  --line: #e2ddd2;
  --brand: #1d4e5e;
  --brand-2: #2b6b7e;
  --brand-ink: #ffffff;
  --brand-soft: #e3eef0;
  --accent: #a84c22;
  --accent-soft: #f7e9e1;
  --on-accent: #ffffff;
  --good: #2c6a3f;
  --good-soft: #e5f1e7;
  --warn: #8a5b00;
  --warn-soft: #fbf1db;
  --bad: #9b2f22;
  --bad-soft: #f8e4e0;
  --info: #335c86;
  --info-soft: #e6eef7;
  --focus: #e0a526;
  --radius: 10px;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(24, 33, 43, .06), 0 4px 16px rgba(24, 33, 43, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161c; --surface: #18202a; --surface-2: #1e2732; --ink: #e9e6df; --ink-2: #ccc8bf; --muted: #a1a9b3;
    --line: #2b3541; --brand: #86bccb; --brand-2: #a5d0dc; --brand-ink: #0f1a20; --brand-soft: #1b2e36;
    --accent: #e39169; --accent-soft: #33231c; --on-accent: #1c120c; --good: #8fcf9f; --good-soft: #1a2c20; --warn: #e8c069; --warn-soft: #30281a;
    --bad: #ee9a8d; --bad-soft: #35201d; --info: #9cc0e6; --info-soft: #1b2738; --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161c; --surface: #18202a; --surface-2: #1e2732; --ink: #e9e6df; --ink-2: #ccc8bf; --muted: #a1a9b3;
  --line: #2b3541; --brand: #86bccb; --brand-2: #a5d0dc; --brand-ink: #0f1a20; --brand-soft: #1b2e36;
  --accent: #e39169; --accent-soft: #33231c; --on-accent: #1c120c; --good: #8fcf9f; --good-soft: #1a2c20; --warn: #e8c069; --warn-soft: #30281a;
  --bad: #ee9a8d; --bad-soft: #35201d; --info: #9cc0e6; --info-soft: #1b2738; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17.5px/1.65 var(--sans); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-link { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.search-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-link:hover { background: var(--surface-2); }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu summary:hover { background: var(--surface-2); }
.menu-panel { position: absolute; right: 16px; top: 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 240px; }
.menu-panel a { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.menu-panel a:hover { background: var(--surface-2); }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 0; }
  .menu { display: none; }
  .search-link span { display: none; }
}
@media (max-width: 480px) { .brand-tag { display: none; } .search-link span { display: none; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 22px 0 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Layout */
.layout { display: grid; gap: 40px; padding: 8px 0 64px; }
@media (min-width: 1080px) { .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; } }
.sidebar { font-size: .9rem; }
@media (min-width: 1080px) { .sidebar { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 20px; } }
.sidebar h2 { font: 600 .74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; }
.toc, .siblings { border-left: 2px solid var(--line); padding-left: 16px; margin-bottom: 28px; }
.toc ol, .siblings ul { list-style: none; padding: 0; margin: 0; }
.toc li, .siblings li { margin: 0 0 7px; line-height: 1.35; }
.toc a, .siblings a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .siblings a:hover { color: var(--accent); }
.siblings a[aria-current="page"] { color: var(--brand); font-weight: 600; }
@media (max-width: 1079px) { .toc { display: none; } }

/* Prose */
.prose { max-width: 740px; min-width: 0; }
.page-head { margin: 10px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.prose h1, .hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.018em; line-height: 1.12; font-size: clamp(2rem, 4.6vw, 2.85rem); margin: 0 0 14px; text-wrap: balance; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 1.75rem); line-height: 1.22; letter-spacing: -.01em; margin: 2.4em 0 .6em; text-wrap: balance; }
.prose h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.8em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .32em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .lede { font-size: 1.13rem; color: var(--ink-2); line-height: 1.6; }
.prose code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .88rem; color: var(--muted); margin: 0; }
.page-meta a { color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; background: var(--good-soft); padding: 3px 10px 3px 8px; border-radius: 99px; }
.verified svg { width: 14px; height: 14px; }
a.gloss { color: inherit; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
a.gloss:hover { color: var(--accent); }
.sources-h + ul { font-size: .9rem; color: var(--muted); }
.sources-h + ul li { margin: .25em 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout { margin: 1.6em 0; padding: 16px 18px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); border-left: 4px solid var(--info); }
.callout p { margin-bottom: .7em; }
.callout-label { display: inline-block; font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--info); margin-bottom: 8px; }
.callout-watch { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-watch .callout-label { color: var(--warn); }
.callout-warn { border-left-color: var(--accent); background: var(--accent-soft); }
.callout-warn .callout-label { color: var(--accent); }

.page-end { margin-top: 3em; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); font-size: .92rem; color: var(--ink-2); }
.page-end p { margin: 0; }
.md-link { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.md-link a { color: var(--muted); }

/* Home */
.hero { background: var(--brand); color: var(--brand-ink); padding: 52px 0 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 45%; height: 140%; background: radial-gradient(closest-side, rgba(255,255,255,.08), transparent); pointer-events: none; }
.hero .eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; font-weight: 600; }
.hero h1 { max-width: 820px; font-size: clamp(2.1rem, 5.4vw, 3.4rem); color: var(--brand-ink); }
.hero-sub { max-width: 680px; font-size: 1.12rem; opacity: .92; margin: 0 0 26px; }
.keydates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.keydates > div { background: color-mix(in srgb, var(--brand) 88%, #000); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kd-label { font-size: .78rem; opacity: .8; }
.kd-value { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.hero-search { display: flex; gap: 8px; max-width: 640px; margin-bottom: 30px; }
.hero-search input { flex: 1; min-width: 0; font: inherit; padding: 13px 16px; border-radius: 9px; border: 0; background: var(--surface); color: var(--ink); }
.hero-search button, .search-box button, .btn { font: 600 1rem var(--sans); padding: 12px 20px; border-radius: 9px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; display: inline-block; }
.hero-search button:hover, .search-box button:hover, .btn:hover { filter: brightness(1.08); color: var(--on-accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 40px; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
.tile:hover { transform: translateY(-2px); color: var(--ink); }
.tile-title { font-weight: 700; font-size: 1.04rem; color: var(--brand); }
.tile-desc { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.tile-go { position: absolute; bottom: 12px; right: 16px; color: var(--accent); font-weight: 700; }
.trust-strip { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; font-size: .92rem; line-height: 1.45; }
.trust-strip li { padding-left: 14px; border-left: 2px solid rgba(255,255,255,.35); opacity: .95; }
.page-end .mission { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hero-more { margin: 22px 0 0; font-weight: 600; }
.hero-more a { color: var(--brand-ink); text-decoration-color: rgba(255,255,255,.5); }
.hero-more a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
.home-body { padding: 40px 16px 64px; }
.home-body .prose { margin: 0 auto; }
@media (min-width: 720px) { .home-body { padding: 48px 28px 72px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: #173a46; color: #f3efe7; } :root:not([data-theme="light"]) .hero h1 { color: #f3efe7; } :root:not([data-theme="light"]) .keydates > div { background: #12303a; } }

/* Tools */
.tool-slot { margin: 1.6em 0 2em; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .tool { padding: 26px 28px; } }
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.tool-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tool-grid.one { grid-template-columns: 1fr; max-width: 420px; }
.tool label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.tool .hint { font-weight: 400; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.tool .optional { font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tool input, .tool select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; min-height: 46px; }
.tool input:focus, .tool select:focus { border-color: var(--brand-2); outline: 3px solid color-mix(in srgb, var(--brand-2) 25%, transparent); outline-offset: 0; }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding-left: 12px; }
.money input { border: 0; background: transparent; padding-left: 6px; }
.money:focus-within { border-color: var(--brand-2); outline: 3px solid color-mix(in srgb, var(--brand-2) 25%, transparent); }
.money input:focus { outline: none; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tool .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--bg); }
.tool .check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.tool .check:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.tool-privacy { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.tool-privacy::before { content: "🔒 "; }
.tool-out { margin-top: 20px; }
.tool-out:empty { display: none; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 16px; }
.stat { background: var(--surface-2); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat-v { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--brand); }
.stat-l { font-size: .83rem; color: var(--muted); line-height: 1.35; }
.result { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px 4px; margin: 0 0 12px; background: var(--surface); border-left: 4px solid var(--info); }
.result h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.result-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.result p { margin: 0 0 .7em; font-size: .95rem; }
.result-good { border-left-color: var(--good); }
.result-maybe, .result-warn, .result-wait { border-left-color: var(--warn); }
.result-bad, .result-closed { border-left-color: var(--bad); }
.badge { font: 700 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 5px 8px; border-radius: 5px; white-space: nowrap; background: var(--info-soft); color: var(--info); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-maybe, .badge-warn, .badge-wait { background: var(--warn-soft); color: var(--warn); }
.badge-bad, .badge-closed { background: var(--bad-soft); color: var(--bad); }
.highlight { background: var(--good-soft); padding: 10px 12px; border-radius: 8px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0; font-size: .9rem; color: var(--muted); }
.chip { font: inherit; font-size: .9rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.fpl-track { position: relative; display: flex; height: 34px; border-radius: 8px; overflow: visible; margin: 34px 0 4px; font-size: .7rem; font-weight: 600; }
.fpl-track .z { display: flex; align-items: center; justify-content: center; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.fpl-track .z span { padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.z-gap { background: var(--surface-2); border-radius: 8px 0 0 8px; }
.z-csr { background: color-mix(in srgb, var(--good) 30%, var(--surface)); }
.z-ptc { background: color-mix(in srgb, var(--good) 15%, var(--surface)); }
.z-none { background: var(--bad-soft); border-radius: 0 8px 8px 0; }
.fpl-marker { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.fpl-marker span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 2px 7px; border-radius: 5px; font-size: .78rem; white-space: nowrap; margin-bottom: 3px; }
.fpl-scale { position: relative; height: 18px; font-size: .74rem; color: var(--muted); margin-bottom: 18px; }
.fpl-scale span { position: absolute; transform: translateX(-50%); }

/* Search */
.search-box form { display: flex; gap: 8px; margin: 8px 0 12px; }
.search-box input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.search-results a { font-weight: 650; font-size: 1.06rem; }
.search-results p { margin: 4px 0 0; font-size: .92rem; color: var(--ink-2); }
.search-results mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .9rem; color: var(--ink-2); }
.independence { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; max-width: 860px; }
.independence p { margin: 0 0 8px; }
.help-line { color: var(--muted); }
.help-line a { color: var(--ink-2); white-space: nowrap; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.fcol h2 { font: 700 .74rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.fcol li { margin: 0 0 6px; line-height: 1.35; }
.fcol a { color: var(--ink-2); text-decoration: none; }
.fcol a:hover { color: var(--accent); text-decoration: underline; }
.fbottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.fbottom p { margin: 0 0 6px; }
.fbottom a { color: var(--muted); }

@media print {
  .site-header, .site-footer, .sidebar, .crumbs, .page-end, .hero-search { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .layout { display: block; }
  a { color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.nw { white-space: nowrap; }
