/* package fonts (woff2, copied into dist/assets/fonts) */
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/public-sans-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/public-sans-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/public-sans-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/public-sans-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/public-sans-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/public-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/public-sans-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/public-sans-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/public-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 900; font-display: swap; src: url("/assets/fonts/public-sans-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/public-sans-latin-900-normal.woff2") format("woff2"); }
/* generated block: satellite design tokens (light) */
:root {
  --bg-light-base: #f3ecdd;
  --fg-light-base-body: #1c2430;
  --fg-light-base-heading: #17325a;
  --fg-light-base-muted: #4a5262;
  --fg-light-base-link: #1d4f91;
  --fg-light-base-inverse: #26303f;
  --bg-light-card: #e6d7b5;
  --fg-light-card-body: #1c2430;
  --fg-light-card-heading: #17325a;
  --fg-light-card-muted: #4a5262;
  --fg-light-card-link: #1d4f91;
  --fg-light-card-inverse: #26303f;
  --bg-light-elevated: #fffdf7;
  --fg-light-elevated-body: #1c2430;
  --fg-light-elevated-heading: #17325a;
  --fg-light-elevated-muted: #4a5262;
  --fg-light-elevated-link: #1d4f91;
  --fg-light-elevated-inverse: #26303f;
  --brand-light-accent: #1d4f91;
  --brand-light-accent-hover: #143a6c;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #1d4f91;
  --border-light-default: #5b6b82;
  --border-light-subtle: #c9b78f;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
/* component rules: semantic carriers and renderer-owned behaviours */
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* package stylesheet (verbatim; model-owned rules win by source order) */
/* Passaic County Pain Care: regional resource directory */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg-heading);
}

h1 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.6rem); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

:root { --link-mark: var(--border-light-subtle); }
.bg-surface-card { --link-mark: var(--bg-light-elevated); }

a {
  font-family: 'Public Sans', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--link-mark), var(--link-mark));
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 94%;
}
a:hover { background-size: 100% 0.62em; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0 0 1.5rem; }

.skip-link:focus { z-index: 10; }

/* ---------- Masthead ---------- */

.masthead {
  border-top: 6px solid var(--brand-light-accent);
  position: relative;
  border-bottom: 1px solid var(--border-light-default);
  padding: 0 1rem;
}

.masthead-bar {
  max-width: 72rem;
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  background-image: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
}

.brand .site-logo { width: 36px; height: 36px; }

.brand-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.masthead-nav { display: flex; align-items: center; }

.masthead-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.masthead-links li { margin: 0; }

.masthead-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  background-image: none;
  border-bottom: 3px solid transparent;
}

.masthead-links a:hover { border-bottom-color: var(--brand-light-accent); }

.site-menu { width: 100%; }

.site-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1rem;
  font-weight: 700;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  cursor: pointer;
}

.site-menu > summary::-webkit-details-marker { display: none; }

.menu-icon {
  display: inline-block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-menu[open] .menu-icon { box-shadow: none; }

.site-menu ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  list-style: none;
  border-bottom: 4px solid var(--brand-light-accent);
}

.site-menu li { margin: 0; border-bottom: 1px solid var(--border-light-subtle); }

.site-menu li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  background-image: none;
}

@media (max-width: 71.99rem) {
  .masthead-bar { flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 0.5rem; }
  .masthead-nav { flex: 1 1 100%; margin: 0 -1rem; }
}

@media (min-width: 72rem) {
  .masthead-links { display: flex; }
  .site-menu { display: none; }
}

/* ---------- Frame ---------- */

.page-frame {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  font-size: 0.9rem;
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 0.5rem; color: var(--fg-muted); }

.prose { max-width: 42rem; }
.prose p, .prose li { line-height: 1.7; }

.photo-hero {
  margin: 0 0 1.75rem;
  border: 1px solid var(--border-light-default);
}

.photo-hero img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.photo-inline img { width: 100%; border: 1px solid var(--border-light-subtle); }

/* ---------- Home: directory ---------- */

.directory-hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 2px solid var(--brand-light-accent);
}

.directory-intro h1 {
  font-size: 1rem;
  font-family: 'Public Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}

.directory-headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.directory-line { max-width: 38rem; font-size: 1.1rem; }

.county-figure {
  margin: 0;
  justify-self: start;
  color: var(--brand-light-accent);
}

.county-outline { width: 9rem; height: auto; }
.county-outline path { fill: var(--bg-light-card); }

.county-caption { margin-top: 0.4rem; font-size: 0.9rem; }

@media (min-width: 48rem) {
  .directory-hero { grid-template-columns: 1fr auto; align-items: end; }
  .county-outline { width: 12rem; }
  .county-figure { justify-self: end; }
}

.option-index { padding: 2rem 0 1rem; }
.option-index h2 { margin-top: 0; }

.option-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-light-default);
  border-left: 1px solid var(--border-light-default);
}

.option-tile {
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  border-right: 1px solid var(--border-light-default);
  border-bottom: 1px solid var(--border-light-default);
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  align-content: start;
}

.option-initial {
  grid-row: span 2;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brand-light-accent);
}

.option-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  min-height: 24px;
}

.option-note { margin: 0; font-size: 0.95rem; line-height: 1.55; }

@media (min-width: 44rem) {
  .option-tiles { grid-template-columns: repeat(2, 1fr); }
}

.home-prose { padding-top: 1rem; }

