/* Finish for the dossiers of 03.12.2026 (HOF Sir Class, De Tomaso Blue-Gold) only; linked by motion_head() in
   drafts/akte.py so the older dossiers stay byte- and pixel-identical. Tokens from akte.src.css (--r). */

/* head: the credit line under the title is short standalone text; balance it so no single word or year hangs alone
   («… Permanent Model since / 2024» at 402 px). */
.c-ttl h1,.c-ttl .sub{text-wrap:balance}

/* cover plate on a desktop: the picture is set height:auto and had no height until it arrived, so title, pass and
   page jumped by its height (CLS 0.16 at 1440 on a slow line). Reserve it from the cover's own size, 2048 × 1152. */
@media (min-width:761px){.cert.plate .c-bg img{aspect-ratio:2048/1152}}

@media (max-width:760px){
  /* cover plate on a phone: the light HOF studio picture ran under the double hairline frame out to the screen edge;
     on a light picture that reads as overflow. It now sits inside the frame as on the desktop, same radius token. */
  .cert.plate .c-bg{margin-inline:0;border-radius:var(--r);overflow:hidden}
  /* phone crop of the 4:5 cover: a dossier may set its own position (meta cover_pos_s) when the car sits low in the
     picture; the shared renderer writes 50% 50% inline, which cut the De Tomaso's nose off. */
  .cert[style*="--cover-pos-s"] .c-bg img{object-position:var(--cover-pos-s) !important}
}

/* «Still to be documented» (critique 03.12.): one line between it and the table above, no empty strip under the
   head or at the end, values right-aligned like every other table, and on a phone the label takes the width «open» leaves. */
article.sheet + details.zs,.blk:has(>.kv:last-child) + details.zs{margin-top:0;border-top:0}
details.zs .sh-b{margin-top:0;padding-bottom:0}
details.zs[open]{border-bottom:0}
@media (max-width:760px){.zs .kv .r{grid-template-columns:minmax(0,1fr) auto}}

/* values and provenance notes: no single word alone on the last line where it can be avoided */
.kv dd,.m,.op .cap,.ch-s{text-wrap:pretty}

/* one gap between blocks of a page: a chart after a picture or table keeps the same 36 px (22 px on a phone) */
.sheet>.ch,.sh-b>.ch{margin-top:clamp(22px,2.8vw,36px)}

/* chapter openers from 1024 px (critique 03.12., model: P72): figure and unit on one baseline, a long unit wraps
   beside the figure, not under it; an opener without picture or graphic puts caption and notes in the right column,
   top-aligned with the figure. Phones keep the stacked form. */
@media (min-width:1024px){
  html[lang=en] .op .big{display:flex;align-items:baseline;gap:0 16px}
  html[lang=en] .op .big small,html[lang=en] .op .big small.long{display:block;flex:0 1 auto;min-width:0;margin:0;max-width:none;white-space:normal;line-height:1.3;text-wrap:balance}
  .op:not(.pic):not(:has(.op-g)) .op-t{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(24px,4vw,56px);
    grid-template-areas:"e e" "h h" "b c" "b m";align-items:start}
  .op:not(.pic):not(:has(.op-g)) .op-t>.eyebrow{grid-area:e}
  .op:not(.pic):not(:has(.op-g)) .op-t>h2{grid-area:h}
  .op:not(.pic):not(:has(.op-g)) .op-t>.big{grid-area:b}
  .op:not(.pic):not(:has(.op-g)) .op-t>.cap{grid-area:c;margin-top:clamp(20px,3vw,40px)}
  .op:not(.pic):not(:has(.op-g)) .op-t>.ms{grid-area:m}
}

/* a unit too long for two lines beside a wide figure: from 1024 px its first word stays on the baseline, the rest is a line below */
.op .big .u-one,.op .big .u-two{display:none}
@media (min-width:1024px){
  html[lang=en] .op .big:has(.u-two){flex-wrap:wrap}
  html[lang=en] .op .big small.u-all{display:none}
  html[lang=en] .op .big .u-one{display:block}
  html[lang=en] .op .big .u-two{display:block;flex-basis:100%;margin-top:10px;font-size:var(--b);font-weight:400;letter-spacing:0;line-height:1.35;color:var(--ink2)}
}

/* evidence ring (new dossiers only): the ink of figure plus label (73.5–95 user units) is centred on the ring (80) */
.dr-box text.dr-own{translate:0 -4.25px}

/* opener without picture from 1024 px: the caption's cap height meets the top of the digits. The digits sit
   0.0915 × their size below their line box, the caption's capitals 0.272em below its own; the difference is the shift. */
@media (min-width:1024px){
  .op:not(.pic):not(:has(.op-g)) .op-t>.cap{padding-top:calc(.0915 * var(--num) - .272em)}
}

/* reduced motion: jumps inside the page (Public, Check the checksum) land at once; the shared sheet scrolls smoothly for everyone */
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* an open status in a table column reads like every open value: --ink3 (DESIGN.md «row value offen in --ink3») */
.sx.is-open{color:var(--ink3)}

/* score parts below level L1: no points column, the documented share takes its place */
.sc-l.wh .sp-h,.sc-l.wh .sp summary{grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) 5.2em 32px}
@media (max-width:760px){.sc-l.wh .sp-h,.sc-l.wh .sp summary{grid-template-columns:minmax(0,1fr) 4.6em 32px}}

/* very small phones: the twin ID stays inside the inner frame line of the head (it reached past it at 320 px) */
@media (max-width:359px){#top dd.id{font-size:16.5px;letter-spacing:-.005em}}

/* owner / public switch: its track keeps its own height (it stretched to 42–50 px on phones; the 44 px hit area comes from button::after) */
.c-top .seg{align-self:start;height:auto}

/* score parts on a phone: the bar closes the row; no separator line right under it */
@media (max-width:760px){.sc-l .sp + .sp{border-top-color:transparent}}

/* head: «This version of … is current» never leaves one word alone on its second line */
.c-state{text-wrap:balance}
