/* =============================================================================
   WEEKLY.CSS — additive layer over brand.css + swat.css for /weekly.
   Kit tokens only; no new :root tokens, no palette invention (deploy §27).
   Namespace: body.weekly-doc. Light/dark comes free from the kit tokens —
   nothing here hardcodes a colour. Round things are CUT, never border-radius'd
   into a fake circle (vault §21 shape guard).
   ============================================================================= */

/* ---- hero addition: the status legend ---------------------------------- */
.wk-legend{margin:22px 0 0}
.wk-legend-label{display:block;font-family:"Inter",sans-serif;font-size:11px;
  letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:9px}
.weekly-doc .rs-legend{gap:6px}

/* ---- navigation hierarchy: editions first, sections second ------------- */
.weekly-editions{position:sticky;top:0;z-index:61;overflow:hidden;
  background:color-mix(in srgb,var(--obsidian) 94%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line2)}
.weekly-editions-in{max-width:1120px;margin:0 auto;padding:0 28px;
  display:flex;justify-content:center;align-items:stretch}
.weekly-editions a{position:relative;font-family:"Inter",sans-serif;font-size:11px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  text-decoration:none;padding:14px 18px 13px;white-space:nowrap;
  border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.weekly-editions a+a{border-left:1px solid var(--line2)}
.weekly-editions a:hover{color:var(--linen)}
.weekly-editions a.on{color:var(--linen);border-bottom-color:var(--bronze)}
.weekly-editions a:focus-visible{outline:1px solid var(--bronze);
  outline-offset:-4px;color:var(--linen)}
.weekly-doc .weekly-sections{top:45px}
.weekly-doc .wk,.weekly-doc .wk-sec h3{scroll-margin-top:104px}

/* ---- hero: the plain-words orientation block (KAIROS-LAYER clarity) ----- */
.wk-plain{margin:26px 0 0;padding:16px 18px;border-left:2px solid var(--bronze);
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--bronze) 6%,transparent),transparent 70%)}
.wk-plain-label{display:block;font-family:"Inter",sans-serif;font-size:10.5px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--bronze);
  font-weight:600;margin-bottom:8px}
.wk-plain p{font-family:"Inter",sans-serif;font-size:14px;line-height:1.65;
  color:var(--shell);margin:0;max-width:74ch}

/* ---- one edition -------------------------------------------------------- */
.wk{padding:52px 0 8px;border-top:1px solid var(--line2);margin-top:46px}
.wk:first-child{border-top:0;margin-top:0;padding-top:34px}
.wk-head{margin-bottom:26px}
.wk-no{font-family:"Inter",sans-serif;font-size:12px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--bronze);font-weight:600;margin-bottom:10px}
.weekly-doc .wk-head .swat-h2{margin-bottom:14px}
.wk-lead p{font-size:20px;line-height:1.55;color:var(--linen)}
.wk-lead p:last-child{margin-bottom:0}

/* ---- the seven fixed sections ------------------------------------------- */
.weekly-doc .wk-sec{padding:26px 0 0}
.wk-sec h3{font-family:"Inter",sans-serif;font-size:11.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--bronze);font-weight:600;margin:0 0 12px}
.wk-list{list-style:none;padding:0;margin:0}
.wk-list li{position:relative;padding:0 0 12px 22px;color:var(--shell)}
.wk-list li::before{content:"→";position:absolute;left:0;top:0;color:var(--bronze)}
.wk-list li:last-child{padding-bottom:0}

/* findings — the status chip leads every line */
.wk-finds{list-style:none;padding:0;margin:0}
.wk-finds li{padding:0 0 15px;color:var(--shell);text-indent:0}
.wk-finds li:last-child{padding-bottom:0}
.wk-finds .badge{margin-right:8px;position:relative;top:-1px}

/* asks — numbered, cut circles, and the section that must never be skimmed.
   The bronze rule sits on the wrap's outer edge; copy stays on the content grid. */
.wk-ask{position:relative;padding-left:25px !important;
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--bronze) 7%,transparent),transparent 62%)}
.wk-ask::before{content:"";position:absolute;left:-28px;top:0;bottom:0;
  width:3px;background:var(--bronze)}
.wk-asks{counter-reset:a;list-style:none;padding:0;margin:0}
.wk-asks li{counter-increment:a;position:relative;padding:0 0 16px 44px;color:var(--shell)}
.wk-asks li:last-child{padding-bottom:0}
.wk-asks li::before{content:counter(a);position:absolute;left:0;top:1px;
  width:28px;aspect-ratio:1;clip-path:circle(50%);background:var(--bronze);
  color:var(--obsidian);font-family:"Inter",sans-serif;font-size:13px;font-weight:600;
  display:flex;align-items:center;justify-content:center}

