/* ============================================================
   CTAI — Inner-page shell (v2 inner pages)
   The ONE anatomy every inner page shares: hero, stat bar,
   section head, "Where to next" band. Values from the approved
   Dia previews (commission + about). Colour/font tokens come from
   design-system.css. Header lives in landing.css (.lv2-header),
   footer is .rig-report-foot (landing.css).
   ============================================================ */

:root {
  --sh-pad-x: 30px;                    /* inner padding of every bordered block */
  --sh-band-top: clamp(40px,5vw,58px); /* section top padding AND the gap between separate blocks */
  --sh-gap: 26px;                      /* tight gap: a control and what it controls (filters → results) */
  --sh-band-btm: 38px;                 /* section bottom padding */
  --sh-t-h2: clamp(25px,3.2vw,38px);   /* section titles */
  --sh-t-body: 14.5px;
  --sh-lh: 1.55;
  --sh-header-h: 76px;                 /* sticky header clearance for #anchors */
}

/* Every inner page ends the same distance above the footer. */
.sh-page { padding-bottom: 64px; }
/* In-page anchors land below the sticky header. */
.sh-page [id] { scroll-margin-top: var(--sh-header-h); }

/* One content width + gutter for every inner page. */
.sh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- 01 · hero ---------- */
.sh-hero { padding: clamp(44px,6vw,72px) 0 0; color: var(--ctai-white); font-family: var(--font-body); line-height: 1.55; }
.sh-hero-inner { padding-bottom: clamp(40px,5vw,58px); }
.sh-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ctai-ink-40); }
.sh-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,5.2vw,60px); letter-spacing: -.03em; line-height: 1.0; margin: 18px 0 20px; color: var(--ctai-white); }
.sh-lede { font-size: 17px; line-height: 1.5; color: var(--ctai-ink-74); max-width: 52ch; margin: 0; }
.sh-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ctai-ink-40); margin-top: 22px; }
.sh-sub b { color: var(--ctai-ink-82); font-weight: 400; }
.sh-hero-rule { border-top: 1px solid var(--ctai-hairline); }

/* stat bar — calibration ticks on every cell */
.sh-cal { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--ctai-hairline); border-bottom: 1px solid var(--ctai-hairline); }
.sh-cal .cell { position: relative; display: flex; align-items: baseline; gap: 11px; padding: 20px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); }
.sh-cal .cell:last-child { border-right: 0; }
.sh-cal .cell::before { content: ""; position: absolute; top: 0; left: var(--sh-pad-x); width: 18px; height: 5px; background: repeating-linear-gradient(to right,var(--ctai-ink-40) 0 1px,transparent 1px 6px); }
.sh-cal .n { font-family: var(--font-stencil); font-weight: 400; font-size: 30px; line-height: 1; color: var(--ctai-white); flex: none; }
.sh-cal .n small { font-size: .5em; color: var(--ctai-ink-40); }
.sh-cal .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--ctai-ink-40); line-height: 1.35; }
@media (max-width: 820px) {
  .sh-cal { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sh-cal .cell:nth-child(2) { border-right: 0; }
  .sh-cal .cell:nth-child(1), .sh-cal .cell:nth-child(2) { border-bottom: 1px solid var(--ctai-hairline); }
}

@media (max-width: 480px) {
  .sh-cal .cell { padding: 18px 16px; gap: 9px; }
  .sh-cal .cell::before { left: 16px; }
}
@media (max-width: 360px) {
  .sh-cal .cell { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- section: 230px label column | content ---------- */
.sh-sec { border-bottom: 1px solid var(--ctai-hairline); }
.sh-head { display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px,5vw,64px); align-items: start; padding: var(--sh-band-top) 0 var(--sh-band-btm); }
.sh-head > div { min-width: 0; }
.sh-head .lab .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ctai-yellow); }
.sh-head .lab h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--sh-t-h2); letter-spacing: -.03em; line-height: 1.0; margin: 12px 0 0; color: var(--ctai-white); text-wrap: balance; } /* balance: "Pass, Mixed, / or Fail." never "Pass, Mixed, or / Fail." */
.sh-head .lab h2 .ln { display: block; white-space: nowrap; } /* one phrase per line, never re-wrapped (e.g. "One rig. / One operator. / One standard.") */
.sh-head .lab p { font-size: var(--sh-t-body); line-height: var(--sh-lh); color: var(--ctai-ink-64); margin: 14px 0 0; max-width: 34ch; }
@media (max-width: 820px) { .sh-head { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- vertical rhythm on inner pages ----------
   Block gap (--sh-band-top) between separate blocks; tight gap (--sh-gap)
   between filters and the results they filter. Same values on every page. */
.sh-page .rig-ct-filters { margin-top: var(--sh-band-top); }                  /* stat bar / featured → filters */
.sh-page .rig-ct-filters + .vc-grid,
.sh-page .rig-ct-filters + .rig-newsroom { margin-top: var(--sh-gap); }       /* filters → results */
.sh-page .sh-hero + .rig-wrap > .rig-notefeat:first-child { margin-top: var(--sh-band-top); } /* stat bar → featured note */

/* ---------- "Where to next" band ---------- */
.sh-close { padding: var(--sh-band-top) 0 0; }
.sh-ns { border: 1px solid var(--ctai-hairline); font-family: var(--font-body); }
.sh-ns-head { padding: 18px var(--sh-pad-x); border-bottom: 1px solid var(--ctai-hairline); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ctai-ink-60); }
.sh-ns-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.sh-ns-grid a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); text-decoration: none; background: var(--ctai-panel-deep); transition: background .18s; }
.sh-ns-grid a:last-child { border-right: 0; }
.sh-ns-grid a:hover { background: var(--ctai-lift); }
.sh-ns-grid .sub { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ctai-ink-40); margin-bottom: 7px; }
.sh-ns-grid .act { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ctai-ink-82); }
.sh-ns-grid .arrow { width: 36px; height: 36px; border: 1px solid var(--ctai-hairline); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ctai-ink-64); transition: border-color .18s,color .18s,transform .18s; }
.sh-ns-grid a:hover .arrow { border-color: var(--ctai-yellow); color: var(--ctai-yellow); transform: translateX(3px); }
@media (max-width: 820px) {
  .sh-ns-grid { grid-template-columns: 1fr; }
  .sh-ns-grid a { border-right: 0; border-bottom: 1px solid var(--ctai-hairline); }
  .sh-ns-grid a:last-child { border-bottom: 0; }
}

