/* ==========================================================================
   Barmic theme — design tokens and components (from the v3 designs)
   ========================================================================== */
:root {
  --navy: #0F1E2E;
  --navy-deep: #0B1724;
  --red: #B5121B;
  --red-dark: #9A0F17;
  --paper: #F4F2EE;
  --white: #FFFFFF;
  --line: #DDD8CF;
  --line-soft: #ECE8E1;
  --line-strong: #B9B3A8;
  --ink-2: #3B4652;
  --muted: #4A5562;
  --muted-2: #5A6573;
  --on-navy: #E6EAF0;
  --on-navy-2: #D5DBE3;
  --on-navy-3: #B9C3CF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 12px 16px; }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.section-head > div { max-width: 680px; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow--rule { display: flex; align-items: center; gap: 12px; }
.eyebrow--rule::before { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--red); }
.eyebrow--light { color: var(--on-navy); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
h1.display { font-size: 76px; line-height: .95; margin: 16px 0 0; }
h2.display { font-size: 52px; margin: 12px 0 0; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; max-width: 640px; }
.body-text { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }
.link-arrow { font-weight: 600; font-size: 15px; }

/* Buttons */
.btn { font: inherit; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; min-height: 48px; border-radius: 4px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--paper); color: var(--navy); }
.btn--sm { font-size: 15px; padding: 12px 20px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Utility bar */
.utility { background: var(--navy); color: var(--on-navy-2); font-size: 13px; }
.utility .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.utility nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.utility a { color: var(--white); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 44px; width: auto; display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; font-size: 15px; }
.site-nav a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a, .site-nav .current_page_item > a { color: var(--red); border-bottom-color: var(--red); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Breadcrumb */
.breadcrumb { padding-top: 20px; font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--muted-2); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 500; }

/* Hero (homepage) */
.hero { background-size: cover; background-position: center 40%; }
.hero__shade { background: rgba(9, 18, 30, .62); }
.hero .wrap { padding-top: 96px; padding-bottom: 104px; }
.hero__copy { max-width: 820px; color: var(--white); }
.hero h1.display { font-size: 72px; line-height: .98; margin-top: 20px; }
.hero .lede { color: var(--on-navy); max-width: 600px; margin-top: 24px; }

/* Hero slideshow — slides share one grid cell so the height fits the tallest */
.hero-slider { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-slider__track { display: grid; }
.hero-slide { grid-area: 1 / 1; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; z-index: 1; }
.hero-slide .hero__shade { height: 100%; background: linear-gradient(90deg, rgba(9, 18, 30, .82) 0%, rgba(9, 18, 30, .72) 45%, rgba(9, 18, 30, .35) 100%); }
@media (max-width: 700px) { .hero-slide .hero__shade { background: rgba(9, 18, 30, .7); } }
.hero-slide .wrap { padding-top: 96px; padding-bottom: 136px; }
.hero-slide .hero__copy { transform: translateY(16px); opacity: 0; transition: transform .7s ease .15s, opacity .7s ease .15s; }
.hero-slide.is-active .hero__copy { transform: none; opacity: 1; }
.hero-slider .hero__title { font-size: 72px; line-height: .98; margin: 20px 0 0; color: var(--white); }
.hero-slider .lede { color: var(--on-navy); max-width: 600px; margin-top: 24px; }
.hero-slider__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 32px; }
.hero-slider__controls .wrap { display: flex; align-items: center; gap: 12px; }
.hero-slider__arrow, .hero-slider__pause { width: 44px; height: 44px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(9, 18, 30, .35); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-slider__arrow:hover, .hero-slider__pause:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero-slider__pause .icon-play { display: none; }
.hero-slider.is-paused .hero-slider__pause .icon-play { display: block; }
.hero-slider.is-paused .hero-slider__pause .icon-pause { display: none; }
.hero-slider__dots { display: flex; gap: 4px; }
.hero-slider__dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hero-slider__dot span { display: block; width: 32px; height: 3px; background: rgba(255, 255, 255, .4); position: relative; overflow: hidden; }
.hero-slider__dot:hover span { background: rgba(255, 255, 255, .7); }
.hero-slider__dot.is-active span { background: rgba(255, 255, 255, .4); }
.hero-slider__dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: barmic-progress var(--slide-ms, 6000ms) linear forwards; }
.hero-slider.is-paused .hero-slider__dot.is-active span::after, .hero-slider[data-autoplay="0"] .hero-slider__dot.is-active span::after { animation: none; transform: none; }
@keyframes barmic-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .hero-slide .hero__copy { transition: none; }
  .hero-slider__dot.is-active span::after { animation: none; }
}

