/* client/public/seo.css
 * Standalone styles for the prerendered /guides pages (server/seo/templates.ts).
 * NOT the Tailwind bundle: Tailwind purges classes that only appear in template literals, and
 * its built filename is hashed. Tokens are the app's light theme (client/src/index.css) and the
 * hero/footer gradients from client/src/pages/home.tsx + client/src/lib/gate.ts. */

:root {
  --background: hsl(40 33% 98%);
  --foreground: hsl(30 20% 10%);
  --muted: hsl(36 15% 92%);
  --muted-foreground: hsl(30 8% 45%);
  --border: hsl(36 18% 86%);
  --card: hsl(40 30% 97%);
  --primary: hsl(34 62% 50%);
  --link: hsl(30 55% 32%);
  --radius: 0.625rem;
  --shadow: 0px 4px 8px -2px hsl(30 20% 20% / 0.08);
  --warm: linear-gradient(135deg, hsl(44 45% 92%), hsl(34 55% 88%), hsl(36 40% 90%));
  --footer: linear-gradient(135deg, hsl(34 55% 78%), hsl(44 50% 82%));
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--foreground); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; border-radius: var(--radius); z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid hsl(36 18% 86% / 0.5); background: var(--background); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--foreground); }
.brand:hover { opacity: 0.8; color: var(--foreground); }
.brand svg { width: 1.5rem; height: 1.5rem; color: var(--primary); flex-shrink: 0; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.brand-sub { display: block; font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.2; }
.header-link { font-size: 0.875rem; font-weight: 600; text-decoration: none; }

/* Main */
main { padding: 1.5rem 0 3rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 1.25rem; padding: 0; font-size: 0.8125rem; color: var(--muted-foreground); }
.crumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--border); }
.crumbs a { color: var(--muted-foreground); }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.375rem; }

.answer { font-size: 1.125rem; line-height: 1.55; }
.note { background: hsl(44 45% 92%); border-left: 3px solid var(--primary); padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9375rem; }

/* The hard numbers */
.facts { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 0.125rem; padding: 0.75rem 1rem; }
.facts > div + div { border-top: 1px solid var(--border); }
.facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; font-weight: 600; }

.verified { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted-foreground); }
.verified p { margin: 0 0 0.375rem; }

/* CTA into the lookup at / */
.cta { margin: 2.5rem 0; padding: 1.5rem; border-radius: var(--radius); background: var(--warm); border: 1px solid var(--border); box-shadow: var(--shadow); }
.cta h2 { margin-top: 0; }
.button { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.75rem; background: var(--foreground); color: var(--background); font-weight: 600; text-decoration: none; }
.button:hover { opacity: 0.9; color: var(--background); }

.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 0.5rem; }

/* Hub */
.next { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--warm); border: 1px solid var(--border); }
.next h2 { margin: 0 0 0.25rem; font-size: 0.875rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
.next-date { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.next ul { margin-bottom: 0.75rem; }
.updated { font-size: 0.8125rem; color: var(--muted-foreground); margin: 0; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.guide-list a { font-weight: 600; }
.guide-list p { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--muted-foreground); }
.deadlines { list-style: none; padding: 0; }
.deadlines li { padding: 0.875rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.deadlines p { margin: 0; }
.deadlines .when { font-weight: 700; }
.deadlines .detail { font-size: 0.9375rem; }
.deadlines .src { font-size: 0.8125rem; color: var(--muted-foreground); }

/* Footer */
.site-footer { background: var(--footer); border-top: 1px solid hsl(36 18% 86% / 0.5); font-size: 0.875rem; }
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2rem; }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; margin: 0 0 1.25rem; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--foreground); }
.site-footer p { color: hsl(30 20% 10% / 0.75); }
.site-footer .fine { font-size: 0.75rem; margin: 0; }

@media (min-width: 640px) {
  .wrap { padding: 0 1.5rem; }
  h1 { font-size: 2.125rem; }
  .facts > div { grid-template-columns: 13rem 1fr; gap: 1rem; align-items: baseline; }
}

/* /zip index table (SEO Phase 4). Scrolls sideways inside its box on narrow phones. */
.table-wrap { margin: 1.5rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.zips { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.zips caption { text-align: left; padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.zips th, .zips td { padding: 0.5rem 0.75rem; border-top: 1px solid var(--border); text-align: right; white-space: nowrap; }
.zips th:first-child { text-align: left; }
.zips thead th { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.zips tfoot th, .zips tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