/* ---------- operator block (About + Commission) ---------- */
.sh-op { display: grid; grid-template-columns: 230px 1fr; border: 1px solid var(--ctai-hairline); color: var(--ctai-white); }
.sh-op .id { padding: 30px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); display: flex; flex-direction: column; align-items: flex-start; }
.sh-op .avatar { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--ctai-hairline); overflow: hidden; background: var(--ctai-panel-deep); }
.sh-op .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-op .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 18px; }
.sh-op .role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ctai-ink-40); margin-top: 7px; }
.sh-op .sig { font-family: "Snell Roundhand","Brush Script MT",cursive; font-size: 34px; color: var(--ctai-ink-74); margin-top: 22px; line-height: 1; }
.sh-op .say { padding: 30px var(--sh-pad-x); }
.sh-op .say p { font-size: 15px; color: var(--ctai-ink-74); line-height: 1.6; max-width: 56ch; margin: 0; }
.sh-op .say p + p { margin-top: 14px; }
.sh-op .say .sh-quote { margin: 22px 0; }
.sh-op .say .sh-quote:last-child { margin-bottom: 0; }
.sh-op .say .more { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ctai-ink-60); text-decoration: none; }
.sh-op .say .more:hover { color: var(--ctai-yellow); }
@media (max-width: 820px) { .sh-op { grid-template-columns: 1fr; } .sh-op .id { border-right: 0; border-bottom: 1px solid var(--ctai-hairline); } }

/* ---------- quotes — ONE rule for every in-page quote ----------
   Always: Inter Tight, white, 2px yellow left rule. Size follows context (three tiers):
     .sh-quote-inline     inside a text column (operator blocks)            17px
     .sh-quote-statement  standalone band / closing statement, full width   22px
     .sh-quote-article    lab-note pull quote at article measure            22–29px
   Lab-note <blockquote>s get the article tier automatically (.rig-note blockquote),
   so authored notes need no class. Spacing around a quote belongs to its container. */
