/* Round 17 (lane SITE-P5), on top of ../round-15/site-15.css and ../round-16/site-16.css: the hero's scenes
   inside the inner pages. The block in the margin (pricing, trust), chapter 6's block model (rules band, the
   tour's export stratum, the pricing price-model diagram), chapter 3's core tray (the tour's photos stop, the
   guides index), the live bands (art/bands.js) and the plan cards' lamp. Colours only as tokens; the new ones
   are the hero's own: chapter 6's wire yellow, the tray's galvanised steel, the photo frame's ochre and the
   lamp's warm key. */
:root {
  --wire: #f2d35e;            /* chapter 6's high-grade wire (G: 0.96, 0.85, 0.36) */
  --wire-wash: rgb(242 211 94 / 0.1);
  --frame: #c98c3a;           /* the photo frame's ochre line (G: 0.79, 0.55, 0.23) */
  --steel: #8b8e93;           /* the core tray's galvanised steel */
  --steel-lo: #4f5257;
  --lamp-key: rgb(255 204 143 / 0.55); /* G's lamp, (1.0, 0.8, 0.56) */
}

/* ======================================================== 1. the block in the margin (pricing, trust) */
.blk-page { --blk: clamp(360px, 30vw, 600px); }
.blk { margin: 0; position: relative; width: 100%; }
.blk-stage { position: relative; width: 100%; }
.blk .still { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; }
.blk .still.on { opacity: 1; }
.blk .ov { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; pointer-events: none; }
.blk .ov.on { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.15s, visibility 0s; }
.blk-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.blk-lead line, .blk-lead path { stroke: var(--oxide-hi); stroke-width: 1.2; fill: none; vector-effect: non-scaling-stroke; }
.blk-lead circle { fill: var(--oxide-hi); stroke: var(--paper); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.blk-lead g.ov { opacity: 0; transition: opacity 0.45s ease; }
.blk-lead g.ov.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .blk .still, .blk .ov, .blk-lead g.ov { transition: none; } }

/* the paper tags: map annotations, every figure on them also carries its fact id */
.btag {
  position: absolute; display: block; white-space: nowrap; z-index: 1;
  font: 400 11px/1.35 var(--font-mono); color: var(--paper-ink); background: var(--paper);
  border: 1px solid var(--paper-ink); padding: 3px 7px; box-shadow: 2px 2px 0 var(--shadow);
}
.btag .bl { display: block; }
.btag .bl:first-child:not(:only-child) { font: 300 9.5px/1.6 var(--font-wide); letter-spacing: 0.16em; text-transform: uppercase; }
.btag.r { transform: translate(6px, -50%); }
.btag.l { transform: translate(calc(-100% - 6px), -50%); }
.btag.t { transform: translate(-50%, calc(-100% - 6px)); }
.btag.lamp { background: var(--lamp); color: var(--lamp-ink); border-color: var(--lamp-ink); }
.btag.oxide { background: var(--oxide); color: var(--paper); border-color: var(--paper); }
.btag.note { font: 300 9.5px/1.5 var(--font-wide); letter-spacing: 0.16em; text-transform: uppercase; }
.btag code { font: inherit; background: none; border: 0; padding: 0; color: inherit; }
.btag.host { font-size: 10.5px; padding: 2px 6px; }
.bpin { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--oxide-hi); box-shadow: 0 0 0 1.5px var(--paper); transform: translate(-50%, -50%); }
.bpin.mel { border-style: dashed; }

.blk-cap { margin: 10px 0 0; display: flex; gap: 12px; align-items: center; justify-content: center; font: 300 11px/1.5 var(--font-wide); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); min-width: 0; }
.blk-cap .station {
  font: 300 10px/1 var(--font-wide); letter-spacing: 0.16em; color: var(--paper-ink); background: var(--paper);
  border: 1px solid var(--paper-ink); padding: 5px 7px 5px 9px; box-shadow: 3px 3px 0 var(--shadow); flex: none;
}
.blk-cap .station::after { content: " m"; }
.blk-cap .blk-name { min-width: 0; overflow-wrap: anywhere; }

