/* ============================================================
   Authyr — long-form document layer (the whitepaper).

   Styles the whitepaper's OWN existing class names (.doc, .chap,
   .chap-title, .callout, .pq, .stack-item, .tf-row …) in the premium
   design language. Written this way deliberately: the whitepaper carries
   the canonical thesis, and CLAUDE.md marks that text SACRED — so the
   markup and wording are left byte-identical and only the presentation
   moves. Pair with authyr-premium.css.
   ============================================================ */

.doc{max-width:820px;margin:0 auto;padding:0 24px 90px}

/* ---- document masthead ---- */
.doc-title{font-size:clamp(38px,6vw,62px);font-weight:900;letter-spacing:-.045em;
  line-height:1.03;color:var(--ink);margin-bottom:18px}
.doc-sub{font-size:clamp(17px,2vw,20px);color:var(--ink-dim);line-height:1.6;margin-bottom:22px}
.doc-meta{display:flex;flex-wrap:wrap;gap:10px 22px;padding-bottom:30px;
  border-bottom:1px solid var(--line);margin-bottom:8px}
.meta-line{font-size:13.5px;color:var(--ink-mute);font-weight:600}
.doc-meta .k{font-weight:800;color:var(--ink)}

/* ---- chapters ---- */
.chap{position:relative;isolation:isolate;padding:62px 0 10px;border-bottom:1px solid var(--line)}
.chap:last-of-type{border-bottom:none}
.chap-num{font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;
  color:var(--signal);margin-bottom:12px}
.chap-title{font-size:clamp(27px,3.6vw,38px);font-weight:900;letter-spacing:-.038em;
  line-height:1.14;color:var(--ink);margin-bottom:22px}
.sub-title{font-size:21px;font-weight:800;letter-spacing:-.025em;color:var(--ink);
  margin:38px 0 14px}
.minor{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:26px 0 10px}

.chap p{font-size:17px;line-height:1.72;color:var(--ink-dim);margin-bottom:19px}
.chap p.lede{font-size:19.5px;line-height:1.66;color:var(--ink);font-weight:500}
.chap strong{color:var(--ink);font-weight:750}
.chap a{color:var(--signal);text-decoration:underline;text-underline-offset:2px}
.chap ul,.chap ol{margin:0 0 20px 22px;display:flex;flex-direction:column;gap:9px}
.chap li{font-size:16.5px;line-height:1.66;color:var(--ink-dim)}
.dim{color:var(--ink-mute)}

/* ---- pull quote ---- */
.pq{position:relative;margin:30px 0;padding:26px 28px;border-radius:var(--r);
  background:linear-gradient(140deg,rgba(30,77,255,.05),rgba(121,224,181,.05));
  border:1px solid var(--line);border-left:3px solid var(--signal);
  font-size:19px;line-height:1.6;color:var(--ink);font-weight:500;font-style:italic}
.pq cite{display:block;margin-top:14px;font-size:13.5px;font-style:normal;
  font-weight:700;color:var(--ink-mute)}

/* ---- callouts ---- */
.callout{margin:26px 0;padding:22px 24px;border-radius:var(--r);background:#fff;
  border:1px solid var(--line);border-left:3px solid var(--signal)}
.callout p{font-size:16px;margin-bottom:10px}
.callout p:last-child{margin-bottom:0}
.callout.warn{border-left-color:#f5a623;background:rgba(245,166,35,.04)}

/* ---- numbered stack items (the verification signals) ---- */
.stack-item{display:flex;gap:16px;padding:19px 0;border-bottom:1px solid var(--line)}
.stack-item:last-child{border-bottom:none}
.lnum{flex:none;width:36px;height:36px;border-radius:11px;background:var(--ink);color:#fff;
  display:grid;place-items:center;font-weight:900;font-size:14.5px}
.lbody{flex:1}
.lbody p{margin-bottom:7px}
.lbody p:last-child{margin-bottom:0}

/* ---- timeline rows (the 30-day window) ---- */
.tf-row{display:flex;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.tf-row:last-child{border-bottom:none}
.tf-day{flex:none;width:104px;font-size:12.5px;font-weight:900;letter-spacing:.05em;
  text-transform:uppercase;color:var(--signal);padding-top:2px}
.tf-body{flex:1}
.tf-body p{margin-bottom:6px}
.tf-body p:last-child{margin-bottom:0}

/* ---- misc inline chrome ---- */
.tname{font-weight:800;color:var(--ink)}
.field{margin:14px 0}
.badge{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.05em;
  padding:4px 10px;border-radius:99px;background:rgba(30,77,255,.08);
  color:var(--signal);border:1px solid rgba(30,77,255,.2)}
.row{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0}
.row>*{flex:1 1 240px}
.acc{border:1px solid var(--line);border-radius:var(--r);padding:20px;background:#fff;margin:18px 0}

@media (max-width:640px){
  .tf-row{flex-direction:column;gap:6px}
  .tf-day{width:auto}
}
