/* ==========================================================================
   ResQmax – website styles
   Colours, fonts and widths are set once in the :root block below.
   ========================================================================== */

/* Fonts are stored with the site (assets/fonts) – SIL Open Font License */
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/saira-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/saira-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/saira-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --red: #D7191F;          /* brand red: buttons, accents */
  --red-dark: #B3141A;     /* red text on white */
  --red-soft: #FF6B6B;     /* red text on dark backgrounds */
  --red-tint: #FF8A8A;
  --black: #111111;
  --char: #1A1A1A;
  --char-2: #222222;
  --char-3: #2A2A2A;
  --steel: #666666;        /* grey of the studio product photos */
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --muted: #5C5C5C;
  --muted-dark: #A8A8A8;
  --line: #E2E2E2;
  --line-dark: #333333;
  --soft: #F5F5F5;
  --white: #FFFFFF;
  --display: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --maxw: 1300px;
  --gutter: 24px;
  --header-h: 75px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
body.theme-dark { background: var(--char); color: var(--white); }
img, video { max-width: 100%; display: block; }
a { color: var(--red-dark); }
a:hover { color: #7A0D11; }
.theme-dark a { color: var(--white); }
.theme-dark a:hover { color: var(--red-tint); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; }
p { margin: 0; }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 2px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 200; background: #fff; color: #111; padding: 10px 14px; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 13px; letter-spacing: 2.5px; font-weight: 700; text-transform: uppercase; color: var(--red-dark); }
.theme-dark .eyebrow, .on-dark .eyebrow { color: var(--red-soft); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.on-dark .lead, .theme-dark .lead { color: #D0D0D0; }
.tm { font-size: 0.55em; vertical-align: super; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 22px; font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn.btn-red { background: var(--red); color: #fff; }
.btn.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn.btn-dark { background: var(--black); color: #fff; }
.btn.btn-dark:hover { background: #000; color: #fff; }
.btn.btn-white { background: #fff; color: var(--black); }
.btn.btn-white:hover { background: #ECECEC; color: #000; }
.btn.btn-ghost { background: transparent; border-color: #5C5C5C; color: #fff; }
.btn.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn.btn-outline:hover { background: var(--ink); color: #fff; }
.btn.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); color: #fff; border-bottom: 3px solid var(--red); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 1px; }
.brand-name .q { color: var(--red); }
.brand-sub { font-size: 10.5px; letter-spacing: 2.4px; color: var(--muted-dark); padding-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-dd > summary { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 11px; cursor: pointer; list-style: none; white-space: nowrap; }
.main-nav > a:hover, .nav-dd > summary:hover { color: var(--red-tint); }
.main-nav > a[aria-current="page"], .nav-dd.current > summary { color: var(--red-tint); }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); position: relative; top: -3px; }
.nav-dd { position: relative; }
.nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; background: var(--char-2); border-top: 3px solid var(--red); padding: 8px; display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.nav-dd-menu a { color: #fff; text-decoration: none; padding: 10px 12px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.nav-dd-menu a:hover { background: #333; color: #fff; }
.nav-dd-menu a span { display: block; color: var(--muted-dark); font-weight: 400; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 1px solid #444; color: #fff; cursor: pointer; padding: 0; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-open { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-header .bar { position: relative; }
  .main-nav { display: none; position: absolute; top: calc(100% + 3px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 8px var(--gutter) 22px; border-bottom: 3px solid var(--red); max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-dd > summary { padding: 14px 4px; border-bottom: 1px solid #262626; font-size: 17px; }
  .nav-dd-menu { position: static; min-width: 0; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 8px 12px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 26px; }
  .brand-sub { display: none; }
  .header-actions .btn { padding: 9px 12px; font-size: 14px; }
}

/* ---------- Generic sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black); color: #fff; }
.section-dark a { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 52px); }
.section-head p { color: var(--muted); max-width: 560px; }
.theme-dark .section-head p, .section-dark .section-head p { color: var(--muted-dark); }

/* ---------- Home: hero with the three main products ---------- */
.home-hero { background: var(--char-3); padding: 44px 0 56px; }
.home-hero .intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 32px; }
.home-hero .intro > div { flex: 1 1 560px; display: flex; flex-direction: column; gap: 12px; }
.home-hero h1 { font-size: clamp(42px, 5.5vw, 76px); line-height: .95; }
.home-hero h1 small { font-weight: 600; font-size: .6em; }
.home-hero h1 .red { color: var(--red); }
.home-hero .intro p { flex: 1 1 340px; font-size: 18px; line-height: 1.55; color: #D0D0D0; }
.product-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product-card { background: var(--char); display: flex; flex-direction: column; border-top: 4px solid var(--red); }
.product-card .media { display: block; background: #fff; padding: 16px; }
.product-card .media img { width: 100%; height: 220px; object-fit: contain; }
.product-card .media.photo { padding: 0; background: #000; }
.product-card .media.photo img { height: 252px; object-fit: cover; }
.product-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-cards.four .product-card h2 { font-size: clamp(30px, 2.5vw, 36px); line-height: 1; }
@media (max-width: 1180px) { .product-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .product-cards.four { grid-template-columns: minmax(0, 1fr); } }
.product-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h2 { font-size: 36px; }
.product-card h2 a { text-decoration: none; }
.product-card p { color: #C4C4C4; line-height: 1.5; }
.label-small { font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: #8C8C8C; text-transform: uppercase; padding-top: 4px; }
.product-card .btn-row { margin-top: auto; padding-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips a { display: inline-block; padding: 7px 12px; border: 1px solid #4A4A4A; text-decoration: none; font-size: 14px; line-height: 1.3; }
.chips a:hover { border-color: var(--red-soft); }
.chips.light a { border-color: #C9C9C9; color: var(--ink); background: #fff; }
.chips.light a:hover { border-color: var(--red-dark); color: var(--red-dark); }

.facts-strip { background: var(--red); color: #fff; }
.facts-strip ul { list-style: none; margin: 0 auto; padding: 18px var(--gutter); max-width: var(--maxw); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-weight: 700; font-size: 15px; letter-spacing: .4px; }

/* Application tiles */
.app-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.app-tile { flex: 1 1 360px; position: relative; height: 300px; overflow: hidden; background: #000; text-decoration: none; color: #fff; }
.app-tile.big { flex-basis: 560px; height: 380px; }
.app-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .55; transition: opacity .2s, transform .4s; }
.app-tile:hover img { opacity: .7; transform: scale(1.03); }
.app-tile .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; border-left: 6px solid var(--red); background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0)); }
.app-tile .title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; }
.app-tile.big .title { font-size: 40px; }
.app-tile .more { font-weight: 700; color: var(--red-tint); }
.app-tile .sub { font-size: 16px; }

/* Kit finder */
.finder { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.finder > .questions { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.finder > .answers { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.finder h2 { font-size: clamp(38px, 4.4vw, 50px); }
.finder label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
#kit-finder { display: flex; flex-direction: column; gap: 10px; }
#kit-finder select + label { margin-top: 10px; }
.finder select { width: 100%; max-width: 520px; min-height: 52px; padding: 12px 14px; font: inherit; font-weight: 400; background: var(--char-2); color: #fff; border: 1px solid #5C5C5C; border-radius: 0; }
.finder-result { background: var(--char-2); display: flex; flex-wrap: wrap; border-top: 4px solid var(--red); }
.finder-result .media { flex: 1 1 220px; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 16px; }
.finder-result .media img { width: 100%; max-width: 300px; height: auto; }
.finder-result .info { flex: 1 1 260px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.finder-result .kit-title { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.05; }
.finder-result .desc { color: #C4C4C4; line-height: 1.5; }
.finder-result .alt { font-size: 15px; color: #C4C4C4; }
.finder-result .alt a { color: #fff; }
.finder-result .note { font-size: 15px; color: var(--red-tint); }
.finder-result.unsure .media { display: none; }
.ask-box { background: var(--char); border: 1px solid var(--line-dark); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.ask-box.highlight { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.ask-box h3 { font-size: 30px; }
.ask-box > p { color: #C4C4C4; }

/* "Also from" cards */
.also-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.also-card { background: var(--char-2); text-decoration: none; display: flex; flex-wrap: wrap; min-height: 170px; }
.also-card img { flex: 1 1 150px; width: 150px; height: 170px; object-fit: cover; }
.also-card .body { flex: 1 1 200px; padding: 20px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.also-card .title { font-family: var(--display); font-size: 28px; font-weight: 800; }
.also-card .body span:last-child { color: #C4C4C4; line-height: 1.5; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 10px; }
.video-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.video-card .title { font-weight: 700; font-size: 18px; }
.video-card .sub { font-size: 15px; color: var(--muted); }
.theme-dark .video-card .sub, .section-dark .video-card .sub { color: var(--muted-dark); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; background: var(--line-dark); }
.steps > div { background: var(--char); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--display); font-size: 52px; font-weight: 800; color: var(--red); line-height: 1; }
.steps strong { font-size: 20px; }
.steps span:last-child { color: var(--muted-dark); line-height: 1.5; }
.steps.light { background: var(--line); }
.steps.light > div { background: #fff; }
.steps.light span:last-child { color: var(--ink-2); }

/* Red call-to-action band */
.cta-band { background: var(--red); color: #fff; padding: 44px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(32px, 3.6vw, 44px); }
.cta-band p { font-size: 18px; line-height: 1.5; margin-top: 10px; }
.cta-band > div:first-child { flex: 1 1 480px; }
@media (max-width: 560px) { .cta-band { padding: 32px 22px; } }

/* ---------- Light inner pages ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 18px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .breadcrumb, .on-dark .breadcrumb a { color: var(--muted-dark); }
.on-dark .breadcrumb [aria-current] { color: #fff; }

/* Product hero */
.p-hero { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 48px; }
.p-hero .media { flex: 1 1 540px; min-width: 0; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 24px; }
.p-hero .media img { width: 100%; max-width: 620px; height: auto; }
.p-hero .media.photo { padding: 0; border: 0; background: #000; }
.p-hero .media.photo img { max-width: none; height: 100%; object-fit: cover; }
.p-hero .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.p-hero h1 { font-size: clamp(46px, 5.4vw, 64px); line-height: .95; }
.p-hero .lead { font-size: 18px; }
@media (max-width: 640px) { .p-hero .media { min-height: 0; } .p-hero { gap: 28px; } }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-grid > div { background: #fff; padding: 16px; }
.spec-grid .v { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.05; }
.spec-grid .k { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 420px) { .spec-grid .v { font-size: 25px; } }

.section-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav a { flex-shrink: 0; padding: 15px 16px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.section-nav a:hover, .section-nav a.active { color: var(--ink); border-bottom-color: var(--red); }

.max-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px; }
.max-col { display: flex; flex-direction: column; gap: 10px; }
.max-col::before { content: ""; width: 40px; height: 4px; background: var(--red); }
.max-col h2, .max-col h3 { font-size: 32px; }
.max-col p { color: var(--ink-2); }
.bullets { padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.two-col > * { flex: 1 1 420px; min-width: 0; }
.uses-box { border: 1px solid var(--line); background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.uses-box h3 { font-size: 28px; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th { text-align: left; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFAFA; white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid #EEEEEE; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data th.group { text-align: center; border-left: 1px solid var(--line); }
table.data .bl { border-left: 1px solid var(--line); }
.table-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.table-title { font-size: 28px; margin: 36px 0 14px; }
.table-title:first-child { margin-top: 0; }

/* Features & accessories */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.feature .media { background: var(--steel); height: 210px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.feature .media img { max-height: 186px; width: auto; max-width: 100%; object-fit: contain; }
.feature .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.feature h3 { font-size: 24px; line-height: 1.05; }
.feature .part { font-size: 13px; letter-spacing: 1px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.feature p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.downloads a:hover { color: var(--red-dark); }
.downloads .meta { color: var(--red-dark); font-weight: 700; font-size: 14px; white-space: nowrap; }
.downloads .meta small { color: var(--muted); font-weight: 400; margin-right: 8px; }

/* Kits table */
.kits-table td:first-child { white-space: nowrap; }
.kits-table .kit-no { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--red-dark); line-height: 1; display: block; }
.kits-table .kit-name { font-weight: 700; }
.kits-table .incl { color: var(--ink-2); font-size: 15px; line-height: 1.5; min-width: 260px; }
.kits-table .nsn { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.kits-table .best { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.kits-table td.act { text-align: right; white-space: nowrap; }
.kits-table td.act .btn { margin-left: 6px; }
.info-cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.info-cards > div { flex: 1 1 300px; background: #fff; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.info-cards strong { font-size: 18px; }
.info-cards span { color: var(--ink-2); }
.notice { border-left: 4px solid var(--red); background: var(--soft); padding: 16px 20px; color: var(--ink-2); }

/* Dark page hero (applications, kits, about, contact…) */
.page-hero { background: var(--char-3); color: #fff; }
.page-hero a { color: #fff; }
.page-hero .inner { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; padding: 8px 0 52px; }
.page-hero .text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: .95; }
.page-hero .image { flex: 1 1 360px; max-width: 520px; }
.page-hero .image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-top: 4px solid var(--red); }

/* Application uses */
.jump { padding: 22px 0; border-bottom: 1px solid var(--line); }
.use { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 52px 0; border-bottom: 1px solid var(--line); }
.use:last-child { border-bottom: 0; }
.use h2 { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 14px; }
.use p { color: var(--ink-2); max-width: 760px; }
.use .photo img { width: 100%; height: auto; border: 1px solid var(--line); }
.rec { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.rec-kit { border: 1px solid var(--line); border-left: 4px solid var(--red); background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 280px; max-width: 420px; }
.rec-kit .lbl { font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.rec-kit .name { font-weight: 700; font-size: 17px; }
.rec-kit .links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .use { grid-template-columns: 1fr; gap: 20px; } .use .photo { max-width: 320px; } }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field > .lbl { display: block; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid #8F8F8F; border-radius: 0; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(215, 25, 31, .35); outline-offset: 0; border-color: var(--red-dark); }
.req { color: var(--red-dark); }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-weight: 600; min-height: 1.2em; }
.form-status[data-state="error"] { color: var(--red-dark); }
.form-status[data-state="ok"] { color: #1E6B2F; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea, .on-dark .field input, .on-dark .field textarea, .on-dark .field select { background: var(--char-2); color: #fff; border-color: #5C5C5C; }
.theme-dark .form-note, .on-dark .form-note { color: var(--muted-dark); }
.theme-dark .form-status[data-state="error"], .on-dark .form-status[data-state="error"] { color: var(--red-tint); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-cards > div { border: 1px solid var(--line); padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.contact-cards h2, .contact-cards h3 { font-size: 26px; margin-bottom: 4px; }
.contact-cards p { color: var(--ink-2); }

.prose { max-width: 820px; }
.prose h2 { font-size: 34px; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--ink-2); }
.prose ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-dark); padding: 56px 0 24px; font-size: 15px; line-height: 1.7; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-tint); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--body); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.footer-brand .brand-name { color: #fff; font-size: 28px; }
.footer-bottom { border-top: 1px solid #2A2A2A; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-tile img { transition: none; }
}
.field[hidden] { display: none; }

.mode-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-btn { font: inherit; font-weight: 700; font-size: 15px; text-align: left; padding: 14px 16px; min-height: 56px; border: 2px solid #8F8F8F; background: #fff; color: var(--ink); cursor: pointer; border-radius: 0; }
.mode-btn:hover { border-color: var(--red-dark); }
.mode-btn[aria-pressed="true"] { border-color: var(--red); background: #FCECEC; color: var(--red-dark); box-shadow: inset 4px 0 0 var(--red); }
.mode-btn:focus-visible { outline: 3px solid rgba(215, 25, 31, .35); outline-offset: 2px; }
@media (max-width: 560px) { .mode-btns { grid-template-columns: 1fr; } }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; }
.yt-lite .yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: rgba(17,17,17,.8); border-radius: 12px; transition: background .2s; }
.yt-lite .yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { background: var(--red); }
.yt-lite:focus-visible { outline: 3px solid rgba(215, 25, 31, .5); outline-offset: 2px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn.btn-parts { color: #fff; }
.btn.btn-parts[aria-current="page"] { border-color: #fff; }
@media (max-width: 700px) { .header-actions .btn-parts { display: none; } }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 1101px) { .main-nav { gap: 0; } .main-nav > a, .nav-dd > summary { font-size: 15px; padding-left: 9px; padding-right: 9px; } .brand-sub { display: none; } }
@media (max-width: 1240px) and (min-width: 1101px) { .main-nav > a, .nav-dd > summary { font-size: 14px; padding-left: 6px; padding-right: 6px; } .nav-dd > summary::after { margin-left: 6px; } .header-actions { gap: 8px; } .header-actions .btn { padding: 9px 11px; font-size: 14px; } }

/* Consumable parts cards */
.feature .media.media-white { background: #fff; border-bottom: 1px solid var(--line); }
.feature .fits { font-size: 14px; color: var(--muted); font-style: italic; }
.feature .btn-add { margin-top: auto; align-self: flex-start; }
.feature .body { flex: 1; }

/* Kit photos in kit tables */
.kit-thumb { display: block; width: 132px; margin-top: 10px; border: 1px solid var(--line); background: #fff; }
.kit-thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .kit-thumb { width: 110px; } }

/* Action photo strip (product pages) */
.action-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.action-strip img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (max-width: 700px) { .action-strip { grid-template-columns: 1fr; } }
/* Team photo (about) */
.team-photo { margin: 28px 0 0; max-width: 420px; }
.team-photo img { width: 100%; height: auto; display: block; }
.team-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.about-side { display: flex; flex-direction: column; gap: 18px; align-self: start; }
.about-kit { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }
.about-stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about-stats li { border-top: 3px solid var(--red, #c8102e); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-size: 22px; line-height: 1.1; }
.about-stats span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 700px) { .about-stats { grid-template-columns: 1fr; } }
.prose ul.about-stats { padding-left: 0; margin-left: 0; }

/* parts form: part picker */
.part-picker { background: var(--soft); border: 1px solid var(--line); padding: 16px; }
.picker-row { display: flex; gap: 10px; align-items: stretch; }
.picker-row select { flex: 1 1 auto; min-width: 0; }
.picker-row input { flex: 0 0 84px; width: 84px; }
.picker-row .btn { flex: 0 0 auto; min-height: 48px; }
@media (max-width: 480px) { .picker-row { flex-wrap: wrap; } .picker-row select { flex-basis: 100%; } .picker-row input { flex: 1 1 auto; } }

/* parts form: equipment checkboxes */
fieldset.eq-checks { border: 0; margin: 0; padding: 0; min-width: 0; }
.eq-checks legend { padding: 0; margin-bottom: 6px; }
.eq-checks .opt { font-weight: 400; color: var(--muted); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 400; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
