/* v6 additions (builder A). Home: outcome lines on the chapter cards, "What the owner gets back", the Why CORETECH proof list,
   the assessment-first strip, specimen document thumbnails and the sample report pack.
   Approach: the shutdown night timeline and its dependency checklist.
   Loaded after home.css / pages.css; does not change their rules, only adds v6-* blocks. */

/* ---------- chapter cards: outcome first, method second ---------- */
.ch-card .ch-out { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.35; }
/* the method sits in a <details>: collapsed on phones ("How we do it"), always shown on wider screens where supported */
.ch-how summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.ch-how summary::-webkit-details-marker { display: none; }
.ch-how summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.ch-how[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ch-how summary:focus-visible { outline: 2px solid var(--copper-lite); outline-offset: 2px; }
.ch-how p { margin-top: 4px; }
@media (min-width: 961px) {
  .ch-how::details-content { content-visibility: visible; display: block; }
  @supports selector(::details-content) {
    .ch-how summary { pointer-events: none; min-height: 0; margin-bottom: 2px; color: var(--copper-lite); font-size: var(--fs-cap); }
    .ch-how summary::after { display: none; }
  }
}
@media (max-width: 960px) {
  .ch-card .ch-out { font-size: 1.0625rem; }
  .ch-how p { font-size: var(--fs-small); line-height: 1.5; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .ch-card .ch-out { font-size: 15px; }
}

/* ---------- What the owner gets back ---------- */
.v6-gets-list > li { display: grid; gap: 12px; align-content: start; background: var(--paper-hi); }
.v6-gets-list .v6-gets-k { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.v6-gets-list .v6-gets-k::before { content: ""; display: block; width: 28px; height: 2px; background: var(--copper); margin-bottom: 16px; }
.v6-gets-list .arrow-link { justify-self: start; margin-top: 4px; font-size: var(--fs-sm); }

/* ---------- Why CORETECH: proof list in the left column ---------- */
.v6-proof { display: grid; gap: 20px; align-content: start; }
.v6-proof-list { border-top: 1px solid var(--ink); }
.v6-proof-list li { border-bottom: 1px solid var(--hair); }
.v6-proof-list a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 16px; padding: 14px 0; min-height: 44px; font-weight: 600; color: var(--ink); transition: color .15s; }
.v6-proof-list a:hover { color: var(--copper-ink); }
.v6-proof-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html[dir="rtl"] .v6-proof-list svg { transform: scaleX(-1); }
.intro .statement + .mt-m { font-size: var(--fs-lg); color: var(--ink-2); max-width: 52ch; }

/* ---------- Assess first ---------- */
.v6-first { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--hair-strong); border-top: 3px solid var(--copper); background: var(--paper-hi); }
.v6-first-copy { display: grid; gap: 10px; }
.v6-first-k { font: 600 var(--fs-cap)/1.4 var(--f-body); color: var(--copper-ink); }
.v6-first h3, .v6-pack h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.01em; }
.v6-first-out { font-size: var(--fs-lg); color: var(--ink); max-width: 52ch; }
.v6-first .muted, .v6-pack .muted { max-width: 60ch; }
.v6-first-act, .v6-pack-act { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 860px) { .v6-first { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .v6-first-act .btn { white-space: normal; text-align: start; } }

/* ---------- Specimen document thumbnails, fanned ---------- */
.v6-docs { display: grid; gap: 20px; }
.v6-fan { display: flex; justify-content: center; padding: 12px 0 8px; }
.v6-fan > li { flex: 0 1 220px; min-width: 0; margin-inline: -10px; position: relative; transition: transform .25s var(--ease); }
.v6-fan > li:nth-child(1) { transform: rotate(-5deg) translateY(14px); z-index: 1; }
.v6-fan > li:nth-child(2) { transform: rotate(-2.5deg) translateY(4px); z-index: 2; }
.v6-fan > li:nth-child(3) { transform: none; z-index: 3; }
.v6-fan > li:nth-child(4) { transform: rotate(2.5deg) translateY(4px); z-index: 2; }
.v6-fan > li:nth-child(5) { transform: rotate(5deg) translateY(14px); z-index: 1; }
.v6-fan > li:hover, .v6-fan > li:focus-within { transform: translateY(-10px); z-index: 5; }
.v6-sheet { display: grid; gap: 10px; color: var(--ink); }
/* an A4 drawing sheet; the specimen thumbnail sits on top, and this sheet shows through if the image is missing */
.v6-sheet-pg { position: relative; display: block; aspect-ratio: 210 / 297; overflow: hidden; background:
  linear-gradient(var(--hair) 0 0) 12% 18% / 60% 3px no-repeat,
  linear-gradient(var(--hair-soft) 0 0) 12% 26% / 76% 2px no-repeat,
  linear-gradient(var(--hair-soft) 0 0) 12% 31% / 70% 2px no-repeat,
  linear-gradient(var(--hair-soft) 0 0) 12% 36% / 74% 2px no-repeat,
  linear-gradient(var(--stone) 0 0) 12% 58% / 76% 26% no-repeat,
  linear-gradient(var(--hair) 0 0) 0 calc(100% - 22px) / 100% 1px no-repeat,
  var(--white);
  border: 1px solid var(--hair-strong); box-shadow: var(--shadow-float); }
.v6-sheet-pg::after { content: "SPECIMEN"; position: absolute; inset-inline: 0; bottom: 5px; text-align: center; font: 500 9px/1 var(--f-mono); letter-spacing: .12em; color: var(--copper-ink); }
.v6-sheet-pg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: transparent; }
.v6-sheet:hover .v6-sheet-pg, .v6-sheet:focus-visible .v6-sheet-pg { box-shadow: var(--shadow-pop); border-color: var(--copper-ink); }
.v6-sheet:focus-visible { outline: none; }
.v6-sheet:focus-visible .v6-sheet-pg { outline: 2px solid var(--copper-ink); outline-offset: 3px; }
.v6-sheet-cap { display: grid; gap: 2px; padding-inline: 4px; text-align: center; }
.v6-code { font-size: var(--fs-sm); color: var(--copper-ink); }
.v6-sheet-t { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.v6-sheet-m { font-size: var(--fs-2xs); color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.v6-docs-note { text-align: center; max-width: 72ch; margin-inline: auto; }

.v6-pack { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-top: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--hair-strong); background: var(--paper-hi); }
.v6-pack > div:first-child { display: grid; gap: 10px; }

@media (max-width: 960px) {
  .v6-fan > li { margin-inline: -6px; }
  .v6-sheet-t { font-size: var(--fs-2xs); }
}
@media (max-width: 720px) {
  .v6-fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 0; }
  .v6-fan > li, .v6-fan > li:nth-child(n) { margin: 0; transform: none; }
  .v6-fan > li:nth-child(5) { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
  .v6-pack { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .v6-fan > li { transition: none; } }

/* ---------- Approach: a shutdown night ---------- */
.v6-night-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.v6-night { border: 1px solid var(--hair-dark); background: rgba(255, 255, 255, .03); padding: clamp(22px, 3vw, 36px); }
.v6-night-h { font: 600 var(--fs-cap)/1.4 var(--f-body); color: var(--on-dark-3); margin-bottom: 18px; }
.v6-night-list { border-inline-start: 1px solid rgba(255, 255, 255, .35); margin-inline-start: 5px; }
.v6-night-list li { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 14px; padding: 10px 0; padding-inline-start: 22px; font-size: var(--fs-small); line-height: 1.5; color: var(--on-dark-2); }
.v6-night-list li::before { content: ""; position: absolute; inset-inline-start: -5px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--midnight); border: 1.5px solid rgba(255, 255, 255, .6); }
.v6-night-list time { color: #fff; font-weight: 600; font-size: var(--fs-ui); padding-top: 1px; white-space: nowrap; }
.v6-night-list .gate::before { border-color: var(--copper-lite); background: var(--copper-lite); }
.v6-night-list .gate, .v6-night-list .gate time { color: #fff; }
.v6-night-list .gate b { display: inline-block; margin-inline-end: 6px; padding: 0 6px; border: 1px solid var(--copper-lite); border-radius: 2px; color: var(--copper-lite); font-size: var(--fs-2xs); font-weight: 600; vertical-align: 1px; }
.v6-night .note { margin-top: 16px; }
.v6-deps { display: grid; gap: 16px; }
.v6-deps h3 { font-size: var(--fs-lg); color: #fff; }
.v6-deps ul { border-top: 1px solid var(--hair-dark); }
.v6-deps li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair-dark); color: var(--on-dark-2); font-size: var(--fs-small); line-height: 1.5; }
.v6-deps li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--copper-lite); border-radius: 2px; }
.v6-deps li b { color: #fff; font-weight: 600; }
.v6-deps p { color: var(--on-dark-2); }
@media (max-width: 960px) { .v6-night-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .v6-night-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* approach: a few extra control rows reuse .controls; the "if something goes wrong" panel */
.v6-wrong { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px 32px; padding: 24px; border: 1px solid var(--hair-strong); border-inline-start: 3px solid var(--flag); background: var(--paper-hi); }
.v6-wrong h3 { font-size: var(--fs-lg); line-height: 1.3; }
.v6-wrong p { color: var(--slate); }
.v6-wrong p + p { margin-top: 10px; }
@media (max-width: 640px) { .v6-wrong { grid-template-columns: minmax(0, 1fr); } }

/* v7: one "About our examples" note per page, in place of a disclaimer on every block */
.v7-examples { margin-top: clamp(32px, 4vw, 56px); max-width: 78ch; padding: 18px 22px; border: 1px solid var(--hair-strong); border-inline-start: 3px solid var(--slate); background: var(--paper-hi); }
.v7-examples .v7-examples-h { font: 600 var(--fs-sm)/1.4 var(--f-body); letter-spacing: 0; color: var(--ink); margin-bottom: 6px; }
.v7-examples p { font-size: var(--fs-small); color: var(--slate); line-height: 1.55; }
/* approach: the return-to-sale checklist, the incident escalation, a time-free row in the example day */
.v7-check { margin-top: 12px; display: grid; gap: 6px; }
.v7-check + p { margin-top: 12px; }
.v7-check li { position: relative; padding-inline-start: 24px; color: var(--ink-2); }
.v7-check li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 12px; height: 12px; border: 1.5px solid var(--copper-ink); border-radius: 2px; }
.day-list li.v7-free { grid-template-columns: minmax(0, 1fr); }

/* approach register: specimen links under the document name */
.spec .v6-spec-link { margin-top: 10px; font-size: var(--fs-2xs); font-weight: 600; }
.spec .v6-spec-link svg { display: none; }
