/* fw165 — progressive disclosure (heydmitri-style native <details>)
   + open-state era-dot glow + prominent disclosure chevrons */

/* ---- Hero tighten ---- */
.hero15 .hl{font-size:clamp(18px,2.2vw,22px);line-height:1.35;margin:0 0 8px;color:#f0e6d8}
.hero15 .edge{font-size:15px;line-height:1.5;margin:0 0 10px;color:#c9bfb0;max-width:42em}
.hero15 .fw-side{font-size:13px;line-height:1.45;margin:0 0 14px;color:#A88B5C}

/* ---- Accordion body: force closed hide (Chrome content-visibility can be
   overridden by overflow/transition on the child; display:none is the
   reliable no-JS fallback). JS animation temporarily overrides via inline height. ---- */
details.acc:not([open]) > .acc-body{display:none}
details.acc[open] > .acc-body{
  display:block;
  overflow:hidden;
}
details.acc[open] > .acc-body.is-animating{
  transition:height .34s ease, opacity .34s ease;
}
@media (prefers-reduced-motion: reduce){
  details.acc[open] > .acc-body.is-animating{transition:none}
}

/* ---- Timeline eras ---- */
.era-fold{border:0;margin:0;padding:0}
.era-fold > summary.era-sum{
  list-style:none;cursor:pointer;display:block;padding:0 48px 4px 0;min-height:48px;
  position:relative;
}
.era-fold > summary.era-sum::-webkit-details-marker{display:none}
.era-fold > summary.era-sum .era-head h3{margin:0 0 4px!important;font-size:21px!important}
.era-fold > summary.era-sum .torg{margin:0 0 4px}
.era-cue{
  display:block;font-size:13px;color:#A88B5C;line-height:1.4;max-width:40em
}
.era-fold[open] > summary .era-cue{opacity:.7}

/* Prominent disclosure chevron (eras) */
.era-fold > summary.era-sum::after{
  content:"▾";
  position:absolute;
  top:0;
  right:0;
  float:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;min-width:36px;
  margin-top:0;
  border-radius:999px;
  border:1.5px solid rgba(242,140,40,.6);
  background:rgba(242,140,40,.14);
  color:#F28C28;
  font-size:18px;line-height:1;font-weight:700;
  box-shadow:0 0 0 0 rgba(242,140,40,0);
  transition:transform .22s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, width .2s ease, padding .2s ease;
}
.era-fold[open] > summary.era-sum::after{
  transform:rotate(180deg);
  background:rgba(242,140,40,.32);
  border-color:#F28C28;
  box-shadow:0 0 14px rgba(242,140,40,.5);
}
.era-fold > summary.era-sum:hover::after,
.era-fold > summary.era-sum:focus-visible::after{
  background:rgba(242,140,40,.26);
  border-color:#F28C28;
  box-shadow:0 0 12px rgba(242,140,40,.4);
}
.era-fold > summary.era-sum:focus-visible{
  outline:2px solid #F28C28;outline-offset:4px;border-radius:6px
}
@media(min-width:900px){
  .era-fold > summary.era-sum{
    display:grid;grid-template-columns:170px 1fr;gap:18px;align-items:start;
    padding-right:96px
  }
  .era-fold > summary.era-sum::after{
    position:absolute;top:0;right:0;float:none;margin-top:0;grid-column:auto;justify-self:auto
  }
  /* Desktop hover hint: Open / Close */
  @media (hover:hover){
    .era-fold > summary.era-sum:hover::after{
      content:"Open  ▾";
      width:auto;min-width:72px;padding:0 12px;
      font-size:11px;letter-spacing:.06em;text-transform:uppercase;
      transform:none;
    }
    .era-fold[open] > summary.era-sum:hover::after{
      content:"Close  ▴";
      transform:none;
      background:rgba(242,140,40,.32);
      border-color:#F28C28;
      box-shadow:0 0 14px rgba(242,140,40,.5);
    }
  }
}

/* ---- Era timeline dots: resting muted ring; glowing when that era is open ----
   Overrides v15.css .era:first-child::before which always glowed the first only. */
.era::before{
  content:"";
  position:absolute;left:-8px;top:10px;
  width:14px;height:14px;border-radius:50%;
  background:#0B0B0D;
  border:2px solid rgba(242,140,40,.7);
  box-shadow:none;
  transition:background .22s ease, box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.era:first-child::before{
  /* resting = same muted ring as every other era */
  background:#0B0B0D;
  border-color:rgba(242,140,40,.7);
  box-shadow:none;
}
li.era:has(> details.era-fold[open])::before{
  background:#F28C28;
  border-color:#F28C28;
  box-shadow:0 0 14px rgba(242,140,40,.8), 0 0 28px rgba(242,140,40,.35);
  transform:scale(1.15);
}

/* ---- Case one-line summary ---- */
.j16 .cflist details.cf16 summary,
.cflist details.cf16 summary{
  align-items:flex-start;padding:10px 0
}
.cf-sum{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cf-sum b{font-size:16px;line-height:1.3;color:#e8e0d4}
.cf-one{font-size:13px;line-height:1.4;color:#A88B5C;font-weight:400}

/* Case chevron + open glow on .bk badge */
.cflist details.cf16.acc > summary::after{
  content:"▾";
  color:#F28C28;font-size:18px;font-weight:700;line-height:1;
  margin-left:auto;flex:none;align-self:center;
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;min-width:36px;
  border-radius:999px;
  border:1.5px solid rgba(242,140,40,.6);
  background:rgba(242,140,40,.14);
  transition:transform .22s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, width .2s ease, padding .2s ease;
}
.cflist details.cf16.acc[open] > summary::after{
  transform:rotate(180deg);
  background:rgba(242,140,40,.32);
  border-color:#F28C28;
  box-shadow:0 0 14px rgba(242,140,40,.5);
}
.cflist details.cf16.acc > summary:hover::after,
.cflist details.cf16.acc > summary:focus-visible::after{
  background:rgba(242,140,40,.26);
  border-color:#F28C28;
  box-shadow:0 0 12px rgba(242,140,40,.4);
}
.cflist details.cf16.acc > summary:focus-visible{
  outline:2px solid #F28C28;outline-offset:3px;border-radius:6px
}
.cflist details.cf16.acc[open] > summary .bk{
  text-shadow:0 0 10px rgba(242,140,40,.7);
  filter:drop-shadow(0 0 4px rgba(242,140,40,.55));
}
@media (hover:hover) and (min-width:900px){
  .cflist details.cf16.acc > summary:hover::after{
    content:"Open  ▾";
    width:auto;min-width:72px;padding:0 12px;
    font-size:11px;letter-spacing:.06em;text-transform:uppercase;
    transform:none;
  }
  .cflist details.cf16.acc[open] > summary:hover::after{
    content:"Close  ▴";
    transform:none;
  }
}

/* ---- Capability pointer briefs ---- */
.cap-ptr{display:grid;gap:14px;margin-top:8px}
.cap-ptr-block .sys-h{margin:0 0 6px}
.cap-ptr-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cap-ptr-list a{
  display:inline-flex;align-items:center;min-height:40px;
  color:#e8e0d4;text-decoration:none;border-bottom:1px solid rgba(168,139,92,.25);
  padding:4px 0;font-size:14px
}
.cap-ptr-list a:hover{color:#ffd27a;border-bottom-color:#A88B5C}
.cap-ptr-creds,.cap-ptr-note{font-size:13px;color:#c9bfb0;margin:4px 0 0;line-height:1.45}
.capd.acc > summary{
  display:flex;gap:12px;align-items:center;width:100%;cursor:pointer
}
.capd.acc > summary::after{
  content:"▾";
  margin-left:auto;flex:none;
  color:#F28C28;font-size:18px;font-weight:700;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;min-width:36px;
  border-radius:999px;
  border:1.5px solid rgba(242,140,40,.6);
  background:rgba(242,140,40,.14);
  transition:transform .22s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, width .2s ease, padding .2s ease;
}
.capd.acc[open] > summary::after{
  transform:rotate(180deg);
  background:rgba(242,140,40,.32);
  border-color:#F28C28;
  box-shadow:0 0 14px rgba(242,140,40,.5);
}
.capd.acc > summary:hover::after,
.capd.acc > summary:focus-visible::after{
  background:rgba(242,140,40,.26);
  border-color:#F28C28;
  box-shadow:0 0 12px rgba(242,140,40,.4);
}
.capd.acc > summary:focus-visible{
  outline:2px solid #F28C28;outline-offset:3px;border-radius:6px
}
/* Cap number glow when open */
.capd.acc[open] > summary > b{
  color:#F28C28;
  text-shadow:0 0 10px rgba(242,140,40,.75);
}
@media (hover:hover) and (min-width:900px){
  .capd.acc > summary:hover::after{
    content:"Open  ▾";
    width:auto;min-width:72px;padding:0 12px;
    font-size:11px;letter-spacing:.06em;text-transform:uppercase;
    transform:none;
  }
  .capd.acc[open] > summary:hover::after{
    content:"Close  ▴";
    transform:none;
  }
}

/* Era list items now wrap a single <details>; disable the old 2-col grid that
   expected .tdate + .tbody as direct children (it was crushing the fold into
   the 170px date column and ballooning summary height). */
li.era:has(> details.era-fold){
  display:block;
  padding-left:20px;
}
@media(min-width:900px){
  li.era:has(> details.era-fold){display:block}
}

/* Mobile: keep chevron big and tappable (no Open/Close text) */
@media(max-width:899px){
  .era-fold > summary.era-sum{
    padding-right:52px
  }
  .era-fold > summary.era-sum::after,
  .cflist details.cf16.acc > summary::after,
  .capd.acc > summary::after{
    width:40px;height:40px;min-width:40px;font-size:20px;
  }
}

/* fw170 recommendations + impact */
.j16 .timpact{margin:14px 0 0;padding:12px 14px;border:1px solid rgba(242,140,40,.35);border-radius:10px;background:rgba(242,140,40,.06)}
.j16 .timpact h4{margin:0 0 6px;color:#F28C28}
.j16 .timpact-sum{margin:0 0 10px;line-height:1.45}
.j16 .tquote{margin:0 0 10px;padding:10px 12px;border-left:3px solid #F28C28;background:rgba(11,11,13,.35);border-radius:0 8px 8px 0}
.j16 .tquote p{margin:0 0 6px;font-style:italic;color:#e8e0d4}
.j16 .tquote cite{display:block;font-style:normal;font-size:13px;color:#A88B5C}
.j16 .timpact-more a{color:#F28C28;font-weight:700;min-height:44px;display:inline-flex;align-items:center}
.j16 .timpact-note{margin:8px 0 0;font-size:13px;color:#A88B5C}
.j16 .reclist{margin:8px 0 18px}
.j16 .rec16 summary{flex-wrap:wrap}
.j16 .rec16 .rec-meta{flex-basis:100%;font-size:13px;color:#A88B5C;font-weight:500;margin:2px 0 0 0}
.j16 #recommendations h3{margin:22px 0 4px;font:700 17px var(--sans,system-ui);color:#e8e0d4}
html[data-fw-preview="fw170"]::before{
  content:"PREVIEW fw170 — recommendations (no tracker)";
  position:fixed;top:0;left:0;right:0;z-index:9999;
  background:#F28C28;color:#120a02;font:700 12px/28px system-ui,sans-serif;
  text-align:center;letter-spacing:.04em;pointer-events:none
}
html[data-fw-preview="fw170"] body{padding-top:28px}
