/* Prolotherapy Portland — earthy sage & terracotta, rounded and friendly */
:root {
  color-scheme: only light;

  /* greens — --sage is a DECORATIVE fill/border only (3.7:1 on white, 3.1:1 on mist).
     Anything that carries text uses --sage-deep / --sage-panel. */
  --sage: #6b8e5e;
  --sage-deep: #4f6f45;      /* text on light + solid fill under white text */
  --sage-darkest: #3b5433;   /* hover fill under white text */
  --sage-panel: #43603a;     /* big CTA panel under white + --sage-pale text */
  --sage-pale: #dce8d5;      /* body copy on --sage-panel */
  --sage-mist: #e8eee4;

  /* terracottas — --terra is a DECORATIVE fill only.
     --terra-deep carries white text, --terra-text carries terracotta text on light. */
  --terra: #c96f4a;
  --terra-deep: #a85835;
  --terra-darkest: #833f22;
  --terra-text: #9a4f2e;

  --cream: #faf7f2;
  --ink: #33402e;
  --clay: #6b6357;           /* secondary copy — darkened from #7d7466 */
  --line: #e4ddd1;
  --font: "Nunito", -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--cream); color: var(--ink); line-height: 1.7; overflow-wrap: break-word; }
.inner { max-width: 960px; margin: 0 auto; padding: 0 1.4rem; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
a { color: var(--sage-deep); }
p { margin-bottom: 1rem; }
.leaf { color: var(--terra); }
img, svg { max-width: 100%; height: auto; }

/* skip link — hidden until focused, never display:none */
.skip-link {
  position: absolute; top: 0; left: -9999px; z-index: 999;
  background: var(--sage-deep); color: #fff;
  font-weight: 800; font-size: .95rem; line-height: 1.2;
  padding: .85rem 1.35rem; border-radius: 0 0 1rem 0;
  text-decoration: none; white-space: nowrap;
}
.skip-link:focus { left: 0; outline: 3px solid var(--ink); outline-offset: 2px; }

/* focus-visible — dark ring on light ground, white ring on dark ground */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
details:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.cta-nest a:focus-visible,
.cta-nest .btn:focus-visible,
.footer a:focus-visible { outline-color: #fff; }

/* header */
.header { background: var(--cream); border-bottom: 2px dashed var(--line); }
.header .inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand, .foot-brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.header nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.header nav a { text-decoration: none; color: var(--clay); font-weight: 700; font-size: .93rem; }
.header nav a:hover { color: var(--sage-deep); }
.pill-cta { background: var(--terra-deep); color: #fff !important; padding: .5rem 1.15rem; border-radius: 999px; }
.pill-cta:hover { background: var(--terra-darkest); }

/* hero */
.hero { text-align: center; padding: 4rem 1rem 3.4rem; background: var(--sage-mist); border-radius: 0 0 3rem 3rem; margin: 0 -1.4rem; }
.hero .bug { display: inline-block; background: #fff; color: var(--sage-deep); font-weight: 800; font-size: .8rem; padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; border: 1.5px solid var(--sage); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 760px; margin: 0 auto 1.1rem; }
.hero .lede { font-size: 1.13rem; color: var(--clay); max-width: 620px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; text-decoration: none; font-weight: 800; padding: .8rem 1.6rem; border-radius: 999px; font-size: .95rem; }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-darkest); }
.btn-secondary { border: 2px solid var(--sage); color: var(--sage-deep); }
.btn-secondary:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* sections */
section { padding: 2.9rem 0; }
.sprout { color: var(--terra-text); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; }
section h2 { font-size: 1.85rem; margin-bottom: 1rem; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; }

.bloom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.bloom { background: #fff; border-radius: 1.4rem; padding: 1.5rem; border: 1.5px solid var(--line); }
.bloom .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .8rem; background: var(--sage-mist); color: var(--sage-deep); font-weight: 800; }
.bloom h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.bloom p { font-size: .91rem; color: var(--clay); margin: 0; }

.path { margin-top: 1.5rem; display: grid; gap: .9rem; }
.path-step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; background: #fff; border-radius: 1.2rem; padding: 1.15rem 1.3rem; border: 1.5px solid var(--line); }
.path-step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--terra-deep); color: #fff; font-weight: 800; display: grid; place-items: center; }
.path-step h3 { font-size: 1.03rem; margin-bottom: .2rem; }
.path-step p { font-size: .92rem; color: var(--clay); margin: 0; }

.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 1.1rem; padding: 1rem 1.3rem; margin-bottom: .8rem; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: var(--clay); font-size: .95rem; }

