/* ============================================================
   STYLE A "CHAPTERS" (plan of 2026-11-05), loaded after twin.css.
   One idea per screen: chapter sections (.chap; .chapter is the
   story timeline of twin.css), a sticky chapter bar under the
   navbar, a dark numbers strip under the hero, an 800 px reading
   column, the specifications as visible tables. Same grey twin
   theme: --primary, --dark, --light and the accent #B8742E only.
   ============================================================ */

:root {
    --nav-h: 75px;          /* set by chapters.js from the real navbar height */
    --bar-h: 54px;
    --read: 800px;
    --wide: 1240px;
    --chap-pad: clamp(3.5rem, 7vw, 6rem);
    --line: #e3e7e9;
    --text: #4f5559;
}

/* ------------------------------------------------ hero variants */
/* the hero text starts on the same column as the chapters (wide screens) */
@media (min-width: 1200px) {
    body.style-a .cap-hero-img .hero-badge { left: max(2.5rem, calc((100% - var(--wide)) / 2 + 1.5rem)); right: max(2.5rem, calc((100% - var(--wide)) / 2 + 1.5rem)); }
    body.style-a .landing-hero .hero-badge { left: auto; right: auto; padding-left: max(2.5rem, calc((100% - var(--wide)) / 2 + 1.5rem)); padding-right: max(2.5rem, calc((100% - var(--wide)) / 2 + 1.5rem)); }
}
.cap-hero-img.is-chapter { height: 260px; }
.cap-hero-img.is-chapter .hero-badge h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); }

/* ------------------------------------------------ numbers strip */
.num-strip { padding: 2.4rem 0 2.6rem; }
.num-strip .container { max-width: var(--wide); padding-left: 1.5rem; padding-right: 1.5rem; }
.num-strip .ns-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.4rem; }
.num-strip .ns-domain { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,0.6); }
.num-strip .ns-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 12.5px; color: rgba(255,255,255,0.7); }
.num-strip .ns-status-item { font-weight: 600; }
.num-strip .status-chip.is-done { background: #fff; color: var(--dark); border-color: #fff; }
.num-strip .status-chip.is-progress { color: #fff; border-color: rgba(255,255,255,0.55); }
.num-strip .ns-title { margin-bottom: 1.5rem; }
.num-strip .story-steps.ns-figs { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.num-strip .ns-fig { padding: 1.25rem 1.4rem 1.3rem; }
.num-strip .ns-v { font-family: 'Roboto', sans-serif; font-weight: 900; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.05; white-space: nowrap; }
.num-strip .ns-v em { font-style: normal; font-weight: 700; font-size: 0.5em; color: #c9d0d3; margin-left: 0.3rem; letter-spacing: 0.5px; }
.num-strip .ns-l { margin-top: 0.55rem; font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: rgba(255,255,255,0.72); line-height: 1.5; }
.num-strip .ns-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 1.4rem; }
.num-strip .ns-tags-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--twin-accent); margin-right: 0.5rem; }
.num-strip .ns-tag { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.22); padding: 4px 11px; }

