/* ZipCodeRentGuide — shared styles for the local static build */
:root {
  --ink: #1a1f29;
  --muted: #44505c;
  --bg: #f4efe6;
  --paper: #fffdf8;
  --line: #d4cdc0;
  --accent: #123a44;
  --link: #0b3d8c;
  --link-visit: #4a2d7a;
  --notice: #3b1f1f;
  --notice-bg: #f8ece8;
  --notice-line: #b8573c;
  --ok-line: #2a6a4f;
  --focus: #0b3d8c;
  --max: 72rem;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Calibri, "Liberation Sans", system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
header.site {
  background: var(--accent);
  color: #f6f3ec;
  border-bottom: 4px solid #c9783a;
}
header.site .wrap, footer.site .wrap, main .wrap, nav.crumbs .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
header.site .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}
header.site a { color: #fff; }
.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  font-size: 1.15rem;
}
.brand:hover, .brand:focus { text-decoration: underline; }
header.site nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
header.site nav a { text-decoration: none; }
header.site nav a:hover, header.site nav a:focus { text-decoration: underline; }
.zip-lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.zip-lookup label { font-size: 0.9rem; }
.zip-lookup input[type="text"] {
  width: 7.5rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid #8aa0a6;
  border-radius: 3px;
  font: inherit;
}
.zip-lookup button, .btn {
  font: inherit;
  background: #c9783a;
  color: #1a1f29;
  border: 0;
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  font-weight: 650;
  cursor: pointer;
}
.zip-lookup button:hover, .btn:hover { filter: brightness(1.05); }
.zip-error { color: #ffd8c8; font-size: 0.85rem; width: 100%; margin: 0; }
nav.crumbs {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  padding: 0.45rem 0;
}
nav.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.4rem;
  color: var(--muted);
}
main { flex: 1; padding: 1.25rem 0 2.5rem; }
h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.25;
  color: var(--accent);
  font-weight: 650;
}
h1 { font-size: 1.85rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.15rem 0 0.4rem; }
p { margin: 0 0 0.85rem; }
a { color: var(--link); }
a:visited { color: var(--link-visit); }
a:focus, button:focus, input:focus, select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.lede { font-size: 1.05rem; }
.meta-line, .fine {
  color: var(--muted);
  font-size: 0.95rem;
}
.box, .explainer, .reeval-notice, .callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ok-line);
  padding: 0.9rem 1rem;
  margin: 0 0 1.1rem;
}
.reeval-notice {
  border-left-color: var(--notice-line);
  background: var(--notice-bg);
  color: var(--notice);
}
.reeval-notice h2, .explainer h2, .box h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.grid-states, .card-list, .plain-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.grid-states {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.4rem 0.75rem;
}
.card-list li, .plain-list li { margin: 0 0 0.25rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.1rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-weight: 650;
  margin: 0 0 0.4rem;
  color: var(--accent);
}
th, td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
th { background: #e8efe8; }
td.num, th.num { text-align: right; }
tr.flagged { background: #f8ece8; }
.filter-bar {
  margin: 0 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}
.filter-bar input[type="search"] {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: min(100%, 18rem);
}
.columns-2 {
  columns: 16rem 2;
  column-gap: 1.5rem;
}
.columns-2 li { break-inside: avoid; }
footer.site {
  background: var(--accent);
  color: #e9efef;
  padding: 1.1rem 0 1.4rem;
  font-size: 0.92rem;
}
footer.site a { color: #f3d3b0; }
footer.site p { margin: 0 0 0.4rem; }
.disclaimer { font-weight: 650; }
@media (max-width: 40rem) {
  h1 { font-size: 1.5rem; }
  header.site .bar { padding: 0.7rem 0 0.85rem; }
}
