/*
 * Rodec documentation: site styles.
 *
 * Follows the Rodec house style of www.rodec.com: orange accent, ink and
 * paper, IBM Plex Sans for text, IBM Plex Mono caps for labels and buttons,
 * hairlines, square corners (2px) on buttons, 4px on cards and photos.
 * Plain CSS, no build step.
 */

/* ---- Fonts (self-hosted, SIL OFL, see fonts/OFL.txt) ---------------------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---- Tokens (same values as rodec_base.scss) ------------------------------ */
:root {
    --rdc-orange: #FF5C00;
    --rdc-ink: #111214;
    --rdc-graphite: #1A1B1E;
    --rdc-paper: #F6F5F4;
    --rdc-line: rgba(17, 18, 20, .12);
    --rdc-line-dark: rgba(255, 255, 255, .14);
    --rdc-muted: #6b6b6b;
    --rdc-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rdc-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --top-h: 64px;
    --side-w: 290px;
    --gutter: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 1.5rem); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--rdc-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--rdc-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--rdc-orange); color: #fff; }
:focus-visible { outline: 2px solid var(--rdc-orange); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* ---- Brand building blocks ------------------------------------------------- */

/* Section label: "01 ---- MX MODULAR" */
.rdc-label {
    font-family: var(--rdc-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.rdc-label .idx { color: var(--rdc-orange); }
.rdc-label .rule { flex: 0 0 2.5rem; height: 1px; background: currentColor; opacity: .35; }
.rdc-label.light { color: #fff; }

/* Two-tone headline: <em> renders light, not italic. */
.rdc-title {
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.04;
    margin: 0;
}
.rdc-title em { font-style: normal; font-weight: 300; opacity: .75; }

.rdc-copy {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    opacity: .82;
    max-width: 34rem;
    margin: 1.5rem 0 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--rdc-mono);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
    padding: .95rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--rdc-orange);
    background: var(--rdc-orange);
    color: #fff;
    text-decoration: none;
    transition: all .2s ease;
}
.btn:hover { background: #e65300; border-color: #e65300; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; border-color: var(--rdc-line-dark); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn.small { padding: .6rem 1rem; font-size: .7rem; }
.rdc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Spec strip, tag and mono link (from rodec_base.scss) */
.rdc-specs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--rdc-line-dark); margin-top: 3rem; }
.rdc-specs div { padding: 1.4rem 0 1.6rem; font-size: .9rem; font-weight: 300; opacity: .85; }
.rdc-specs div + div { padding-left: 1.5rem; border-left: 1px solid var(--rdc-line-dark); }
.rdc-specs span { display: block; font-family: var(--rdc-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rdc-orange); margin-bottom: .35rem; }
.rdc-tag { display: block; font-family: var(--rdc-mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rdc-orange); margin-bottom: .9rem; }
.rdc-link { font-family: var(--rdc-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.rdc-link:hover { color: var(--rdc-orange); }


/* ---- Top bar ---------------------------------------------------------------- */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--top-h);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--rdc-line);
}
.top-in {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand span {
    font-family: var(--rdc-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rdc-muted);
    padding-left: 1rem;
    border-left: 1px solid var(--rdc-line);
    line-height: 22px;
}
.top-links { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.top-links a:not(.btn) {
    font-family: var(--rdc-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--rdc-ink);
}
.top-links a:not(.btn):hover { color: var(--rdc-orange); }
.ext { font-size: .85em; opacity: .55; }
.menu-btn { display: none; }

/* ---- Shell: sidebar + main ------------------------------------------------ */
.shell { display: flex; align-items: flex-start; }
.sidebar {
    flex: none;
    width: var(--side-w);
    position: sticky;
    top: var(--top-h);
    height: calc(100vh - var(--top-h));
    overflow-y: auto;
    background: var(--rdc-paper);
    border-right: 1px solid var(--rdc-line);
    padding: 2rem 1.5rem 3rem;
    font-size: .9rem;
    scrollbar-width: thin;
}
main { flex: 1; min-width: 0; }

.side-label {
    font-family: var(--rdc-mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rdc-muted);
    margin: 2rem 0 .75rem;
}
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { text-decoration: none; color: var(--rdc-ink); display: block; padding: .3rem 0; line-height: 1.35; }
.side a:hover { color: var(--rdc-orange); }
.side a[aria-current="page"] { color: var(--rdc-orange); font-weight: 500; }
.nav-home {
    font-family: var(--rdc-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.groups > li { border-top: 1px solid var(--rdc-line); }
.groups > li:last-child { border-bottom: 1px solid var(--rdc-line); }
.groups .grp > details > summary,
.groups .grp.leaf {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .45rem 0;
}
.groups .grp .idx {
    font-family: var(--rdc-mono);
    font-size: .66rem;
    color: var(--rdc-orange);
    letter-spacing: .08em;
    flex: none;
    width: 1.4rem;
}
.groups .grp > details > summary > a,
.groups .grp.leaf > a { font-weight: 500; flex: 1; }
.side summary { list-style: none; cursor: pointer; position: relative; padding-right: 1.25rem; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after {
    content: "";
    position: absolute;
    right: .2rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--rdc-muted);
    border-bottom: 1.5px solid var(--rdc-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}
.side details:not([open]) > summary::after { transform: translateY(-40%) rotate(-45deg); }
.groups details ul { padding: 0 0 .75rem 2.15rem; }
.groups details ul ul { padding: 0 0 .25rem .9rem; border-left: 1px solid var(--rdc-line); margin-left: .1rem; }
.groups details details > summary { padding-right: 1.25rem; }
.groups details li a { color: #3b3b3b; font-size: .875rem; }
.groups details li a[aria-current="page"] { color: var(--rdc-orange); }
.extlinks a { font-size: .875rem; }

/* ---- Doc page ------------------------------------------------------------ */
.page {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 14rem;
    gap: 4rem;
    padding: 3.5rem var(--gutter) 5rem;
    max-width: 72rem;
}
.doc { min-width: 0; }
.doc-head {
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--rdc-line);
}
.doc-head .rdc-title { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.crumbs {
    font-size: .85rem;
    color: var(--rdc-muted);
    margin: -.4rem 0 .75rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--rdc-orange); }
.crumbs .sep { margin: 0 .5rem; opacity: .5; }

/* Body copy */
.prose { font-size: 1.02rem; }
.prose > section + section { margin-top: 2rem; }
.prose > section > br, .prose .col > br { display: none; }
.prose p { margin: 0 0 1rem; }
.prose p:empty { display: none; }
.prose strong, .prose b { font-weight: 600; }
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 2.75rem 0 1rem;
}
.prose h1 { font-size: 2rem; letter-spacing: -.03em; }
.prose h2 {
    font-size: 1.55rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rdc-line);
}
.prose > section:first-child > h2:first-child,
.prose > section:first-child > h1:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; }
.prose h2.step { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1rem; }
.prose h2.step .step-n {
    font-family: var(--rdc-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; background: var(--rdc-orange); border-radius: 2px; padding: .35rem .6rem; line-height: 1; transform: translateY(-.2rem);
}
.prose h4 { font-size: 1rem; }
.prose a { color: var(--rdc-ink); text-decoration: underline; text-decoration-color: var(--rdc-orange); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--rdc-orange); }
.prose a.btn, .prose a.btn:hover { color: #fff; text-decoration: none; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin: .3rem 0; padding-left: .25rem; }
.prose ul > li::marker { color: var(--rdc-orange); }
.prose ol > li::marker { font-family: var(--rdc-mono); font-size: .85em; color: var(--rdc-orange); }
.prose li > ul, .prose li > ol { margin: .35rem 0 .5rem; }

/* Photos */
.prose img { border-radius: 4px; margin: 1.5rem 0; }
.prose > section > img, .prose > section > a > img {
    background: var(--rdc-paper);
}
.banner { margin: 0 0 2.5rem; border-radius: 4px; overflow: hidden; background: var(--rdc-paper); }
.banner img { margin: 0; width: 100%; }

/* Product intro: photo card beside the opening paragraph */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin: 0 0 3rem; }
.intro-img { margin: 0; background: #fff; border: 1px solid var(--rdc-line); border-radius: 4px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.intro-img img { margin: 0; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; background: transparent !important; }
.intro-lead p { font-size: 1.12rem; font-weight: 300; line-height: 1.7; margin: 0; }
.intro-lead strong { font-weight: 500; }
@media (max-width: 767.98px) { .intro { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Figures from converted documents (tools/convert_gdoc.py) */
.prose .doc-fig { margin: 1.75rem 0; }
.prose .doc-fig img { margin: 0; background: #fff; border: 1px solid var(--rdc-line); border-radius: 4px; padding: 1rem; width: 100%; height: auto; }
.prose .doc-fig a { display: block; cursor: zoom-in; }
.prose .doc-fig a:hover img { border-color: var(--rdc-ink); }
.prose .doc-fig figcaption { font-family: var(--rdc-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rdc-muted); margin-top: .6rem; }
.prose .doc-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; align-items: start; margin: .5rem 0 2rem; }
.prose .doc-figs .doc-fig { margin: 0; }
.prose .fig-title { font-family: var(--rdc-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rdc-orange); margin: 1.75rem 0 .2rem; }
.prose .doc-meta { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rdc-line); font-family: var(--rdc-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rdc-muted); }

/* Rows of columns from Google Sites */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.row .col > :first-child { margin-top: 0; }
.row .col img { margin: 0 0 1rem; }
.row .col h2 { border-top: 0; padding-top: 0; margin-top: 0; font-size: 1.15rem; }

/* Photos side by side at one height, whatever their own shape */
.row.gallery { grid-template-columns: repeat(auto-fit, minmax(10rem, 14rem)); gap: 2rem; }
.row.gallery .col > img { height: 24rem; width: 100%; object-fit: contain; object-position: center bottom; background: transparent; margin: 0 0 1rem; }
.row.gallery .col h2 { margin-top: 0; }
.row.gallery .col p { color: var(--rdc-muted); }

/* Image tiles (image link + caption) render as cards */
.col.tile {
    background: #fff;
    border: 1px solid var(--rdc-line);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color .2s ease;
}
.col.tile:hover { border-color: var(--rdc-ink); }
.col.tile img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: transparent; margin: 0 0 1rem; }
.col.tile p { margin: 0; }
.col.tile p a { text-decoration: none; font-weight: 500; }
.col.tile p a::after { content: "  \2192"; color: var(--rdc-orange); }
.col.tile h2 + a img { margin-top: .75rem; }

/* Tables (Google Sheets and custom HTML embeds) */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; border-top: 1px solid var(--rdc-ink); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--rdc-line); }
.prose th {
    font-family: var(--rdc-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rdc-muted);
    padding-top: .9rem;
}
.prose td small { display: block; color: var(--rdc-muted); font-size: .8rem; margin-top: .2rem; }
/* Key-value sheets (data & dimensions): mono key column */
figure[data-embed-type="google-sheet"] td:first-child {
    font-family: var(--rdc-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rdc-muted);
    width: 40%;
    padding-top: .85rem;
}

/* Embeds */
figure.embed { margin: 0 0 2.5rem; }
figure.embed figcaption {
    font-family: var(--rdc-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rdc-orange);
    margin-bottom: .9rem;
}
figure.embed iframe {
    display: block;
    width: 100%;
    height: 80vh;
    min-height: 520px;
    border: 1px solid var(--rdc-line);
    border-radius: 4px;
    background: #fff;
}
figure[data-embed-type="google-document"] { display: flex; flex-direction: column-reverse; }
figure[data-embed-type="google-document"] figcaption {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 0 0 1rem; color: var(--rdc-ink);
}

.empty {
    font-family: var(--rdc-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rdc-muted);
    padding: 2rem 0;
}

/* "In this section" cards */
.children { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rdc-line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--rdc-line);
    border-radius: 4px;
    text-decoration: none;
    background: #fff;
    transition: border-color .2s ease;
}
.card:hover { border-color: var(--rdc-ink); }
.card .idx { font-family: var(--rdc-mono); font-size: .68rem; color: var(--rdc-orange); letter-spacing: .08em; }
.card .t { font-weight: 500; line-height: 1.3; }
.card .arr { color: var(--rdc-orange); transition: transform .2s ease; }
.card:hover .arr { transform: translateX(4px); }

