/* ============================================================
   3D MANUFACTURING SECTION: SHARED PAGE STYLES
   Part 1 is the page-specific CSS of the theme's capability
   detail page (sticky dark sidebar + rich content column).
   Part 2 adds the blocks of this section: breadcrumbs, media
   slots, process chain, cards, key numbers, layers, timeline.
   Colours come from the theme variables in style.css.
   ============================================================ */

:root {
    --twin-accent: #B8742E;
    --twin-accent-soft: rgba(184, 116, 46, 0.12);
    --slot-border: #B5BCC0;
    --slot-bg: #F6F7F8;
    --hero-tint: #6b777d;
}

/* ------------------------------------------------------------
   PART 1: theme capability detail layout
   ------------------------------------------------------------ */

/* Full-width hero (gradient for now; a hero image can be set inline) */
.cap-hero-img {
    position: relative;
    height: 340px;
    overflow: hidden;
    background-color: #2b3033;
    background-image:
        radial-gradient(circle at 82% 18%, var(--hero-tint) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(135deg, #24292c 0%, #353535 45%, #4D565B 100%);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.cap-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
}
.cap-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53,53,53,0.55) 0%, rgba(77,86,91,0.2) 100%);
    z-index: 0;
}
.cap-hero-img.has-image::before { display: none; }
.cap-hero-img .hero-badge {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    z-index: 2;
}
.hero-badge .badge-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    display: block;
}
.hero-badge h1 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.2;
    max-width: 680px;
}
.hero-badge .hero-lead {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0.75rem 0 0;
}

/* Layout wrapper */
.cap-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 70vh;
    align-items: start;
}

/* Sidebar */
.cap-sidebar {
    background: var(--dark);
    position: sticky;
    top: 75px;
    padding: 2.5rem 2rem;
    min-height: 100%;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-icon {
    width: 64px; height: 64px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.sidebar-icon i { font-size: 1.6rem; color: #fff; }

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.sidebar-domain {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9aa5ab;
    margin-bottom: 2rem;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 1.5rem 0;
}

.sidebar-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.75rem;
}

.sidebar-skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.5rem; }
.sidebar-skill {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 9px;
}

.sidebar-stat { margin-bottom: 1.1rem; }
.sidebar-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}
.sidebar-stat-num em { font-style: normal; color: #9aa5ab; font-size: 1.1rem; margin-left: 2px; }
.sidebar-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.sidebar-cta {
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background 0.3s ease;
}
.sidebar-cta:hover { background: #5c6b71; color: #fff; }

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    transition: color 0.3s ease;
}
.sidebar-back:hover { color: rgba(255,255,255,0.75); }

/* Main content area */
.cap-content { padding: 3.5rem 3rem; min-width: 0; }

.content-section { margin-bottom: 3.5rem; }
.content-section:last-child { margin-bottom: 0; }

.content-h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.content-h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.3rem;
    background: var(--primary);
    flex-shrink: 0;
}
.content-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
    margin: 1.5rem 0 0.75rem;
}

.content-p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* Gallery (2 x 2) */
.content-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.gallery-img {
    height: 180px;
    overflow: hidden;
    display: block;
}
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-img:hover img { transform: scale(1.05); }

