/* Stem Cell Therapy Portland — dark teal science, geometric sans */
:root {
  color-scheme: only light;
  --deep: #073b3a;
  --deeper: #052a29;
  --mint: #34d1a5;          /* bright brand mint — fills & text on dark only */
  --mint-line: #1a9b78;     /* mint that clears 3:1 as a rule/border on light */
  --mint-text: #11705b;     /* mint that clears 4.5:1 as small text on light */
  --mint-soft: #aef0dd;
  --bg: #f4faf8;
  --card: #ffffff;
  --ink: #12312f;
  --gray: #517370;
  --footer-ink: #cfe6df;
  --footer-fine: #a4c6bd;
  --rule-dark: #3f8175;
  --focus: var(--deep);
  --display: "Space Grotesk", sans-serif;
  --body: "IBM Plex Sans", -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.65; overflow-wrap: break-word; }
.shell { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--deep); }
p { margin-bottom: 1rem; }
img, svg { max-width: 100%; height: auto; }

/* skip link — hidden until keyboard focus, never display:none */
.skip-link {
  position: absolute;
  left: .6rem;
  top: -100px;
  z-index: 999;
  background: var(--deeper);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: 0 0 .6rem .6rem;
  border: 2px solid var(--mint);
  box-shadow: 0 6px 18px rgba(5, 42, 41, .35);
  transition: top .12s ease-out;
}
.skip-link:focus { top: 0; }
.skip-link:focus-visible { top: 0; outline: 3px solid var(--mint); outline-offset: 2px; }

/* focus-visible */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: .3rem;
}
.topbar, .footer, .cta-panel { --focus: var(--mint); }

/* topbar */
.topbar { background: var(--deep); }
.topbar .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.05rem; padding-bottom: 1.05rem; }
.logo, .footer-logo { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #fff; text-decoration: none; }
.logo span, .footer-logo span { color: var(--mint); }
.topbar nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.topbar nav a { color: #cfe8e0; text-decoration: none; font-size: .93rem; font-weight: 500; }
.topbar nav a:hover { color: #fff; }
.topbar-cta { background: var(--mint); color: var(--deeper) !important; padding: .5rem 1.05rem; border-radius: .5rem; font-weight: 600; }
.topbar-cta:hover { background: var(--mint-soft); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 4rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.12rem; color: var(--gray); margin-bottom: 1.8rem; }
.hero-art { min-height: 260px; border-radius: 1.2rem; background:
  radial-gradient(circle at 25% 30%, var(--mint) 0 28px, transparent 29px),
  radial-gradient(circle at 60% 65%, var(--mint-soft) 0 44px, transparent 45px),
  radial-gradient(circle at 80% 25%, #1d8a71 0 18px, transparent 19px),
  radial-gradient(circle at 40% 80%, #1d8a71 0 14px, transparent 15px),
  linear-gradient(150deg, var(--deep), var(--deeper)); }
.badge-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.badge { background: #dff3ec; color: var(--deep); font-size: .8rem; font-weight: 600; padding: .32rem .8rem; border-radius: 999px; }

.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: .8rem 1.5rem; border-radius: .6rem; font-size: .95rem; }
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--deeper); }
.btn-secondary { border: 2px solid var(--deep); color: var(--deep); }
.btn-secondary:hover { background: #e2f1ec; }

/* sections */
section { padding: 2.8rem 0; }
.kicker { color: var(--mint-text); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .5rem; font-family: var(--display); }
section h2 { font-size: 1.85rem; margin-bottom: 1rem; }
.lead-copy { max-width: 760px; color: var(--gray); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; margin-top: 1.6rem; }
.card { background: var(--card); border-radius: 1rem; padding: 1.5rem; border-top: 4px solid var(--mint-line); box-shadow: 0 2px 10px rgba(7, 59, 58, .06); }
.card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--gray); margin: 0; }

.timeline { counter-reset: step; margin-top: 1.6rem; display: grid; gap: 1rem; }
.tl-item { background: var(--card); border-radius: .9rem; padding: 1.2rem 1.4rem 1.2rem 4rem; position: relative; box-shadow: 0 2px 10px rgba(7,59,58,.06); }
.tl-item::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.15rem; font-family: var(--display); font-weight: 700; color: var(--mint-text); font-size: 1.25rem; }
.tl-item h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tl-item p { font-size: .92rem; color: var(--gray); margin: 0; }

.faq details { background: var(--card); border-radius: .8rem; padding: 1rem 1.3rem; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(7,59,58,.05); }
.faq summary { font-weight: 600; cursor: pointer; font-family: var(--display); }
.faq details p { margin: .7rem 0 0; color: var(--gray); font-size: .95rem; }

.cta-panel { background: linear-gradient(120deg, var(--deep), #0c5c4e); border-radius: 1.2rem; color: #fff; padding: 3rem 2rem; text-align: center; margin: 1.5rem 0 3rem; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: var(--mint-soft); max-width: 580px; margin: 0 auto 1.5rem; }
.cta-panel .btn-primary { background: var(--mint); color: var(--deeper); }
.cta-panel .btn-primary:hover { background: var(--mint-soft); color: var(--deeper); }

/* articles */
.articles-hero { padding: 3rem 0 .5rem; max-width: 740px; }
.articles-hero h1 { font-size: 2.2rem; margin-bottom: .7rem; }
.articles-hero p { color: var(--gray); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.3rem; padding: 1.5rem 0 3rem; }
.post-card { background: var(--card); text-decoration: none; color: inherit; border-radius: 1rem; padding: 1.5rem; border-top: 4px solid var(--mint-line); box-shadow: 0 2px 10px rgba(7,59,58,.06); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(7,59,58,.13); }
.post-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mint-text); font-weight: 600; margin-bottom: .4rem; }
.post-card h2 { font-size: 1.18rem; margin-bottom: .5rem; }
.post-teaser { font-size: .91rem; color: var(--gray); flex: 1; }
.post-more { font-weight: 600; color: var(--deep); font-size: .88rem; font-family: var(--display); }

/* article page */
.article-page { max-width: 740px; margin: 0 auto; padding: 3rem 0; }
.article-eyebrow { color: var(--mint-text); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--display); }
.article-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .5rem 0; }
.article-date { color: var(--gray); font-size: .9rem; margin-bottom: 1.8rem; }
.article-date time { white-space: nowrap; }

