/* ChipTrace site styles, shared by every page */

/* the type scale: every font size of the pages is one of these steps (display titles of 27 px and more aside);
   12 px is the smallest text, 14 px the text of cards and notes (the SVG diagrams keep their own sizes) */
:root { --fs-xs: 12px; --fs-s: 14px; --fs-m: 14px; --fs-body: 15px; --fs-l: 18px; --fs-xl: 22px; --fs-h2: 27px; --fs-h1: 34px; }

body { margin: 0; font-family: "Inter", system-ui, sans-serif; background: #0f1135; color: #eceefb; }
a { color: #46c7f6; text-decoration: none; }
a:hover { color: #ffffff; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-section { opacity: 0; animation: fadeInUp 0.7s cubic-bezier(0.2,0.8,0.2,1) forwards; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.85); } }
.pulse-dot { animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes glowBreathe { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.06); } }
.glow-breathe { animation: glowBreathe 5s ease-in-out infinite; transform-origin: center; }
@keyframes dashFlow { to { stroke-dashoffset: -24; } }
.flow-line { stroke-dasharray: 5 4; animation: dashFlow 1.1s linear infinite; }
.flow-line-slow { stroke-dasharray: 4 4; animation: dashFlow 2.4s linear infinite; }
.hover-card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.hover-card:hover { border-color: #46c7f6; box-shadow: 0 8px 24px rgba(70,199,246,0.15); }
a.hover-card:hover { transform: translateY(-3px); }   /* only a link lifts: a card that is not one does not look clickable */
.hover-btn { transition: background 0.2s ease, transform 0.2s ease; }
.hover-btn:hover { background: #282665; transform: translateY(-1px); }
@keyframes arrowBounce { 0%, 100% { transform: translateX(0); opacity: 0.7; } 50% { transform: translateX(4px); opacity: 1; } }
.arrow-flow { display: inline-block; animation: arrowBounce 1.3s ease-in-out infinite; }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(70,199,246,0.45); } 50% { box-shadow: 0 0 0 7px rgba(70,199,246,0); } }
.badge-glow { animation: badgeGlow 2.6s ease-out infinite; }
.nav-link { position: relative; padding-bottom: 3px; color: #a9aed6; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: #46c7f6; transition: width 0.25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #ffffff; }
@keyframes chipPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; filter: drop-shadow(0 0 6px #46c7f6); } }
.chip-pulse { animation: chipPulse 2.2s ease-in-out infinite; }

/* multi-page additions */
.sec { flex: 0 0 auto; padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.sec.alt { background: #181b4a; }
.card { background: #181b4a; border: 1px solid rgba(70,199,246,0.18); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.sec.alt .card { background: #0f1135; }
.card.hl { border-color: #46c7f6; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #46c7f6; }
.h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; color: #ffffff; }
.sub { font-size: 14px; color: #46c7f6; }
.h3 { font-size: 14px; font-weight: 600; color: #ffffff; }
.txt { font-size: 14px; color: #a9aed6; line-height: 1.6; }
.txt b, .txt strong { color: #e1e3f7; font-weight: 600; }
.lead { font-size: 15px; color: #c6c9ea; line-height: 1.65; max-width: 900px; }
.note { font-size: 14px; color: #9aa0d6; line-height: 1.5; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.chip { font-size: 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; border-radius: 4px; padding: 3px 7px; display: inline-block; }
.c-cyan { color: #46c7f6; background: rgba(70,199,246,0.12); }
.c-green { color: #34c87a; background: rgba(52,200,122,0.12); }
.c-purple { color: #b48cf0; background: rgba(155,108,224,0.14); }
.c-orange { color: #f0913a; background: rgba(224,120,32,0.14); }
.c-grey { color: #a9aed6; background: rgba(169,174,214,0.12); }
.check { display: flex; gap: 8px; font-size: 14px; color: #e1e3f7; line-height: 1.5; }
.check .ok { color: #34c87a; flex: 0 0 auto; }
.check .ko { color: #f06060; flex: 0 0 auto; }
.check .i { color: #46c7f6; flex: 0 0 auto; }
.num { width: 22px; height: 22px; border-radius: 999px; background: #46c7f6; color: #0f1135; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.code { background: #0a0c29; border: 1px solid rgba(70,199,246,0.2); border-radius: 10px; padding: 14px 18px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; line-height: 1.7; color: #e1e3f7; display: flex; flex-direction: column; overflow: hidden; height: 100%; box-sizing: border-box; }
.code .ln { white-space: pre; }
/* "->", "=>", "!=" stay as typed, never drawn as one arrow or sign: JetBrains Mono (and Inter) join them by their
   contextual alternates; !important beats the font shorthands, which would turn them on again */
*, *::before, *::after { font-variant-ligatures: no-contextual !important; }
.code-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7f85bd; margin-bottom: 6px; }
.tk { color: #b48cf0; } .tc { color: #7f85bd; } .tf { color: #46c7f6; } .ts { color: #34c87a; } .tn { color: #f0913a; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec th { text-align: left; font-weight: 600; color: #a9aed6; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid rgba(70,199,246,0.25); }
table.spec td { padding: 10px 12px; border-bottom: 1px solid rgba(70,199,246,0.08); color: #e1e3f7; vertical-align: top; line-height: 1.5; }
table.spec td.k { color: #ffffff; font-weight: 600; white-space: nowrap; }
table.spec td.dim { color: #a9aed6; }
.good { color: #34c87a; } .bad { color: #f06060; } .warn { color: #f0b030; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 500; transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #46c7f6; color: #0f1135; border: 1px solid #46c7f6; }
.btn-primary:hover { background: #8adaf9; color: #0f1135; }
.btn-ghost { background: #20245a; color: #46c7f6; border: 1px solid rgba(70,199,246,0.4); }
.btn-ghost:hover { background: #282665; color: #ffffff; }
a.door { display: flex; flex-direction: column; gap: 12px; background: #181b4a; border: 1px solid rgba(70,199,246,0.22); border-radius: 12px; padding: 22px; color: inherit; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
a.door:hover { transform: translateY(-3px); border-color: #46c7f6; box-shadow: 0 8px 24px rgba(70,199,246,0.15); color: inherit; }
.door-go { font-size: 14px; font-weight: 600; color: #46c7f6; margin-top: auto; }
.stat { flex: 1; background: #181b4a; border: 1px solid rgba(70,199,246,0.18); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-v { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 27px; color: #ffffff; }
.stat-l { font-size: 14px; color: #a9aed6; line-height: 1.5; }
.lay { border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

:root { color-scheme: dark; }

/* ---------- page frame ---------- */
:root { color-scheme: dark; --gutter: clamp(16px, 5vw, 64px); }
html, body { margin: 0; padding: 0; background: #0f1135; }
#site { width: 100%; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
#site > header, #site > main, #site > footer { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; box-sizing: border-box; }
/* the alternate bands, ChipTrace's bar and its lines run the full width of the window, the content stays at 1200px */
.sec.alt, .ct-courses { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.sec.alt { --band: #181b4a; }
/* the glows of the heroes and of the closing call to action: their SVG is a fixed 1200 px box, smaller than the band
   around it, which cut the halo with straight edges; each fades out inside its box instead */
/* the overview's illustration: an SoC tracing its four cores up to a fault, held against the right edge of the content;
   its glow runs out of its box (overflow visible), the hero clips it */
.ct-hero-art { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 460px; height: auto; overflow: visible; }
.ct-replay { animation: ctReplay 7s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes ctReplay { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(228px); opacity: 0; } }
.ct-wptr { animation: ctWptr 3.6s steps(12, end) infinite; }
@keyframes ctWptr { to { transform: translateX(114px); } }
@media (max-width: 1279px) { .ct-hero-art { display: none; } }
/* the illustration of a page's hero sits right of its text, in the 1200 px box: it goes when the window is narrower */
@media (max-width: 1179px) { .hero-art { display: none; } }
main > div:first-child:not(.ct-hero) > svg:first-child { --m: radial-gradient(ellipse 260px 125px at 1030px 125px, #000 45%, transparent 100%); }
#site > footer > div:first-child > svg { --m: radial-gradient(ellipse 260px 115px at 1000px 120px, #000 40%, transparent 100%); }
main > div:first-child:not(.ct-hero) > svg:first-child, #site > footer > div:first-child > svg { -webkit-mask-image: var(--m); mask-image: var(--m); }
/* the lines between the call to action, the PDF links and what is above run the full width too */
#site > footer > div { border-top: 1px solid transparent !important; border-image: linear-gradient(rgba(70,199,246,0.12), rgba(70,199,246,0.12)) 1 0 0 / 1px 0 0 / 0 100vmax; }
h1, h2, h3, p { margin: 0; font: inherit; }
img { display: block; }
.moveb-logo { height: auto; flex: 0 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #46c7f6; color: #0f1135; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { left: 8px; }
a:focus-visible { outline: 2px solid #46c7f6; outline-offset: 3px; border-radius: 4px; }
.table-scroll { overflow-x: auto; }
.code { overflow-x: auto; }
.pdf-links { font-size: 14px; color: #7f85bd; }
#site footer a[href^="tel:"], #site footer a[href^="mailto:contact@move-b.com"]:not(.btn), #site footer a[href="https://www.move-b.com/"]:not([aria-label]) { color: inherit; text-decoration: underline; text-decoration-color: rgba(127,133,189,0.4); }
@media print { .fade-section { opacity: 1 !important; animation: none !important; } .skip-link { display: none; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-section { opacity: 1; }
}

/* ---------- responsive layer ----------
   The pages were laid out for a fixed 1200px canvas with inline styles.
   These rules let rows wrap and grids collapse instead of scaling the page down. */
@media (max-width: 1100px) {
  main [style*="display: flex"]:has(> .grow) { flex-wrap: wrap; }
  main .grow { min-width: min(100%, 240px) !important; }
  main .stat, main a.door { min-width: min(100%, 240px); }
  main div:has(> .stat), main div:has(> a.door) { flex-wrap: wrap; }
  main [style*="repeat(8, minmax(0, 1fr))"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  main [style*="repeat(12, minmax(0, 1fr))"] { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  main svg:not([style*="position: absolute"]) { max-width: 100%; height: auto; }
}

@media (max-width: 760px) {
  .ct-header { height: auto !important; flex-wrap: wrap; gap: 10px; padding-top: 14px !important; padding-bottom: 10px !important; }
  .site-nav { width: 100%; overflow-x: auto; gap: 18px !important; padding-bottom: 4px; white-space: nowrap; }
  .site-nav .nav-link { padding: 12px 0; }   /* a finger-sized target, 44 px high */
  .site-nav .btn { display: none; }
  main > div:first-child { height: auto !important; padding-top: 40px !important; padding-bottom: 40px !important; }
  main h1 { font-size: 32px !important; }
  main [style*="display: flex"]:has(> .grow) > * { flex-basis: 100%; }
  main [style*="repeat(3, minmax(0, 1fr))"],
  main [style*="repeat(4, 1fr)"],
  main [style*="repeat(8, minmax(0, 1fr))"],
  main [style*="1fr 1fr"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main [style*="repeat(12, minmax(0, 1fr))"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  main [style*="flex: 0 0 300px"], main [style*="width: 260px"], main [style*="flex: 0 0 30%"] { flex: 1 1 100% !important; width: auto !important; }
  main .row { flex-wrap: wrap; }
  main .row:has(> .num), main .row:has(> .badge-glow) { flex-wrap: nowrap !important; }
  main [style*="display: flex; align-items: center; gap: 14px"] { flex-wrap: nowrap !important; }
  .table-scroll table.spec.wide { min-width: 560px; }
  table.spec td.k { white-space: normal; }
  .diagram-scroll { overflow-x: auto; }
  .diagram-scroll svg { max-width: none !important; width: 760px; height: auto; }
  #site footer > div { flex-direction: column; align-items: flex-start !important; gap: 24px; }
  #site footer > div > div { align-items: flex-start !important; text-align: left !important; }
  #site footer [style*="display: flex; gap: 12px"] { flex-wrap: wrap; }
}

@media (max-width: 760px) { main a.door { min-width: 0; padding: 16px; } main a.door .h3 { font-size: 14px; } }
@media (max-width: 560px) { main [style*="1fr 1fr"] { grid-template-columns: 1fr !important; } }
@media (max-width: 460px) {
  main [style*="repeat(3, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
}

/* five-step rows (ChipTraceAnalyzer page) */
@media (max-width: 1100px) { main [style*="repeat(5, minmax(0, 1fr))"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { main [style*="repeat(5, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; } }

/* ---------- ChipTraceAnalyzer screenshots ---------- */
.shot { margin: 0; border-radius: 4px; overflow: hidden; border: 1px solid #343842; background: #1e1e1e; }
.shot-bar { display: flex; align-items: center; padding: 7px 12px; background: #24272e; border-bottom: 1px solid #343842; }
.shot-bar em, .dm-win-bar em, .mc-bar em { display: flex; align-items: center; min-width: 0; font: 400 12px 'JetBrains Mono', ui-monospace, monospace; font-style: normal; color: #9298a6; white-space: nowrap; overflow: hidden; }
.shot-bar em b, .dm-win-bar em b, .mc-bar em b { font: 600 12.5px 'Inter', system-ui, sans-serif; color: #e4e6ec; }
.shot-bar em i, .dm-win-bar em i, .mc-bar em i { font-style: normal; margin-left: 10px; padding-left: 10px; border-left: 1px solid #3c414c; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.showcase-wrap { padding: 8px var(--gutter) 40px; position: relative; }
.showcase { display: flex; flex-direction: column; gap: 18px; }
.showcase-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.showcase-facts div { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 0; border-top: 1px solid rgba(169,174,214,0.3); }
.showcase-facts b { font-family: 'Outfit', sans-serif; font-size: 22px; color: #ffffff; }
.showcase-facts span { font-size: 14px; color: #a9aed6; line-height: 1.5; }
.viewer { display: flex; flex-direction: column; gap: 14px; }
.vtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.vtab { font: 600 14px 'Inter', system-ui, sans-serif; color: #a9aed6; background: #20245a; border: 1px solid rgba(70,199,246,0.2); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.vtab:hover { color: #ffffff; border-color: rgba(70,199,246,0.5); }
.vtab.on { background: #46c7f6; color: #0f1135; border-color: #46c7f6; }
.vtab:focus-visible { outline: 2px solid #46c7f6; outline-offset: 2px; }
.vpanel { display: flex; flex-direction: column; gap: 10px; }
.vpanel[hidden] { display: none; }
.vcap { font-size: 14px; color: #c6c9ea; line-height: 1.6; max-width: 900px; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; align-items: center; }
/* ---------- T32Pilot validation ---------- */
.teaser.t32p { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; }
.t32p-results { display: flex; flex-direction: column; gap: 10px; }
.t32p-results .card { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
.t32p-n { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 30px; color: #46c7f6; min-width: 64px; text-align: right; }
.t32p-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.t32p-flow .card { padding: 12px; gap: 4px; }
@media (max-width: 1100px) { .t32p-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .showcase-facts, .teaser, .teaser.t32p { grid-template-columns: 1fr; }
  .t32p-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-bar em i + i, .dm-win-bar em i + i { display: none; }
}

/* ---------- within www.move-b.com ----------
   The MOVE.B header and footer (assets/moveb/frame.css, from site/tools/chiptrace_frame.py) around the page;
   ChipTrace's own bar right under the header, kept at the top while scrolling. */
body > .site-header { position: relative; background: #fff; }
.ct-header { position: sticky; top: 0; z-index: 40; height: 60px !important; border-bottom: 0 !important; backdrop-filter: blur(10px); }
.ct-header::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: rgba(15, 17, 53, 0.94); border-bottom: 1px solid rgba(70,199,246,0.16); }
.ct-header .brand div { font-size: 18px !important; }

/* MOVE.B courses behind ChipTrace, as tags (last section of every page) */
.ct-courses { --band: #14173f; background: #14173f; }
.ct-courses .txt { max-width: 760px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: #e1e3f7; background: rgba(70,199,246,0.07);
  border: 1px solid rgba(70,199,246,0.28); border-radius: 999px; padding: 7px 14px; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.tag:hover { color: #ffffff; border-color: #46c7f6; background: rgba(70,199,246,0.16); }
.tag-all { color: #46c7f6; font-weight: 600; background: none; border-style: dashed; }

/* screenshots enlarged in the page (lightbox.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 28, 0.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox button { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

/* the hero's bottom line runs the full width, like the bands below it */
main > div:first-child { border-bottom: 0 !important; border-image: linear-gradient(rgba(70,199,246,0.12), rgba(70,199,246,0.12)) 0 0 1 / 0 0 1px / 0 100vmax; }
/* the first page's hero runs straight into its four figures: no line between them */
main > div.ct-hero:first-child { border-image: none; }
/* phones: ChipTrace's bar takes the height of its two rows (the 60 px above is for one row), its menu scrolls sideways
   and fades out on the right to say so */
@media (max-width: 760px) {
  .ct-header { height: auto !important; }
  .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
}

/* ---------- Triggers & counters (triggers.html) ---------- */
.uc { display: flex; flex-direction: column; gap: 3px; }
.uc-l { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7f85bd; }
.uc-l.r { color: #34c87a; }
.uc .txt { font-size: 14px; }
.uc .txt.r { color: #e1e3f7; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fig figcaption { font-size: 14px; color: #7f85bd; line-height: 1.5; max-width: 900px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jump a { font-size: 13px; border: 1px solid rgba(70,199,246,0.25); border-radius: 999px; padding: 5px 11px; color: #e1e3f7; }
.jump a:hover { border-color: #46c7f6; color: #ffffff; }
.jump a span { color: #7f85bd; margin-right: 6px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .steps, .uc-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 760px) { .steps, .uc-grid { grid-template-columns: 1fr !important; } }

/* ---------- finishing (site audit, October 2026) ---------- */
/* a card that ends with a note keeps it at its bottom when stretched to the height of its row */
.card > .note:last-child { margin-top: auto; }
/* use cases: title, chips, text and result line up from one card to the next of the same row */
main [style*="grid-template-columns: repeat(3"] > .card:has(> .check[style*="margin-top: auto"]) { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
main .card > .check[style*="margin-top: auto"] { margin-top: 0 !important; }
/* labels of the page chips under the heroes and of the jump links: 11 px at least */
main > div:first-child .row > a > .mono { font-size: 12px !important; }
.jump a span { font-size: 12px; }
/* wide diagrams on phones: a line says they scroll, the right edge fades out */
@media (max-width: 760px) {
  .diagram-scroll { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .diagram-scroll::before { content: "Swipe to see the whole diagram →"; display: block; position: sticky; left: 0; width: max-content; margin-bottom: 8px; font-size: 12px; color: #7f85bd; }
}
/* phones: the section badge stays on the first line of its title; the hero's page chips repeat ChipTrace's bar and go;
   the jump links take one row that scrolls; the four key figures go two by two */
@media (max-width: 760px) {
  main .row:has(> .badge-glow) { align-items: flex-start !important; }
  main .row > .badge-glow { margin-top: -3px; }
  main > div:first-child .row:has(> a > .mono) { display: none !important; }
  .jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .jump a { flex: 0 0 auto; }
  main div:has(> .stat) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .stat { min-width: 0; padding: 14px; }
  main .stat-v { font-size: 22px; }
}
/* phones: tables of three or four columns become one card per row, each value under its column name */
@media (max-width: 560px) {
  .table-scroll table.spec.stack.wide { min-width: 0; }
  table.spec.stack, table.spec.stack tbody, table.spec.stack tr, table.spec.stack td { display: block; width: auto !important; }
  table.spec.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.spec.stack tr { padding: 12px 0; border-bottom: 1px solid rgba(70,199,246,0.18); }
  table.spec.stack td { border: 0; padding: 3px 0; }
  table.spec.stack td.k { padding-bottom: 6px; font-size: 14px; }
  table.spec.stack td[data-th]::before { content: attr(data-th); display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #7f85bd; }
}

/* Trace principle, CoreSight architecture: the diagram and its cards point at each other (hover one, the other lights);
   a phone gets the same four stages one under the other */
.arch-diagram svg { display: block; width: 100%; max-width: 1080px; height: auto; }
.arch-diagram [data-b] { transition: opacity 0.2s ease; }
.arch-cards .card { transition: border-color 0.2s ease, background 0.2s ease; }
#architecture:has([data-b]:hover) .arch-diagram [data-b] { opacity: 0.3; }
.arch-steps { display: none; list-style: none; margin: 0; padding: 0; flex-direction: column; gap: 8px; }
.arch-steps li { display: flex; flex-direction: column; gap: 6px; background: #0f1135; border: 1px solid rgba(70,199,246,0.18); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #e1e3f7; }
.arch-steps li b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #7f85bd; }
.arch-steps li.across { border-style: dashed; }
@media (max-width: 760px) { .arch-diagram { display: none; } .arch-steps { display: flex; } }
#architecture:has([data-b="etm"]:hover) .arch-diagram [data-b="etm"] { opacity: 1; }
#architecture:has([data-b="stm"]:hover) .arch-diagram [data-b="stm"] { opacity: 1; }
#architecture:has([data-b="flexnoc"]:hover) .arch-diagram [data-b="flexnoc"] { opacity: 1; }
#architecture:has([data-b="ncore"]:hover) .arch-diagram [data-b="ncore"] { opacity: 1; }
#architecture:has([data-b="cstf"]:hover) .arch-diagram [data-b="cstf"] { opacity: 1; }
#architecture:has([data-b="etf"]:hover) .arch-diagram [data-b="etf"] { opacity: 1; }
#architecture:has([data-b="replicator"]:hover) .arch-diagram [data-b="replicator"] { opacity: 1; }
#architecture:has([data-b="etr"]:hover) .arch-diagram [data-b="etr"] { opacity: 1; }
#architecture:has([data-b="tpiu"]:hover) .arch-diagram [data-b="tpiu"] { opacity: 1; }
#architecture:has([data-b="cti"]:hover) .arch-diagram [data-b="cti"] { opacity: 1; }
#architecture:has([data-b="tsg"]:hover) .arch-diagram [data-b="tsg"] { opacity: 1; }
#architecture:has([data-b="readback"]:hover) .arch-diagram [data-b="readback"] { opacity: 1; }
#architecture:has([data-b="etm"]:hover) .card[data-b="etm"], #architecture:has([data-b="stm"]:hover) .card[data-b="stm"], #architecture:has([data-b="flexnoc"]:hover) .card[data-b="flexnoc"], #architecture:has([data-b="ncore"]:hover) .card[data-b="ncore"], #architecture:has([data-b="cstf"]:hover) .card[data-b="cstf"], #architecture:has([data-b="etf"]:hover) .card[data-b="etf"], #architecture:has([data-b="replicator"]:hover) .card[data-b="replicator"], #architecture:has([data-b="etr"]:hover) .card[data-b="etr"], #architecture:has([data-b="tpiu"]:hover) .card[data-b="tpiu"], #architecture:has([data-b="cti"]:hover) .card[data-b="cti"], #architecture:has([data-b="tsg"]:hover) .card[data-b="tsg"], #architecture:has([data-b="readback"]:hover) .card[data-b="readback"] { border-color: #46c7f6; background: #181b4a; }
/* Trace principle, the ETM packets: two columns on a phone too, the packet's name narrow */
@media (max-width: 760px) { table.spec.packets th:first-child { width: 112px !important; } }

/* Trace principle, multi-core: the lanes on one TSG time base and the decoded table, numbered alike (hover one, the other lights) */
@media (min-width: 761px) { .mc-figure svg { display: block; width: 100%; max-width: 1080px; height: auto; } }
/* a phone: the function under its instruction, the table without side scroll */
@media (max-width: 760px) { .mc-table th:last-child, .mc-table td.fn { display: none; } .mc-table td.ins::after { content: attr(data-fn); display: block; color: #a9aed6; font-size: 12px; } .mc-table th, .mc-table td { padding: 7px 8px; } }
.mc-mark { transition: opacity 0.2s ease; }
.mc-panel { background: #0f1135; border: 1px solid #343842; border-radius: 4px; overflow: hidden; }
.mc-bar { display: flex; align-items: center; padding: 7px 12px; background: #24272e; border-bottom: 1px solid #343842; }
.mc-table { width: 100%; border-collapse: collapse; font: 12px/1.4 'JetBrains Mono', ui-monospace, monospace; color: #e1e3f7; }
.mc-table th { text-align: left; font-weight: 500; color: #7f85bd; padding: 7px 14px; border-bottom: 1px solid rgba(70,199,246,0.12); }
.mc-table td { padding: 7px 14px; border-bottom: 1px solid rgba(70,199,246,0.08); white-space: nowrap; }
.mc-table td.n { color: #7f85bd; width: 1%; } .mc-table td.fn { color: #a9aed6; }
.mc-table tr.flag td { background: rgba(240,96,96,0.12); color: #ffffff; } .mc-table tr.flag td.n { box-shadow: inset 3px 0 #f06060; color: #f06060; font-weight: 700; }
.mc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.mc-note { padding: 10px 14px; font-size: 14px; color: #e1e3f7; line-height: 1.5; }
#multicore:has(tr[data-n]:hover) .mc-mark { opacity: 0.25; }
#multicore tr[data-n]:hover td { background: rgba(70,199,246,0.08); }
#multicore:has(tr[data-n="1"]:hover) .mc-mark[data-n="1"] { opacity: 1; }
#multicore:has(tr[data-n="2"]:hover) .mc-mark[data-n="2"] { opacity: 1; }
#multicore:has(tr[data-n="3"]:hover) .mc-mark[data-n="3"] { opacity: 1; }
#multicore:has(tr[data-n="4"]:hover) .mc-mark[data-n="4"] { opacity: 1; }
#multicore:has(tr[data-n="5"]:hover) .mc-mark[data-n="5"] { opacity: 1; }
.mc-fine { display: block; margin-top: 6px; font-size: 12px; color: #a9aed6; }
/* Trace principle, end to end: five steps, one line each, tagged with who works (firmware, hardware, host) */
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.lifecycle .card { gap: 8px; position: relative; }
.lifecycle .card b { color: #ffffff; font-size: 14px; }
.lifecycle .card:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: #46c7f6; font-size: 14px; z-index: 1; }
.lc-n { width: 22px; height: 22px; border-radius: 999px; background: #46c7f6; color: #0f1135; font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; flex: none; }
@media (max-width: 1000px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle .card:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -15px; transform: none; } }
/* Integration: icons, the layers in a row, the code's numbered calls, a PDF link per SoC, the figures in one band, the closing call */
.ico { width: 32px; height: 32px; border-radius: 8px; background: rgba(70,199,246,0.08); border: 1px solid rgba(70,199,246,0.2); display: inline-grid; place-items: center; flex: none; }
.ico img { display: block; }
.layers { display: flex; align-items: stretch; gap: 10px; }
.lay2 { flex: 1; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lay2 .chip { align-self: flex-start; margin-bottom: 2px; }
.lay-arrow { align-self: center; color: #46c7f6; }
.code.big { font-size: 14px; }
.code .ln .sn { display: inline-block; width: 18px; margin-right: 8px; text-align: center; }
.code .ln.hl { background: rgba(70,199,246,0.1); border-radius: 4px; }
.code .ln.hl .sn { color: #0f1135; background: #46c7f6; border-radius: 999px; font-weight: 700; font-size: 12px; line-height: 18px; height: 18px; }
.pdf-link { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: #46c7f6; border: 1px solid rgba(70,199,246,0.35); border-radius: 6px; padding: 3px 8px; }
.pdf-link:hover { background: rgba(70,199,246,0.1); }
/* datasheets and white paper not published yet (WI-0010): shown, not clickable */
.wip { cursor: default; opacity: 0.75; }
.btn.wip:hover, .pdf-link.wip:hover { background: inherit; color: inherit; }
.btn-ghost.wip:hover { background: #20245a; color: #46c7f6; }
.wip-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #e07820; border: 1px solid rgba(224,120,32,0.6); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.stat-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #181b4a; border: 1px solid rgba(70,199,246,0.25); border-radius: 12px; }
.stat-band .card { background: none; border: 0; border-radius: 0; }
.stat-band .card + .card { border-left: 1px solid rgba(70,199,246,0.18); }
.cta-band { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .layers { flex-direction: column; } .lay-arrow { transform: rotate(90deg); }
  .flow-row { flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; } .flow-row > .arrow-flow { align-self: center; animation: none !important; transform: rotate(90deg); }
  .stat-band { grid-template-columns: 1fr; } .stat-band .card + .card { border-left: 0; border-top: 1px solid rgba(70,199,246,0.18); }
}
