/* TechBridge Release B, 28 Oct 2026. Home composition (IVOR-LAYOUT-LEGAL.md, IVOR-SPEC-B.md) and the
   one shared research panel. Home rules are scoped to body[data-page="home"]; .rp applies everywhere. */

/* ---------- Home composition shell: min(1600px, 100% - 96px) ---------- */
[data-page="home"] .shell{width:min(1600px,calc(100% - 96px));margin-inline:auto;padding-inline:0}
@media(max-width:999px){[data-page="home"] .shell{width:calc(100% - 48px)}}
@media(max-width:599px){[data-page="home"] .shell{width:calc(100% - 40px)}}
[data-page="home"] .shell>*,[data-page="home"] .solution-grid>*{min-width:0}
[data-page="home"] main section{border-top:0}
[data-page="home"] .home-band{padding-block:64px}
@media(max-width:599px){[data-page="home"] .home-band{padding-block:40px}}
[data-page="home"] .home-band h2{font-size:clamp(28px,2.5vw,40px);line-height:1.15;max-width:24ch}
[data-page="home"] .home-band p{max-width:60ch}

/* ---------- Hero fills the first screen on desktop ---------- */
[data-page="home"] .home-hero .lead{max-width:56ch}
[data-page="home"] .hero-link{display:inline-flex;align-items:center;min-height:52px;font-weight:600}
@media(min-width:1000px){
  [data-page="home"] .home-hero{box-sizing:border-box;min-height:calc(100vh - var(--tb-header-h,97px));min-height:calc(100svh - var(--tb-header-h,97px));padding-block:48px;display:grid;align-items:center}
  [data-page="home"] .home-hero .hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(40px,4vw,80px);align-items:center}
  [data-page="home"] .home-hero h1{font-size:clamp(44px,4vw,64px);line-height:1.08;max-width:20ch}
  [data-page="home"] .home-hero .portrait{width:100%;max-width:480px;justify-self:end}
}
@media(min-width:1000px) and (max-height:850px){
  [data-page="home"] .home-hero{padding-block:32px}
  [data-page="home"] .home-hero .portrait{max-width:400px}
  [data-page="home"] .home-hero h1{font-size:clamp(44px,4vw,56px)}
}
@media(min-width:1000px) and (max-height:650px){
  [data-page="home"] .home-hero{padding-block:24px}
  [data-page="home"] .home-hero .portrait{max-width:320px}
}
@media(max-width:999px){
  [data-page="home"] .home-hero{display:block;min-height:0;padding-block:40px}
  [data-page="home"] .home-hero .hero-grid{grid-template-columns:1fr;gap:32px}
  [data-page="home"] .home-hero .portrait{max-width:280px;justify-self:start}
}
@media(max-width:599px){
  [data-page="home"] .home-hero h1{font-size:36px;line-height:1.1}
  [data-page="home"] .home-hero .lead{font-size:17px;line-height:1.6}
}

/* ---------- References directly under the hero ---------- */
[data-page="home"] .home-proof{padding-block:56px}
@media(max-width:599px){[data-page="home"] .home-proof{padding-block:40px}}
[data-page="home"] .home-proofs{margin-top:32px;gap:16px;grid-template-columns:1fr}
@media(min-width:900px){[data-page="home"] .home-proofs{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
[data-page="home"] .home-proofs .tb-proof{max-width:none;margin:0;padding:24px}
@media(max-width:599px){[data-page="home"] .home-proofs .tb-proof{padding:20px}}
[data-page="home"] .home-proofs .tb-proof__quote{font-size:18px;line-height:1.55;max-width:65ch}
[data-page="home"] .home-proofs .tb-proof__who{font-size:16px}
[data-page="home"] .home-proofs .tb-proof__label,[data-page="home"] .home-proofs dl,[data-page="home"] .home-proofs .tb-proof__who span{font-size:14px;line-height:1.5}
[data-page="home"] .record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:24px;padding-top:24px;border-top:1px solid var(--border-strong)}
@media(max-width:599px){[data-page="home"] .record{grid-template-columns:1fr;gap:16px}}
[data-page="home"] .record p{margin:0;font-size:15px;line-height:1.5;color:var(--text-secondary)}
[data-page="home"] .record-figure{display:block;font-size:32px;line-height:1.1;color:var(--text-primary);margin-bottom:6px}
[data-page="home"] .home-more{margin-top:24px}

/* ---------- Solutions: lean block, value prop left, own research right ---------- */
[data-page="home"] .solutions{display:block}
[data-page="home"] .solution{background:var(--bg-base)}
[data-page="home"] .solution.tone{background:var(--bg-void)}
[data-page="home"] .solution-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:1000px){[data-page="home"] .solution-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,4vw,64px);align-items:start}}
[data-page="home"] .solution-copy h2{margin-top:0}
[data-page="home"] .solution-copy .eyebrow{margin-bottom:12px}
[data-page="home"] .solution-copy p{font-size:17px;line-height:1.65;max-width:52ch}
[data-page="home"] .solution-copy h2+p{margin-top:16px}
[data-page="home"] .solution-copy .smallprint{font-size:15px;color:var(--text-secondary);margin-top:12px}
[data-page="home"] .solution-link{margin-top:20px;font-weight:600}
[data-page="home"] .solution-link a,[data-page="home"] .home-more a,[data-page="home"] .latest__links a{text-decoration-color:var(--brand-accent)}

