
:root {
  --ink: #12202a;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --line: #d9d0c1;
  --muted: #5c675c;
  --accent: #0f6b4c;
  --gold: #8a5a12;
  --link: #0f6b4c;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--link); text-decoration-underline-offset: 2px; }
a:hover { color: #0a4c36; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky; top: 0; z-index: 5;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand svg { display: block; }
nav a { margin-left: 1rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--accent); }
h1, h2, .serif { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.03em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 .6rem; }
.lede { font-size: 1.08rem; max-width: 42rem; }
.muted { color: var(--muted); }
.disclaimer, .thin {
  background: #efe6d4;
  border-left: 3px solid var(--gold);
  padding: .7rem 1rem;
  margin: 1.2rem 0;
}
.controls { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1rem; }
.controls input, .controls select {
  font: inherit; padding: .5rem .7rem; border: 1px solid var(--line);
  background: var(--card); border-radius: 4px; min-width: 10rem;
}
.controls input { flex: 1; min-width: 16rem; }
.stats { font-size: .95rem; color: var(--muted); margin-bottom: 0.6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #f3eee4; position: sticky; top: 0; cursor: pointer; white-space: nowrap; }
th[aria-sort="ascending"]::after { content: " \25b2"; font-size: .7em; }
th[aria-sort="descending"]::after { content: " \25bc"; font-size: .7em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.rank { color: var(--muted); font-variant-numeric: tabular-nums; }
tr:hover td { background: #f3faF6; }
.money { font-weight: 700; color: var(--gold); }
.figure { font-family: Fraunces, Georgia, serif; font-size: clamp(2.2rem, 6vw, 4rem); color: var(--gold); letter-spacing: -.04em; margin: .2rem 0 0.4rem; line-height: 1; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.fact { background: var(--card); border: 1px solid var(--line); padding: .7rem .8rem; border-radius: 6px; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fact dd { margin: .15rem 0 0; font-weight: 600; }
.neighbors { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.neighbors a { text-decoration: none; border: 1px solid var(--line); padding: .7rem .9rem; background: var(--card); border-radius: 6px; flex: 1; color: inherit; }
.neighbors a:hover { border-color: var(--accent); }
.neighbors .dir { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
footer.site { margin-top: 3rem; border-top: 1px solid var(--line); padding: 1.4rem 0 2.4rem; color: var(--muted); font-size: .9rem; }
.hero { padding: 1.6rem 0 0.4rem; }
.pill { display: inline-block; font-size: .78rem; border: 1px solid var(--line); padding: .1rem .45rem; border-radius: 99px; color: var(--muted); }
.empty { padding: 1.2rem; color: var(--muted); }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .controls input { min-width: 100%; }
}
