/* ---------- Page builder sections (shared by the three sites; colors come from each site's tokens) ---------- */
.cms { position: relative; color: var(--sec-fg, var(--text)); background-color: var(--sec-bg, transparent); background-size: cover; background-position: center; }
.cms.has-fg h1, .cms.has-fg h2, .cms.has-fg h3, .cms.has-fg .lead, .cms.has-fg p { color: var(--sec-fg); }
.cms.bg-soft { --sec-bg: var(--brand-soft); }
.cms.bg-brand { --sec-bg: var(--brand); --sec-fg: var(--on-brand); }
.cms.bg-dark { --sec-bg: #111114; --sec-fg: #f4f4f6; }
.cms.bg-brand .btn, .cms.bg-dark .btn { background: #fff; color: #111; border-color: #fff; }
.cms.bg-brand .btn.ghost, .cms.bg-dark .btn.ghost { background: transparent; color: #fff; }
.cms.bg-brand a:not(.btn), .cms.bg-dark a:not(.btn) { color: inherit; text-decoration: underline; }
.cms.has-bg-image::before { content: ""; position: absolute; inset: 0; background: #0006; }
.cms.has-bg-image { --sec-fg: #fff; }
.cms-inner { position: relative; width: min(1120px, 100% - 32px); margin-inline: auto; }
.cms.w-narrow .cms-inner { width: min(760px, 100% - 32px); }
.cms.w-wide .cms-inner { width: min(1360px, 100% - 32px); }
.cms.w-full .cms-inner { width: 100%; }
.cms.pad-none { padding-block: 0; } .cms.pad-small { padding-block: 28px; } .cms.pad-medium { padding-block: 56px; } .cms.pad-large { padding-block: 96px; }
.cms.align-center { text-align: center; }
.cms.align-center .cms-buttons { justify-content: center; }
.cms.align-center .sec-lead { margin-inline: auto; }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 10px; line-height: 1.3; }
.sec-lead { color: var(--sec-fg, var(--muted)); opacity: .85; max-width: 720px; margin: 0 0 28px; font-size: 1.08rem; }
.cms-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cms img, .cms video { max-width: 100%; display: block; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.rich h3 { margin: 22px 0 8px; } .rich ul { padding-inline-start: 22px; } .rich p { margin: 0 0 12px; }

/* Hero */
.hero-box { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; position: relative; }
.hero-box.layout-side.has-media { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero-box h1 { font-size: clamp(2rem, 5.2vw, 3.8rem); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.5px; }
.hero-box .lead { font-size: 1.2rem; max-width: 640px; opacity: .9; }
.cms.align-center .hero-box .lead { margin-inline: auto; }
.eyebrow { font-weight: 700; color: var(--accent); margin: 0 0 8px; letter-spacing: .3px; }
.hero-media img, .hero-media video { border-radius: calc(var(--radius) * 1.4); width: 100%; }
.hero-box.layout-below .hero-media { margin-top: 10px; }
.hero-box.h-large { min-height: 70vh; } .hero-box.h-screen { min-height: calc(100vh - 120px); }
.hero-box.layout-background { padding: 64px 32px; color: #fff; border-radius: calc(var(--radius) * 1.4); overflow: hidden; }
.cms.w-full .hero-box.layout-background { border-radius: 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-shade { position: absolute; inset: 0; background: #000; }
.hero-box.layout-background .hero-text { position: relative; z-index: 1; }
.hero-box.layout-background h1, .hero-box.layout-background .lead { color: #fff; }

/* Slider */
.slider { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.4); background: #111; }
.cms.w-full .slider { border-radius: 0; }
.slider.h-medium { height: clamp(260px, 45vh, 460px); } .slider.h-large { height: clamp(320px, 65vh, 680px); } .slider.h-screen { height: calc(100vh - 120px); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.fx-slide .slide { transform: translateX(-6%); } .fx-slide .slide.on { transform: none; }
.fx-zoom .slide { transform: scale(1.08); } .fx-zoom .slide.on { transform: scale(1); }
.slide-text { position: absolute; inset-inline: 0; bottom: 0; padding: 48px 6% 56px; color: #fff; background: linear-gradient(0deg, #000a, transparent); }
.slide-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.6rem); margin: 0 0 8px; color: #fff; }
.slide-text p { color: #ffffffdd; max-width: 640px; }
.slide-text .btn { background: #fff; color: #111; border-color: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #ffffffcc; color: #111; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.slider-arrow.prev { inset-inline-start: 14px; } .slider-arrow.next { inset-inline-end: 14px; }
.slider-dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: #ffffff80; cursor: pointer; padding: 0; transition: width .3s; }
.slider-dots button.on { width: 28px; background: #fff; }

/* Media + text */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-text.side-end .mt-media { order: 2; }
.mt-media img, .mt-media video { border-radius: calc(var(--radius) * 1.4); width: 100%; }
.mt-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 12px; }

/* Cards */
.cards { display: grid; gap: 18px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card.feature { color: var(--text); display: grid; gap: 6px; align-content: start; text-align: start; }
a.card.feature:hover { text-decoration: none; border-color: var(--brand); }
.feature-icon { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); }
.feature-logo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; }
.feature-logo img { width: 100%; height: 100%; object-fit: contain; }
.feature-media img, .feature-media video { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card.feature h3 { margin: 6px 0 0; } .card.feature p { margin: 0; color: var(--muted); }

/* Specs */
.specs-table { margin: 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-weight: 600; } .spec-row dd { margin: 0; }
.specs-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.specs-cards .spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; color: var(--text); }
.specs-cards .spec-card span { color: var(--muted); font-size: .9rem; }
.specs-big { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.specs-big .spec-card { display: grid; gap: 6px; }
.specs-big .spec-card b { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.specs-big .spec-card span { opacity: .8; }

/* Gallery */
.gallery { display: grid; gap: 12px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); } .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } .gallery.cols-5 { grid-template-columns: repeat(5, 1fr); }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: #f3f3f3; }
.gallery-grid .g-item img, .gallery-grid .g-item video { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.gallery-masonry { display: block; columns: 3 240px; column-gap: 12px; }
.gallery-masonry .g-item { margin-bottom: 12px; break-inside: avoid; }
.gallery-strip { overflow: hidden; }
.strip-track { display: flex; gap: 14px; width: max-content; }
.strip-track img, .strip-track video { height: 220px; width: auto; border-radius: var(--radius); }
.gallery-strip.moving .strip-track { animation: strip 40s linear infinite; }
.gallery-strip.moving:hover .strip-track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(50%); } }

/* Video */
.video-box { margin-inline: auto; border-radius: calc(var(--radius) * 1.4); overflow: hidden; background: #000; }
.video-box.vw-normal { max-width: 760px; } .video-box.vw-wide { max-width: 1120px; } .video-box.vw-full { max-width: none; border-radius: 0; }
.video-box video, .video-box iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* Story: the media stays while the steps scroll */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story.side-start .story-stage { order: -1; } .story.side-end .story-stage { order: 2; }
.story.is-live .story-stage { position: sticky; top: 110px; height: min(70vh, 620px); align-self: start; }
.story-media { position: absolute; inset: 0; opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .6s ease; }
.story-media.on { opacity: 1; transform: none; }
.story-media img, .story-media video { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) * 1.4); }
.story-stage { position: relative; }
.story.is-live .story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .4s; }
.story.is-live .story-step.on { opacity: 1; }
.story-step h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 10px; }
.story.is-still { grid-template-columns: 1fr; }
.story.is-still .story-stage { display: none; }
.story.is-still .story-step { padding-bottom: 32px; }
.story-inline img, .story-inline video { border-radius: var(--radius); margin-bottom: 14px; }

/* Stats, CTA, spacer */
.stats-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stat-big b { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--brand); }
.cms.bg-brand .stat-big b, .cms.bg-dark .stat-big b { color: inherit; }
.stat-big span { opacity: .8; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-box h2 { margin: 0 0 6px; } .cta-box p { margin: 0; opacity: .85; } .cta-box .cms-buttons { margin: 0; }
.cms.align-center .cta-box { flex-direction: column; justify-content: center; }
.spacer.sp-small { height: 16px; } .spacer.sp-medium { height: 40px; } .spacer.sp-large { height: 90px; }
.spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0; position: relative; top: 50%; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: #000e; display: grid; place-items: center; z-index: 1000; padding: 24px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { inset-inline-start: 16px; inset-inline-end: auto; } .lightbox .lb-next { inset-inline-end: 16px; }

/* ---------- Motion (only when cms.js turned it on, and never with "reduce motion") ----------
   cms.js marks what moves with data-enter (the whole section's .cms-inner, or each card); .in = on screen.
   Going out is drawn by cms.js itself while scrolling (inline styles), so it needs nothing here. */
.motion [data-enter] { --d: .7s; transition: opacity var(--d) ease, transform var(--d) cubic-bezier(.2, .7, .2, 1), filter var(--d) ease; }
.motion [data-enter][data-speed="fast"] { --d: .45s; } .motion [data-enter][data-speed="slow"] { --d: 1.1s; }
.motion [data-enter]:not([data-enter="none"]):not(.in) { opacity: 0; }
.motion [data-enter="fade-up"]:not(.in) { transform: translateY(40px); }
.motion [data-enter="fade-down"]:not(.in) { transform: translateY(-40px); }
.motion [data-enter="slide-start"]:not(.in) { transform: translateX(60px); }
.motion [data-enter="slide-end"]:not(.in) { transform: translateX(-60px); }
.motion [data-enter="zoom-in"]:not(.in) { transform: scale(.88); }
.motion [data-enter="zoom-out"]:not(.in) { transform: scale(1.12); }
.motion [data-enter="blur"]:not(.in) { filter: blur(14px); }
.motion [data-enter="flip"]:not(.in) { transform: perspective(900px) rotateX(18deg) translateY(30px); }
.motion [data-enter="rotate"]:not(.in) { transform: rotate(-6deg) translateY(30px); }
.motion [data-enter="rise"]:not(.in) { transform: translateY(120px) scale(.96); }
.motion [data-enter="pop"]:not(.in) { transform: scale(.7); }
.motion [data-enter="pop"].in { transition-timing-function: ease, cubic-bezier(.3, 1.6, .5, 1), ease; }
.motion [data-scroll="scale"] [data-depth] { transform: scale(var(--p-scale, 1)); transform-origin: center; will-change: transform; }
.motion [data-scroll="parallax"] [data-depth] { transform: translateY(var(--p-shift, 0)); will-change: transform; }
.motion [data-scroll="fade-through"] > .cms-inner { opacity: var(--p-fade, 1); }

/* ---------- Elements: heading, buttons, image, columns, quote ---------- */
.cms-heading .eyebrow { margin: 0 0 6px; }
.cms-heading .hd { margin: 0; line-height: 1.2; }
.cms-heading .hd.sz-small { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.cms-heading .hd.sz-normal { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cms-heading .hd.sz-large { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cms-heading .hd.sz-huge { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.01em; }
.cms-heading .hd-sub { margin: 12px 0 0; opacity: .85; max-width: 760px; }
.cms.align-center .cms-heading .hd-sub { margin-inline: auto; }
.cms-actions.size-small .btn { padding: 6px 14px; font-size: .9rem; }
.cms-actions.size-large .btn { padding: 14px 30px; font-size: 1.1rem; }
.cms.align-center .cms-actions .cms-buttons { justify-content: center; }
.cms-figure { margin: 0 auto; }
.cms-figure.size-small { max-width: 420px; } .cms-figure.size-normal { max-width: 860px; } .cms-figure.size-full { max-width: none; }
.cms-figure img, .cms-figure video { width: 100%; height: auto; display: block; }
.cms-figure.rounded img, .cms-figure.rounded video { border-radius: calc(var(--radius) * 1.3); }
.cms-figure.shadow img, .cms-figure.shadow video { box-shadow: 0 18px 50px #0002; }
.cms-figure figcaption { text-align: center; opacity: .75; font-size: .92rem; margin-top: 10px; }
.text-cols { display: grid; gap: 28px; }
.text-cols.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-cols.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text-col .col-icon { font-size: 1.8rem; margin-bottom: 6px; }
.text-col h3 { margin: 0 0 8px; }
.quote-box { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-box blockquote { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.6; font-weight: 600; }
.quote-box blockquote::before { content: "❝"; display: block; font-size: 2.6rem; color: var(--brand); line-height: 1; margin-bottom: 8px; }
.cms.bg-brand .quote-box blockquote::before, .cms.bg-dark .quote-box blockquote::before { color: inherit; }
.quote-by { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; text-align: start; }
.quote-by img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-by b { display: block; } .quote-by span { opacity: .75; font-size: .92rem; }

/* ---------- Stacked cards ---------- */
.stack { display: grid; gap: 28px; }
.stack-card { position: sticky; top: calc(96px + var(--i, 0) * 16px); }
.stack-body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; background: var(--card-bg, var(--surface)); color: var(--text);
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6); padding: clamp(22px, 4vw, 48px); box-shadow: 0 -10px 40px #0000001a; overflow: hidden;
  transform-origin: center top; will-change: transform; }
.stack-card.has-color .stack-body { color: #fff; border-color: transparent; }
.stack.h-medium .stack-body { min-height: 46vh; } .stack.h-large .stack-body { min-height: 64vh; } .stack.h-screen .stack-body { min-height: calc(100vh - 140px); }
.stack.side-start .stack-media { order: -1; }
.stack-media img, .stack-media video { width: 100%; max-height: 56vh; object-fit: cover; border-radius: var(--radius); display: block; }
.stack.side-background .stack-body { grid-template-columns: 1fr; position: relative; color: #fff; }
.stack.side-background .stack-media { position: absolute; inset: 0; }
.stack.side-background .stack-media img, .stack.side-background .stack-media video { height: 100%; max-height: none; border-radius: 0; }
.stack.side-background .stack-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000a, #0002); }
.stack.side-background .stack-text { position: relative; }
.stack-text h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin: 4px 0 12px; }
.stack-text p { opacity: .88; }

/* ---------- Tabs and steps ---------- */
.tabs-list { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs-list [role=tab] { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; cursor: pointer; color: inherit; opacity: .7; }
.tabs-list [role=tab][aria-selected="true"] { opacity: 1; border-bottom-color: var(--brand); font-weight: 700; }
.tab-panel { display: grid; gap: 24px; }
.tab-panel.has-media { grid-template-columns: 1.2fr 1fr; align-items: start; }
.tab-panel img, .tab-panel video { width: 100%; border-radius: var(--radius); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 18px; }
.steps > li { counter-increment: st; position: relative; padding-inline-start: 58px; }
.steps > li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps.vertical > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 19px; top: 46px; bottom: -14px; width: 2px; background: var(--line); }
.steps.horizontal { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps.horizontal > li { padding-inline-start: 0; padding-top: 54px; }
.steps > li h3 { margin: 6px 0 6px; font-size: 1.15rem; }

/* ---------- Documentation: table, code, callout, index, chapters ---------- */
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--surface); color: var(--text); }
.doc-table th, .doc-table td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.doc-table thead th { border-top: 0; background: var(--brand-soft); font-weight: 700; }
.code-box { direction: ltr; text-align: left; background: #0f1720; color: #e6edf3; border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #ffffff10; font-size: .85rem; }
.code-head button { font: inherit; font-size: .82rem; background: #ffffff1a; color: inherit; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.code-box code { font: inherit; background: none; padding: 0; color: inherit; }
.code-box pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: .9rem/1.6 ui-monospace, Consolas, "Cascadia Mono", monospace; white-space: pre; }
.rich code, .doc-body code { direction: ltr; unicode-bidi: isolate; font: .9em ui-monospace, Consolas, monospace; background: var(--brand-soft); padding: 1px 6px; border-radius: 5px; }
.callout { border-inline-start: 4px solid var(--c, var(--brand)); background: var(--cb, var(--brand-soft)); color: var(--text); border-radius: var(--radius); padding: 14px 18px; }
.callout h3 { margin: 0 0 6px; font-size: 1.05rem; } .callout .rich > :last-child { margin-bottom: 0; }
.callout.k-tip { --c: #1f8a4c; --cb: #e9f7ee; } .callout.k-warn { --c: #b7791f; --cb: #fff6e0; } .callout.k-danger { --c: #c0392b; --cb: #fdecea; } .callout.k-info { --c: #2563eb; --cb: #eaf1ff; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); color: var(--text); }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-inline-start: 20px; } .toc li.sub { margin-inline-start: 16px; list-style: circle; font-size: .94rem; }
.toc a { color: inherit; text-decoration: none; } .toc a:hover, .toc a.on { color: var(--brand); text-decoration: underline; }
@media (min-width: 1280px) { .toc.side { position: fixed; top: 120px; inset-inline-end: 18px; width: 230px; max-height: 70vh; overflow: auto; z-index: 5; font-size: .92rem; } }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.doc-side input { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--surface); color: var(--text); }
.doc-nav { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.doc-nav a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; opacity: .8; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.doc-nav a:hover, .doc-nav a.on { opacity: 1; color: var(--brand); border-inline-start-color: var(--brand); }
.doc-head h1, .doc-head h2 { margin: 0 0 8px; } .doc-head p { opacity: .85; margin: 0 0 24px; }
.doc-chapter { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.doc-chapter:last-child { border-bottom: 0; }
.doc-chapter > h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.doc-body h3 { margin: 22px 0 8px; } .doc-body h4 { margin: 18px 0 6px; }
.doc-chapter img, .doc-chapter video { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin: 10px 0; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc-side { position: static; max-height: none; }
  .text-cols.cols-3, .text-cols.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-body, .tab-panel.has-media { grid-template-columns: 1fr; }
  .stack.side-start .stack-media { order: 0; }
}
@media (max-width: 560px) { .text-cols.cols-2, .text-cols.cols-3, .text-cols.cols-4 { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .hero-box.layout-side.has-media, .media-text, .story { grid-template-columns: 1fr; }
  .media-text.side-end .mt-media { order: 0; }
  .story.is-live { grid-template-columns: 1fr; }
  .story.is-live .story-stage { top: 70px; height: 42vh; z-index: 1; }
  .story.is-live .story-step { min-height: 55vh; }
  .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
  .gallery.cols-3, .gallery.cols-4, .gallery.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .cms.pad-large { padding-block: 64px; }
}
.cms.bg-brand .eyebrow, .cms.bg-dark .eyebrow, .cms.has-bg-image .eyebrow, .hero-box.layout-background .eyebrow { color: inherit; opacity: .85; }

/* Quick buy */
.buy-box { display: grid; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); padding: 24px; color: var(--text); }
.buy-box.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.buy-media img, .buy-media video { width: 100%; border-radius: var(--radius); }
.buy-body h2 { margin: 0 0 8px; }
.buy-price { font-size: 1.1rem; margin: 6px 0 16px; }
.quick-form .option-group { border: 0; padding: 0; margin: 0 0 12px; }
.quick-form .option-group legend { font-weight: 700; margin-bottom: 6px; }
.quick-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-form .chips label { cursor: pointer; position: relative; }
.quick-form .chips input { position: absolute; opacity: 0; pointer-events: none; }
.quick-form .chips span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quick-form .chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.quick-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.quick-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; background: var(--brand-soft); border-radius: var(--radius); padding: 12px 16px; margin: 6px 0 14px; }
.quick-total b { font-size: 1.4rem; }
.quick-total small { flex-basis: 100%; }
.quick-secure { margin: 10px 0 0; text-align: center; }
.pay-result { text-align: center; padding: 30px 0 10px; }
.pay-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: #e9f7ee; color: #17603a; font-size: 2.4rem; font-weight: 800; }
@media (max-width: 760px) { .buy-box.has-image, .quick-form .two-col { grid-template-columns: 1fr; } }

/* ---------- Control panel: the translations under a text (section page and designer) ---------- */
.tr-box { margin-top: 6px; border: 1px dashed var(--line, #dde1e6); border-radius: 8px; padding: 4px 10px; }
.tr-box > summary { cursor: pointer; font-size: .85rem; }
.tr-count { display: inline-block; font-size: .75rem; padding: 0 7px; border-radius: 99px; background: #fff3d6; color: #8a5a00; }
.tr-count.full { background: #e6f6ec; color: #1f7a3d; }
.tr-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: start; margin: 6px 0; font-size: .85rem; }
.tr-row input, .tr-row textarea { width: 100%; font: inherit; font-size: .88rem; padding: 5px 8px; border: 1px solid var(--line, #dde1e6); border-radius: 6px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; }


.dz-sub { display: flex; align-items: center; gap: 4px; }
.dz-sub input { flex: 1; min-width: 0; text-align: left; }
.dz-sub span { opacity: .75; white-space: nowrap; }
