/* ============================================================
   ported-skin.css — the hub's look, over ported playbooks and studies.

   A ported page is the source microsite's own markup and CSS inside
   the hub's nav and footer. The sources speak the LeanScale Modern
   Design Standard (bold 800 headings, rounded shadowed cards, lime
   accents); the hub moved to the main site's language in August 2026
   (STYLE-ALIGNMENT.md). Left alone, a playbook was a different design
   system from the index that links to it, and from its own last three
   sections.

   This file is hub.css §4–8 again, at the specificity the ported rules
   need. It is linked LAST on a ported page, after ported.css and the
   page's own sheet, so at equal specificity it wins on order.

   What it does not do: literal weights, radii and shadows scattered
   through hundreds of source rules. engine/lib/port-skin.mjs rewrites
   those at build time. This file covers what a token or a named
   primitive can.
   ============================================================ */

/* ---------- 1. tokens: the Design Standard's, at the hub's values ---------- */
.ported{
  --ls-lime:#F6DDEF;           /* hub.css :root — lime appears nowhere on leanscale.team */
  --ls-lime-deep:#EDB4DC;
  --radius:2px;                /* cards go near-square */
  --shadow:none;               /* hairlines, not shadows */
  --shadow-lift:none;
  --ls-ink:#311A36;
  background:transparent;      /* the page's own background shows through */
}

/* ---------- 2. typography — the main-site scale (hub.css §4) ---------- */
.ported .hero h1,.ported .display{
  font-size:clamp(2.4rem,4.8vw,3.5rem);    /* 56px desktop */
  line-height:1.143;
  font-weight:400;                         /* main-site H1 is regular, never bold */
  letter-spacing:-.02em;
  color:var(--ls-heading);
  max-width:20ch;
  text-wrap:balance}
.ported .hero .sub,.ported .lede{font-size:18px;line-height:1.5;letter-spacing:-.18px;color:#656565;font-weight:400;max-width:62ch}
.ported .sec-head h2{
  font-size:clamp(1.9rem,3.4vw,3rem);      /* 48px desktop */
  line-height:1.167;
  font-weight:500;
  letter-spacing:-.02em;
  color:var(--ls-heading);
  text-wrap:balance}
/* On the sources .h-section is a SUB-head inside a phase, so it keeps its size
   and takes only the weight and ink. On the hub's own pages it is a section head. */
.ported .h-section{font-weight:500;letter-spacing:-.02em;color:var(--ls-heading);line-height:1.2}
.ported .sec-head p{font-size:18px;line-height:1.5;letter-spacing:-.18px;color:var(--ls-dark-gray);max-width:62ch}
/* A heading the source gave no weight falls back to the browser's bold. Low
   specificity on purpose: any rule that names the heading still wins. */
.ported h1,.ported h2,.ported h3,.ported h4,.ported h5{font-weight:500}
.ported strong,.ported b{font-weight:600}

/* Live site sets the hero highlight as orchid TEXT, not an underline. */
.ported .hl{color:var(--ls-orchid);white-space:normal}
.ported .hl:after{display:none}

/* eyebrow: plain uppercase 12px label with an orchid pip, not a pill */
.ported .eyebrow{background:transparent;padding:0 0 0 2px;border-radius:0;font-weight:300;
  font-size:12px;line-height:16.8px;letter-spacing:-.14px;text-transform:uppercase;
  color:var(--ls-dark-purple)}
.ported .eyebrow .pip{background:var(--ls-orchid)}
.ported .sec-head .kick,.ported .kick,.ported .tag{font-weight:300;font-size:12px;letter-spacing:-.14px;
  color:var(--ls-dark-purple)}
/* A callout's label is the one place a kicker sits inline with body text, so
   it needs enough weight to read as a label beside an 18px paragraph. */
.ported .insight .tag{font-size:12px;font-weight:500;letter-spacing:.04em;line-height:1.5;
  color:var(--ls-strong-purple);padding-top:3px}
.ported .insight p{font-weight:400}

/* ---------- 3. hero stat blocks — no card chrome (hub.css §5) ---------- */
.ported .stats{gap:40px}
.ported .stats .chip{background:transparent;border:none;box-shadow:none;border-radius:0;padding:0;
  gap:6px;align-items:flex-start}
.ported .stats .chip b{font-size:32px;font-weight:500;line-height:44px;letter-spacing:-.64px;color:var(--ls-heading)}
.ported .stats .chip span{font-size:12px;font-weight:400;line-height:16.8px;letter-spacing:0;
  text-transform:none;color:var(--ls-label,#6F6F6F)}

/* ---------- 4. dark bands — flat #301934 (hub.css §8) ---------- */
.ported .band{background:var(--ls-dark-purple);border-radius:2px}
.ported .band:before{display:none}
.ported .band .lbl{color:var(--ls-orchid)}
.ported .band p em{color:var(--ls-orchid)}
.ported .band p{font-weight:400}

/* ---------- 5. one column from the hero to the last related card ----------
   The ported region is a centred 1120px column. The hub sections that follow
   it (Questions this settles, Proof, Connected, Related) and the action bar
   above it used the hub's 1440px container, so the left edge jumped 125px
   between the playbook and its own related content. On a ported page they
   take the port's column. */
body.is-ported main > section > .wrap,
body.is-ported main > .portbar{max-width:1120px;margin-left:auto;margin-right:auto;padding-left:34px;padding-right:34px}
/* A study's "How this was measured" card sits inside the port, between its
   headline and its first finding. It is one card in a run of content there, not
   a section of its own, so it drops the hub's 90px section rhythm and hairline. */
body.is-ported main > section.method--inport{padding:40px 0 0;border-top:0}
@media(max-width:640px){
  body.is-ported main > section > .wrap,
  body.is-ported main > .portbar{padding-left:20px;padding-right:20px}
  /* Same two-column stat grid the hub's own heroes take on a phone (hub.css). */
  .ported .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}
  .ported .stats .chip b{font-size:26px;line-height:34px}
}