.cta-nest { background: var(--sage-panel); border-radius: 2rem; color: #fff; text-align: center; padding: 3rem 2rem; margin: 1.5rem 0 3.2rem; }
.cta-nest h2 { color: #fff; }
.cta-nest p { color: var(--sage-pale); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-nest .btn-primary { background: #fff; color: var(--sage-deep); }
.cta-nest .btn-primary:hover { background: var(--sage-pale); color: var(--sage-darkest); }

/* articles */
.articles-hero { padding: 3rem 0 .8rem; max-width: 720px; }
.articles-hero h1 { font-size: 2.2rem; margin-bottom: .7rem; }
.articles-hero p { color: var(--clay); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 0 3.2rem; }
.post-card { background: #fff; border: 1.5px solid var(--line); border-radius: 1.4rem; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--sage); transform: translateY(-3px); }
.post-date { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--terra-text); margin-bottom: .4rem; }
.post-card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-teaser { font-size: .91rem; color: var(--clay); flex: 1; }
.post-more { font-weight: 800; color: var(--sage-deep); font-size: .88rem; }

/* article page */
.article-page { max-width: 720px; margin: 0 auto; padding: 3rem 0; }
.article-eyebrow { color: var(--terra-text); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.article-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .5rem 0; }
.article-date { color: var(--clay); font-size: .9rem; margin-bottom: 1.8rem; }
.article-date time { color: inherit; font-weight: 700; white-space: nowrap; }

/* excerpt is a <blockquote> — reset UA margin/indent, read as quoted material
   but keep long-form body-copy comfort */
.article-body {
  margin: 0;
  padding: 1.5rem 1.6rem .6rem;
  font-size: 1.05rem;
  background: #fff;
  border-left: 5px solid var(--sage);
  border-radius: 0 1.4rem 1.4rem 0;
  quotes: none;
}
.article-body::before, .article-body::after { content: none; }
.article-body p { font-size: inherit; color: var(--ink); }
.article-body p:last-child { margin-bottom: .9rem; }

.read-full { background: var(--sage-mist); border-radius: 1.4rem; padding: 1.8rem; margin-top: 2rem; }
.read-full p { color: var(--clay); font-size: .95rem; }
.read-full .btn { margin: .3rem .6rem .3rem 0; }
.source-link { margin: 1rem 0 0; }
.source-link a { color: var(--sage-deep); font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.source-link a:hover { color: var(--sage-darkest); }
.back-link a { font-weight: 800; text-decoration: none; }

.about-page, .notfound { max-width: 700px; margin: 0 auto; padding: 3.5rem 0; }
.about-page h1, .notfound h1 { font-size: 2.1rem; margin-bottom: 1.1rem; }

/* footer */
.footer { background: #2f3a2a; color: #cfd8c8; padding: 3rem 0 2rem; margin-top: 2rem; font-size: .93rem; }
.footer a { color: #a9c99b; }
.foot-brand { color: #fff; margin-bottom: .5rem; }
.mouseprint { font-size: .78rem; color: #9db392; margin-top: 1.2rem; }

/* responsive — intermediate step so 3-up grids go to 2 across the tablet band */
/* original site-authored commentary under the quoted excerpt */
.commentary { margin: 2rem 0 0; }
.commentary h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.commentary p { color: var(--ink); }


/* ---- featured / related / hub pages ---- */
.featured { padding: 2.9rem 0; }
.featured h2 { font-size: 1.85rem; margin-bottom: 1.3rem; }
.featured-more { margin-top: 1.2rem; }
.featured-more a { font-weight: 800; text-decoration: none; }

.related { margin: 2.5rem 0 0; padding: 1.5rem 1.7rem; background: var(--sage-mist); border-radius: 1.4rem; }
.related h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.related ul { list-style: none; display: grid; gap: .55rem; }
.related li a { text-decoration: none; font-weight: 700; }
.related li a:hover { text-decoration: underline; }

.hub { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.hub h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 1rem; }
.hub .hub-lede { font-size: 1.13rem; color: var(--clay); margin-bottom: 2rem; }
.hub h2 { font-size: 1.55rem; margin: 2.4rem 0 .8rem; }
.hub h3 { font-size: 1.18rem; margin: 1.6rem 0 .5rem; }
.hub ul, .hub ol { margin: 0 0 1.2rem 1.3rem; }
.hub li { margin-bottom: .5rem; }
.hub table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: .94rem; }
.hub th, .hub td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hub th { font-weight: 800; }
.hub dl { margin-bottom: 1.4rem; }
.hub dt { font-weight: 800; margin-top: 1rem; }
.hub dd { margin-left: 0; color: var(--clay); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .bloom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { gap: 1.6rem; }
}
@media (max-width: 740px) {
  .duo, .bloom-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .header .inner { flex-direction: column; }
  .hero { padding: 3rem 1rem 2.6rem; border-radius: 0 0 2rem 2rem; }
  .article-body { padding: 1.2rem 1.1rem .6rem; }
  .read-full { padding: 1.3rem; }
  .cta-nest { padding: 2.2rem 1.2rem; border-radius: 1.4rem; }
}

/* print */

/* ---- featured images ---- */
.article-figure { margin: 0 0 2rem; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 1.6rem; }
.post-card { padding: 0; overflow: hidden; }
.post-card .post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card > :not(.post-thumb) { margin-left: 1.5rem; margin-right: 1.5rem; }
.post-card .post-date { margin-top: 1.2rem; }
.post-card .post-more { margin-bottom: 1.4rem; }


/* ---- narrow-screen safety ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0 1.8rem; }
.table-scroll table { margin: 0; min-width: 100%; }
.post-thumb, .article-figure img { max-width: 100%; min-width: 0; }
.post-card { min-width: 0; }


/* ---- nav submenu (keeps the bar on one line; no JS) ---- */
.submenu { position: relative; }
.submenu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.submenu > summary::-webkit-details-marker { display: none; }
.submenu > summary::after { content: "\25BE"; font-size: .7em; line-height: 1; transform: translateY(1px); }
.submenu[open] > summary::after { transform: rotate(180deg) translateY(-1px); }
.submenu-panel {
  position: absolute; top: calc(100% + .55rem); left: 0; z-index: 60;
  min-width: 15rem; display: grid; gap: .1rem; padding: .5rem;
  background:#fff;border:1.5px solid var(--line);border-radius:1.1rem;box-shadow:0 12px 30px rgba(51,64,46,.16);
}
.submenu-panel a { display: block; padding: .5rem .7rem; white-space: nowrap; color:var(--clay);text-decoration:none;font-weight:700;font-size:.92rem;border-radius:.7rem; }
.submenu-panel a:hover, .submenu-panel a:focus-visible { background:var(--sage-mist);color:var(--sage-deep); }
@media (max-width: 740px) {
  .submenu { width: 100%; }
  .submenu-panel { position: static; min-width: 0; width: 100%; margin-top: .4rem; }
  .submenu-panel a { white-space: normal; }
}


.header .submenu > summary { color: var(--clay); font-weight: 700; font-size: .93rem; }
.header .submenu > summary:hover, .header .submenu[open] > summary { color: var(--sage-deep); }
.header .submenu-panel a:hover, .header .submenu-panel a:focus-visible { background: var(--sage-mist); color: var(--sage-deep); }

@media print {
  body { background: #fff; color: #111; font-size: 12pt; }
  .skip-link, .header nav, .hero-ctas, .cta-nest, .read-full, .btn, .pill-cta, .back-link { display: none !important; }
  .header { border-bottom: 1px solid #999; background: #fff; }
  .brand { color: #111; }
  .hero { background: #fff; border-radius: 0; margin: 0; padding: 1.5rem 0; text-align: left; }
  .hero .bug { border-color: #666; color: #111; background: #fff; }
  .hero .lede, .post-teaser, .bloom p, .path-step p, .faq details p, .articles-hero p, .article-date { color: #111; }
  .sprout, .article-eyebrow, .post-date { color: #111; }
  .bloom, .path-step, .faq details, .post-card { border: 1px solid #999; background: #fff; break-inside: avoid; }
  .path-step .n { background: #fff; color: #111; border: 1px solid #111; }
  .article-body { background: #fff; border-left: 3px solid #666; border-radius: 0; padding-left: 1rem; }
  .article-body p { color: #111; }
  /* .read-full is hidden, so carry the source URL through from the cite attribute */
  .article-body::after { content: "Source: " attr(cite); display: block; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid #999; font-size: 10pt; color: #111; }
  .footer { background: #fff; color: #111; border-top: 1px solid #999; margin-top: 1rem; }
  .footer a, .foot-brand, .mouseprint { color: #111; }
  a { color: #111; 
  .leaf { color: #000 !important; }
}

/* Homepage row teasing the "What is Prolotherapy?" explainer */
.explainer-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center;
  justify-content: space-between; margin: 2.4rem 0; padding: 1.6rem 1.8rem;
  background: var(--sage-pale, #e8eee4); border-radius: 14px; }
.explainer-copy { flex: 1 1 22rem; min-width: 0; }
.explainer-kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .3rem; }
.explainer-row h2 { font-size: 1.3rem; margin: 0 0 .45rem; font-weight: 800; }
.explainer-row p { margin: 0; color: var(--clay); }
.explainer-more { white-space: nowrap; font-weight: 800; }
