/* public_ecosystem.css — Your Personal Wellness Path public pages.
   Uses the locked brand tokens from base.html (--teal, --accent, --cta, etc.). No external assets. */
.pe-page { background: var(--white); color: var(--body); font-family: 'Inter', system-ui, sans-serif; }
.pe-page *, .pe-page *::before, .pe-page *::after { box-sizing: border-box; }
.pe-wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.pe-narrow { max-width: 760px; }
.pe-section { padding: 56px 0; }
.pe-section--tint { background: var(--teal-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pe-section--cloud { background: var(--cloud); }
.pe-page a { overflow-wrap: anywhere; }

.pe-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.pe-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; color: var(--head); margin: 0 0 20px; }
.pe-h1 em, .pe-h2 em { font-style: italic; color: var(--accent); }
.pe-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; color: var(--head); margin: 0 0 14px; }
.pe-h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.2; color: var(--head); margin: 0 0 8px; }
.pe-lede { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; color: var(--body); max-width: 640px; margin: 0 0 16px; }
.pe-p { font-size: 15.5px; line-height: 1.8; margin: 0 0 16px; max-width: 680px; }
.pe-small { font-size: 13px; line-height: 1.65; color: var(--muted); }
.pe-quote { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--teal); margin: 0 0 16px; }

/* Hero */
.pe-hero { background: var(--teal-pale); border-bottom: 1px solid var(--border); padding: 64px 0 52px; }
.pe-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pe-hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 22%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.pe-crumb { font-size: 13px; font-weight: 600; margin: 0 0 22px; }
.pe-crumb a { color: var(--teal); text-decoration: none; }
.pe-crumb a:hover { text-decoration: underline; }

/* Buttons */
.pe-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.pe-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .03em; padding: 12px 26px; border-radius: 4px; text-decoration: none; background: var(--cta); color: var(--head); border: 1.5px solid var(--cta); transition: background .2s; cursor: pointer; font-family: inherit; }
.pe-btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.pe-btn--ghost { background: transparent; color: var(--teal); border-color: var(--border); font-weight: 600; }
.pe-btn--ghost:hover { background: var(--white); border-color: var(--teal); }
.pe-btn--teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.pe-btn--teal:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.pe-link { color: var(--teal); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--border); }
.pe-link:hover { border-color: var(--teal); }
.pe-page a:focus-visible, .pe-page button:focus-visible, .pe-page select:focus-visible, .pe-page input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

/* Steps */
.pe-steps { list-style: none; counter-reset: pe; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pe-steps li { counter-increment: pe; border-top: 1px solid var(--border); padding-top: 18px; }
.pe-steps li::before { content: "0" counter(pe); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; color: var(--accent); opacity: .6; display: block; line-height: 1; margin-bottom: 8px; }
.pe-steps strong { display: block; color: var(--head); font-size: 15.5px; margin-bottom: 4px; }
.pe-steps span { font-size: 14.5px; line-height: 1.7; }

/* Free vs optional */
.pe-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.pe-compare-col { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px 26px; }
.pe-compare-col--free { border-top: 4px solid var(--teal); }
.pe-compare-col--opt { border-top: 4px solid var(--accent); }
.pe-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pe-list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.65; }
.pe-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 10px; }
.pe-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; color: var(--head); margin: 0 0 4px; }

/* Pathway cards */
.pe-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.pe-path-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--teal-pale); text-decoration: none; color: inherit; transition: box-shadow .25s, border-color .25s; }
.pe-path-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); border-color: #A9CECA; }
.pe-path-card img { width: 100%; height: 170px; object-fit: cover; object-position: center 25%; display: block; }
.pe-path-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pe-path-card-body p { margin: 0; font-size: 14px; line-height: 1.65; }
.pe-path-card-cta { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--teal); }

/* Notes & callouts */
.pe-note { background: var(--cloud); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 28px 0; font-size: 14px; line-height: 1.75; }
.pe-note strong { color: var(--head); }
.pe-note--accent { border-left-color: var(--accent); }
.pe-questions { list-style: none; padding: 0; margin: 20px 0 0; }
.pe-questions li { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.5; color: var(--head); padding: 16px 0; border-bottom: 1px solid var(--border); }
.pe-questions li:first-child { border-top: 1px solid var(--border); }

/* Link grid / rows */
.pe-linkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 20px; }
.pe-linkrow { display: block; padding: 18px 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.pe-linkrow:hover .pe-h3 { color: var(--teal); }
.pe-linkrow p { margin: 0; font-size: 14px; line-height: 1.65; }

/* Topic nav */
.pe-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.pe-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 22px; font-size: 13.5px; font-weight: 600; color: var(--teal); text-decoration: none; background: var(--white); }
/* Topic navigation is light, not a filled primary action. These scoped rules
   intentionally outrank the shared theme's dark selected-control treatment. */