/* Brand strip */
.brands { background: var(--white); border-bottom: 1px solid var(--line); }
.brands .wrap { padding-top: 32px; padding-bottom: 36px; }
/* Centred rows (6 per row on desktop) so a short last row sits in the middle. */
.brands__logos { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brands__logo { flex: 0 1 180px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 6px; transition: border-color .15s; }
.brands__logo:hover { border-color: var(--line-strong); }
/* Logos are shown no larger than their source files (about 168x43) so they stay sharp. */
.brands__logo img { max-height: 44px; max-width: 100%; width: auto; height: auto; display: block; }
/* Partner logos have a thin rounded frame drawn into the image; trim it off. */
.brands__logo--framed img { clip-path: inset(3px round 2px); }
@media (max-width: 700px) { .brands__logo { flex-basis: calc(50% - 6px); height: 64px; } }

/* Logo carousel (main.js adds .brands--marquee and a copy of the logos for a seamless loop). */
.brands__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brands__pause { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; }
.brands__pause:hover { border-color: var(--navy); }
.brands__pause:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.brands__pause .i-play, .brands__pause[aria-pressed="true"] .i-pause { display: none; }
.brands__pause[aria-pressed="true"] .i-play { display: inline; }
.brands--marquee .brands__viewport { overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.brands--marquee .brands__logos { margin: 0; flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: barmic-marquee var(--marquee-s, 50s) linear infinite; }
.brands--marquee .brands__logo { flex: 0 0 180px; }
.brands--marquee .brands__viewport:hover .brands__logos, .brands--marquee.is-paused .brands__logos { animation-play-state: paused; }
/* The list holds two copies of the logos, so moving half its width (plus half a gap) loops seamlessly. */
@keyframes barmic-marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (max-width: 700px) { .brands--marquee .brands__logo { flex-basis: 140px; height: 60px; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.card { text-decoration: none; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
a.card:hover { color: var(--navy); border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(15, 30, 46, .08); }
.card__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.card__more { font-weight: 600; font-size: 15px; color: var(--red); }

/* Tiled product grid (homepage) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.tile { background: var(--white); padding: 32px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 12px; }
.tile:hover { background: var(--paper); color: var(--navy); }
.tile__title { font-weight: 600; font-size: 19px; }
.tile__text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* About panel */
.about { background-size: cover; background-position: center; padding: 96px 0; }
.about__panel { background: rgba(15, 30, 46, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: var(--white); max-width: 640px; padding: 56px 56px 60px; border-top: 6px solid var(--red); }
.about__panel h2.display { font-size: 64px; margin-top: 16px; }
.about__panel p { font-size: 17px; line-height: 1.65; color: var(--on-navy); margin: 24px 0 0; }

/* Forms */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split__aside { flex: 1 1 340px; min-width: 0; }
.split__main { flex: 2 1 520px; min-width: 0; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; font-size: 16px; }
.contact-list a, .contact-list .value { font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; background: var(--paper); padding: 36px; border-radius: 6px; }
.form-grid--white { background: var(--white); color: var(--navy); border-top: 6px solid var(--red); padding: 32px; }
.form-grid .full { grid-column: 1 / -1; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; min-height: 48px; background: var(--white); color: var(--navy); width: 100%; }
textarea.field { resize: vertical; min-height: 110px; }
.file-field { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; min-height: 48px; border: 1px dashed var(--line-strong); border-radius: 4px; padding: 12px 14px; background: var(--white); }
.file-field input { font-size: 13px; margin-left: auto; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-note { font-size: 13px; color: var(--muted-2); }
.notice { padding: 14px 18px; border-radius: 4px; font-weight: 500; }
.notice--ok { background: #E7F3EA; color: #1E5631; }
.notice--err { background: #FBE9EA; color: var(--red-dark); }

/* Red CTA band */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band .eyebrow { color: #FFE3E3; }
.cta-band h2.display { margin-top: 10px; }
.cta-band .btn-row { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); font-size: 15px; }
.site-footer__cols { padding-top: 64px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col .label { color: var(--on-navy-3); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-logo { background: var(--white); padding: 10px 14px; border-radius: 4px; align-self: flex-start; }
.footer-logo img { height: 36px; width: auto; display: block; }
.site-footer__bottom { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-navy-3); }
.site-footer__bottom a { color: var(--on-navy-3); text-decoration: underline; }

/* Products page */
.page-hero { padding-top: 32px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-end; }
.page-hero__copy { flex: 999 1 560px; min-width: 0; }
.page-hero h1.display { font-size: 80px; }
.search-box { margin-top: 32px; max-width: 600px; display: flex; border: 1px solid var(--navy); border-radius: 4px; background: var(--white); overflow: hidden; }
.search-box span { display: flex; align-items: center; padding: 0 4px 0 16px; color: var(--muted-2); }
.search-box input { font: inherit; flex: 1; min-width: 0; border: 0; padding: 14px 12px; min-height: 52px; background: transparent; color: var(--navy); outline: none; }
.navy-box { flex: 1 1 320px; max-width: 420px; background: var(--navy); color: var(--white); border-top: 6px solid var(--red); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.navy-box .label { color: var(--on-navy-3); }
.navy-box p { font-size: 15px; line-height: 1.55; color: var(--on-navy); margin: 0; }
.navy-box a:not(.btn) { color: var(--white); font-weight: 600; text-decoration: none; padding: 12px 4px; }

.chips { position: sticky; top: 0; z-index: 5; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-bar .chips { top: 32px; }
.chips nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px; max-width: 1240px; margin: 0 auto; scrollbar-width: none; }
.chips nav::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.cat { scroll-margin-top: 84px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cat:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px rgba(15, 30, 46, .08); }
.cat-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cat-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted-2); }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat h3 { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 0; }
.cat p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.cat-link { font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; margin-top: 4px; }
.cat-link:hover { text-decoration: underline; }
.cat--feature { grid-column: span 2; flex-direction: row; }
.cat--feature .cat-media { flex: 0 0 44%; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; border-right: 1px solid var(--line-soft); }
.cat--feature .cat-media img { max-height: 280px; width: auto; display: block; }
.cat--wide { grid-column: span 2; background: var(--navy); border-color: var(--navy); color: var(--white); border-top: 6px solid var(--red); }
.cat--wide .cat-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cat--wide .cat-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.cat--wide .cat-num { color: var(--on-navy-3); }
.cat--wide p { color: var(--on-navy); }
.cat--wide svg { stroke: var(--white); }
.sub { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.sub a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.sub a span { color: var(--red); }
.empty { display: none; margin-top: 32px; background: var(--white); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 28px; font-size: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 28px; max-width: 640px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--red); }
.stat__text { font-size: 14px; color: var(--muted); margin-top: 6px; }

.feature-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.feature-split > * { flex: 1 1 420px; min-width: 0; }
.feature-split img { width: 100%; height: 360px; object-fit: cover; display: block; border-radius: 6px; }

.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.ind-tile { position: relative; display: block; height: 220px; border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--white); }
.ind-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ind-tile:hover img { transform: scale(1.04); }
.ind-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 18, 30, .88), rgba(9, 18, 30, .1) 65%); }
.ind-tile span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font-size: 28px; display: flex; justify-content: space-between; }
.ind-tile:hover { color: var(--white); }

.navy-section { background: var(--navy); color: var(--white); }
.navy-section .label { color: var(--on-navy-3); }
.navy-section .contact-list a { color: var(--white); }
.navy-section .body-text { color: var(--on-navy); }

/* Product page */
.product-hero { padding-top: 32px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.product-hero__copy { flex: 999 1 520px; min-width: 0; }
.product-hero__media { flex: 1 1 380px; max-width: 520px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.product-hero__media img { width: 100%; display: block; }
.product-hero__caption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line-soft); padding-top: 14px; }
.tabs { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs nav { display: flex; flex-wrap: wrap; gap: 0 32px; font-weight: 600; font-size: 15px; }
.tabs a { text-decoration: none; padding: 18px 0; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--red); }
.with-sidebar { padding-top: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.sidebar { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 24px; }
.side-nav { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.side-nav .label { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.side-nav a { display: block; padding: 14px 20px; text-decoration: none; border-top: 1px solid var(--line-soft); }
.side-nav a.is-current { font-weight: 600; background: var(--paper); border-left: 3px solid var(--red); border-top: 0; }
.side-contact { background: var(--navy); color: var(--white); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.side-contact .label { color: var(--on-navy-3); }
.side-contact a { color: var(--white); }
.main-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 80px; padding-bottom: 88px; }
.main-col section { scroll-margin-top: 24px; }
.main-col h2.display { font-size: 48px; margin: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 12px 32px 20px; margin-top: 32px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 40px; font-size: 16px; line-height: 1.5; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.checks svg { flex: none; margin-top: 1px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.model { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.model__img { height: 160px; display: flex; align-items: center; justify-content: center; }
.model__img img { max-height: 150px; width: auto; }
.model__name { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.model__links { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 28px; }
.photo-grid figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.photo-grid img { width: 100%; height: 170px; object-fit: cover; display: block; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 28px; }
.dl { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; text-decoration: none; }
.dl:hover { border-color: var(--navy); }
.dl small { display: block; font-size: 13px; color: var(--muted-2); }

/* Generic content (page.php, single.php, index.php) */
.content-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.entry-content { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); text-transform: uppercase; color: var(--navy); line-height: 1.05; }
.entry-content h2 { font-size: 40px; margin: 48px 0 12px; }
.entry-content h3 { font-size: 28px; margin: 36px 0 10px; }
.entry-content img { border-radius: 6px; }
.entry-content blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); font-size: 19px; color: var(--navy); }
.entry-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-top: 16px; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Responsive */
@media (max-width: 980px) {
  .cat-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .cat--wide { grid-column: span 1; }
}
@media (max-width: 700px) {
  .cat-grid, .ind-grid { grid-template-columns: 1fr; }
  .cat--feature { grid-column: auto; flex-direction: column; }
  .cat--feature .cat-media { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  h1.display, .hero h1.display, .page-hero h1.display, .hero-slider .hero__title { font-size: 50px; }
  .hero-slide .wrap { padding-top: 64px; padding-bottom: 120px; }
  .hero-slider__arrow { display: none; }
  h2.display, .about__panel h2.display, .main-col h2.display { font-size: 38px; }
  .about__panel { padding: 36px 28px; }
  .sidebar { max-width: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 782px) { .admin-bar .chips { top: 46px; } }
@media (max-width: 600px) { .admin-bar .chips { top: 0; } }

/* Contact page */
.contact-call { gap: 4px; }
.contact-call .label { margin-bottom: 6px; }
.navy-box a.contact-call__num { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .01em; }
.navy-box a.contact-call__num:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-call__tag { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-3); }
.contact-call p { margin-top: 12px; }
.contact-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; }
.contact-team { background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--navy); }
.contact-team:hover { background: var(--paper); color: var(--navy); }
.contact-team__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; text-transform: uppercase; margin-top: 6px; }
.contact-team__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.contact-team__mail { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--red); word-break: break-word; }
.contact-main .split__main > .display { margin-top: 12px; }
.contact-form { margin-top: 28px; }
.contact-visit { display: flex; flex-direction: column; gap: 20px; }
.contact-visit__title { font-size: 40px; margin: 0; }
.contact-map { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--line-soft); aspect-ratio: 4 / 3; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-address { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: 22px; }
.contact-address svg { flex: none; margin-top: 2px; }
.contact-address__lines { font-size: 17px; line-height: 1.55; margin: 6px 0 10px; }
@media (max-width: 700px) {
  .navy-box a.contact-call__num { font-size: 26px; }
  .contact-team { padding: 28px 22px; }
  .contact-visit__title { font-size: 32px; }
}
