:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --border: #E1E5EC;
  --border-soft: #EAEDF3;
  --ink: #101828;
  --ink-soft: #45516B;
  --ink-faint: #8791A8;

  /* header/hero chrome — deep navy, bright interactive blue (TNRERA-derived) */
  --navy: #0B2C55;
  --navy-deep: #071B36;
  --primary: #0F62D6;
  --primary-ink: #FFFFFF;
  --primary-soft: #E4EFFC;
  --primary-soft-ink: #0B4DAE;

  /* section accents — one bold, saturated color per pillar */
  --cat-land: #0E86D4;
  --cat-land-soft: #DEF0FC;
  --cat-building: #E0632B;
  --cat-building-soft: #FCE5D7;
  --cat-rules: #8A4FE0;
  --cat-rules-soft: #EDE3FC;
  --cat-calc: #0BA875;
  --cat-calc-soft: #DAF4EA;
  --cat-glossary: #D99A12;
  --cat-glossary-soft: #FAEAC4;

  --accent: var(--cat-glossary);
  --accent-soft: var(--cat-glossary-soft);
  --danger: #C0392B;
  --danger-soft: #F8DCD7;
  --na: #98A2B3;
  --na-soft: #ECEEF2;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 3px 12px -3px rgb(11 44 85 / 0.12);
  --shadow-card-hover: 0 16px 34px -12px rgb(11 44 85 / 0.28);
  --shadow-hero: 0 24px 60px -24px rgb(7 27 54 / 0.55);

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B111D; --surface: #121926; --surface-raised: #17202F;
    --border: #29334A; --border-soft: #212A3D;
    --ink: #EEF1F8; --ink-soft: #AEB7CC; --ink-faint: #7B85A0;
    --navy: #0B2C55; --navy-deep: #071B36;
    --primary: #6AA3F5; --primary-ink: #0A1930; --primary-soft: #1C2E4D; --primary-soft-ink: #9EC3FA;
    --cat-land: #56B8EE; --cat-land-soft: #17293A;
    --cat-building: #ED8E5C; --cat-building-soft: #392417;
    --cat-rules: #B18AF5; --cat-rules-soft: #29223F;
    --cat-calc: #3FD09E; --cat-calc-soft: #103527;
    --cat-glossary: #EFB94E; --cat-glossary-soft: #33260C;
    --accent: var(--cat-glossary); --accent-soft: var(--cat-glossary-soft);
    --danger: #E68A72; --danger-soft: #3A251D;
    --na: #6B7690; --na-soft: #1B2333;
    --shadow-card: 0 3px 12px -3px rgb(0 0 0 / 0.4);
    --shadow-card-hover: 0 18px 36px -14px rgb(0 0 0 / 0.6);
    --shadow-hero: 0 24px 60px -24px rgb(0 0 0 / 0.75);
  }
}
:root[data-theme="dark"] {
  --bg: #0B111D; --surface: #121926; --surface-raised: #17202F;
  --border: #29334A; --border-soft: #212A3D;
  --ink: #EEF1F8; --ink-soft: #AEB7CC; --ink-faint: #7B85A0;
  --navy: #0B2C55; --navy-deep: #071B36;
  --primary: #6AA3F5; --primary-ink: #0A1930; --primary-soft: #1C2E4D; --primary-soft-ink: #9EC3FA;
  --cat-land: #56B8EE; --cat-land-soft: #17293A;
  --cat-building: #ED8E5C; --cat-building-soft: #392417;
  --cat-rules: #B18AF5; --cat-rules-soft: #29223F;
  --cat-calc: #3FD09E; --cat-calc-soft: #103527;
  --cat-glossary: #EFB94E; --cat-glossary-soft: #33260C;
  --accent: var(--cat-glossary); --accent-soft: var(--cat-glossary-soft);
  --danger: #E68A72; --danger-soft: #3A251D;
  --na: #6B7690; --na-soft: #1B2333;
  --shadow-card: 0 3px 12px -3px rgb(0 0 0 / 0.4);
  --shadow-card-hover: 0 18px 36px -14px rgb(0 0 0 / 0.6);
  --shadow-hero: 0 24px 60px -24px rgb(0 0 0 / 0.75);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Header — solid navy, bold */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); box-shadow: 0 2px 14px -4px rgb(0 0 0 / 0.35); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.state-badge { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: #FFFFFF; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28); padding: 4px 9px 4px 7px; border-radius: var(--radius-sm); flex-shrink: 0; }
.state-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cat-glossary); flex-shrink: 0; }
/* state dropdown — replaces the static badge, lets you jump to any state's version of the current page type */
.state-dropdown { position: relative; flex-shrink: 0; }
.state-dropdown-btn { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28); padding: 5px 10px 5px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.state-dropdown-btn:hover { background: rgb(255 255 255 / 0.22); }
.state-dropdown-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cat-glossary); flex-shrink: 0; }
.state-dropdown-btn .caret { width: 8px; height: 8px; flex-shrink: 0; transition: transform .15s ease; }
.state-dropdown-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.state-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; max-height: 340px; overflow-y: auto; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-card-hover); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 50; }
.state-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.state-menu a, .state-menu .disabled { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 0.87rem; text-decoration: none; color: var(--ink); }
.state-menu a:hover { background: var(--primary-soft); color: var(--primary-soft-ink); }
.state-menu .disabled { color: var(--ink-faint); cursor: default; }
.state-menu .tag { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-link { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: rgb(255 255 255 / 0.78); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.nav-link:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.nav-link.current { color: var(--navy); font-weight: 700; background: #FFFFFF; }

/* mobile header — nav drops to its own full-width row instead of wrapping
   under the auto margin, which used to right-align it and misalign the
   pill row against the brand/state-dropdown row above it */
@media (max-width: 640px) {
  .main-nav { margin-left: 0; width: 100%; justify-content: flex-start; gap: 4px; padding-top: 10px; margin-top: 2px; border-top: 1px solid rgb(255 255 255 / 0.15); }
  .nav-link { padding: 7px 11px; font-size: 0.85rem; }
}

/* theme toggle */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28); color: #fff; cursor: pointer; flex-shrink: 0; padding: 0; }
.theme-toggle:hover { background: rgb(255 255 255 / 0.22); }
.theme-toggle svg { width: 15px; height: 15px; }

/* site search */
.search-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28); color: #fff; cursor: pointer; flex-shrink: 0; padding: 0; }
.search-toggle:hover { background: rgb(255 255 255 / 0.22); }
.search-toggle svg { width: 15px; height: 15px; }
.search-toggle[aria-expanded="true"] { background: #fff; color: var(--navy); }

.search-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-raised); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card-hover); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .2s ease, opacity .2s ease; z-index: 45; }
.search-panel.open { max-height: 440px; opacity: 1; overflow-y: auto; }
.search-panel-inner { max-width: 1080px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 20px; }
.search-panel input[type="search"] { width: 100%; padding: 11px 14px; font-size: 0.95rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.search-panel input[type="search"]:focus { outline: none; border-color: var(--primary); }
.search-results { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.search-results.has-results { border-top: 1px solid var(--border-soft); margin-top: 10px; padding-top: 8px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.search-result:hover, .search-result.active { background: var(--primary-soft); color: var(--primary-soft-ink); }
.sr-title { font-weight: 600; font-size: 0.9rem; }
.sr-cat { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); flex-shrink: 0; white-space: nowrap; }
.search-empty { font-size: 0.85rem; color: var(--ink-faint); padding: 8px 10px; }

/* colored "you are here" band, full-bleed under the header */
.cat-band { height: 6px; width: 100%; background: var(--page-accent, var(--primary)); }
.cat-band-multi { height: 6px; width: 100%; background: linear-gradient(90deg, var(--cat-land), var(--cat-building), var(--cat-rules), var(--cat-calc), var(--cat-glossary)); }

/* content */
main { padding: 34px 0 76px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--page-accent, var(--ink)); }
.page-head p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; max-width: 62ch; line-height: 1.6; }