/* excerpt is a <blockquote> — reset UA margin/indent, read as quoted long-form */
blockquote.article-body {
  margin: 0 0 .5rem;
  padding: .1rem 0 .1rem 1.5rem;
  border-left: 3px solid var(--mint-line);
  font-size: 1.05rem;
  quotes: none;
}
blockquote.article-body p { font-size: 1em; }
blockquote.article-body p:last-child { margin-bottom: 0; }

.read-full { background: var(--card); border: 1.5px solid var(--mint-line); border-radius: 1rem; padding: 1.7rem; margin-top: 2rem; }
.read-full p { color: var(--gray); font-size: .95rem; }
.read-full .btn { margin: .3rem .6rem .3rem 0; }
.source-link { margin: .95rem 0 0; font-size: .92rem; }
.source-link a { color: var(--mint-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.source-link a:hover { color: var(--deep); }
.back-link a { font-weight: 600; text-decoration: none; }

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

/* footer */
.footer { background: var(--deeper); color: var(--footer-ink); padding: 3rem 0 2rem; margin-top: 2rem; font-size: .93rem; }
.footer a { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer-head { font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: .4rem; }
.fineprint { font-size: .78rem; color: var(--footer-fine); border-top: 1px solid var(--rule-dark); padding-top: 1.2rem; }

/* intermediate band — 3+ column grids go to 2 before collapsing */
/* original site-authored commentary under the quoted excerpt */
.commentary { margin: 2rem 0 0; }
.commentary h2 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; font-family: var(--display); }
.commentary p { color: var(--ink); }


/* ---- featured / related / hub pages ---- */
.featured { padding: 2.8rem 0; }
.featured h2 { font-size: 1.85rem; margin-bottom: 1.4rem; font-family: var(--display); }
.featured-more { margin-top: 1.2rem; }
.featured-more a { font-weight: 600; font-family: var(--display); text-decoration: none; }

.related { margin: 2.5rem 0 0; padding: 1.5rem 1.7rem; background: var(--card); border-left: 4px solid var(--mint-line); border-radius: .9rem; box-shadow: 0 2px 10px rgba(7,59,58,.06); }
.related h2 { font-size: 1.1rem; margin-bottom: .7rem; font-family: var(--display); }
.related ul { list-style: none; display: grid; gap: .55rem; }
.related li a { text-decoration: none; font-weight: 500; }
.related li a:hover { text-decoration: underline; }

.hub { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.hub h1 { font-size: clamp(2rem, 4.6vw, 2.7rem); margin-bottom: 1rem; font-family: var(--display); }
.hub .hub-lede { font-size: 1.12rem; color: var(--gray); margin-bottom: 2rem; }
.hub h2 { font-size: 1.55rem; margin: 2.4rem 0 .8rem; font-family: var(--display); }
.hub h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; font-family: var(--display); }
.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: .93rem; }
.hub th, .hub td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid #d8e6e1; vertical-align: top; }
.hub th { font-family: var(--display); font-weight: 700; background: var(--card); }
.hub dl { margin-bottom: 1.4rem; }
.hub dt { font-family: var(--display); font-weight: 700; margin-top: 1rem; }
.hub dd { margin-left: 0; color: var(--gray); }

@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) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 2rem; padding: 3rem 0 2.4rem; }
}

