/* Static SEO landing pages (per local authority + index). No map libraries:
   plain article styling sharing the map app's palette. */
:root {
  --ink: #1c2530; --muted: #5c6b7a; --border: rgba(0, 0, 0, 0.12);
  --blue: #2171b5; --blue-dark: #08519c; --bg: #f7fbff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink); line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -0.2px; }
.site-nav a { font-size: 14px; font-weight: 600; margin-left: 18px; text-decoration: none; }

main.wrap { padding-bottom: 48px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin: 20px 0 6px; }
.crumbs a { color: var(--muted); }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.5px; margin: 6px 0 12px; }
.lead { font-size: 17px; margin: 0 0 24px; }
p { margin: 0 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.stat { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--bg); }
.stat .num { display: block; font-size: 26px; font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.stat .lbl { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

.bars { margin: 0 0 26px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.bar-row .bn { flex: 0 0 130px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1 1 auto; background: #eef3f8; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.bar-row.uk .bar-fill { background: #9ecae1; }
.bar-row .bv { flex: 0 0 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.cta { margin: 26px 0; }
.cta a { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 10px; }
.cta a:hover { background: var(--blue-dark); color: #fff; }

.similar { margin: 28px 0; }
.similar h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 10px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.similar li a { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; font-size: 13px; text-decoration: none; color: var(--ink); }
.similar li a:hover { border-color: var(--blue); color: var(--blue-dark); }
.similar li .p { color: var(--muted); }

/* Topic hub pages + per-area "explore" deep-links */
.hub-h { font-size: 19px; margin: 28px 0 8px; }
.hub-cross { font-size: 14px; margin: 0; }
.explore { margin: 28px 0; }
.explore > h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 4px; }
.explore-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.explore-links li a { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 15px; }
.explore-links li a:hover { border-color: var(--blue); color: var(--blue-dark); }

.notes { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 16px; font-size: 12px; color: var(--muted); }
.notes a { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; font-size: 12.5px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Index page */
.idx-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 26px; }
.idx-top h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 8px; }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-size: 14px; }
.rank-list li::before { counter-increment: r; content: counter(r) ". "; color: var(--muted); }
.rank-list li a { flex: 1 1 auto; text-decoration: none; }
.rank-list li .p { color: var(--blue-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.az-head { font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 30px 0 4px; }
.table-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

/* Full ranked table (/areas/) */
.table-wrap { overflow-x: auto; margin: 0 0 30px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table caption { caption-side: bottom; text-align: left; font-size: 12px; color: var(--muted); padding: 8px 0 0; }
.rank-table th, .rank-table td { padding: 6px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-table thead th { position: sticky; top: 0; background: #fff; cursor: pointer; user-select: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); border-bottom: 2px solid var(--border); }
.rank-table thead th[data-asc="1"]::after { content: " \2191"; }
.rank-table thead th[data-asc="0"]::after { content: " \2193"; }
.rank-table thead th.name, .rank-table tbody th { text-align: left; }
.rank-table tbody th { font-weight: 500; }
.rank-table tbody th a { text-decoration: none; }
.rank-table td.r { color: var(--muted); }

/* Q&A blocks (hubs + area pages) */
.faq-q { font-size: 16px; margin: 20px 0 6px; }

@media (max-width: 620px) {
  h1 { font-size: 25px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 10px; }
  .stat .num { font-size: 22px; }
  .stat .lbl { margin-top: 0; }
  .idx-top { grid-template-columns: 1fr; gap: 18px; }
  .rank-table th, .rank-table td { padding: 6px 6px; }
  .bar-row .bn { flex-basis: 100px; }
}