/* the side column: the block sits sticky in it, as in the layout study's C; the margin notes drop under
   each section's field as a strip of notes (the side holds the block) */
@media (min-width: 1181px) {
  .blk-page .a-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--blk); align-content: start; }
  .blk-page .a-main > * { grid-column: 1; min-width: 0; }
  .blk-page .a-main > .blk-side { grid-column: 2; grid-row: 1 / span 40; border-left: 1px dashed var(--line-soft); }
  .blk-stick { position: sticky; top: var(--head); height: calc(100vh - var(--head)); max-height: 1000px; display: flex; align-items: center; justify-content: center; padding: 24px clamp(12px, 1.4vw, 28px); }
  .blk-page .a-row { grid-template-columns: minmax(0, 1fr); }
  .blk-page .a-margin { border-left: 0; border-top: 1px dashed var(--line-soft); margin: 28px var(--pad) 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: start; }
  .blk-page .a-margin > * + * { margin-top: 0; }
  .blk-page .a-margin .mock-note { margin: 0; }
  .blk-page .a-margin .anno::before, .blk-page .a-margin .mock-note::before { display: none; }
  .blk-page .a-title .title { grid-column: 1 / -1; }
}
/* below 1600 the field is about 770 px: the plans become three slabs, rock face left and terms right, as the
   block is sliced (the layout study's C) */
@media (min-width: 1001px) and (max-width: 1599px) {
  .pg-pricing.blk-page .a-plans .plan:nth-child(n) { grid-column: 1 / -1; margin-top: 0; display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .pg-pricing.blk-page .plan-head { grid-row: 1 / span 2; border-bottom: 0; border-right: 3px solid var(--paper); min-height: 0; }
  .pg-pricing.blk-page .plan.feature .plan-head { border-right-color: var(--lamp); }
  .pg-pricing.blk-page .plan-foot { padding-top: 0; }
  .pg-pricing.blk-page .a-m1, .pg-pricing.blk-page .a-m2 { grid-column: 1 / -1; }
  .pg-pricing.blk-page .a-m1 svg { max-width: 460px; }
  .pg-pricing.blk-page .a-x1, .pg-pricing.blk-page .a-x2 { grid-column: 1 / -1; margin-top: 0; }
  .pg-pricing.blk-page .a-free .card:nth-child(n) { grid-column: 1 / -1; }
}
/* at 1600 and up the field is narrower than round 16's (the side holds the block): the two extras tables
   keep round 16's narrower placement, one under the other */
@media (min-width: 1600px) {
  .pg-pricing.blk-page .a-x1 { grid-column: 1 / span 8; }
  .pg-pricing.blk-page .a-x2 { grid-column: 5 / -1; margin-top: 0; }
}
/* below 1180: the block is a strip that stays under the header, small block and the section's name */
@media (max-width: 1180px) {
  .blk-side { position: sticky; top: var(--head); z-index: 6; background: var(--ground); border-bottom: 1px solid var(--line-soft); padding: 6px var(--pad); }
  .blk { display: flex; align-items: center; gap: 14px; }
  .blk-stage { width: 92px; flex: none; }
  .blk .ov, .blk-lead { display: none; }
  .blk-cap { margin: 0; justify-content: flex-start; text-align: left; }
}

/* ======================================================== 2. chapter 6's block model */
/* rules: the header band */
.model-band { position: relative; height: clamp(150px, 15vw, 260px); background: var(--ground-2) url(/art/band-model-wide.webp) center 45% / cover no-repeat; border-bottom: 1px solid var(--paper); box-shadow: inset 0 -30px 40px var(--shadow); }
.model-band .band-label {
  position: absolute; left: var(--pad); bottom: 14px; max-width: calc(100% - 2 * var(--pad));
  font: 300 10px/1.4 var(--font-wide); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-ink);
  background: var(--paper); border: 1px solid var(--paper-ink); padding: 4px 8px; box-shadow: 3px 3px 0 var(--shadow);
}
/* the tour's export stop: its stratum is the block model, not a rock band */
.t-main .stratum.art-model { --band: clamp(130px, 14vw, 230px); --tex: url(/art/band-model-tall.webp) /* custom-property urls resolve against the sheet that uses them (round 16) */; --tex-size: cover; }
.t-main .stratum.art-model::before { background-position: center 40%; background-repeat: no-repeat; }
/* pricing: the per-50 blocks as wire cubes on the survey grid */
.grid-model .grid-ln { stroke: var(--line); stroke-width: 0.8; }
.grid-model .wire { stroke: var(--wire); stroke-width: 1.5; fill: none; }
.grid-model .c-add .wire { stroke-dasharray: 6 3; }
.grid-model .wire.hid { stroke-dasharray: 3 3; opacity: 0.5; }
.grid-model .wire-face { fill: var(--wire-wash); }
.grid-model .ptag { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 1; }
.grid-model .ptg text { fill: var(--paper-ink); }
.grid-model .ptg .t-oxide { fill: var(--oxide); }

