/* ==========================================================================
   Assay article template (built by tools/assays/build.py)
   A reading page in the Our Approach type system: Roboto Serif label, Archivo headline, Hanken Grotesk text.
   Bone ground, one reading column of about 66 characters; the hero image and the headline share the opening.
   ========================================================================== */
.site-header--solid { position: relative; background: var(--slate); }
.assay { background: var(--bone); color: var(--ink); }

/* ---- shared roles (as on Our Approach) ---- */
.assay .lbl { margin: 0 0 28px; font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 19px; line-height: 1.3; color: var(--slate); }
.assay .lbl a { color: inherit; text-decoration: underline 1px rgba(43, 75, 90, .35); text-underline-offset: 5px; }
.assay .lbl a:hover { text-decoration-color: var(--slate); }

/* ---- opening: headline and standfirst left, campaign image right ---- */
.a-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px;
  grid-template-rows: auto auto auto auto 1fr;   /* the image's extra height goes to the last row, not between the text */
  padding: 104px var(--m) 96px; align-items: start;
}
.a-head > .lbl, .a-title, .a-standfirst, .a-dek { grid-column: 1 / 8; }
.a-title {
  margin: 0; font-family: var(--display); font-stretch: 100%; font-weight: 460;
  font-size: clamp(48px, 6.4vw, 100px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance;
}
.a-standfirst {
  margin: 36px 0 0; max-width: 22em; font-family: var(--display); font-stretch: 100%; font-weight: 440;
  font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -0.01em; color: var(--slate); text-wrap: balance;
}
.a-dek { margin: 28px 0 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: rgba(32, 37, 38, .82); }
.a-hero { grid-column: 9 / -1; grid-row: 1 / span 5; margin: 0; align-self: start; }
.a-hero img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* ---- the reading column ---- */
.a-body {
  max-width: 44rem; margin: 0 auto 0 calc(var(--m) + (100% - 2 * var(--m) + 40px) / 12 * 2);
  padding: 0 var(--m) 128px 0;
  font-size: 19px; line-height: 1.68; color: rgba(32, 37, 38, .9);
}
.a-body p { margin: 0 0 1.05em; }
.a-body > p:first-child { font-size: 22px; line-height: 1.6; color: var(--ink); }

.a-lead { margin-top: 2em !important; color: var(--ink); }
.a-mech { margin: 0 0 1.6em; padding: 0; list-style: none; counter-reset: m; }
.a-mech li {
  counter-increment: m; position: relative; padding: 18px 0 18px 3.2em;
  font-family: var(--display); font-stretch: 100%; font-weight: 440; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.3; color: var(--ink);
}
.a-mech li::before {
  content: counter(m); position: absolute; left: 0; top: 18px;
  font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 19px; line-height: 1.6; color: var(--slate);
}

.a-h2 {
  margin: 2.25em 0 .85em; font-family: var(--display); font-stretch: 100%; font-weight: 460;
  font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -0.014em; color: var(--ink);
}
.a-h2 .a-num { display: block; margin-bottom: .45em; font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 19px; letter-spacing: 0; color: var(--slate); }
.a-h2 .a-name { color: var(--slate); }
.a-h2 .a-sub { display: block; margin-top: .15em; font-family: 'Roboto Serif', Georgia, serif; font-style: italic; font-weight: 360; font-size: .72em; letter-spacing: 0; line-height: 1.25; color: var(--ink); }
.a-h2--plain { margin-top: 2.4em; }

.a-ol { margin: .2em 0 1.4em; padding-left: 1.6em; }
.a-ol li { padding-left: .4em; margin-bottom: .45em; }
.a-ol li::marker { font-family: 'Roboto Serif', Georgia, serif; color: var(--slate); }

.a-pull {
  margin: 1.4em 0 !important; padding-left: 28px; border-left: 3px solid var(--sage);
  font-family: 'Roboto Serif', Georgia, serif; font-style: italic; font-weight: 360; font-size: 25px; line-height: 1.45; color: var(--slate);
}
.a-runin b { font-weight: 600; color: var(--ink); }
.a-seq {
  margin: 1.2em 0 1.4em !important; padding: 22px 26px; background: rgba(43, 75, 90, .06); border-radius: 2px;
  font-family: var(--display); font-stretch: 100%; font-weight: 440; font-size: 21px; line-height: 1.45; color: var(--slate);
}

.a-sources-h { margin: 3em 0 .8em; font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 19px; color: var(--slate); }
.a-sources { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.55; color: rgba(32, 37, 38, .72); }
.a-sources li { padding: 6px 0; }

.a-foot { padding: 0 var(--m) 112px; margin-left: calc((100% - 2 * var(--m) + 40px) / 12 * 2); }
.a-foot .link { --link-line: var(--slate); color: var(--ink); font-size: 17px; }

/* ---- tablet ---- */
@media (max-width: 1000px) {
  .a-head { padding: 80px var(--m) 72px; }
  .a-head > .lbl, .a-title, .a-standfirst, .a-dek { grid-column: 1 / -1; }
  .a-head { grid-template-rows: none; }
  .a-hero { grid-column: 1 / 9; grid-row: auto; margin-top: 56px; }
  .a-body { margin-left: var(--m); padding-bottom: 96px; }
  .a-foot { margin-left: 0; padding-bottom: 88px; }
}
/* ---- phone ---- */
@media (max-width: 640px) {
  .a-head { padding: 56px var(--m) 56px; column-gap: 0; }
  .a-hero { grid-column: 1 / -1; margin-top: 40px; }
  .a-body { font-size: 17px; padding-right: var(--m); }
  .a-body > p:first-child { font-size: 19px; }
  .a-dek { font-size: 17px; }
  .a-pull { font-size: 21px; padding-left: 20px; }
  .a-mech li { padding-left: 2.4em; }
  .a-seq { font-size: 18px; padding: 18px 20px; }
}

/* ---- intro mechanisms are links to their sections ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.a-h2 { scroll-margin-top: 32px; }
.a-mech a { color: inherit; text-decoration: underline 1.5px rgba(43, 75, 90, .22); text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
.a-mech a:hover, .a-mech a:focus-visible { color: var(--slate); text-decoration-color: var(--slate); }
.a-mech a:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; border-radius: 2px; }

/* ---- the margins, from 1300px: the reading column keeps its width; selected material moves beside it ----
   left margin: section numbers and the run-in heads ("Show a verified, observable consequence.")
   right margin: the emphasised observation (pull quote), set level with the paragraph it follows
   Nothing is added or duplicated: the same elements, in the same reading order, change position. */
@media (min-width: 1300px) {
  .a-body > .a-h2, .a-body > .a-runin { position: relative; }
  .a-h2 .a-num {
    position: absolute; left: -180px; top: .32em; width: 140px; margin: 0; text-align: right;
  }
  .a-runin b {
    position: absolute; left: -200px; top: .1em; width: 168px; text-align: right;
    font-family: 'Roboto Serif', Georgia, serif; font-weight: 420; font-size: 16px; line-height: 1.45; color: var(--slate);
  }
}
@media (min-width: 1380px) {   /* the right margin is wide enough for the observation from here */
  .a-pull {
    float: right; clear: right; width: 290px; margin: .2em -350px .8em 0 !important;
    padding: 0 0 0 22px; font-size: 23px; line-height: 1.4;
  }
}
/* ---- phones: one continuous column; checks for type, rhythm and the source list ---- */
@media (max-width: 640px) {
  .a-body { line-height: 1.66; }
  .a-h2 { font-size: 28px; margin-top: 2em; }
  .a-h2 .a-sub { font-size: .78em; }
  .a-sources { font-size: 16px; color: rgba(32, 37, 38, .84); }
  .a-sources li { padding: 7px 0; }
  .a-mech li { font-size: 20px; }
}

/* ---- structures added for Assays 02 and 03 (2026-12-01) ---- */
/* a mechanism heading without a subtitle ("1. Interface as Demonstration") */
.a-h2--short .a-name { color: var(--ink); }
/* sub-sections under a plain heading ("Development 1: …"): one step below the h2, label in Roboto Serif */
.a-h3 {
  margin: 1.9em 0 .7em; font-family: var(--display); font-stretch: 100%; font-weight: 460;
  font-size: clamp(23px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.008em; color: var(--ink); text-wrap: balance;
  scroll-margin-top: 32px;
}
.a-h3-lbl { display: block; margin-bottom: .35em; font-family: 'Roboto Serif', Georgia, serif; font-weight: 380; font-size: 17px; letter-spacing: 0; color: var(--slate); }
/* a bulleted list inside the argument ("Three checks protect the idea:") */
.a-ul { margin: .2em 0 1.4em; padding: 0; list-style: none; }
.a-ul li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.a-ul li::before { content: ''; position: absolute; left: .2em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
/* an opening with no cover image: type only, slightly wider measure */
.a-head--type > .lbl, .a-head--type .a-title, .a-head--type .a-standfirst, .a-head--type .a-dek { grid-column: 1 / 10; }
.a-head--type { grid-template-rows: none; }
@media (max-width: 640px) { .a-h3 { font-size: 22px; } .a-h3-lbl { font-size: 16px; } }