html body.dww-brand.dww-brand .pe-topics a { background: #fff !important; background-image: none !important; color: #0D4A47 !important; border-color: #CBD9D7 !important; }
html body.dww-brand.dww-brand .pe-topics a:hover,
html body.dww-brand.dww-brand .pe-topics a:active { background: #F0F6F5 !important; border-color: #729C97 !important; }
html body.dww-brand.dww-brand .pe-topics a[aria-current="page"] { background: #EAF3F2 !important; border-color: #0D4A47 !important; box-shadow: inset 0 0 0 1px #0D4A47; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
html body.dww-brand.dww-brand .pe-topics a:focus-visible { outline: 3px solid #0D4A47 !important; outline-offset: 3px; border-radius: 22px; }

/* Article list */
.pe-articles { list-style: none; padding: 0; margin: 28px 0 0; }
.pe-article { border-top: 1px solid var(--border); padding: 22px 0; }
.pe-article:last-child { border-bottom: 1px solid var(--border); }
.pe-article a.pe-article-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--head); text-decoration: none; }
.pe-article a.pe-article-title:hover { color: var(--teal); text-decoration: underline; }
.pe-article p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; max-width: 680px; }
.pe-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.pe-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); background: var(--teal-pale); border-radius: 3px; padding: 4px 8px; }

/* Filters */
.pe-filter { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 14px; align-items: end; background: var(--teal-pale); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-top: 28px; }
.pe-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.pe-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 4px; background: var(--white); font-family: inherit; font-size: 14px; color: var(--head); }

/* Favorites */
.pe-favs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 28px 0 0; }
.pe-fav { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.pe-fav-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0; }
.pe-fav-source { font-size: 13px; color: var(--muted); margin: 0; }
.pe-fav p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.pe-fav-why { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px !important; }
.pe-fav-why strong { color: var(--head); }
.pe-fav-kind { font-size: 12px; color: var(--muted); }
.pe-empty { border: 1px dashed var(--border); border-radius: 10px; padding: 36px 28px; text-align: center; background: var(--cloud); margin-top: 28px; }
.pe-empty p { margin: 0 auto 16px; max-width: 520px; font-size: 15px; line-height: 1.7; }

/* Deeper / partners */
.pe-topic-block { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; padding: 36px 0; border-top: 1px solid var(--border); }
.pe-topic-block h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; font-weight: 600; color: var(--head); margin: 0; line-height: 1.15; }
.pe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.pe-cols h3 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
.pe-cols p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.pe-layers { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: lay; }
.pe-layer { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); align-items: start; }
.pe-layer:last-child { border-bottom: 1px solid var(--border); }
.pe-layer::before { counter-increment: lay; content: "0" counter(lay); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; color: var(--accent); opacity: .6; line-height: 1; }
.pe-layer p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.pe-status { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 4px 8px; white-space: nowrap; }

/* Stories */
.pe-stories { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pe-story { background: var(--white); border-left: 3px solid var(--accent); padding: 22px 24px; border-radius: 0 8px 8px 0; margin: 0; }
.pe-story p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; }

/* CTA band */
.pe-cta { background: var(--teal); color: #fff; padding: 56px 0; text-align: center; }
.pe-cta .pe-h2 { color: #fff; }
.pe-cta .pe-h2 em { color: rgba(255,255,255,.7); }
.pe-cta p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 8px; font-size: 15.5px; line-height: 1.75; }
.pe-cta .pe-actions { justify-content: center; }
.pe-cta .pe-btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.pe-cta .pe-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.pe-cta .pe-small { color: rgba(255,255,255,.7); margin-top: 16px; }

/* Article */
.pe-article-body { font-size: 16px; line-height: 1.85; max-width: 720px; }
.pe-article-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 1.85rem); color: var(--head); margin: 44px 0 12px; }
.pe-article-body p, .pe-article-body ul { margin: 0 0 18px; }

/* Resources connector */
.pe-connect { background: var(--teal-pale); border: 1px solid var(--border); border-radius: 10px; padding: 24px 26px; margin: 0 0 36px; }
.pe-connect-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 12px 0 0; }

@media (max-width: 960px) {
  .pe-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .pe-steps, .pe-linkgrid { grid-template-columns: 1fr; }
  .pe-linkgrid { gap: 0; }
  .pe-filter { grid-template-columns: 1fr 1fr; }
  .pe-topic-block { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pe-wrap { padding: 0 20px; }
  .pe-section { padding: 40px 0; }
  .pe-hero { padding: 40px 0 36px; }
  .pe-compare, .pe-paths, .pe-favs, .pe-cols, .pe-stories, .pe-filter { grid-template-columns: 1fr; }
  .pe-layer { grid-template-columns: 40px 1fr; }
  .pe-layer .pe-status { grid-column: 2; justify-self: start; }
  .pe-actions .pe-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pe-path-card, .pe-btn { transition: none; } }