/* Cards with a picture (subpages of a product) */
.children.rich .cards { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; }
.card.rich { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; padding: 0 1.1rem 1.1rem; overflow: hidden; align-items: start; }
.card.rich .card-img { grid-column: 1 / -1; margin: 0 -1.1rem 1rem; aspect-ratio: 16 / 10; background: var(--rdc-paper); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--rdc-line); }
.card.rich .card-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .5s ease; }
.card.rich:hover .card-img img { transform: scale(1.04); }
.card.rich .card-img.empty { background: linear-gradient(135deg, var(--rdc-paper), #ebe9e7); }
.card.rich .card-img.empty::after { content: ""; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--rdc-orange); opacity: .5; }
.card.rich .card-img.icon { background: var(--rdc-paper); }
.card.rich .card-img.icon svg { width: 34%; height: auto; transition: transform .4s ease; }
.card.rich:hover .card-img.icon svg { transform: scale(1.06); }
.card .d { display: block; font-size: .85rem; font-weight: 300; color: var(--rdc-muted); margin-top: .25rem; line-height: 1.45; }

/* Previous / next */
.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rdc-line);
}
.pager a {
    display: block;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--rdc-line);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: border-color .2s ease;
}
.pager a:hover { border-color: var(--rdc-ink); }
.pager .next { text-align: right; }
.pager .k {
    display: block;
    font-family: var(--rdc-mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rdc-orange);
    margin-bottom: .3rem;
}