/* ---------- Agents line, latest issue, close ---------- */
[data-page="home"] .home-agents{padding-block:48px;border-top:1px solid var(--border-default)}
[data-page="home"] .home-agents p{font-size:17px;line-height:1.65;max-width:70ch}
[data-page="home"] .home-agents a{text-decoration-color:var(--brand-accent)}
[data-page="home"] .home-latest{padding-block:48px;background:var(--bg-elevated)}
@media(max-width:599px){[data-page="home"] .home-latest{padding-block:40px}}
[data-page="home"] .latest{display:grid;grid-template-columns:240px minmax(0,640px);gap:40px;align-items:center;justify-content:start}
@media(max-width:599px){[data-page="home"] .latest{grid-template-columns:1fr;gap:24px}[data-page="home"] .latest__cover{width:200px}}
[data-page="home"] .latest__cover{display:block;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--border-default)}
[data-page="home"] .latest__cover img{display:block;width:100%;height:auto;object-fit:contain}
[data-page="home"] .latest__cover:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
[data-page="home"] .latest .eyebrow{margin-bottom:8px}
[data-page="home"] .latest__mag{font-weight:600;color:var(--text-secondary);margin:0}
[data-page="home"] .home-band .latest__title{font-size:28px;line-height:1.2;margin:8px 0 0}
@media(max-width:599px){[data-page="home"] .home-band .latest__title{font-size:24px;line-height:1.25}}
[data-page="home"] .latest__date{font-size:15px;line-height:1.5;color:var(--text-secondary);margin-top:8px}
[data-page="home"] .latest__links{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:12px}
[data-page="home"] .latest__links a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
[data-page="home"] .home-close .close-email{margin-top:16px;font-size:17px}
[data-page="home"] .home-close .close-email a{text-decoration-color:var(--brand-accent);user-select:all;-webkit-user-select:all}
[data-page="home"] .home-close .actions{margin-top:24px}
footer .footer-email{margin-top:var(--space-3)}
footer .footer-email a{color:var(--brand-glow);text-decoration-color:var(--brand-accent)}

