/* PCOS Provider Directory — staging scaffold stylesheet
   Mobile-first, WCAG 2.1 AA habits: visible focus, sufficient contrast,
   responsive type, reduced-motion respect. No build step. */

:root {
  --ink: #1c2430;
  --ink-soft: #445062;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --line: #c9d1da;
  --accent: #0f766e;       /* links on white: 7.0:1 */
  --accent-dark: #115e59;
  --tag-bg: #fdf3d7;
  --tag-ink: #5c4300;
  --sample-bg: #fdeeee;
  --sample-ink: #7a1f1f;
  --radius: 8px;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
}
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }

/* Main content */
main { padding: 1.5rem 0 2.5rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; }

/* Browse grids */
.browse-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 36rem) {
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 56rem) {
  .browse-grid { grid-template-columns: repeat(3, 1fr); }
  .browse-grid.states { grid-template-columns: repeat(4, 1fr); }
}
.browse-grid a {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--bg-soft);
}
.browse-grid a:hover { border-color: var(--accent); text-decoration: underline; }

/* Listing cards */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: var(--bg);
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .practice { font-weight: 600; margin-bottom: 0.2rem; }
.card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.9rem;
  margin: 0.6rem 0;
}
.card dt { font-weight: 600; color: var(--ink-soft); }
.card dd { margin: 0; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  border: 1px solid currentColor;
}
.tag-sponsored { background: var(--tag-bg); color: var(--tag-ink); }

.card[data-sample="true"] {
  border: 2px dashed var(--sample-ink);
  background: var(--sample-bg);
}
.tag-sample { background: #fff; color: var(--sample-ink); }

.note {
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.7rem 1rem;
  margin: 1rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* Profile */
.profile-meta {
  display: grid;
  gap: 0.2rem 1rem;
  margin: 1rem 0;
}
@media (min-width: 36rem) {
  .profile-meta { grid-template-columns: auto 1fr; }
}
.profile-meta dt { font-weight: 600; color: var(--ink-soft); }
.profile-meta dd { margin: 0 0 0.4rem; }

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.98rem;
}
caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
thead th { background: var(--bg-soft); }

/* Forms */
form { max-width: 40rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink-soft);
  border-radius: 4px;
  font: inherit;
  background: #fff;
}
.hint { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.2rem; }
button[type="submit"] {
  font: inherit;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button[type="submit"]:hover { background: var(--accent-dark); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.25rem 0 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0 0 0.8rem;
  padding: 0;
}


/* Design layer — PCOSAA-register warmth, teal accent (Nov 9 design direction) */
.hero-line { color: var(--accent-dark); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.85rem; margin: 1.2rem 0 0.2rem; }
.stat-band { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1.6rem 0; }
.stat-band > div { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: var(--radius);
  padding: 0.9rem 1rem; }
.stat-band strong { display: block; font-size: 1.5rem; color: var(--accent-dark); }
.stat-band span { color: var(--ink-soft); font-size: 0.92rem; }
@media (min-width: 44rem) { .stat-band { grid-template-columns: repeat(3, 1fr); } }
.explainer { background: var(--bg-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 0.4rem 1.1rem 0.8rem; margin: 1.6rem 0; }
.start-here ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.start-here li { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 1rem; }
.glossary dt { font-weight: 700; margin-top: 1rem; color: var(--accent-dark); }
.glossary dd { margin: 0.2rem 0 0 0; max-width: 44rem; }
.find-results .find-pick { display: block; width: 100%; text-align: left; margin: 0.3rem 0;
  background: #f0fdfa; border: 1px solid #99f6e4; border-radius: var(--radius);
  padding: 0.55rem 0.8rem; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.1rem 0; }
legend { font-weight: 700; color: var(--accent-dark); padding: 0 0.4rem; }
:root { --bg: #fffaf6; --coral: #e07856; --blush: #f7e3da; }
body { background: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); }
h1, h2, .hero-display { font-family: Georgia, 'Times New Roman', serif; }
.hero-display { font-size: 1.9rem; line-height: 1.25; color: var(--accent-dark); margin: 0.4rem 0 0.6rem; font-weight: 700; }
.hero-img { width: 100%; height: auto; border-radius: 0.9rem; margin-top: 1rem; }
.hero-search { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.9rem; margin-top: 1rem; }
.hero-search label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; flex: 1 1 12rem; }
@media (min-width: 44rem) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.type-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 44rem) { .type-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .type-cards { grid-template-columns: repeat(3, 1fr); } }
.type-card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--coral); border-radius: 0.9rem; overflow: hidden; color: var(--ink); text-decoration: none; }
.type-card img { width: 100%; height: 11rem; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 43.99rem) { .type-card img { height: 15rem; object-position: center 15%; } }
.type-card .type-name { display: block; font-weight: 800; padding: 0.7rem 0.9rem 0.1rem; }
.type-card .type-blurb { display: block; padding: 0 0.9rem 0.8rem; color: var(--muted); }
.steps { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 44rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.9rem; }
.step .step-n { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; width: 1.7rem; height: 1.7rem; text-align: center; line-height: 1.7rem; font-weight: 800; }
.featured-strip { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 44rem) { .featured-strip { grid-template-columns: repeat(2, 1fr); } }
.empty-state { background: #fff; border: 1px dashed var(--accent); border-radius: 0.9rem; padding: 1rem; }
.next-steps ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; list-style: none; padding: 0; margin: 0.2rem 0 0.8rem; }
.footer-h { font-size: 1rem; margin: 0.6rem 0 0.2rem; }
.search-results { list-style: none; padding: 0; }
.search-results li { background: #fff; border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; }
.providers-band { background: var(--blush); border-radius: 0.9rem; padding: 1rem 1.1rem; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.find-btn { display: none; }
@media (max-width: 43.99rem) {
  body.header-compact .site-header .brand-sub { display: none; }
  body.header-compact .site-header nav a { padding: 0.15rem 0.45rem; font-size: 0.92rem; }
  body.header-compact .find-btn { display: inline-block; margin-top: 0.3rem; }
}


/* Share row (Serge's order, Nov 9) — no share counts anywhere */
.share-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
  margin: 1.1rem 0; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.share-row .share-label { font-weight: 700; color: var(--accent-dark); margin-right: 0.2rem; }
.share-btn { display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--accent);
  border-radius: 999px; background: #fff; color: var(--accent-dark); font-size: 0.92rem;
  text-decoration: none; cursor: pointer; }
.share-btn:hover, .share-btn:focus-visible { background: #f0fdfa; }