/* ------------------------------------------------ chapter bar (sticky under the navbar) */
.chapter-bar {
    position: sticky;
    top: 0;
    z-index: 1010;              /* under the navbar (1020) and its menus */
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: top 0.5s;        /* the navbar slides with the same 0.5 s (style.css) */
}
body.nav-stuck .chapter-bar { top: var(--nav-h); }
.chapter-bar .cb-inner { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: stretch; gap: 1.5rem; min-height: var(--bar-h); }
.chapter-bar .cb-title { flex: 0 1 auto; max-width: 260px; align-self: center; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1.5rem; border-right: 1px solid var(--line); }
.chapter-bar .cb-track { flex: 1 1 auto; display: flex; align-items: stretch; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chapter-bar .cb-track::-webkit-scrollbar { display: none; }
.chapter-bar .cb-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0 0.85rem; font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px; color: #5d666b; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.chapter-bar .cb-n { font-size: 10.5px; color: #9aa4a9; font-weight: 700; letter-spacing: 1px; }
.chapter-bar .cb-link:hover, .chapter-bar .cb-link:focus-visible { color: var(--dark); border-bottom-color: #c5cbce; }
.chapter-bar .cb-link.is-active, .chapter-bar .cb-link.is-current { color: var(--dark); border-bottom-color: var(--twin-accent); }
.chapter-bar .cb-link.is-active .cb-n, .chapter-bar .cb-link.is-current .cb-n { color: var(--twin-accent); }
@media (max-width: 991.98px) {
    .chapter-bar .cb-title { display: none; }
    .chapter-bar .cb-inner { padding: 0 0.5rem; }
}

/* ------------------------------------------------ chapters */
.chap { padding: var(--chap-pad) 0; border-top: 1px solid var(--line); background: #fff; }
.chap-main > .chap:first-child { border-top: 0; }
.chap.is-soft { background: var(--light); }
.chap.is-sub { padding-top: calc(var(--chap-pad) * 0.8); }
.chap[id], .stub[id], .card-anchor[id] { scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 1.25rem); }
.chap-inner { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.chap-read { max-width: var(--read); }
.chap--text .chap-read, .chap--wide .chap-read { margin-right: auto; }

.chap-head { margin-bottom: 2rem; }
.chap-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-bottom: 1rem; }
.chap-n { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1rem; color: var(--twin-accent); letter-spacing: 1px; }
.chap-rule { width: 44px; height: 2px; background: var(--twin-accent); opacity: 0.6; }
.chap-ctx { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: #8a959b; }
.chap-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chap-title { font-family: 'Roboto', sans-serif; font-weight: 900; color: var(--dark); font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.3px; margin: 0; }
.chap-statement { margin: 1.25rem 0 0; padding-left: 1.2rem; border-left: 4px solid var(--twin-accent); font-family: 'Roboto', sans-serif; font-weight: 500; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.55; color: var(--dark); max-width: var(--read); }
.chap .chap-read > p.chap-lead, .chap-lead { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.6; color: var(--dark); margin: 0; }
.chap-lead i { color: var(--twin-accent); margin-right: 0.75rem; font-size: 0.85em; }
.chap.is-intro { padding-bottom: calc(var(--chap-pad) * 0.6); }
.chap.is-intro .chap-head { margin-bottom: 1.25rem; }

/* reading text inside a chapter */
.chap .content-p, .chap-text > p, .chap-read > p, .chap .twin-lead { font-size: 1.02rem; line-height: 1.85; color: var(--text); max-width: var(--read); }
.chap .twin-lead { font-size: 1.08rem; }
.chap .check-list li { font-size: 0.98rem; line-height: 1.7; padding: 0.8rem 0; }
.chap .step-list li { font-size: 0.98rem; line-height: 1.7; padding: 0.85rem 0 0.85rem 3rem; }
.chap .step-list li::before { top: 0.8rem; }
.chap-intro { font-size: 1.08rem !important; }
.chap-lead-p { font-size: 1.05rem; line-height: 1.85; color: var(--text); }

/* the headline number of a chapter */
.chap-figure { display: flex; flex-direction: column; margin: 0 0 2rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--line); max-width: 420px; }
.chap-figure .cf-v { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--dark); letter-spacing: -1px; }
.chap-figure .cf-v em { font-style: normal; font-weight: 700; font-size: 0.42em; color: #8a959b; margin-left: 0.35rem; letter-spacing: 0; }
.chap-figure .cf-l { margin-top: 0.6rem; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #6c767b; }

/* split: text beside its media (7 / 5), the media follows on long text */
.chap-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.chap-split.is-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chap-split.is-flip .chap-text { order: 2; }
.chap-split.is-flip .chap-media { order: 1; }
.chap-text { max-width: var(--read); min-width: 0; }
.chap-media { position: sticky; top: calc(var(--nav-h) + var(--bar-h) + 1.5rem); min-width: 0; }
.chap-media .media-slot + .media-slot, .media-stack > * + * { margin-top: 2rem; }
.chap-aside { background: var(--light); padding: 1.5rem 1.75rem; border-top: 3px solid var(--primary); }
.chap.is-soft .chap-aside { background: #fff; }
@media (max-width: 991.98px) {
    .chap-split, .chap-split.is-flip { grid-template-columns: minmax(0, 1fr); }
    .chap-split.is-flip .chap-text { order: 1; }
    .chap-split.is-flip .chap-media { order: 2; }
    .chap-media { position: static; }
}
.chap-opener { margin: 0 0 3.5rem; max-width: 1100px; }
.chap-wide { margin-top: 2.5rem; }
.chap-full { margin-top: 0.5rem; }
.chap-after { margin-top: 2.75rem; }
.chap--full .chap-head { margin-bottom: 1.75rem; }

/* media captions as a title and the full text */
.chap .media-slot figcaption.cap-a { margin-top: 0.85rem; font-size: 0.86rem; line-height: 1.6; color: #6a7378; max-width: var(--read); }
.chap .media-slot figcaption.cap-a .cap-title { color: var(--dark); font-weight: 600; }
.chap .media-slot-media { box-shadow: 0 14px 40px rgba(0,0,0,0.10); }
.film-lead { max-width: 1100px; }
.film-lead > .media-slot + .media-slot { margin-top: 3rem; }
.film-lead.is-narrow { max-width: 980px; }
.film-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2.5rem; margin-top: 3rem; max-width: 1100px; }
/* a station's animation takes the wide column; the turning view: the film wide, the chapter head beside it
   (wide screens only: below 992 px every chapter is one column) */
.chap.is-big-media .chap-media .twin-note { margin-top: 0; }
.chap.is-turning .chap-media { position: static; }
@media (min-width: 992px) {
    .chap.is-big-media .chap-split.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .chap.is-turning .chap-split.is-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; }
    .chap.is-turning .chap-head { margin-bottom: 0; }
}

/* the badge that points to the note in About */
.about-badge { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--dark); font-size: 12.5px; font-weight: 600; transition: border-color 0.2s; }
.about-badge:hover, .about-badge:focus-visible { border-color: var(--primary); color: var(--dark); }
.about-badge i { font-size: 0.75rem; color: var(--twin-accent); }

/* ------------------------------------------------ specifications */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.25rem 3.5rem; }
.spec-group { min-width: 0; border-top: 3px solid var(--primary); padding-top: 1.25rem; }
.spec-group.is-wide { grid-column: 1 / -1; }
.spec-kicker { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #8a959b; margin-bottom: 0.3rem; }
.spec-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--dark); margin: 0 0 1rem; }
.spec-group .check-list li { font-size: 0.93rem; }
.spec-group .tech-table td { font-size: 0.92rem; line-height: 1.65; }
.spec-table { font-size: 0.9rem; }
.spec-table td { line-height: 1.6; }
.spec-table td:first-child { white-space: normal; min-width: 11rem; }
.levels-table td:last-child, .scenes-table td:last-child { white-space: nowrap; }
@media (max-width: 991.98px) {
    .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
}
/* phones: a table keeps its columns and scrolls sideways inside its own box (the page never does); a soft shadow
   at the edge shows that more columns follow. Two-column tables fit the screen. */
.spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 2rem 100% no-repeat local,
                linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 2rem 100% no-repeat local,
                radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.16), rgba(0,0,0,0)) left / 0.9rem 100% no-repeat scroll,
                radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.16), rgba(0,0,0,0)) right / 0.9rem 100% no-repeat scroll; }
.spec-table-wrap .data-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.035); }   /* lets the edge shadow show */
@media (max-width: 767.98px) {
    .spec-table { min-width: 34rem; }
    .spec-table.cols-2 { min-width: 0; }
    .spec-table.cols-4 { min-width: 40rem; }
    .spec-table td { padding: 0.6rem 0.8rem; }
    .spec-table td:first-child { min-width: 8.5rem; }
    .spec-table.cols-2 td:first-child { min-width: 0; width: 40%; }
}

/* ------------------------------------------------ system: layers, safety functions, product families */
.chap .layer-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
@media (max-width: 1199.98px) { .chap .layer-stack { grid-template-columns: minmax(0, 1fr); } }
.layer.layer-a { grid-template-columns: 64px minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; }
.layer.layer-a h3 { font-size: 1.1rem; }
.layer.layer-a p { font-size: 0.98rem; line-height: 1.75; margin-bottom: 0.6rem; }
.layer.layer-a .check-list li { font-size: 0.93rem; padding: 0.55rem 0; }
.fn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.fn-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); padding: 1.5rem 1.6rem; }
.fn-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.9rem; }
.fn-ic { width: 42px; height: 42px; flex-shrink: 0; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; }
.fn-name { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--dark); margin: 0 0 0.2rem; }
.fn-where { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #8a959b; line-height: 1.5; }
.fn-how { font-size: 0.95rem; line-height: 1.75; color: var(--text); margin: 0; }
.fam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.fam-card .icon-card-body { font-size: 0.92rem; padding: 1.25rem 1.4rem; }
.fam-card .check-list li { font-size: 0.9rem; padding: 0.45rem 0; }
.fam-sub { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a959b; margin: 1rem 0 0.25rem; }
.fam-used { font-size: 0.88rem; line-height: 1.7; }
@media (max-width: 767.98px) { .fn-grid, .fam-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ hub: stub cards of the chapter pages */
.stub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.stub-card { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.6rem 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--twin-accent); text-decoration: none; color: var(--text); transition: box-shadow 0.25s, transform 0.25s; }
a.stub-card:hover, a.stub-card:focus-visible { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-2px); color: var(--text); }
.stub-n { font-family: 'Roboto', sans-serif; font-weight: 900; color: var(--twin-accent); font-size: 0.95rem; letter-spacing: 1px; }
.stub-title { display: block; font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.3rem; line-height: 1.25; color: var(--dark); margin: 0.35rem 0 0.8rem; text-decoration: none; }
a.stub-title:hover { color: var(--primary); }
.stub-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a959b; margin-bottom: 0.4rem; }
.stub-list { list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: 0.9rem; line-height: 1.55; }
.stub-list li { padding: 0.3rem 0; border-bottom: 1px solid #f0f2f3; }
.stub-list li:last-child { border-bottom: 0; }
.stub-links a { color: var(--primary); text-decoration: none; }
.stub-links a:hover { text-decoration: underline; }
.stub-links a[id] { scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 8.5rem + var(--i, 0) * 2.05rem); }
.stub-go { margin-top: auto; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); text-decoration: none; }
.stub:target .stub-card, .stub-links a:target { outline: 3px solid var(--twin-accent); outline-offset: 3px; }