/* Tech table */
.tech-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tech-table tr:nth-child(even) { background: var(--light); }
.tech-table td { padding: 0.65rem 1rem; color: #555; vertical-align: top; }
.tech-table td:first-child { font-weight: 700; color: var(--dark); width: 38%; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #555;
}
.check-list li:last-child { border-bottom: none; }
.check-list li i { color: var(--primary); margin-top: 3px; font-size: 0.8rem; flex-shrink: 0; }

/* Project cards */
.mini-proj {
    display: block;
    height: 100%;
    text-decoration: none;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}
.mini-proj:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); border-color: var(--primary); }
.mini-proj img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.mini-proj:hover img { transform: scale(1.04); }
.mini-proj-info { padding: 1rem; background: #fff; }
.mini-proj-cat { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 0.35rem; }
.mini-proj-title { font-size: 0.85rem; font-weight: 700; color: var(--dark); font-family: 'Roboto', sans-serif; line-height: 1.35; margin: 0; }
.mini-proj-text { font-size: 0.8rem; color: #666; line-height: 1.6; margin: 0.5rem 0 0; }

@media (max-width: 991.98px) {
    .cap-layout { grid-template-columns: 1fr; }
    .cap-sidebar { position: relative; top: 0; }
    .cap-content { padding: 2.5rem 1.5rem; }
    .content-gallery { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   PART 2: blocks of the 3D manufacturing section
   ------------------------------------------------------------ */

/* Topbar and navbar additions */
.twin-topbar small { font-size: 13px; }
.twin-topbar a { color: var(--dark); text-decoration: none; }
.twin-topbar a:hover { color: var(--primary); }
.navbar-brand .brand-name { font-family: 'Roboto', sans-serif; font-weight: 900; letter-spacing: -0.5px; }
.navbar-brand .brand-sub {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a959b;
    margin-top: -4px;
}
.navbar .dropdown-toggle::after {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
}
.navbar .dropdown-menu { border-radius: 0; padding: 0.5rem 0; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.navbar .dropdown-item { font-size: 14px; padding: 0.45rem 1.25rem; }
.navbar .dropdown-item .dd-code { display: inline-block; width: 2.4rem; font-size: 11px; font-weight: 700; color: #8a959b; }
.navbar .dropdown-item.active, .navbar .dropdown-item:active { background: var(--primary); color: #fff; }
.navbar .dropdown-item.active .dd-code, .navbar .dropdown-item:active .dd-code { color: rgba(255,255,255,0.7); }
.navbar .dropdown-divider { margin: 0.35rem 0; }
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link { margin-right: 24px; font-size: 14px; }
}

/* Breadcrumbs inside the hero */
.twin-breadcrumb {
    margin: 0 0 0.9rem;
    padding: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.twin-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.twin-breadcrumb .breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.twin-breadcrumb .breadcrumb-item.active { color: #fff; }
.twin-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); content: "\203A"; }

/* Hero slot tag (shows where a future hero image goes) */
.hero-slot-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    border: 1px dashed rgba(255,255,255,0.35);
    padding: 4px 10px;
    background: rgba(0,0,0,0.15);
}
.hero-slot-tag i { margin-right: 6px; }

/* Media slot: neutral placeholder frame for a future file */
.media-slot { margin: 0; }
.media-slot-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 2px dashed var(--slot-border);
    background:
        repeating-linear-gradient(135deg, rgba(77,86,91,0.035) 0 12px, rgba(255,255,255,0) 12px 24px),
        var(--slot-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #6c767b;
}
.media-slot-frame > i { font-size: 1.9rem; color: #9aa4a9; margin-bottom: 0.6rem; }
.media-slot-type {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: #8a959b;
    padding: 3px 9px;
}
.media-slot-id { font-family: Consolas, 'Courier New', monospace; font-size: 0.8rem; font-weight: 700; color: var(--dark); word-break: break-all; }
.media-slot-size { font-size: 0.75rem; margin-top: 0.2rem; }
.media-slot figcaption { font-size: 0.8rem; color: #666; line-height: 1.55; margin-top: 0.5rem; }
.media-slot--video .media-slot-type { background: #4D565B; }
.media-slot--animation .media-slot-type { background: var(--twin-accent); }
.media-slot--3d .media-slot-type { background: #353535; }
.media-slot--3d .media-slot-frame { aspect-ratio: 4 / 3; }
.media-slot--thumb .media-slot-frame { aspect-ratio: 16 / 9; padding: 0.5rem; }
.media-slot--thumb .media-slot-frame > i { font-size: 1.3rem; margin-bottom: 0.3rem; }
.media-slot--thumb .media-slot-size { display: none; }
.media-slot-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.media-slot-link { display: block; overflow: hidden; }
.media-slot-link img { transition: transform 0.5s ease; }
.media-slot-link:hover img { transform: scale(1.04); }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.25rem 0; }
.slot-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.slot-wide { margin: 1.25rem 0; }
@media (max-width: 767.98px) {
    .slot-grid, .slot-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Template banner */
.template-banner {
    border: 2px dashed var(--twin-accent);
    background: var(--twin-accent-soft);
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #5a4630;
}
.template-banner strong { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; margin-right: 0.5rem; }
.placeholder-text { color: #8a8a8a; font-style: italic; }
.fill-in { background: #fff3a8; color: #5a4200; border: 1px dashed #b38600; border-radius: 3px; padding: 0 0.3em; font-weight: 600; }
.draft-line { border: 1px solid #b38600; background: #fff3a8; color: #5a4200; padding: 0.75rem 1rem; margin-bottom: 2rem; }
.draft-line strong { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; margin-right: 0.5rem; }
.legal-list li { margin-bottom: 0.6rem; }

/* Note box */
.twin-note {
    border-left: 4px solid var(--primary);
    background: var(--light);
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
    margin: 1.25rem 0;
}
.twin-note i { color: var(--primary); margin-right: 0.5rem; }

/* Data table with a header row (3 or more columns) */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead th {
    background: var(--dark);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}
.data-table td { padding: 0.65rem 1rem; color: #555; vertical-align: top; border-bottom: 1px solid #f0f0f0; }
.data-table tbody tr:nth-child(even) { background: var(--light); }
.data-table td:first-child { font-weight: 700; color: var(--dark); white-space: nowrap; }

/* Numbered steps */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 0.7rem 0 0.7rem 3rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-list li strong { color: var(--dark); }

/* Process chain (visual row of steps) */
.chain { margin: 1.5rem 0; }
.chain-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a959b;
    margin: 0 0 0.6rem;
}
.chain-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; margin-bottom: 1.25rem; }
.chain-step {
    flex: 1 1 120px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-top: 3px solid var(--primary);
    padding: 0.8rem 0.8rem 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.chain-step:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: var(--primary); }
.chain-step i { color: var(--primary); font-size: 1.1rem; margin-bottom: 0.45rem; }
.chain-code { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #8a959b; }
.chain-name { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--dark); line-height: 1.3; margin: 0.15rem 0 0.35rem; }
.chain-rate { font-size: 0.75rem; color: #666; margin-top: auto; }
.chain-arrow { display: flex; align-items: center; color: #b0b8bc; font-size: 0.9rem; }
.chain-step.is-byproduct { border-top-color: var(--twin-accent); }
.chain-step.is-byproduct i { color: var(--twin-accent); }
.chain-step.is-external { border-top-style: dashed; border-top-color: #9aa4a9; background: var(--light); }
.chain-step.is-external i { color: #9aa4a9; }
.chain-step.is-current { background: var(--dark); border-color: var(--dark); }
.chain-step.is-current .chain-name, .chain-step.is-current .chain-rate, .chain-step.is-current i { color: #fff; }
@media (max-width: 767.98px) {
    .chain-arrow { display: none; }
    .chain-step { flex: 1 1 45%; }
}

/* Cards with an icon header (area, entry, family, device cards) */
.icon-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.icon-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); border-color: var(--primary); }
.icon-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--light);
    border-bottom: 1px solid #eee;
}
.icon-card-head .ic {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.icon-card-head .ic.is-accent { background: var(--twin-accent); }
.icon-card-head .ic.is-dark { background: var(--dark); }
.icon-card-cat { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #8a959b; }
.icon-card-title { font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.3; }
.icon-card-body { padding: 1rem 1.1rem; font-size: 0.83rem; color: #666; line-height: 1.65; flex: 1 1 auto; }
.icon-card-body p { margin: 0 0 0.5rem; }
.icon-card-body ul { padding-left: 1.1rem; margin: 0.25rem 0 0; }
.icon-card-foot {
    padding: 0.7rem 1.1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}
.icon-card-foot .metric { float: right; text-transform: none; letter-spacing: 0; color: #8a959b; font-weight: 600; }
.card-anchor { scroll-margin-top: 100px; }

/* Landing page hero */
.landing-hero { height: auto; min-height: 520px; display: flex; align-items: flex-end; }
.landing-hero .hero-badge { position: relative; bottom: auto; left: auto; right: auto; padding: 7rem 2.5rem 4rem; }
.landing-hero .hero-badge h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 860px; }
.landing-hero .hero-lead { font-size: 1.05rem; max-width: 760px; }
.landing-hero .btn { border-radius: 0; }
@media (max-width: 767.98px) {
    .landing-hero .hero-badge { padding: 5rem 1.5rem 3rem; }
    .cap-hero-img .hero-badge { left: 1.5rem; right: 1.5rem; bottom: 1.75rem; }
    .hero-slot-tag { display: none; }
}

/* Section header used on the landing page */
.twin-section { padding: 5rem 0; }
.twin-section.bg-soft { background: var(--light); }
.twin-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: #8a959b; margin-bottom: 0.6rem; }
.twin-h2 { font-family: 'Roboto', sans-serif; font-weight: 900; color: var(--dark); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.twin-lead { font-size: 1rem; color: #555; line-height: 1.85; max-width: 820px; }

/* Pitch columns */
.pitch-col { border-top: 3px solid var(--primary); padding-top: 1.25rem; height: 100%; }
.pitch-col h3 { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.pitch-col p { font-size: 0.92rem; color: #555; line-height: 1.8; margin: 0; }

/* Key numbers band */
.key-band { background: var(--dark); color: #fff; padding: 4.5rem 0; }
.key-band .twin-kicker { color: rgba(255,255,255,0.45); }
.key-band .twin-h2 { color: #fff; }
.key-num { padding: 1.25rem 0.5rem; border-left: 1px solid rgba(255,255,255,0.1); height: 100%; }
.key-num-val { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.key-num-val em { font-style: normal; font-size: 0.55em; color: #9aa5ab; margin-left: 4px; }
.key-num-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); font-weight: 600; margin-top: 0.6rem; line-height: 1.5; }

/* Inline key numbers (content column) */
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: #e9ecee; border: 1px solid #e9ecee; margin: 1.25rem 0; }
.num-cell { background: #fff; padding: 1rem; }
.num-cell .v { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.35rem; color: var(--dark); line-height: 1.1; }
.num-cell .v em { font-style: normal; font-size: 0.8rem; color: #8a959b; margin-left: 3px; }
.num-cell .l { font-size: 10px; text-transform: uppercase; letter-spacing: 1.3px; color: #8a959b; font-weight: 600; margin-top: 0.4rem; }

/* "How it is built" feature blocks */
.feature-block { display: flex; gap: 1.1rem; height: 100%; }
.feature-block .ic { width: 52px; height: 52px; flex-shrink: 0; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.feature-block h3 { font-family: 'Roboto', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 0 0 0.4rem; }
.feature-block p { font-size: 0.9rem; color: #555; line-height: 1.75; margin: 0; }

/* Architecture layers */
.layer-stack { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.layer {
    display: grid;
    grid-template-columns: 64px 1fr 220px;
    gap: 1.25rem;
    align-items: start;
    border: 1px solid #e6e9eb;
    padding: 1.1rem;
    background: #fff;
}
.layer-num {
    width: 64px; height: 64px;
    background: var(--dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}
.layer-num span { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.layer-num strong { font-size: 1.4rem; line-height: 1; }
.layer h3 { font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0 0 0.4rem; }
.layer p { font-size: 0.86rem; color: #555; line-height: 1.7; margin: 0 0 0.4rem; }
.layer .layer-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.5rem; }
.layer .layer-tags span { font-size: 10.5px; font-weight: 600; color: #555; border: 1px solid #dde1e3; padding: 2px 8px; background: var(--light); }
@media (max-width: 1199.98px) {
    .layer { grid-template-columns: 64px 1fr; }
    .layer .media-slot { grid-column: 1 / -1; }
}

/* Project timeline */
.timeline { position: relative; margin: 1.5rem 0; padding-left: 2.25rem; }
.timeline::before { content: ''; position: absolute; left: 0.85rem; top: 0.25rem; bottom: 0.25rem; width: 2px; background: #dfe3e5; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 200px; gap: 1.25rem; padding: 0 0 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -2.25rem;
    top: 0;
    width: 1.75rem; height: 1.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-phase { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #8a959b; }
.tl-item h3 { font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0.1rem 0 0.35rem; }
.tl-item p { font-size: 0.86rem; color: #555; line-height: 1.7; margin: 0; }
@media (max-width: 767.98px) {
    .tl-item { grid-template-columns: 1fr; }
}

/* Previous / next navigation */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.prev-next a {
    display: block;
    border: 1px solid #e6e9eb;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.prev-next a:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.prev-next .pn-dir { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #8a959b; }
.prev-next .pn-name { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.prev-next .pn-next { text-align: right; grid-column: 2; }
.prev-next .pn-empty { border: 1px dashed #e6e9eb; padding: 1rem 1.25rem; color: #aaa; font-size: 0.85rem; }

/* Call to action band */
.cta-band { background: var(--primary); color: #fff; padding: 4rem 0; }
.cta-band h2 { color: #fff; font-family: 'Roboto', sans-serif; font-weight: 900; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; }
.cta-band .btn { border-radius: 0; }

/* Area row cards on the areas page */
.area-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    border: 1px solid #e6e9eb;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s ease;
}
.area-row:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.area-row .ar-code { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.1rem; color: var(--dark); }
.area-row .ar-code i { display: block; color: var(--primary); font-size: 1.2rem; margin-bottom: 0.3rem; }
.area-row .ar-name { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--dark); margin: 0; font-size: 1rem; }
.area-row .ar-text { font-size: 0.84rem; color: #666; margin: 0.2rem 0 0; line-height: 1.6; }
.area-row .ar-go { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); white-space: nowrap; }
@media (max-width: 767.98px) {
    .area-row { grid-template-columns: 1fr; }
}

/* Footer: gradient instead of the theme photo */
.footer.twin-footer {
    background: linear-gradient(135deg, #2a2f32 0%, #353535 60%, #3f474b 100%);
}
.footer.twin-footer p { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.75; }

/* Spinner: hide after 4 s even when the scripts cannot load */
#spinner.show { animation: twin-spinner-off 0.5s ease-out 4s forwards; }
@keyframes twin-spinner-off { to { opacity: 0; visibility: hidden; } }

/* Navbar fits 8 items between 992 and 1199 px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light .navbar-nav .nav-link { margin-right: 14px; font-size: 13px; }
    .navbar .navbar-brand { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .navbar .btn-contact { padding-left: 1rem !important; padding-right: 1rem !important; }
}
.footer.twin-footer .btn.btn-link { text-transform: none; }
.footer.twin-footer .concept-note { font-size: 13px; color: rgba(255,255,255,0.55); padding-bottom: 1rem; }

/* "Who we are" band */
.firsts-list { list-style: none; padding: 0; margin: 0; }
.firsts-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 1px solid #e6e9eb; font-size: 0.92rem; color: #555; line-height: 1.6; }
.firsts-list li:last-child { border-bottom: none; }
.firsts-list li span.n { flex-shrink: 0; width: 2rem; height: 2rem; background: var(--twin-accent); color: #fff; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* Story teaser band on the landing page */
.story-band { background: linear-gradient(135deg, #24292c 0%, #353535 55%, #4D565B 100%); color: #fff; padding: 5rem 0; position: relative; overflow: hidden; }
.story-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.story-band .container { position: relative; }
.story-band .twin-kicker { color: rgba(255,255,255,0.5); }
.story-band .twin-h2 { color: #fff; }
.story-band p { color: rgba(255,255,255,0.75); line-height: 1.8; }
.story-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(255,255,255,0.1); margin-top: 2rem; }
.story-step { background: rgba(36,41,44,0.92); padding: 1rem; }
.story-step .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--twin-accent); }
.story-step .ttl { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.9rem; color: #fff; margin-top: 0.3rem; line-height: 1.35; }
.story-band .btn { border-radius: 0; }

/* Our story: chapter timeline, alternating on wide screens */
.chapters { position: relative; margin: 2rem 0 0; }
.chapters::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #dfe3e5; transform: translateX(-1px); }
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 2rem 0; }
.chapter::before { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; background: var(--twin-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--twin-accent); transform: translate(-50%, -50%); }
.chapter .ch-text { text-align: right; }
.chapter .ch-media { order: 2; }
.chapter.is-flip .ch-text { order: 2; text-align: left; }
.chapter.is-flip .ch-media { order: 1; }
.ch-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--twin-accent); }
.ch-title { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.45rem; color: var(--dark); margin: 0.35rem 0 0.8rem; line-height: 1.25; }
.ch-text p { font-size: 0.93rem; color: #555; line-height: 1.85; margin: 0 0 0.8rem; }
@media (max-width: 991.98px) {
    .chapters::before { left: 0.6rem; }
    .chapter { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0 1.5rem 2.25rem; }
    .chapter::before { left: 0.6rem; top: 2.1rem; }
    .chapter .ch-text, .chapter.is-flip .ch-text { text-align: left; order: 1; }
    .chapter .ch-media, .chapter.is-flip .ch-media { order: 2; }
}

/* Partner cards */
.partner-card { border: 1px solid #e6e9eb; background: #fff; height: 100%; display: flex; flex-direction: column; }
.partner-card .media-slot { margin: 0; }
.partner-card .media-slot-frame { aspect-ratio: 2 / 1; border-width: 0 0 2px 0; }
.partner-card .pc-body { padding: 1.25rem; }
.partner-card .pc-role { font-family: 'Roboto', sans-serif; font-weight: 700; color: var(--dark); font-size: 1.05rem; margin: 0 0 0.5rem; }
.partner-card .pc-body p { font-size: 0.88rem; color: #555; line-height: 1.75; margin: 0; }

/* Purpose block */
.purpose-block { border-left: 4px solid var(--twin-accent); padding: 0.5rem 0 0.5rem 1.75rem; }
.purpose-block p { font-size: 1.05rem; color: #444; line-height: 1.9; }

/* Two voices: Scenario (fiction, thin outlined label) and Engineering (real, solid label) */
.voice-tag {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
    padding: 3px 9px;
    vertical-align: middle;
    white-space: nowrap;
}
.voice-scenario { border: 1px solid var(--twin-accent); color: var(--twin-accent); background: transparent; }
.voice-engineering { border: 1px solid var(--primary); color: #fff; background: var(--primary); }
.voice-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.hero-badge .voice-scenario, .story-band .voice-scenario, .key-band .voice-scenario { color: #e2ab70; border-color: #e2ab70; }
.hero-badge .voice-engineering, .story-band .voice-engineering, .key-band .voice-engineering { background: #fff; border-color: #fff; color: var(--dark); }
.content-h2 .voice-tag, .twin-h2 .voice-tag, .twin-kicker .voice-tag { margin-left: 0.25rem; }
.hero-subline { display: block; color: #e2ab70; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 0.9rem; }

/* Scenario note: one sentence of story above the engineering text */
.scenario-note {
    border: 1px dashed var(--twin-accent);
    background: var(--twin-accent-soft);
    padding: 1rem 1.25rem;
    margin-bottom: 2.75rem;
}
.scenario-note p { font-style: italic; color: #5a4630; font-size: 0.93rem; line-height: 1.8; margin: 0.5rem 0 0; }

/* Fiction and fact columns */
.ff-col { border: 1px solid #e6e9eb; background: #fff; height: 100%; }
.ff-col .ff-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid #eee; }
.ff-col .ff-head h2 { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.25rem; color: var(--dark); margin: 0.6rem 0 0; }
.ff-col .ff-body { padding: 0.5rem 1.25rem 1.25rem; }
.ff-col.is-fiction { border-top: 4px solid var(--twin-accent); }
.ff-col.is-real { border-top: 4px solid var(--primary); }
.ff-col.is-limits { border-top: 4px solid #9aa4a9; }
.voice-limits { border: 1px solid #9aa4a9; color: #6c767b; background: transparent; }

/* Fiction and fact band on the landing page */
.ff-band { background: var(--light); border-top: 1px solid #e6e9eb; border-bottom: 1px solid #e6e9eb; padding: 3rem 0; }
.ff-band p { color: #555; margin: 0; line-height: 1.8; }
.ff-band .btn { border-radius: 0; }

/* Status block: where the engineering work stands */
.status-block { border: 1px solid #e6e9eb; background: #fff; margin-bottom: 2.75rem; }
.status-block .sb-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 1rem; background: var(--light); border-bottom: 1px solid #e6e9eb; }
.status-block .sb-title { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--dark); margin: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: 0.86rem; color: #555; }
.status-row:last-child { border-bottom: none; }
.status-row .sr-item { font-weight: 600; color: var(--dark); }
.status-chip { font-size: 11px; font-weight: 700; padding: 3px 10px; white-space: nowrap; text-align: right; }
.status-chip.is-done { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.status-chip.is-done::before { content: "\2713\00a0"; }
.status-chip.is-progress { background: transparent; color: #6c767b; border: 1px dashed #9aa4a9; }
@media (max-width: 575.98px) {
    .status-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* Founder block */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.founder .media-slot--image .media-slot-frame { aspect-ratio: 4 / 5; }
.founder-name { font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--dark); margin: 0; }
.founder-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--twin-accent); margin: 0.3rem 0 1.25rem; }
.founder p { font-size: 0.95rem; color: #555; line-height: 1.85; }
.founder-quote { border-left: 4px solid var(--twin-accent); margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; font-family: 'Roboto', sans-serif; font-size: 1.15rem; font-weight: 500; color: var(--dark); line-height: 1.6; }
.founder-real { border: 1px solid #e6e9eb; background: var(--light); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.founder-real p { margin: 0.5rem 0 0; font-size: 0.9rem; }
@media (max-width: 991.98px) {
    .founder { grid-template-columns: 1fr; gap: 1.5rem; }
    .founder .media-slot { max-width: 340px; }
}
.founder-band { padding: 4rem 0; }
.founder-band .founder { grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 767.98px) {
    .founder-band .founder { grid-template-columns: 1fr; }
}

/* Chain legend and notes */
.chain-legend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 11px; color: #6c767b; margin-top: -0.25rem; }
.chain-legend span::before { content: ''; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }
.chain-legend .lg-main::before { background: var(--primary); }
.chain-legend .lg-by::before { background: var(--twin-accent); }
.chain-legend .lg-ext::before { background: #9aa4a9; height: 0; border-top: 2px dashed #9aa4a9; }
.chain-notes { list-style: none; padding: 0; margin: 1.25rem 0 0; columns: 2; column-gap: 2rem; }
.chain-notes li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.86rem; color: #555; line-height: 1.6; }
.chain-notes li strong { color: var(--dark); }
@media (max-width: 767.98px) { .chain-notes { columns: 1; } }

/* Collapsed detail (native details element) */
.twin-acc { border: 1px solid #e6e9eb; background: #fff; margin: 0.6rem 0; }
.twin-acc > summary { list-style: none; cursor: pointer; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.9rem; color: var(--dark); display: flex; align-items: center; gap: 0.6rem; }
.twin-acc > summary::-webkit-details-marker { display: none; }
.twin-acc > summary i { color: var(--primary); font-size: 0.75rem; transition: transform 0.2s ease; }
.twin-acc[open] > summary i { transform: rotate(90deg); }
.twin-acc > summary:hover { background: var(--light); }
.twin-acc .acc-body { padding: 0.25rem 1rem 1rem; border-top: 1px solid #f0f0f0; }

/* Compact rows that open (architecture layers, safety functions) */
.row-acc-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.row-acc { border: 1px solid #e6e9eb; background: #fff; }
.row-acc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr 1rem; gap: 0.9rem; align-items: center; padding: 0.7rem 1rem; }
.row-acc > summary::-webkit-details-marker { display: none; }
.row-acc > summary:hover { background: var(--light); }
.row-acc .ra-num { width: 2.4rem; height: 2.4rem; background: var(--dark); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.row-acc .ra-main strong { display: block; color: var(--dark); font-family: 'Roboto', sans-serif; font-size: 0.95rem; }
.row-acc .ra-main span { display: block; font-size: 0.83rem; color: #666; line-height: 1.5; }
.row-acc > summary > i { color: #9aa4a9; font-size: 0.8rem; transition: transform 0.2s ease; }
.row-acc[open] > summary > i { transform: rotate(180deg); }
.row-acc .acc-body { padding: 0.25rem 1rem 0.9rem 4.3rem; border-top: 1px solid #f0f0f0; font-size: 0.88rem; color: #555; }

/* In-page tabs (anchor links) */
.twin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid #e6e9eb; }
.twin-tabs a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 0.55rem 1rem; border: 1px solid #dfe3e5; color: var(--dark); text-decoration: none; }
.twin-tabs a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.content-section[id] { scroll-margin-top: 90px; }

/* Figures with caption, label and credit line */
.media-figure { margin: 0; }
.media-figure img { width: 100%; display: block; background: #eee; }
.media-figure figcaption { margin-top: 0.45rem; font-size: 0.8rem; color: #555; line-height: 1.5; }
.media-label { display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; background: var(--twin-accent); padding: 2px 7px; margin-right: 0.4rem; }
.media-title { display: block; color: var(--dark); font-weight: 600; }
.media-credit { display: block; font-size: 0.72rem; color: #7a858a; margin-top: 0.15rem; }
.media-credit a { color: #5c6b71; text-decoration: underline; }
.credit-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; font-size: 0.85rem; }
.credit-list li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; }
@media (max-width: 767.98px) { .credit-list { columns: 1; } }
.founder-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.hero-credit { position: absolute; right: 1rem; bottom: 0.6rem; z-index: 2; max-width: 60%; text-align: right; font-size: 10.5px; color: rgba(255,255,255,0.8); }
.hero-credit .media-credit { display: inline; color: rgba(255,255,255,0.7); font-size: 10.5px; }
.hero-credit a { color: rgba(255,255,255,0.85); }

/* Device rows on station pages and compact timeline */
.device-row { border: 1px solid #eee; padding: 0.6rem 0.8rem; height: 100%; font-size: 0.83rem; color: #666; line-height: 1.5; }
.device-row strong { display: block; color: var(--dark); font-size: 0.88rem; }
.tl-item.tl-compact { grid-template-columns: 1fr; padding-bottom: 1.25rem; }

/* Boxes that keep real images and data apart from the story */
.real-box { border: 1px solid #dfe3e5; background: #fff; }
.real-box .rb-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.6rem 1rem; background: var(--light); border-bottom: 1px solid #e6e9eb; }
.real-box .rb-head h3 { font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin: 0; }
.real-box .rb-head > div { display: flex; gap: 5px; flex-wrap: wrap; }
.real-box .rb-body { padding: 1rem; }
.real-box.is-scenario { border-style: dashed; border-color: var(--twin-accent); }
.real-box.is-small .rb-head h3 { font-size: 0.85rem; }
.voice-concept { border: 1px solid #6f7f9a; color: #4f5f7a; background: transparent; }

/* Full citation under third-party images and own renders: one short line each */
.source-figure figcaption > span, .own-figure figcaption > span, .own-caption > span { display: block; }
.media-credit > span { display: block; font-size: 0.72rem; color: #6c767b; line-height: 1.5; }
.mc-caption { color: var(--dark); font-size: 0.82rem; line-height: 1.5; margin-bottom: 0.25rem; }
.mc-kind { margin: 0.2rem 0; }
.media-figure img { height: auto; object-fit: contain; }
.hero-caption { background: #24292c; color: rgba(255,255,255,0.75); padding: 0.6rem 0; font-size: 0.8rem; }
.hero-caption .own-caption > span { display: inline; margin-right: 0.6rem; }
.hero-caption .mc-caption { color: #fff; font-size: 0.8rem; }
.hero-caption .media-credit > span { display: inline; color: rgba(255,255,255,0.65); margin-right: 0.6rem; }
.credit-table td { font-size: 0.8rem; white-space: normal !important; }
.credit-thumb { width: 96px; height: auto; display: block; }
.credit-notices { margin-top: 1.5rem; font-size: 0.85rem; color: #555; }
.credit-notices p { margin-bottom: 0.5rem; }


/* media-zoom: an animation opens large on a click (added 2026-11-04) */
.media-zoom { position: relative; display: block; cursor: zoom-in; }
.media-zoom-hint { position: absolute; right: 0.5rem; bottom: 0.5rem; background: rgba(0,0,0,0.62); color: #fff; font-size: 0.75rem; padding: 0.2rem 0.55rem; border-radius: 2px; pointer-events: none; opacity: 0.85; transition: opacity 0.3s; }
.media-zoom:hover .media-zoom-hint { opacity: 1; }
.media-zoom-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out; }
.media-zoom-overlay video { max-width: 96vw; max-height: 86vh; width: auto; height: auto; background: #000; box-shadow: 0 0 40px rgba(0,0,0,0.6); cursor: default; }
.media-zoom-overlay .media-zoom-caption { color: #ddd; font-size: 0.9rem; margin-top: 0.8rem; max-width: 96vw; text-align: center; }
.media-zoom-overlay .media-zoom-close { position: absolute; top: 0.8rem; right: 1.2rem; color: #fff; font-size: 2rem; line-height: 1; background: none; border: 0; cursor: pointer; }


.ff-band .ff-lead { display: block; font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.35rem; line-height: 1.6; }

/* Maker links in the equipment lists (2026-11-04): a small grey external-link icon after the unit name, the
   name itself stays plain text; one grey disclaimer line under the list. */
.maker-link { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(0,0,0,0.25); text-underline-offset: 0.15em; }
.maker-link i { font-size: 0.72em; margin-left: 0.2em; vertical-align: 0.1em; }
.maker-link:hover, .maker-link:focus { color: var(--dark); text-decoration-color: var(--primary); }
.maker-note { font-size: 0.75rem; color: #6c767b; line-height: 1.5; margin: 0.6rem 0 0; }