/* ---- section subtitles: what each fixed section is FOR ------------------ */
/* .swat-doc p (swat.css:125) sets body colour at 0,1,1 and beats a bare
   .wk-sub, which rendered the subtitle as another paragraph of body text.
   Namespaced to match this file's own convention. */
.weekly-doc .wk-sub{font-family:"Inter",sans-serif;font-size:12.5px;
  line-height:1.55;color:var(--muted);margin:-4px 0 14px;max-width:68ch}

/* ---- asks: who owes what, and what is soonest --------------------------- */
.ask-index{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;
  margin:0 0 12px}
.ask-index-label{font-family:"Inter",sans-serif;font-size:10.5px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ask-idx{font-family:"Inter",sans-serif;font-size:13px;color:var(--shell)}
.ask-idx b{font-weight:600;margin-right:7px}
.ask-idx a{display:inline-flex;align-items:center;justify-content:center;
  width:20px;aspect-ratio:1;clip-path:circle(50%);margin-right:3px;
  background:color-mix(in srgb,var(--bronze) 22%,transparent);
  color:var(--linen);font-size:11px;font-weight:600;text-decoration:none}
.ask-idx a:hover,.ask-idx a:focus-visible{background:var(--bronze);color:var(--obsidian)}
.weekly-doc .ask-soonest{font-family:"Inter",sans-serif;font-size:12.5px;
  line-height:1.6;color:var(--muted);margin:0 0 18px;max-width:70ch}
.ask-soonest b{color:var(--linen);font-weight:600}
.ask-soonest a{color:var(--bronze)}

.ask-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:5px}
.ask-who{font-family:"Inter",sans-serif;font-size:13.5px;font-weight:600;
  letter-spacing:.02em;color:var(--linen)}
.ask-due,.wk-asks .ask-carried{font-family:"Inter",sans-serif;font-size:10.5px;
  letter-spacing:.09em;text-transform:uppercase;font-weight:600;
  padding:3px 8px;border:1px solid var(--line2);color:var(--muted);white-space:nowrap}
.ask-due{border-color:color-mix(in srgb,var(--bronze) 45%,transparent);
  color:var(--bronze)}
.wk-asks .ask-carried{border-style:dashed;border-bottom-style:dashed;cursor:help}
.wk-asks li>p{margin:0;color:var(--shell)}

/* ---- prior editions fold; the latest one never does --------------------- */
.wk-fold>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;
  align-items:baseline;gap:8px 16px;padding:6px 0}
.wk-fold>summary::-webkit-details-marker{display:none}
.wk-fold>summary::after{content:"open";font-family:"Inter",sans-serif;font-size:10.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--bronze);margin-left:auto}
.wk-fold[open]>summary::after{content:"close"}
.wk-fold>summary:hover .wk-fold-label{color:var(--linen)}
.wk-fold-label{font-family:"Cormorant Garamond",Georgia,serif;font-size:22px;
  color:var(--shell)}
.wk-fold-meta{font-family:"Inter",sans-serif;font-size:11.5px;letter-spacing:.06em;
  color:var(--muted)}
.wk-fold>summary .wk-no{margin-bottom:0}
.wk-past .wk-head{margin-top:18px}

/* ---- narrow -------------------------------------------------------------- */
@media (max-width:640px){
  .weekly-editions-in{padding:0 12px}
  .weekly-editions a{padding-left:16px;padding-right:16px}
  .wk-lead p{font-size:18px}
  .wk-ask{padding-left:19px !important}
  .wk-ask::before{left:-20px}
  .wk-asks li{padding-left:38px}
  .wk-plain{padding:14px 14px}
  .ask-index{gap:6px 12px}
  .wk-fold-label{font-size:19px}
  .wk-fold>summary::after{margin-left:0}
}

/* ---- print: this page is meant to be saved as a PDF and forwarded -------- */
@media print{
  .weekly-editions{display:none !important}
  .wk{break-inside:avoid;border-top:1px solid #999}
  .wk-ask,.wk-plain{background:none}
  /* the legend is the key to the status chips printed on every finding —
     hiding it left the printed page with labels and no way to read them */
  .wk-legend{break-inside:avoid}
  .wk-plain{border-left:2px solid #999}
  /* a folded prior edition must still print: paper has no disclosure triangle */
  .wk-fold>summary::after{display:none}
  .wk-fold-body{display:block !important}
  details.wk-fold>*{display:block}
}
/* folded content is display:none to the printer unless the element is open —
   force every edition open at print time */
@media print{.wk-fold:not([open])>.wk-fold-body{display:block !important}}