.state-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 11px 16px; box-shadow: var(--shadow-card);
}
.state-row label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); }
.state-select { display: flex; align-items: center; gap: 6px; background: var(--page-accent, var(--primary)); color: #fff; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; }
.state-row .note { font-size: 0.8rem; color: var(--ink-faint); }

/* resource list (Land Records) */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.resource-card { background: var(--surface); border: 1px solid var(--border-soft); border-top: 6px solid var(--page-accent, var(--border)); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); transition: box-shadow .18s ease, transform .18s ease; }
.resource-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.resource-card h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin: 0; }
.gloss-link { font-size: 0.68rem; font-weight: 600; color: var(--page-accent, var(--primary)); text-decoration: none; opacity: 0.8; vertical-align: middle; white-space: nowrap; }
.gloss-link:hover { text-decoration: underline; opacity: 1; }
.resource-card p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.resource-card .caveat { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin: 0; }
.resource-card .action { margin-top: 6px; font-size: 0.84rem; font-weight: 700; }
.resource-card .action.link {
  color: #fff; background: var(--page-accent, var(--primary)); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 9px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.resource-card .action.link:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.resource-card.na { background: var(--na-soft); border-style: dashed; border-top-color: var(--na); box-shadow: none; }
.resource-card.na h3 { color: var(--ink-faint); }
.na-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--na); }
.na-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--na); }

