/* ============================================================
TestoExperts – site-specific layer.
Loads AFTER site.css. Everything here is unique to this site:
the evidence-grade chips, the patient Q&A accordions, the
"where things stand" list and the working-draft flag.
Nothing here overrides the shared network design.
============================================================ */

/* Evidence grades, mapped onto the network palette */
:root{
--g-established:var(--teal-dark);
--g-promising:var(--warn-ink);
--g-limited:var(--clay);
--g-experimental:#9a3b2f;
--g-unsupported:var(--slate);
--g-mixed:var(--slate-l);
}
.chip{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:5px 11px;border-radius:999px;border:1px solid currentColor;line-height:1.25;max-width:100%}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.chip-strong,.chip-established{color:var(--g-established)}
.chip-moderate,.chip-promising{color:var(--g-promising)}
.chip-limited{color:var(--g-limited)}
.chip-experimental{color:var(--g-experimental)}
.chip-unsupported{color:var(--g-unsupported)}
/* Compound verdicts stay neutral — a dual grade must never read as one confident colour */
.chip-mixed{color:var(--g-mixed)}
.chip-mixed::before{background:transparent;border:1.5px solid currentColor}

/* Questions patients ask — native <details> accordions, same pattern as
   menoexperts.com and hashiexperts.com, with a grade stripe down the left. */
.qa{margin-top:8px}
details.qa-item{border-left-width:4px;border-left-color:var(--slate)}
details.qa-item[data-grade="strong"]{border-left-color:var(--g-established)}
details.qa-item[data-grade="moderate"]{border-left-color:var(--g-promising)}
details.qa-item[data-grade="limited"]{border-left-color:var(--g-limited)}
details.qa-item[data-grade="experimental"]{border-left-color:var(--g-experimental)}
details.qa-item[data-grade="unsupported"]{border-left-color:var(--g-unsupported)}
details.qa-item[data-grade="mixed"]{border-left-color:var(--g-mixed)}
details.qa-item summary{list-style:none;display:flex;gap:12px;align-items:flex-start;font-family:var(--serif);font-weight:500;font-size:19px;letter-spacing:-.2px;line-height:1.35;color:var(--ink)}
details.qa-item summary::-webkit-details-marker{display:none}
details.qa-item summary::after{content:"+";margin-left:auto;font-family:var(--sans);font-size:20px;font-weight:400;color:var(--slate);line-height:1;flex:none;transition:transform .18s var(--ease-out)}
details.qa-item[open] summary::after{content:"–"}
details.qa-item summary:hover{color:var(--teal-deep)}
.qa-short{margin-top:12px!important;font-size:16px!important;color:var(--ink)!important;font-weight:500}
.qa-field{margin-top:12px!important}
.qa-field b{display:block;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--slate);margin-bottom:3px}
.qa-bottom{margin-top:14px!important;padding-top:12px;border-top:1px solid var(--line);color:var(--ink)!important}
.qa-bottom b{display:block;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--teal-dark);margin-bottom:3px}
.qa-evidence{margin-top:14px!important}

/* Homepage "where things actually stand" */
.stands{margin-top:28px;border-top:1px solid var(--line)}
.stands>div{padding:22px 0;border-bottom:1px solid var(--line)}
.stands .q{font-family:var(--serif);font-size:21px;font-weight:500;letter-spacing:-.3px;line-height:1.3;color:var(--ink);max-width:none}
.stands .a{font-size:15.5px;color:var(--slate-l);margin-top:8px}
.stands .meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}
.stands .meta a{font-size:14px;font-weight:600;text-decoration:none}

/* Prose extras used by the chapter markdown */
.prose blockquote{background:var(--clay-soft);border-left:4px solid var(--clay);border-radius:12px;padding:22px 26px;margin-top:26px}
.prose blockquote p{margin-top:0;color:var(--ink);font-size:17px}
.prose blockquote p+p{margin-top:10px}
.prose hr{border:0;border-top:1px solid var(--line);margin:38px 0}
.prose table{margin-top:22px}
.prose h2.part{font-size:clamp(26px,3vw,34px);margin-top:52px;padding-top:26px;border-top:2px solid var(--teal-deep)}
.prose .note h2{font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--warn-ink);margin:0 0 4px;max-width:none}
.prose .note p{color:var(--warn-ink);font-size:15px}
.prose .note p strong{color:var(--warn-ink)}

/* Pagination between chapters */
.pager{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:38px;padding-top:22px;border-top:1px solid var(--line)}
.pager a{text-decoration:none}
.pager .dir{display:block;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--slate);margin-bottom:4px}
.pager .ttl{font-family:var(--serif);font-size:18px;font-weight:500;letter-spacing:-.2px;color:var(--ink)}
.pager a:hover .ttl{color:var(--teal-dark)}
.pager .next{text-align:right}
@media (max-width:560px){.pager .next{text-align:left}}

/* Footer network row */
.eco .net{display:flex;gap:8px 16px;flex-wrap:wrap;margin-top:8px}
.eco .net a{font-size:13px;color:var(--slate-l);text-decoration:none}
.eco .net a:hover{color:var(--teal-dark);text-decoration:underline}
.eco{display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap}
.eco .eco-logo{flex:0 0 auto;line-height:0}
.eco .eco-logo img{height:46px;width:auto;mix-blend-mode:multiply}

/* Brand lockup.
   The supplied logo file is a STACKED lockup (mark over wordmark over tagline) on a
   1408x768 canvas with a light background and heavy padding. menoexperts.com uses a
   HORIZONTAL lockup, so the header crops to the mark only — content box x484 y170,
   443x244 — and sets the wordmark as live text beside it. Cropping also discards the
   grey vignette at the canvas edges; inside the mark region the background is #fcfcfc,
   so mix-blend-mode:multiply against --paper leaves no visible plate.
   If the source file is ever re-exported at a different size, these numbers change:
   scale = renderedHeight / 244; background-size = 1408 * scale; offsets = -484*scale, -170*scale. */
.logo{gap:12px}
.logo .mark{
  width:106px;height:60px;flex:none;
  background:url('/assets/testoexperts-logo.PNG?v=2') no-repeat -95px -32px;
  background-size:300px auto;
  /* The supplied file has no alpha channel; inside the cropped mark region the
     background is a flat #fcfcfc. brightness() lifts that to pure white so the
     following multiply blend leaves no visible plate on --paper. The teal shifts
     by about one value per channel, which is below perception. Replace both the
     filter and the blend if a transparent export ever lands. */
  filter:brightness(1.02);
  mix-blend-mode:multiply;
}
.logo .wordmark b{font-size:21px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#008a6c}
.logo .wordmark b i{font-style:normal;color:var(--ink)}
.logo .wordmark small{font-size:11px;letter-spacing:.3px;color:var(--slate-l)}
@media (max-width:900px){
  .logo .mark{width:88px;height:50px;background-size:242px auto;background-position:-77px -25px}
  .logo .wordmark b{font-size:18px}
}

/* Chapter byline sits under the lede, quieter than it */
.pagehead .byline{font-size:13.5px;color:var(--slate);margin-top:2px}
.pagehead .lede{margin-bottom:8px}