/* ------------------------------------------------ index: the areas as a horizontal strip */
.area-strip { position: relative; }
.as-nav { display: none; align-items: center; gap: 0.75rem; justify-content: flex-end; margin: -0.5rem 0 1.25rem; }
html.js .as-nav { display: flex; }
.as-btn { width: 46px; height: 46px; border: 1px solid #cfd5d8; background: #fff; color: var(--dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.as-btn:hover:not(:disabled), .as-btn:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }
.as-btn:disabled { opacity: 0.35; cursor: default; }
.as-progress { position: relative; width: 120px; height: 3px; background: #dfe3e5; }
.as-progress > span { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: var(--twin-accent); }
.as-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 0.25rem 0.25rem 1.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #c3c9cc transparent; outline: none; }
.as-track:focus-visible { outline: 2px solid var(--twin-accent); outline-offset: 4px; }
.as-card { flex: 0 0 min(400px, 82%); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: box-shadow 0.25s, border-color 0.25s; }
.as-card:hover, .as-card:focus-visible { border-color: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,0.09); color: var(--text); }
.as-card:focus-visible { outline: 3px solid var(--twin-accent); outline-offset: 2px; }
.as-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #2b3033; }
.as-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.as-card:hover .as-img img { transform: scale(1.04); }
.as-img.is-empty { display: flex; align-items: center; justify-content: center; color: #9aa4a9; font-size: 2rem; }
.as-body { display: flex; flex-direction: column; padding: 1.25rem 1.4rem 0.75rem; flex: 1 1 auto; }
.as-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--dark); line-height: 1.3; margin: 0.25rem 0 0.6rem; }
.as-text { font-size: 0.92rem; line-height: 1.65; }
.as-foot { padding: 0.85rem 1.4rem; border-top: 1px solid #f0f2f3; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); }
.as-foot .metric { float: right; text-transform: none; letter-spacing: 0; color: #8a959b; font-weight: 600; }
.as-card.is-accent { border-top: 3px solid var(--twin-accent); }

/* ------------------------------------------------ end chapter, About */
.chap.is-end .prev-next { max-width: 1000px; }
.chap.is-end .prev-next a, .chap.is-end .prev-next .pn-empty { padding: 1.4rem 1.6rem; }
.chap.is-end .prev-next .pn-name { font-size: 1.08rem; }
.chap-end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.chap-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #6c767b; text-decoration: none; }
.chap-back:hover { color: var(--dark); }
.chap.is-about { background: var(--light); padding: calc(var(--chap-pad) * 0.75) 0; }
.chap.is-about .chap-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.about-grid.has-side { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 3rem; align-items: start; }
.about-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; max-width: var(--read); }
.about-item > * { margin: 0 !important; }
.about-side .status-block { margin: 0; }
.chap.is-about .scenario-note { margin: 0; background: #fff; }
.chap.is-about .twin-note { background: #fff; margin: 0; }
@media (max-width: 991.98px) { .about-grid, .about-grid.has-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
    .chap .status-chip, .num-strip .status-chip { white-space: normal; text-align: left; }
    .about-side, .about-main { min-width: 0; }
}

/* ------------------------------------------------ project timeline with the deliverables visible */
.timeline-a .tl-item.tl-a { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 2rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); margin-bottom: 2.25rem; }
.timeline-a .tl-item.tl-a:last-child { border-bottom: 0; margin-bottom: 0; }
.timeline-a .tl-item h3 { font-size: 1.12rem; }
.timeline-a .tl-item p { font-size: 0.98rem; line-height: 1.75; }
.tl-deliv { background: var(--light); padding: 1rem 1.25rem; }
.tl-deliv.is-empty { background: transparent; padding: 0; }
.tl-deliv-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a959b; }
.tl-deliv .check-list li { font-size: 0.88rem; padding: 0.4rem 0; border-color: #e6e9eb; }
@media (max-width: 767.98px) { .timeline-a .tl-item.tl-a { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* ------------------------------------------------ findings examples */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2.5rem; }
.example-grid .spec-group { background: #fff; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--primary); }

/* ------------------------------------------------ index pieces */
.ff-a p { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.ff-a .ff-lead { display: block; font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.55; }
.chap.founder-band { padding: var(--chap-pad) 0; }
.chap .founder p { font-size: 1rem; }
.chap.is-purpose .check-list li { font-size: 0.96rem; }
.chap .chain { margin-top: 0; }
.chap .chain-notes { margin-top: 2rem; }
.chap .num-grid { max-width: 1000px; }
.story-intro { scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 1rem); }
body.style-a .twin-section[id] { scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 1rem); }

/* ------------------------------------------------ media never wider than its column */
body.style-a .chap img, body.style-a .chap video, body.style-a .chap figure { max-width: 100%; }
body.style-a .chap video { height: auto; }

/* ------------------------------------------------ phones (390 and 360 px are tested) */
@media (max-width: 767.98px) {
    :root { --bar-h: 58px; }
    .chap-inner { padding: 0 1.1rem; }
    /* the chapter bar becomes a sticky row of chips that scrolls sideways */
    .chapter-bar .cb-inner { padding: 0.4rem 0.75rem; min-height: 0; }
    .chapter-bar .cb-track { gap: 0.45rem; scroll-padding-inline: 0.75rem; }
    .chapter-bar .cb-link { min-height: 44px; padding: 0 0.85rem; font-size: 12.5px; border: 1px solid var(--line); border-bottom-width: 1px; background: #fff; }
    .chapter-bar .cb-link.is-active, .chapter-bar .cb-link.is-current { border-color: var(--twin-accent); box-shadow: inset 0 -3px 0 var(--twin-accent); }
    /* tap targets of at least 44 px */
    .about-badge, .chap-back, .stub-go, .stub-links a, a.stub-title { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
    .stub-list li { padding: 0; }
    .footer.twin-footer .btn.btn-link { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
    .twin-breadcrumb .breadcrumb-item a { display: inline-flex; align-items: center; min-height: 44px; }
    .twin-breadcrumb .breadcrumb-item { display: inline-flex; align-items: center; }
    /* the theme's wide gutters (.row.g-5, 3 rem) are wider than the phone's side padding */
    body.style-a .row.g-5 { --bs-gutter-x: 1.5rem; }
    .chap .voice-tag { white-space: normal; max-width: 100%; }
    .num-strip .ns-fig { padding: 1rem 1rem 1.1rem; }
    .num-strip .story-steps.ns-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .num-strip .ns-v { font-size: 1.75rem; white-space: normal; }
    .num-strip .ns-fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .chap-opener { margin-bottom: 2.5rem; }
    .chap-end-actions .btn { width: 100%; }
    .prev-next { grid-template-columns: minmax(0, 1fr); }
    .prev-next .pn-next { grid-column: 1; text-align: left; }
    .as-card { flex-basis: 86%; }
    .cap-hero-img.is-chapter { height: 220px; }
}

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chapter-bar, .chapter-bar .cb-link, .as-card, .as-img img, .stub-card, .as-btn { transition: none !important; }
    .as-card:hover .as-img img { transform: none; }
    a.stub-card:hover { transform: none; }
    .as-track { scroll-behavior: auto; }
}