/* ---------- One research panel, every page (.rp) ---------- */
.rp{box-sizing:border-box;width:100%;max-width:880px;margin:var(--space-8) 0;padding:28px;display:flex;flex-direction:column;gap:20px;background:var(--bg-elevated);border-top:3px solid #CE9C1B;color:var(--text-primary)}
[data-page="home"] .solution-grid .rp{margin:0}
.wrap>.rp,.reading>.rp{margin-inline:auto}
@media(max-width:599px){.rp{padding:20px;gap:16px}}
.rp p{margin:0;max-width:none}
.rp-label{font-size:14px;line-height:1.4;color:var(--text-secondary)}
.rp-identity{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%;padding:10px 14px;border:1px solid var(--border-strong);border-radius:4px;background:var(--bg-raised)}
.rp-source{font-size:28px;line-height:1.15;font-weight:700;letter-spacing:-.01em;color:var(--text-primary);overflow-wrap:anywhere}
.rp-source-role{font-size:14px;line-height:1.4;color:var(--text-secondary)}
@media(max-width:599px){.rp-source{font-size:24px}}
.rp-chart{margin:0}
.rp-title{font-size:18px;line-height:1.35;font-weight:600;margin-bottom:12px}
.rp-bars .research-bar-row{display:grid;grid-template-columns:minmax(0,1fr) 4ch;grid-template-areas:"label label" "track value";column-gap:12px;row-gap:6px;align-items:center;margin-block:14px}
.rp-bars .research-bar-row>span{grid-area:label;font-size:16px;line-height:1.4;color:var(--text-secondary)}
.rp-bars .research-bar-track{grid-area:track;height:18px;background:var(--bg-raised)}
.rp-bars .research-bar-row>strong{grid-area:value;font-size:16px;font-variant-numeric:tabular-nums;text-align:right}
.rp-bars .research-bar{display:block;height:100%;background:var(--text-secondary)}
.rp-bars .research-bar.primary{background:var(--brand-accent)}
.rp-axis{display:flex;justify-content:space-between;margin-right:calc(4ch + 12px);font-family:var(--font-mono);font-size:14px;color:var(--text-secondary)}
.rp-headline{display:flex;flex-direction:column;gap:6px}
.rp-figure{font-size:48px;line-height:1.05;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-primary)}
@media(max-width:599px){.rp-figure{font-size:40px}}
.rp-claim{font-size:17px;line-height:1.4}
.rp-sourceline{font-size:14px;line-height:1.5;color:var(--text-secondary)}
.rp-sourceline a{color:var(--brand-glow);text-decoration-color:var(--brand-accent)}
.rp-method>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:16px;font-weight:600;color:var(--text-primary)}
.rp-method>summary:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
.rp-method dl{margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--text-secondary)}
.rp-method dl>div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:8px;padding-block:6px;border-bottom:1px solid var(--border-default)}
.rp-method dt{font-weight:600;color:var(--text-primary)}
.rp-method dd{margin:0}
@media(max-width:599px){.rp-method dl>div{grid-template-columns:1fr;gap:2px}}
.rp-method table{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px}
.rp-method caption{text-align:left;font-weight:600;padding-bottom:6px}
.rp-method th,.rp-method td{border-bottom:1px solid var(--border-strong);padding:6px 8px;text-align:left}

/* ---------- Buying page 10C source note ---------- */
.source-note p{font-size:14px;line-height:1.6;color:var(--text-secondary)}

@media print{
  [data-page="home"] .home-hero{min-height:0;display:block}
  [data-page="home"] .home-band,[data-page="home"] .home-latest,[data-page="home"] .solution{background:transparent}
  .rp{background:transparent;break-inside:avoid;color:inherit}
  .rp-method dl,.rp-sourceline,.rp-label{color:inherit}
}

/* #routes and other home anchors: html scroll-padding already subtracts the measured header, so the
   target's own margin is only the 16px clearance (avoid applying the header offset twice). */
[data-page="home"] main section,[data-page="home"] main [id]{scroll-margin-top:16px}
[data-page="home"] .home-proofs .tb-proof{display:flex;flex-direction:column}
[data-page="home"] .home-proofs .tb-proof__link{margin-top:auto;padding-top:14px}
[data-page="home"] .home-proofs .tb-proof dl{margin-bottom:0}
.rp-axis span:last-child{text-align:right}
[data-page="home"] .home-close h2+p{margin-top:16px}
/* Ivor REVISE (28 Oct): visible disclosure marker on "Source and method"; figure hierarchy. */
.rp-method>summary{list-style:none;gap:10px}
.rp-method>summary::-webkit-details-marker{display:none}
.rp-method>summary::before{content:"";flex:none;width:8px;height:8px;border-right:2px solid var(--brand-glow);border-bottom:2px solid var(--brand-glow);transform:rotate(-45deg);transition:transform .15s ease;margin-inline:2px 4px}
.rp-method[open]>summary::before{transform:rotate(45deg)}
@media(prefers-reduced-motion:reduce){.rp-method>summary::before{transition:none}}
.rp-headline{gap:4px}
.rp-figure{display:block}
/* Ivor REVISE (28 Oct) F: research-panel bars render at final length, never drawn in. graphics.js only
   targets .research-bars (not used by .rp); this guard keeps that true if markup changes. Important
   author declarations outrank Web Animations, so no shared module is edited. */
.rp .research-bar{transform:none!important}