/* On this page */
.toc { position: sticky; top: calc(var(--top-h) + 3.5rem); align-self: start; font-size: .85rem; max-height: calc(100vh - var(--top-h) - 5rem); overflow-y: auto; }
.toc .side-label { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--rdc-line); }
.toc li { margin: 0; }
.toc li.l3 { padding-left: .9rem; }
.toc a { display: block; padding: .28rem 0; text-decoration: none; color: var(--rdc-muted); line-height: 1.35; }
.toc a:hover { color: var(--rdc-orange); }

/* ---- Home --------------------------------------------------------------- */
.home .hero {
    background: var(--rdc-ink);
    color: #fff;
    padding: 6rem var(--gutter) 5rem;
    position: relative;
    overflow: hidden;
}
.home .hero { background: var(--rdc-ink) var(--hero, none) 100% 50% / auto 118% no-repeat; }
.home .hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(17,18,20,1) 0%, rgba(17,18,20,.94) 34%, rgba(17,18,20,.45) 62%, rgba(17,18,20,0) 88%),
                linear-gradient(0deg, rgba(17,18,20,.85) 0%, rgba(17,18,20,0) 30%);
}
.home .hero > * { position: relative; }
.home .hero::after {
    /* a single orange hairline, the console's signal path */
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 0;
    height: 1px;
    background: var(--rdc-line-dark);
}
.home .hero .rdc-title { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 14ch; }
.home .products { background: var(--rdc-paper); padding: 4.5rem var(--gutter) 5rem; }
.rdc-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--rdc-line);
}
.rdc-title.small { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.5rem; }
.prod {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--rdc-ink);
}
.prod .img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/5;
    background: #fff;
    border: 1px solid var(--rdc-line);
    border-radius: 4px;
    padding: 2rem;
    transition: border-color .2s ease;
}
.prod .img { position: relative; }
.prod .img img { position: absolute; inset: 2rem; width: calc(100% - 4rem); height: calc(100% - 4rem); object-fit: contain; transition: transform .4s ease; }
.prod:hover .img { border-color: var(--rdc-ink); }
.prod:hover .img img { transform: scale(1.025); }
.prod .meta { padding: 1rem 0 0; display: flex; flex-direction: column; }
.prod .name { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.prod .sub { font-size: .85rem; font-weight: 300; color: var(--rdc-muted); min-height: 1.3em; }
.prod .go {
    margin-top: .6rem;
    font-family: var(--rdc-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rdc-ink);
    display: flex;
    gap: .5rem;
}
.prod .go .arr { color: var(--rdc-orange); transition: transform .2s ease; }
.prod:hover .go .arr { transform: translateX(4px); }
.home .disclaimer { padding: 3.5rem var(--gutter) 4rem; max-width: 52rem; color: var(--rdc-muted); font-size: .88rem; }
.home .disclaimer h2 { border-top: 0; padding-top: 0; margin-top: 0; font-size: 1rem; color: var(--rdc-ink); }

/* ---- Footer ------------------------------------------------------------- */
.foot { background: var(--rdc-graphite); color: #fff; position: relative; z-index: 2; }
.foot-in {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3.5rem var(--gutter) 3rem;
}
.foot-title { font-size: 1.6rem; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.foot-title em { font-style: normal; font-weight: 300; opacity: .75; }
.foot-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.foot-links a {
    font-family: var(--rdc-mono);
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid var(--rdc-line-dark);
    padding-bottom: 2px;
}
.foot-links a:hover { color: var(--rdc-orange); border-color: var(--rdc-orange); }
.foot-base {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem var(--gutter);
    border-top: 1px solid var(--rdc-line-dark);
    font-family: var(--rdc-mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1279.98px) {
    .page { grid-template-columns: minmax(0, 46rem); }
    .toc { display: none; }
}
@media (max-width: 991.98px) {
    :root { --gutter: 1.25rem; --top-h: 56px; }
    .menu-btn {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 0 7px;
        margin-left: -7px;
        background: none;
        border: 0;
        cursor: pointer;
    }
    .menu-btn span { display: block; height: 1.5px; background: var(--rdc-ink); transition: transform .2s ease; }
    .nav-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
    .nav-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
    .top-links a:not(.btn) { display: none; }
    .brand span { display: none; }
    .sidebar {
        position: fixed;
        left: 0;
        top: var(--top-h);
        z-index: 40;
        width: min(22rem, 88vw);
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: none;
    }
    .nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(17, 18, 20, .35); }
    .page { padding-top: 2.25rem; }
    .home .hero { padding: 4rem var(--gutter) 3.5rem; background-size: auto 55%; background-position: 100% 0; }
    .home .hero::before { background: linear-gradient(0deg, rgba(17,18,20,1) 0%, rgba(17,18,20,.9) 55%, rgba(17,18,20,.3) 100%); }
}
@media (max-width: 599.98px) {
    .pager { grid-template-columns: 1fr; }
    .pager .next { text-align: left; }
    .prod-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .prod .img img { inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); }
    .foot-base { flex-direction: column; gap: .3rem; }
    figure[data-embed-type="google-sheet"] td:first-child { width: 45%; }
    .row.gallery { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .row.gallery .col > img { height: 17rem; }
}