/* a stack of equal-weight links (e.g. CRZ, Industrial Development) — lighter chip style so it doesn't compete with a card's single primary CTA */
.resource-card .link-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.resource-card .link-stack .action.link {
  color: var(--page-accent, var(--primary)); background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--page-accent, var(--primary)) 45%, transparent);
  box-shadow: none; padding: 8px 14px;
}
.resource-card .link-stack .action.link:hover { background: color-mix(in srgb, var(--page-accent, var(--primary)) 10%, var(--surface)); box-shadow: none; }

/* Building page sections */
.section-block { margin-bottom: 34px; }
.section-block h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; padding-left: 14px; border-left: 5px solid var(--page-accent, var(--border)); }
.section-block .sub { font-size: 0.86rem; color: var(--ink-faint); margin: 0 0 14px; line-height: 1.55; }
.download-list { display: flex; flex-direction: column; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.download-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border-soft); background: var(--surface); font-size: 0.88rem; flex-wrap: wrap; }
.download-row:last-child { border-bottom: none; }
.download-row .yr { font-family: var(--font-mono); color: var(--ink-faint); width: 56px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.download-row .name { flex: 1; min-width: 180px; }
.download-row a { color: #fff; background: var(--page-accent, var(--primary)); font-weight: 700; text-decoration: none; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: var(--radius-pill); }
.download-row a:hover { filter: brightness(1.08); }
.link-card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.link-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.link-card:hover { border-color: var(--page-accent, var(--primary)); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.link-card .k { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.link-card .v { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.source-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; border-radius: var(--radius-sm); padding: 2px 7px; margin-left: 8px; }
.source-tag.gov { background: var(--cat-calc); }
.source-tag.official { background: var(--primary); }
.source-tag.assoc { background: var(--accent); }

/* glossary */
.glossary-list { display: flex; flex-direction: column; gap: 2px; }
.gloss-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 96px; }
.gloss-row dt { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; color: var(--page-accent, var(--ink)); }
.gloss-row dd { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.58; }
.gloss-related { margin-top: 7px; font-size: 0.78rem; color: var(--ink-faint); }
.gloss-related a { color: var(--page-accent, var(--primary)); text-decoration: none; font-weight: 600; }
.gloss-related a:hover { text-decoration: underline; }
@media (max-width: 600px) { .gloss-row { grid-template-columns: 1fr; gap: 4px; } }

/* glossary FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow-card); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 16px; color: var(--page-accent, var(--primary)); font-weight: 700; }
.faq-item[open] summary::before { content: "−"; }
.faq-item p { margin: 10px 0 2px; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.6; }

.disclaimer-strip { margin-top: 8px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.82rem; color: var(--ink); line-height: 1.55; }
.disclaimer-strip strong { color: var(--danger); }

/* hero (index only) — bold navy-to-blue gradient band */
.hero { padding: 70px 0 64px; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--primary) 145%); box-shadow: var(--shadow-hero); position: relative; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cat-glossary); font-weight: 700; margin-bottom: 18px; }
.hero .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--cat-glossary); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.16; margin: 0 0 16px; max-width: 22ch; color: #fff; letter-spacing: -0.01em; }
.hero p { font-size: 1.05rem; line-height: 1.65; color: rgb(255 255 255 / 0.86); max-width: 58ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.94rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-hero-primary { background: #fff; color: var(--navy-deep); box-shadow: 0 12px 26px -8px rgb(0 0 0 / 0.4); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgb(0 0 0 / 0.45); }
.btn-hero-secondary { background: rgb(255 255 255 / 0.1); color: #fff; border: 1.5px solid rgb(255 255 255 / 0.5); }
.btn-hero-secondary:hover { background: rgb(255 255 255 / 0.2); }

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.pillar-card { background: var(--surface); border: 1px solid var(--border-soft); border-top: 6px solid var(--page-accent, var(--border)); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); transition: box-shadow .18s ease, transform .18s ease; }
.pillar-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.pillar-card h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin: 0; }
.pillar-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.pillar-card .status { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--page-accent, var(--ink-faint)); font-weight: 700; }
.pillar-card.pending { opacity: 0.6; cursor: default; }
.pillar-card.pending .status { color: var(--ink-faint); font-weight: 500; }
.pillar-card.pending:hover { box-shadow: var(--shadow-card); transform: none; }