@media (max-width: 760px) {
  .hero, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .shell { flex-direction: column; }
  .hero-art { min-height: 130px; height: 130px; border-radius: .9rem; }
  .tl-item { padding: 1.2rem 1.1rem 1.2rem 3.5rem; }
  .tl-item::before { left: 1rem; }
  blockquote.article-body { padding-left: 1.1rem; }
  .read-full { padding: 1.3rem; }
  .cta-panel { padding: 2.2rem 1.3rem; }
}


/* ---- featured images ---- */
.article-figure { margin: 0 0 1.8rem; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 1rem; box-shadow: 0 2px 10px rgba(7,59,58,.08); }
.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; }
.post-card h2 { margin-right: 1.5rem; }


/* ---- 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:var(--deeper);border:1px solid var(--rule-dark);border-radius:.6rem;box-shadow:0 12px 30px rgba(5,42,41,.4);
}
.submenu-panel a { display: block; padding: .5rem .7rem; white-space: nowrap; color:#cfe8e0;text-decoration:none;font-size:.9rem;border-radius:.35rem; }
.submenu-panel a:hover, .submenu-panel a:focus-visible { background:var(--deep);color:#fff; }
@media (max-width: 760px) {
  .submenu { width: 100%; }
  .submenu-panel { position: static; min-width: 0; width: 100%; margin-top: .4rem; }
  .submenu-panel a { white-space: normal; }
}


.topbar .submenu > summary { color: #cfe8e0; font-size: .93rem; font-weight: 500; }
.topbar .submenu > summary:hover, .topbar .submenu[open] > summary { color: #fff; }
.topbar .submenu-panel a { color: #cfe8e0; }
.topbar .submenu-panel a:hover, .topbar .submenu-panel a:focus-visible { background: var(--deep); color: #fff; }

@media print {
  :root { --focus: #000; }
  body { background: #fff !important; color: #000 !important; font-size: 11.5pt; }
  .skip-link, .topbar, .cta-panel, .btn, .badge-row, .back-link, .hero-art { display: none !important; }
  .shell { max-width: none; padding: 0; }
  a { color: #000 !important; text-decoration: underline; }
  .read-full { background: #fff !important; border: 1px solid #666 !important; padding: .8rem; }
  .read-full p, .source-link a { color: #000 !important; }
  .source-link a::after { content: " (" attr(href) ")"; font-weight: 400; word-break: break-all; }
  h1, h2, h3, .footer-head, .logo, .footer-logo,
  .logo span, .footer-logo span, .cta-panel h2 { color: #000 !important; }
  .kicker, .post-date, .article-eyebrow, .article-date, .lead-copy, .hero .lede,
  .card p, .tl-item p, .faq details p, .post-teaser, .fineprint, .articles-hero p { color: #000 !important; }
  .card, .tl-item, .post-card, .faq details, .footer {
    background: #fff !important; color: #000 !important;
    box-shadow: none !important; border: 1px solid #666 !important;
  }
  .footer { margin-top: 1rem; padding: 1rem 0 0; }
  .fineprint { border-top: 1px solid #666; }
  blockquote.article-body { border-left: 3px solid #666; }
  .card, .post-card { border-top: 1px solid #666 !important; }
  section { padding: .8rem 0; break-inside: avoid; }
  .article-page { padding: 0; }
}

/* Homepage row teasing the "What is Stem Cell Therapy?" 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(--card); border-radius: 10px; }
.explainer-copy { flex: 1 1 22rem; min-width: 0; }
.explainer-kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: .3rem; }
.explainer-row h2 { font-size: 1.35rem; margin: 0 0 .45rem; font-family: var(--display); }
.explainer-row p { margin: 0; color: var(--gray); }
.explainer-more { white-space: nowrap; font-weight: 700; }
