.public-page { padding: 48px 24px 80px; }
.public-copy, .provider-detail { max-width: 860px; margin: 0 auto; }
.public-copy h1, .provider-directory > h1 {
  margin: .5rem 0 1.5rem;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.public-copy h2 { margin: 2rem 0 .6rem; }
.public-copy p, .public-copy li, .provider-directory-card p {
  color: var(--fog);
  line-height: 1.65;
}
.public-copy a, .provider-directory a { color: var(--signal); }
.contact-page textarea { display: block; width: 100%; max-width: 100%; padding: .75rem; margin: .5rem 0 1rem; color: var(--paper); background: var(--carbon); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.contact-page label { display: block; margin-top: 1rem; font-weight: 700; }
.contact-page select { min-height: 44px; max-width: 100%; margin: .5rem 0; padding: .5rem; color: var(--paper); background: var(--carbon); border: 1px solid var(--line); }
.contact-page [data-contact-enhancement][hidden], .contact-page [data-contact-open][hidden] { display: none; }
.contact-page [data-contact-copy] { min-height: 44px; padding: .5rem .8rem; margin-inline-start: .5rem; }
body[data-page="resource"] .home-only { display: none; }

/* Provider descriptions contain unbroken hostnames, and pseudo-locale headings expand.
   Wrap text within its column across platform fonts; min-width alone only bounds boxes. */
.provider-directory { max-width: 1120px; margin: 0 auto; overflow-wrap: anywhere; }
.provider-filters {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.directory-primary { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.directory-results { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.directory-results .provider-count { margin: 0; }
.directory-results .filter-reset { align-self: center; }
#advanced-filters { min-width: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#advanced-filters > summary { min-height: 44px; padding: 12px 0; color: var(--paper); font-size: .875rem; cursor: pointer; }
#advanced-filter-count { color: var(--fog); margin-inline-start: 8px; }
.directory-advanced { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 8px 0 16px; }
.provider-filters label {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  color: var(--fog);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: normal;
}
.provider-filters input, .provider-filters select {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}
.provider-filters input { font-weight: 400; }
.provider-count { color: var(--fog); font-size: .875rem; }
.provider-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.provider-directory-list > li[hidden] { display: none; }
.provider-directory-empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--carbon);
  color: var(--fog);
  line-height: 1.65;
}
.provider-directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--family, var(--line));
  background: var(--carbon);
}
.provider-directory-card > div { min-width: 0; }
.provider-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.provider-directory-card h2 { margin: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: 1.1rem; }
.provider-directory-card p { margin: .45rem 0; }
.provider-directory-card small { display: block; margin-top: 8px; color: var(--fog); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.provider-directory-card h2 a { display: inline-flex; align-items: center; min-height: 44px; }

.provider-mark-large { width: 64px; height: 64px; margin-top: 2rem; font-size: .9rem; }
.provider-detail .eyebrow { margin-top: 1.5rem; }
/* The family and category in the eyebrow are links now; they keep the eyebrow's colours. */
.provider-detail .eyebrow a { color: inherit; }
.provider-detail .eyebrow a.destination-family { color: var(--family, var(--fog)); }
.provider-detail dl { display: grid; gap: .6rem; margin-top: 2rem; }
.provider-detail dl div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
/* The list ends the page, so the last row needs a closing edge. */
.provider-detail dl div:last-child { border-bottom: 1px solid var(--line); }
.provider-detail dt { color: var(--fog); font-size: .875rem; font-weight: 700; }
.provider-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
/* Breadcrumbs sit where the back link was: a quiet trail above the mark. */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.breadcrumbs li { color: var(--fog); }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: .5rem; color: var(--fog); }
.breadcrumbs a { display: inline-block; padding: .35rem 0; }
/* The facts block reads as a short definition list; its rows come from the provider record. */
.provider-facts { margin-top: 32px; }
.provider-facts dl { margin-top: 16px; }
.provider-facts ul { margin: 0; padding-inline-start: 24px; }
.provider-facts li + li { margin-top: .25rem; }

/* The similar-sites table: a real table, three columns, fixed layout so it never scrolls
   sideways. Text wraps inside its cell and the dates stay absolute. */
.provider-related { margin-top: 40px; }
.provider-compare { width: 100%; margin-top: 16px; table-layout: fixed; border-collapse: collapse; font-size: .9375rem; }
.provider-compare th, .provider-compare td { padding: .8rem .6rem; text-align: start; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; hyphens: auto; }
.provider-compare thead th { border-top: 0; color: var(--fog); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.provider-compare tbody th { color: var(--paper); font-weight: 700; }
.provider-compare tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.provider-compare td { color: var(--fog); line-height: 1.55; }
.provider-compare th:first-child { width: 34%; padding-inline-start: 0; }
.provider-compare td:last-child { padding-inline-end: 0; }
.compare-site { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: .6rem; align-items: start; }
.compare-name { display: grid; gap: .15rem; min-width: 0; }
.compare-name small { color: var(--fog); font-size: .75rem; font-weight: 400; }
.provider-compare-note { margin-top: 12px; font-size: .875rem; }

/* Questions and answers: plain headings and paragraphs, so a reader and a crawler see the same text. */
.provider-faq { margin-top: 40px; }
.provider-faq h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.provider-faq p, .provider-faq li { overflow-wrap: anywhere; }
.provider-faq ul { margin: 0; padding-inline-start: 24px; }
.help-example-list { display: grid; gap: 24px; padding-inline-start: 24px; }
.help-example-list dl { display: grid; gap: 16px; margin: 16px 0 0; }
.help-example-list dt { font-size: .875rem; font-weight: 700; }
.help-example-list dd { margin: 0; }
.help-example-list code { display: block; max-width: 100%; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--carbon); color: var(--paper); font-size: .875rem; overflow-wrap: anywhere; }

/* Shown only when the browser will not run the module that builds the toolbox. */
.noscript-note {
  margin: 1.25rem 0 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--carbon);
  color: var(--fog);
  font-size: .875rem;
  line-height: 1.55;
}