.sh-quote, .rig-note blockquote { display: block; quotes: none; font-family: var(--font-display); font-weight: 600; color: var(--ctai-white); border-left: 2px solid var(--ctai-yellow); padding: 2px 0 2px 18px; letter-spacing: -.02em; }
.sh-quote-inline { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.sh-quote-statement { font-size: 22px; line-height: 1.3; }
.sh-quote-article, .rig-note blockquote { font-weight: 700; font-size: clamp(22px,2.8vw,29px); line-height: 1.36; letter-spacing: -.022em; padding: 8px 0 8px 28px; }

/* ---------- ghost button (bordered, yellow arrow) — the one secondary CTA style ---------- */
.sh-btn-ghost { border: 1px solid var(--ctai-hairline); padding: 9px 15px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--ctai-ink-82); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: border-color .18s,color .18s; }
.sh-btn-ghost:hover, .sh-btn-ghost:focus-visible { border-color: var(--ctai-yellow); color: var(--ctai-white); }
.sh-btn-ghost .ar { color: var(--ctai-yellow); }

/* ---------- intro paragraph at the top of a section's content column ----------
   For sections whose explanation outgrows the 230px label column (How I test). */
.sh-intro { font-size: 15.5px; line-height: 1.6; color: var(--ctai-ink-74); max-width: 64ch; margin: 0 0 26px; }
.sh-intro strong { color: var(--ctai-white); font-weight: 600; }

/* ---------- FAQ: native <details>, +/− chip (Commission, How I test) ---------- */
.sh-faq { border: 1px solid var(--ctai-hairline); }
.sh-faq details { border-bottom: 1px solid var(--ctai-hairline); }
.sh-faq details:last-child { border-bottom: 0; }
.sh-faq summary { list-style: none; cursor: pointer; padding: 20px var(--sh-pad-x); display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ctai-ink-82); }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary:focus-visible { outline: 1px solid var(--ctai-yellow); outline-offset: -1px; }
.sh-faq .chip { position: relative; width: 28px; height: 28px; border: 1px solid var(--ctai-hairline); flex: none; transition: border-color .18s; }
.sh-faq .chip::before, .sh-faq .chip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ctai-ink-60); transform: translate(-50%,-50%); transition: background .18s; }
.sh-faq .chip::after { transform: translate(-50%,-50%) rotate(90deg); }
.sh-faq details[open] .chip::after { display: none; }
.sh-faq summary:hover .chip, .sh-faq details[open] .chip { border-color: var(--ctai-yellow); }
.sh-faq summary:hover .chip::before, .sh-faq summary:hover .chip::after, .sh-faq details[open] .chip::before { background: var(--ctai-yellow); }
.sh-faq .ans { padding: 0 var(--sh-pad-x) 22px; font-size: 14px; color: var(--ctai-ink-64); line-height: 1.6; max-width: 70ch; margin: 0; }
.sh-faq .ans a { color: var(--ctai-ink-82); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- principles grid, 2×2, plain square markers (About, How I test) ---------- */
.sh-principles { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--ctai-hairline); color: var(--ctai-white); }
.sh-principles .pr { padding: 24px var(--sh-pad-x); border-right: 1px solid var(--ctai-hairline); border-bottom: 1px solid var(--ctai-hairline); }
.sh-principles .pr:nth-child(even) { border-right: 0; }
.sh-principles .pr:nth-child(3), .sh-principles .pr:nth-child(4) { border-bottom: 0; }
.sh-principles h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; margin: 0; }
.sh-principles h3::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--ctai-ink-40); margin-right: 11px; vertical-align: 3px; } /* plain marker — ◇ is reserved for verdict status */
.sh-principles p { font-size: 13.5px; color: var(--ctai-ink-64); line-height: 1.5; margin: 9px 0 0; max-width: 42ch; }
@media (max-width: 820px) {
  .sh-principles { grid-template-columns: 1fr; }
  .sh-principles .pr { border-right: 0; border-bottom: 1px solid var(--ctai-hairline); }
  .sh-principles .pr:nth-child(3) { border-bottom: 1px solid var(--ctai-hairline); }
  .sh-principles .pr:last-child { border-bottom: 0; }
}

/* phone: stat-bar label stacks under its number (side by side it crammed "100% INDEPENDENT / NO SPONSORS") */
@media (max-width: 480px) {
  .sh-cal .cell { flex-direction: column; align-items: flex-start; gap: 6px; }
}