/* coverage / draft-states strip (index only) */
.coverage-strip { background: var(--na-soft); border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 40px; }
.coverage-strip h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.coverage-strip .sub { font-size: 0.84rem; color: var(--ink-faint); margin: 0 0 14px; line-height: 1.5; }
.coverage-list { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 0.84rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.coverage-chip:hover { border-color: var(--cat-land); }
.coverage-chip .frac { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; color: var(--ink-faint); }

/* About page — numbered "how to navigate" steps */
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 4px; }
.howto-step { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.howto-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--page-accent, var(--primary)); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.howto-step h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.howto-step p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.about-list { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.75; }
.about-list li strong { color: var(--ink); }

/* Ad slots — reserved space only, no ad network code wired in yet (no AdSense publisher ID).
   Swap the placeholder markup inside .ad-slot for the real <ins class="adsbygoogle"> unit later;
   the reserved min-height/width stays the same so nothing shifts on load (CLS). Max 2 per page by design:
   one in-content unit + one desktop-only rail unit — see the ads-placement discussion for why. */
.ad-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--na-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.06em; overflow: hidden; line-height: 1.6;
}
.ad-slot-incontent { width: 100%; min-height: 250px; margin: 8px 0 32px; }
.ad-slot-rail { display: none; position: fixed; top: 130px; width: 200px; min-height: 600px; z-index: 10; }
@media (min-width: 1440px) { .ad-slot-rail { display: flex; left: calc(50% + 560px); } }

/* breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--page-accent, var(--primary)); text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* "Last verified" badge on link-directory pages */
.verified-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em; color: var(--cat-calc); background: var(--cat-calc-soft); border: 1px solid color-mix(in srgb, var(--cat-calc) 35%, transparent); border-radius: var(--radius-pill); padding: 5px 12px; }
.verified-badge::before { content: "✓"; font-weight: 700; }

/* section heading for the Land Records resource grid (matches .section-block h2) */
.resource-heading { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; padding-left: 14px; border-left: 5px solid var(--page-accent, var(--border)); }

/* footer */
footer { border-top: 4px solid var(--navy); margin-top: 24px; padding: 32px 0; background: var(--surface); }
footer .disclaimer { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.82rem; color: var(--ink); line-height: 1.55; margin-bottom: 18px; }
footer .disclaimer strong { color: var(--danger); }

/* Unit Converter page */
.converter-card { background: var(--surface); border: 1px solid var(--border-soft); border-top: 6px solid var(--page-accent, var(--border)); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); margin-bottom: 18px; }
.converter-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.conv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conv-group { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 220px; }
.conv-input { width: 100%; min-width: 0; padding: 10px 12px; font-size: 1rem; font-weight: 600; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.conv-input:focus { outline: none; border-color: var(--page-accent, var(--primary)); }
.conv-select { padding: 10px; font-size: 0.85rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-body); max-width: 100%; flex: 1 1 auto; }
.conv-swap { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--page-accent, var(--primary)); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .15s ease, transform .3s ease; }
.conv-swap:hover { background: var(--bg); transform: rotate(180deg); }
@media (max-width: 640px) { .conv-row { flex-direction: column; align-items: stretch; } .conv-group { min-width: 0; flex-direction: column; align-items: stretch; } .conv-swap { align-self: center; } }

.regional-calc { background: var(--surface); border: 1px solid var(--border-soft); border-top: 6px solid var(--page-accent, var(--border)); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-card); margin-bottom: 26px; }
.regional-calc-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.regional-calc-controls select, .regional-calc-controls input { padding: 10px 12px; font-size: 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-body); }
.regional-calc-controls select { flex: 1 1 200px; }
.regional-calc-controls input { flex: 1 1 140px; font-weight: 600; }
.regional-calc-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.regional-calc-outputs .out-tile { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.regional-calc-outputs .out-tile .k { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 3px; }
.regional-calc-outputs .out-tile .v { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--page-accent, var(--ink)); }
.regional-calc-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; background: var(--bg); border-radius: var(--radius-sm); padding: 10px 14px; }
.regional-calc-note strong { color: var(--ink); }

.source-tag.caution { background: var(--danger); }

.unit-state-group { margin-bottom: 20px; scroll-margin-top: 96px; }
.unit-state-group h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--page-accent, var(--ink)); }
.unit-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.unit-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-card); }
.unit-card h4 { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.unit-card .unit-value { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 6px; }
.unit-card p { font-size: 0.81rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 6px; }
.unit-card .unit-source { font-size: 0.73rem; color: var(--ink-faint); font-style: italic; }
footer .foot-bottom { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