/* ======================================================== 3. chapter 3's core tray */
/* the map frame (ochre line, paper corners, the label) snaps from loose to the tray, as in the hero; all of it
   draws inside the figure's padding, so nothing leaves the page's box */
.tray-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; margin-top: 44px; }
.tray-fig { margin: 0; min-width: 0; }
.tray-frame { position: relative; padding: 52px 40px 40px; }
.tray-frame img { display: block; width: 100%; height: auto; }
.tray-frame::before, .g-tray-wrap::before { content: ""; position: absolute; inset: 42px 30px 30px; border: 1px solid var(--frame); transition: inset 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.35s; pointer-events: none; }
.pf-c { position: absolute; width: 16px; height: 16px; border: 0 solid var(--paper); transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.35s; }
.pf-c.tl { left: 26px; top: 38px; border-width: 2px 0 0 2px; }
.pf-c.tr { right: 26px; top: 38px; border-width: 2px 2px 0 0; }
.pf-c.bl { left: 26px; bottom: 26px; border-width: 0 0 2px 2px; }
.pf-c.br { right: 26px; bottom: 26px; border-width: 0 2px 2px 0; }
.pf-label {
  position: absolute; left: 30px; top: 8px; max-width: calc(100% - 60px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 300 10px/1.4 var(--font-wide); letter-spacing: 0.2em; color: var(--oxide); background: var(--paper);
  border: 1px solid var(--paper-ink); padding: 3px 8px; transition: opacity 0.35s 0.3s;
}
.tray-frame.loose::before { inset: 4px 0 0; opacity: 0; }
.tray-frame.loose .pf-c { opacity: 0; }
.tray-frame.loose .pf-c.tl { transform: translate(-24px, -30px); }
.tray-frame.loose .pf-c.tr { transform: translate(24px, -30px); }
.tray-frame.loose .pf-c.bl { transform: translate(-24px, 24px); }
.tray-frame.loose .pf-c.br { transform: translate(24px, 24px); }
.tray-frame.loose .pf-label { opacity: 0; transition-delay: 0s; }
.tray-row .mock-note { margin: 0; }
@media (max-width: 1000px) { .tray-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .tray-frame { padding: 48px 32px 34px; } }

/* guides: each how-to is a run in a tray channel, its number on the wooden depth block */
.g-tray-wrap { position: relative; padding: 52px 40px 40px; }
.g-tray {
  position: relative; padding: 10px 10px 12px; border: 1px solid var(--steel-lo);
  background: linear-gradient(180deg, var(--steel), var(--steel-lo)); box-shadow: 8px 10px 0 var(--shadow), inset 0 1px 0 var(--line);
}
.g-runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.run { margin: 0; }
.run-a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 72px; text-decoration: none; color: var(--paper-ink);
  background: var(--ground-3); border: 1px solid var(--steel-lo); box-shadow: inset 0 3px 6px var(--shadow); position: relative;
}
.dblock {
  display: grid; place-items: center; background: var(--paper) url(/art/depth-block.webp) center / cover; border-right: 2px solid var(--steel-lo);
  font: 400 18px/1 var(--font-wide); letter-spacing: 0.08em; color: var(--paper-ink); box-shadow: inset -3px 0 4px var(--shadow);
}
.dblock b { font-weight: 400; }
.core { position: absolute; left: 66px; right: 0; top: 0; bottom: 0; background: url(/art/run-dol.webp) 0 50% / auto 28px repeat-x; opacity: 0.95; }
.core-qzv { background-image: url(/art/run-qzv.webp); }
.run-text {
  position: relative; align-self: center; justify-self: start; margin: 10px 12px; max-width: min(64ch, calc(100% - 24px));
  display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--paper-ink); padding: 7px 12px 8px; box-shadow: 3px 3px 0 var(--shadow);
}
.run-t { font: 400 12px/1.45 var(--font-wide); letter-spacing: 0.1em; text-transform: uppercase; }
.run-l { font-size: 15px; line-height: 1.4; }
.run-a:hover .run-text, .run-a:focus-visible .run-text { background: var(--lamp); border-color: var(--lamp-ink); }
.run-a:hover, .run-a:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; color: var(--lamp-ink); }
@media (max-width: 760px) {
  .run-a { grid-template-columns: 46px minmax(0, 1fr); }
  .core { left: 48px; }
  .dblock { font-size: 14px; }
  .run-text { margin: 8px; max-width: calc(100% - 16px); }
  .g-tray-wrap { padding: 50px 34px 36px; }
  .g-tray { padding: 6px; }
}