/* ---------- Topic hub: bordered index ---------- */

.hub-head { padding: 2rem 0 1.25rem; border-bottom: 2px solid var(--brand-light-accent); margin-bottom: 1.75rem; }

.hub-layout { display: grid; gap: 2rem; }

@media (min-width: 62rem) {
  .hub-layout { grid-template-columns: minmax(0, 42rem) minmax(16rem, 1fr); align-items: start; }
}

.hub-prose ul,
.hub-index ul {
  list-style: none;
  padding: 0;
  border: 1px solid var(--border-light-default);
}

.hub-prose ul li,
.hub-index li {
  margin: 0;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light-default);
}

.hub-prose ul li:last-child,
.hub-index li:last-child { border-bottom: 0; }

.hub-prose ul li a { font-weight: 600; }

.hub-index { border-top: 4px solid var(--brand-light-accent); padding: 1.25rem; }
.hub-index-title { margin: 0 0 0.9rem; font-size: 1.15rem; }
.hub-index ul { margin: 0; }
.hub-index li a { display: inline-flex; min-height: 24px; align-items: center; }

/* ---------- Article: summary table + numbered steps ---------- */

.article-head { padding: 2rem 0 1.25rem; }

.summary-table {
  width: 100%;
  max-width: 42rem;
  border-collapse: collapse;
  margin: 0 0 2rem;
  border: 1px solid var(--border-light-default);
  font-size: 0.95rem;
}

.summary-table caption {
  caption-side: top;
  text-align: left;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  padding: 0 0 0.5rem;
}

.summary-table th,
.summary-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-light-default);
}

.summary-table th { width: 9.5rem; font-family: 'Public Sans', Arial, sans-serif; font-weight: 700; }

.numbered { counter-reset: step; }

.numbered h2 {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light-subtle);
}

.numbered h2::before {
  content: counter(step);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--brand-light-accent);
  border-radius: 50%;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-light-accent);
}

/* ---------- About: public notice ---------- */

.notice-band {
  margin: 1.5rem 0 2rem;
  background: var(--brand-light-accent);
  border-bottom: 6px solid var(--bg-light-card);
}

.notice-band-inner { padding: 2.25rem 1.5rem; }

.notice-band h1 { color: var(--brand-light-on-accent); max-width: 24ch; }

.notice-prose { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.02rem; }
.notice-prose p, .notice-prose li { line-height: 1.85; }

/* ---------- Contact: government form ---------- */

.form-head { padding: 2rem 0 1.25rem; border-bottom: 2px solid var(--brand-light-accent); margin-bottom: 1.75rem; }

.form-layout { display: grid; gap: 2rem; }

@media (min-width: 62rem) {
  .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

.civic-form {
  padding: 1.5rem;
  border: 1px solid var(--border-light-default);
}

.civic-fieldset {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 0.25rem;
  border: 1px solid var(--border-light-default);
}

.civic-fieldset legend {
  padding: 0 0.4rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
}

.civic-field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }

.civic-field label { font-weight: 600; }

.req { font-weight: 400; font-size: 0.9rem; }

.civic-field input,
.civic-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--bg-light-elevated);
  border: 1px solid var(--border-light-default);
  border-radius: 2px;
}

.civic-field textarea { resize: vertical; }

.civic-field input:focus-visible,
.civic-field textarea:focus-visible { outline: 3px solid var(--focus-light-ring); outline-offset: 1px; }

.civic-submit {
  min-height: 48px;
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 700;
  color: var(--brand-light-on-accent);
  background: var(--brand-light-accent);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}

.civic-submit:hover { background: var(--brand-light-accent-hover); }
.civic-submit:focus-visible { outline: 3px solid var(--focus-light-ring); outline-offset: 3px; }

/* ---------- Thank you: receipt ---------- */

.receipt-page { padding: 2.5rem 0 1rem; }

.receipt {
  max-width: 40rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-light-default);
  border-top: 6px solid var(--brand-light-accent);
}

.receipt-head { padding-bottom: 1rem; border-bottom: 1px dashed var(--border-light-default); }
.receipt-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }

.receipt-lines { margin: 0; padding: 0.75rem 0; border-bottom: 1px dashed var(--border-light-default); }

.receipt-row { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.3rem 0; }
.receipt-row dt { font-weight: 600; }
.receipt-row dd { margin: 0; }

.receipt-prose { padding-top: 1rem; }

.receipt-return { margin: 0.5rem 0 0; font-weight: 700; }
.receipt-return a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Colophon ---------- */

.colophon { border-top: 4px solid var(--brand-light-accent); padding: 2rem 1rem; }

.colophon-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.colophon-line { margin: 0; max-width: 40rem; }

.colophon-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.colophon-links li { margin: 0; }
.colophon-links a { display: inline-flex; min-height: 44px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Section photo cards: the renderer pads the section, the card needs its own inset */
section[data-section][style] > .bg-surface-card { padding: 1.5rem 1.75rem 1.25rem; border-radius: 2px; }
.colophon-stack { display: grid; gap: 0.25rem; }
.colophon-name { margin: 0; font-weight: 700; letter-spacing: 0.02em; }

/* Pinned header per 03-ia/chrome-plan.json; it unpins while the phone menu is open */
header.masthead { position: sticky; top: 0; z-index: 40; }
header.masthead:has(.site-menu[open]) { position: static; }
html { scroll-padding-top: 131px; }
