/* After-Hours Notary Guide — local static directory. No webfonts. */
:root {
  --paper: #f6f1e8;
  --card: #fffdf8;
  --ink: #15202b;
  --muted: #4f5b66;
  --rule: #d7cfc3;
  --navy: #122033;
  --navy-mid: #1c334c;
  --amber: #b86a12;
  --amber-dark: #8a4e0c;
  --ok: #215c45;
  --focus: #122033;
  --max: 72rem;
  --sans: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
}

a { color: var(--amber-dark); }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 0.5rem;
  background: var(--card);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: var(--navy);
  color: var(--paper);
  padding: 0.9rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
}
.wordmark span { color: #e2b66a; font-weight: 600; }
nav { display: flex; gap: 1.1rem; font-size: 0.92rem; flex-wrap: wrap; }
nav a { color: var(--paper); text-decoration: none; }
nav a:hover { text-decoration: underline; color: #e2b66a; }

.hero, .page-head { padding: 2.4rem 0 1.6rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 3.3vw, 2.55rem); margin: 0 0 0.7rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.lede { font-size: 1.15rem; max-width: 44rem; }
.muted { color: var(--muted); }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 650;
  margin: 0 0 0.45rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.card, .note, .affiliate-cta {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem 1.1rem;
}
.card h2 { margin-top: 0; }
.city-list { list-style: none; padding: 0; margin: 0; }
.city-list li { border-top: 1px solid var(--rule); padding: 0.7rem 0; }
.city-list li:first-child { border-top: 0; }
.city-list a { font-weight: 650; text-decoration: none; color: var(--ink); }
.city-list a:hover { color: var(--amber-dark); text-decoration: underline; }

.checklist { padding-left: 1.15rem; }
.checklist li { margin: 0.35rem 0; }
.locator-list { padding-left: 1.15rem; }
.locator-list li { margin: 0.45rem 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 4px;
  margin: 0.6rem 0 1.3rem;
}
table { width: 100%; border-collapse: collapse; min-width: 48rem; font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); }
th {
  background: #ece4d6;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
td.name { font-weight: 650; min-width: 11rem; }

.affiliate-cta {
  border-left: 4px solid var(--amber);
  margin: 0.2rem 0 1.4rem;
}
.affiliate-cta .slot-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.empty-hours { margin: 0 0 1.2rem; }

.borough-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  padding: 0.5rem 0;
  z-index: 2;
  border-bottom: 1px solid var(--rule);
}
.borough-nav a {
  text-decoration: none;
  background: var(--navy);
  color: var(--paper);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.borough-nav a span {
  opacity: 0.8;
  margin-left: 0.2rem;
}
.borough-nav a:hover { background: var(--navy-mid); color: #e2b66a; }

.filter-label { display: block; font-weight: 650; margin: 1rem 0 0.4rem; }
.filter-label input {
  display: block;
  width: min(32rem, 100%);
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font: inherit;
  background: var(--card);
}

.claim-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.1rem;
  margin: 0.8rem 0 1.6rem;
  max-width: 46rem;
}
.claim-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid label:nth-child(n+7) { grid-column: 1 / -1; }
}
.claim-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 650; font-size: 0.92rem; }
.claim-form input[type="text"],
.claim-form input[type="url"],
.claim-form input[type="email"],
.claim-form input[type="tel"] {
  font: inherit;
  font-weight: 400;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}
.claim-form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.9rem 0;
  font-weight: 400;
}
.claim-form .check input { margin-top: 0.25rem; }
.claim-form button {
  background: var(--navy);
  color: var(--paper);
  border: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}
.claim-form button:hover { background: var(--navy-mid); }

.prose p { max-width: 46rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  background: var(--navy);
  color: #d5d0c6;
  margin-top: 3rem;
  padding: 1.5rem 0 2.4rem;
  font-size: 0.9rem;
}
.site-footer a { color: #e2b66a; }
.site-footer p { max-width: 48rem; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.6rem 0 0;
}

@media (max-width: 700px) {
  table { min-width: 0; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr {
    display: block;
  }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    border-bottom: 1px solid var(--rule);
    padding: 0.7rem 0.4rem;
  }
  .table-wrap td {
    border: 0;
    padding: 0.15rem 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
