/* Lotvara: styles for the generated directory pages (home, category, county, source).
   Loads after style.css and reuses its variables, cards (.row), badges and footer. */

.dnav-wrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.dnav { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.dnav .brand { display: inline-flex; }
.dnav nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.dnav nav a { color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; text-decoration: none; padding: 6px 0; }
.dnav nav a:hover, .dnav nav a[aria-current="page"] { color: var(--blue); }
.dnav nav a.cta { padding: 8px 16px; background: var(--blue); color: #fff; border-radius: 6px; }
.dnav nav a.cta:hover { background: var(--blue-dark); color: #fff; }

.dwrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.crumbs { padding: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--blue); }

.dhero { padding: 22px 0 8px; }
.dhero h1 { font-size: 2.125rem; line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; color: var(--navy); max-width: 30ch; }
.dhero .lede { margin-top: 14px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.dhero .verdict { display: inline-block; margin-top: 16px; padding: 6px 12px; background: color-mix(in srgb, var(--c, var(--blue)) 10%, #fff); color: var(--c, var(--blue-dark)); border-radius: 6px; font-weight: 700; font-size: 0.9375rem; }
.dhero .meta { margin-top: 14px; color: var(--muted); font-size: 0.8125rem; }

.home-hero { background: var(--navy); color: #fff; }
.home-hero-inner { max-width: 1120px; margin: 0 auto; padding: 52px 24px 44px; }
.home-hero h1 { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; max-width: 26ch; }
.home-hero p { margin-top: 14px; color: #c5d3e8; font-size: 1.125rem; line-height: 1.55; max-width: 60ch; }
.home-search { margin-top: 26px; display: flex; gap: 8px; max-width: 560px; }
.home-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 8px; font: inherit; font-size: 1rem; color: var(--ink); }
.home-search button { height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; font-size: 1rem; }
.home-search button:hover { background: #2f6af0; }
.home-stats { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 32px; color: #c5d3e8; font-size: 0.9375rem; }
.home-stats strong { color: #fff; font-size: 1.5rem; font-weight: 800; margin-right: 6px; font-variant-numeric: tabular-nums; }

.dsec { padding: 36px 0 4px; }
.dsec > h2, .dsec-h { font-size: 1.5rem; line-height: 1.25; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.dsec .sub { margin-top: 6px; color: var(--ink-2); max-width: 68ch; }

.tiles { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.tcard:hover { border-color: var(--c, #b7c3d4); box-shadow: 0 1px 0 var(--c, transparent); }
.tcard h3 { font-size: 1.0625rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.tcard .cnt { color: var(--c); font-weight: 700; font-size: 0.8125rem; margin-top: 2px; }
.tcard p { margin-top: 6px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }

.chipgrid { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chipgrid a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.chipgrid a:hover { border-color: var(--blue); color: var(--blue-dark); }
.chipgrid a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.8125rem; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding-bottom: 48px; }
.rail { position: sticky; top: 16px; display: grid; gap: 16px; }
.rail .box { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 0.875rem; }
.rail .box h2, .rail .box h3 { font-size: 0.9375rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rail .box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rail .box a { text-underline-offset: 3px; }
.rail .box .btn2 { display: inline-flex; margin-top: 10px; padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 6px; font-weight: 700; text-decoration: none; }
.rail .box .btn2:hover { background: var(--blue-dark); }
.rail .box.warm { background: var(--amber-bg); border-color: var(--amber-line); }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } .rail { position: static; } }

.take { margin: 28px 0 8px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--blue)); border-radius: 10px; }
.take h2 { font-size: 1.1875rem; font-weight: 800; color: var(--navy); }
.take .byline { margin-top: 2px; color: var(--muted); font-size: 0.8125rem; }
.take p { margin-top: 12px; max-width: 68ch; line-height: 1.65; color: var(--ink); }
.take h3 { margin-top: 18px; font-size: 1rem; font-weight: 700; color: var(--navy); }
.take .fine { color: var(--muted); font-size: 0.8125rem; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 32px; font-size: 1.375rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.prose h3 { margin-top: 20px; font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.prose p { margin-top: 10px; line-height: 1.65; }
.prose ul { margin: 10px 0 0; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; line-height: 1.6; }

.grp { margin-top: 30px; }
.grp > h2 { font-size: 1.1875rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grp > h2 a { color: var(--navy); text-decoration: none; }
.grp > h2 a:hover { color: var(--blue); }
.grp > h2 small { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.row .name a { color: inherit; text-decoration: none; }
.row .name a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.row .more { margin-left: auto; font-size: 0.8125rem; font-weight: 600; }

.facts { margin: 18px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: 0.875rem; background: #fafbfd; }
.facts dd { font-size: 0.9375rem; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 2px; } .facts dd { border-top: 0; padding-top: 0; } }

.srcbox { margin-top: 22px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.srcbox .badges { margin-top: 0; }
.srcbox .note-lg { margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); max-width: 66ch; }
.srcbox .actions { margin-top: 18px; }

.claim { margin-top: 30px; padding: 20px 24px; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 10px; }
.claim h2 { font-size: 1.0625rem; font-weight: 800; color: var(--navy); }
.claim p { margin-top: 6px; max-width: 66ch; line-height: 1.55; }
.claim a.btn2 { display: inline-flex; margin-top: 12px; margin-right: 8px; padding: 9px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; background: var(--navy); color: #fff; }
.claim a.btn2.alt { background: #fff; color: var(--navy); border: 1px solid var(--amber-line); }

.faq { margin-top: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.faq summary { padding: 13px 16px; cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { padding: 0 16px 14px; margin: 0; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }

.mapcta { margin: 36px 0 0; padding: 24px 26px; background: var(--navy); color: #fff; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.mapcta h2 { font-size: 1.25rem; font-weight: 800; }
.mapcta p { margin-top: 4px; color: #c5d3e8; max-width: 52ch; }
.mapcta a { padding: 11px 20px; background: var(--blue); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; }
.mapcta a:hover { background: #2f6af0; }

.guides { margin-top: 16px; display: grid; gap: 12px; }
.guides a { display: block; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.guides a:hover { border-color: #b7c3d4; }
.guides strong { display: block; color: var(--navy); font-size: 1.0625rem; }
.guides span { color: var(--ink-2); font-size: 0.875rem; }

.az { margin-top: 16px; columns: 3 220px; column-gap: 28px; }
.az a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; text-decoration: none; break-inside: avoid; }
.az a:hover { color: var(--blue); }
.az a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.dfoot-cols { max-width: 1120px; margin: 0 auto; padding: 36px 24px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; font-size: 0.875rem; }
.dfoot-cols h2 { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 700; color: #fff; }
.dfoot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dfoot-cols a { color: #c5d3e8; text-underline-offset: 3px; }
.dfoot-cols a:hover { color: #fff; }
.site-foot .foot-inner { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
.site-foot .foot-inner.top { border-top: 1px solid rgba(197, 211, 232, 0.22); max-width: 1120px; }

@media (max-width: 640px) {
  .home-hero h1 { font-size: 1.875rem; }
  .dhero h1 { font-size: 1.75rem; }
  .home-search { flex-direction: column; }
  .home-search input { flex: none; width: 100%; }
  .home-search button { width: 100%; }
  .take { padding: 18px; }
}