/* ======================================================== 4. the live bands and the lamp on the plan cards */
.gl-band { position: absolute; left: 0; display: block; pointer-events: none; z-index: 0; }
/* once the GL strip has drawn, the absolute static bands under it are hidden (the in-flow ones are covered) */
.gl-bands .section::after, .gl-bands .t-main .stratum.tex-strata:not(.art-model)::before, .gl-bands .t-main .stratum.tex-laterite::before { visibility: hidden; }
.pg-pricing .plan:nth-child(1) .plan-head { --rock: url(/tex/rock-sap.webp); }
.pg-pricing .plan:nth-child(2) .plan-head { --rock: url(/tex/rock-dol.webp); }
.pg-pricing .plan:nth-child(3) .plan-head { --rock: url(/tex/rock-grn.webp); }
/* the lamp lights the rock under the veil, so the text over it keeps its contrast (measured in README) */
.lamp-cards .plan:nth-child(n) .plan-head { /* beats site-15.css's per-card rule */
  background-image: linear-gradient(var(--rock-veil), var(--rock-veil-2)),
    radial-gradient(circle 200px at var(--lx, -999px) var(--ly, -999px), var(--lamp-key), var(--clear) 72%), var(--rock);
  background-blend-mode: normal, overlay, normal; background-size: cover; background-position: center;
}

/* ======================================================== round 17b: home, "What it does for you" (owner, 27 Nov 2026)
   The three columns are equal: the same ground, no rock face, no display-size number. The money column's price
   line is body type and quiet; the big price is only in the pricing row at the bottom and on the pricing page. */
.pg-home .price-quiet { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.pg-home .price-quiet .pq-num { color: var(--ink); }
.pg-home .price-quiet .lp-unit { margin-left: 0.3em; }
.pg-home .price-quiet .price-alt { display: block; margin: 2px 0 0; font: inherit; color: var(--mute); }
.pg-home .h-more-q { margin: 12px 0 0; font-size: 15px; }
