/* ------------------------------------------------------------------
   Maritime Propulsion 26 — site stylesheet
   Navy "report" style: dark sticky header with a text wordmark, gradient hero with a masked
   picture and a facts strip, hairline cards with 13px corners, uppercase blue eyebrows, a 14px
   Inter / Segoe base, a navy brand band and a dark footer. Mobile-first, no framework.
   ------------------------------------------------------------------ */

:root {
    --navy: #071b30;
    --navy-2: #0b2b49;
    --navy-header: #061c31;
    --navy-footer: #061a2d;
    --blue: #147edd;
    --blue-deep: #0a5793;
    --bright: #38b2f9;
    --ice: #e8f5fb;
    --ink: #0d273e;
    --muted: #63788a;
    --line: #d7e3ed;
    --bg: #f4f7fa;
    --amber: #cb8524;
    --amber-light: #fbbd66;
    --green: #137768;

    --font: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --radius: 13px;
    --radius-sm: 8px;
    --shell: 1328px; /* 3 x 300px content columns + 16px gaps + 24px + 300px banner column + 2 x 36px gutters */
    --gutter: 14px;
    --masthead-height: 65px;
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
    --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 62px;
}
@media (min-width: 36em) { :root { --gutter: 22px; } }
@media (min-width: 76.25em) { :root { --gutter: 36px; --masthead-height: 76px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.58 var(--font); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; line-height: 1.14; color: var(--navy); font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 2px; }

/* ---------- Utilities ---------- */

.shell, .container { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 44rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: var(--space-4); z-index: 100; padding: var(--space-2) var(--space-4); background: var(--amber-light); color: var(--navy); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 800; }
.skip-link:focus { top: 0; }

.btn, .button { border: 0; border-radius: 7px; background: var(--blue); color: #fff; padding: 11px 17px; font-weight: 800; font-size: 12px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; text-decoration: none; transition: filter 0.2s; cursor: pointer; line-height: 1.2; }
.btn:hover, .button:hover { filter: brightness(1.09); color: #fff; }
.btn--alt { background: transparent; border: 1px solid #aecfe5; color: #fff; }
.btn--light { background: #e8f4fe; color: var(--blue-deep); }
.btn--light:hover { color: var(--blue-deep); }
.btn--outline { background: #fff; color: #126eb6; border: 1px solid #bed8eb; }
.btn--outline:hover { color: #126eb6; }
.btn--dark { background: var(--navy); }

.eyebrow { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #2584c6; margin: 0 0 var(--space-2); }
.eyebrow--on-dark { color: var(--bright); }
.kicker { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #2584c6; margin: 0 0 var(--space-2); }
.pill { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; background: #eaf0ff; color: #3a5c95; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- Masthead ---------- */

.masthead { background: var(--navy-header); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 16px rgb(5 24 38 / 0.21); }
.masthead__top { display: flex; align-items: center; gap: var(--space-6); min-height: var(--masthead-height); flex-wrap: wrap; }
.wordmark { white-space: nowrap; text-decoration: none; line-height: 1; color: #fff; }
.wordmark:hover { color: #fff; }
.wordmark__name { display: block; font-size: 21px; letter-spacing: -0.07em; font-weight: 900; }
.wordmark__name span { color: #42aaf5; }
.wordmark__tagline { display: block; font-size: 9px; letter-spacing: 0.13em; margin-top: 7px; color: #bdd8ea; font-weight: 800; text-transform: uppercase; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 36em) { .wordmark__name { font-size: 27px; } }

.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1px solid #2b4f6d; border-radius: 7px; color: #fff; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s ease; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; flex-basis: 100%; order: 3; padding-bottom: var(--space-3); }
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav__list a { display: block; padding: 11px var(--space-3); font-weight: 700; font-size: 13px; text-decoration: none; color: #d3e4f2; white-space: nowrap; border-radius: 7px; }
.site-nav__list a:hover { color: #fff; background: var(--navy-2); }
.site-nav__list a[aria-current="page"] { color: #fff; background: var(--navy-2); }

@media (min-width: 56.25em) {
    .nav-toggle { display: none; }
    .site-nav { display: block; flex-basis: auto; order: 0; margin-left: auto; padding: 0; }
    .site-nav__list { flex-direction: row; align-items: center; gap: 21px; }
    .site-nav__list a { padding: 6px 0; font-size: 12px; background: none; border-radius: 0; border-bottom: 2px solid transparent; }
    .site-nav__list a:hover { background: none; }
    .site-nav__list a[aria-current="page"] { background: none; border-bottom-color: var(--bright); }
}

/* ---------- Sections ---------- */

.site-main { flex: 1 0 auto; }
.section { padding: var(--space-10) 0; }
@media (min-width: 36em) { .section { padding: var(--space-16) 0; } }
.section--alt { background: #fff; border-block: 1px solid var(--line); }
.title { font-size: clamp(26px, 3vw, 39px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: 25px; }
.section-head p { max-width: 650px; color: var(--muted); margin-top: 8px; }
.section-head__title { font-size: clamp(26px, 3vw, 39px); margin: 0; }
.section-head__more { font-weight: 800; text-decoration: none; color: #076ba9; white-space: nowrap; }
.section-head__more:hover { text-decoration: underline; }
.section-head__note { color: var(--muted); }
.section__title { display: flex; align-items: center; gap: var(--space-4); font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 25px; }
.section__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.page-header { margin-bottom: 25px; }
.page-header h1 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: var(--space-2); }
.page-header__lead { max-width: 650px; color: var(--muted); margin-top: 8px; }

/* ---------- Leaderboard ---------- */

.leaderboard-band { background: #fff; }
.leaderboard { display: flex; justify-content: center; padding: var(--space-3) 0; }
.leaderboard-band .ad-slot { background: transparent; }
.ad-slot--leader { width: 728px; max-width: 100%; height: 90px; }

/* ---------- Home layout: main column + 300px banner column ---------- */

/* Every page: content column plus an independent 300px right column (banners first, then any
   page extras). When the right column is empty the content takes the full width. */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; padding-top: var(--space-5); padding-bottom: var(--space-10); }
@media (min-width: 64em) {
    .page-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-16); }
    .page-layout:not(:has(.page-layout__side > *)) { grid-template-columns: minmax(0, 1fr); }
}
.page-layout__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.page-layout__side { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.page-layout__side:not(:has(> *)) { display: none; }
.page-layout__side .ad-stack { flex-direction: column; overflow: visible; padding-bottom: 0; gap: var(--space-4); align-items: center; }
.page-layout__side .ad-stack > .ad-slot { flex: none; }
.page-layout__main > .page-header { margin-bottom: var(--space-2); }
.home-news { margin-top: var(--space-8); }

/* ---------- Hero (a card in the main column, as tall as two banners) ---------- */

.hero { background: linear-gradient(95deg, #071e35 1%, #092840 72%, #06375b 100%); color: #fff; overflow: hidden; border-radius: var(--radius); }
.hero__inner { display: grid; align-items: center; }
.hero__copy { padding: var(--space-6) var(--space-5) var(--space-5); position: relative; z-index: 2; }
.hero__title { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.08; margin: 12px 0 14px; color: #fff; letter-spacing: -0.035em; }
.hero__title a { color: #fff; text-decoration: none; }
.hero__title a:hover { color: var(--bright); }
.hero__lead { font-size: 15px; line-height: 1.6; color: #d5e6f5; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 14px; }
.hero__foot { font-size: 11px; color: #bad3e6; }
.hero__art { display: block; height: 220px; position: relative; background: #072a47; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
@media (min-width: 56.25em) {
    /* 2 x 250px banners + the 16px gap between them. */
    .hero__inner { min-height: 516px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; }
    .hero__copy { padding: var(--space-8) 0 var(--space-8) var(--space-8); }
    .hero__art { height: 100%; min-height: 516px; align-self: stretch; }
    .hero__art img { mask-image: linear-gradient(to right, transparent, #000 28%); -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); }
}

/* Facts strip under the hero. */
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
@media (min-width: 56.25em) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 14px var(--space-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 56.25em) { .fact { padding: 20px 22px; border-bottom: 0; } .fact:nth-child(2n) { border-right: 1px solid var(--line); } .fact:last-child { border-right: 0; } }
.fact strong { display: block; font-size: 24px; letter-spacing: -0.06em; color: var(--navy); line-height: 1.1; }
.fact span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Headlines card in the banner column. */
.side-card { padding: 18px; }
.headlines { list-style: none; margin: 0; padding: 0; }
.headlines__item { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.headlines__category { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #4184af; }
.headlines__link { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; font-size: 13px; }
.headlines__link:hover { color: #086baa; text-decoration: underline; }
.headlines__date { font-size: 11px; color: var(--muted); }

/* ---------- Brand band (directory) ---------- */

.brandbar { background: #071e35; color: #fff; padding: 40px 32px; border-radius: var(--radius); margin-top: var(--space-8); }
.brandbar__title { font-size: clamp(26px, 3vw, 34px); color: #fff; margin-bottom: 16px; }
.brandbar__sub { color: #b4d0e6; font-size: 14px; max-width: 760px; }
.brandbar__grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 28px; align-items: stretch; }
@media (min-width: 36em) { .brandbar__grid { grid-template-columns: repeat(2, 1fr); } }
.brand-tile { border: 1px solid #254a68; border-radius: 8px; padding: 26px 22px; background: #0b2a42; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.brand-tile:hover { background: #0e3453; color: #fff; }
.brand-tile strong { font-size: 24px; letter-spacing: -0.04em; }
.brand-tile span { color: #a9c9d9; font-size: 12px; line-height: 1.6; }

/* ---------- News grid & cards ---------- */

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, 300px); justify-content: center; gap: var(--space-6) var(--space-4); }
.news-grid--fluid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); justify-content: stretch; }
.news-grid--fluid > .news-card { width: auto; }
.news-grid--fluid .news-card__media, .news-grid--fluid .news-card__media img { width: 100%; }
.news-grid--fluid > .ad-slot { justify-self: center; }
.news-grid--start { justify-content: start; }

.news-card { width: 300px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.16s, box-shadow 0.16s; }
.news-card:hover { border-color: #9ec4e2; box-shadow: 0 8px 28px rgb(9 120 195 / 0.11); }
.news-card__media { display: block; width: 300px; aspect-ratio: 16 / 9; background: #cfe2ee; }
.news-card__media img { width: 300px; height: 100%; object-fit: cover; }
.news-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__kicker { margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #4184af; }
.news-card__title { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.news-card__title a { color: var(--navy); text-decoration: none; }
.news-card__title a:hover { color: #086baa; text-decoration: underline; }
.news-card__meta { margin: auto 0 0; font-size: 11px; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 10px; }
.news-card__excerpt { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card--text .news-card__body { padding-top: 22px; }
.news-card--text { border-top: 3px solid var(--blue); }
.placeholder-card { border-style: dashed; background: #f5f8fb; }
.placeholder-card:hover { box-shadow: none; border-color: var(--line); }

/* ---------- Banner slots ---------- */

.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #f5f8fb; border: 1px dashed #b8cedb; border-radius: 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; align-self: start; }
.ad-slot--mrec { width: 300px; height: 250px; }
.ad-slot__label { font-weight: 800; }
.ad-slot__size { font-size: 10px; letter-spacing: 0.04em; text-transform: none; }
.ad-stack { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
.ad-stack > .ad-slot { flex: 0 0 300px; scroll-snap-align: start; }

/* ---------- Pager ---------- */

.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-6); margin-top: var(--space-12); }
.pager__link { padding: 9px 16px; border: 1px solid #bed8eb; border-radius: 7px; background: #fff; text-decoration: none; color: #126eb6; font-weight: 800; font-size: 12px; }
.pager__link:hover { filter: brightness(0.97); }
.pager__status { color: var(--muted); font-size: 12px; }

/* ---------- Story page ---------- */

.article { max-width: 44rem; }
/* On wide screens the content column is wider than the reading measure; keep the story next to the banners rather than leaving the gap beside them. */
@media (min-width: 64em) { .page-layout__main > .article { margin-inline-start: auto; } }
.article__header { margin-bottom: var(--space-6); }
.article__breadcrumb { margin: 0 0 var(--space-4); font-size: 12px; }
.article__breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 700; }
.article__breadcrumb a::before { content: "\2190\00a0"; }
.article__breadcrumb a:hover { color: #086baa; }
.article__title { font-size: clamp(30px, 3.8vw, 48px); margin-bottom: 14px; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; color: var(--muted); font-size: 12px; }
.article__author { color: var(--navy); font-weight: 800; }
.article__body { line-height: 1.75; font-size: 16px; }
.article__body > :first-child { margin-top: 0; }
.article__body p { margin: 0 0 1.25em; }
.article__body h2, .article__body h3 { margin: 1.5em 0 0.6em; }
.article__body img { max-width: 100%; height: auto; border-radius: 9px; }
.article__body a { color: #076ba9; }
.article__body blockquote { margin: 1.5em 0; padding: 13px 16px; background: #eef7fc; border-left: 3px solid #2188c2; color: #3d687f; border-radius: 0 9px 9px 0; }
.article__body table { width: 100%; border-collapse: collapse; font-size: 12px; }
.article__body th { background: #eaf2f7; color: #547188; text-align: left; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; padding: 13px 12px; }
.article__body td { border-top: 1px solid #e9f0f4; padding: 12px; }
.article__body iframe { max-width: 100%; }

/* Gallery: one active slide when scripted, all slides stacked otherwise. */
.gallery { margin: 0 0 var(--space-8); }
.related { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.gallery__slide { margin: 0 0 var(--space-4); }
.gallery__slide img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #cfe2ee; }
.gallery__caption { margin-top: var(--space-2); font-size: 12px; color: var(--muted); }
.js .gallery__slide { margin-bottom: 0; }
.js .gallery__slide:not(.is-active) { display: none; }
.gallery__thumbs { display: none; }
.js .gallery__thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 7px; background: none; line-height: 0; cursor: pointer; opacity: 0.75; }
.gallery__thumb img { display: block; width: 120px; height: 68px; object-fit: cover; border-radius: 4px; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-selected="true"] { opacity: 1; border-color: var(--blue); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-footer); color: #a5c5d9; padding: 30px 0; margin-top: auto; }
.site-footer a { color: #d3e4f2; text-decoration: none; font-weight: 700; font-size: 12px; }
.site-footer a:hover { color: #fff; }
.site-footer__inner { display: grid; gap: var(--space-4); }
@media (min-width: 48em) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; } .site-footer__copy { grid-column: 1 / -1; } }
.site-footer__name { font-weight: 900; font-size: 18px; color: #fff; letter-spacing: -0.05em; }
.site-footer__tagline { font-size: 11px; color: #a5c5d9; margin-top: 4px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) 21px; }
.site-footer__copy { font-size: 11px; line-height: 1.8; color: #7f9db2; }

/* ---------- Print ---------- */

@media print {
    .masthead, .site-footer, .ad-slot, .nav-toggle { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: inherit; text-decoration: none; }
}

/* ---------- Product directory (legacy /directory) ---------- */

.dir__header h1 { font-size: clamp(26px, 3vw, 38px); }
.dir__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
@media (min-width: 64em) { .dir__layout { grid-template-columns: 15rem minmax(0, 1fr); } }
.dir__main { min-width: 0; }
.dir__empty { padding: var(--space-8); text-align: center; display: grid; gap: var(--space-4); justify-items: center; }

.dir-search { display: flex; gap: 6px; }
.dir-search input { flex: 1; min-width: 0; }
.dir__advanced { margin: 8px 0 var(--space-4); font-size: 12px; }
.dir__advanced a { color: #076ba9; font-weight: 700; }

input[type="search"], input[type="number"], input[type="text"], select {
    font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #bed8eb; border-radius: 7px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 1px; border-color: var(--blue); }

.chips { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #e8f4fe; color: var(--blue-deep); border-radius: 99px; padding: 5px 6px 5px 11px; font-size: 12px; font-weight: 700; }
.chip__remove { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--blue-deep); text-decoration: none; font-size: 14px; line-height: 1; }
.chip__remove:hover { background: var(--blue); color: #fff; }

.filter-group { border-top: 1px solid var(--line); padding: 6px 0; }
.filter-group__title { cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #2584c6; padding: 8px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filter-group__title::-webkit-details-marker { display: none; }
.filter-group__title::after { content: "+"; font-size: 15px; color: var(--muted); }
.filter-group[open] > .filter-group__title::after { content: "\2013"; }
.filter-group__list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 18rem; overflow: auto; }
.filter-group__list li { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.filter-group__list a { color: var(--ink); text-decoration: none; }
.filter-group__list a:hover { color: #086baa; text-decoration: underline; }
.filter-group__list li.is-active { font-weight: 800; color: var(--blue-deep); }
.filter-group__list small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 222px), 1fr)); gap: var(--space-4); }
.product-grid--fluid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.16s, box-shadow 0.16s; position: relative; }
.product-card:hover { border-color: #9ec4e2; box-shadow: 0 8px 28px rgb(9 120 195 / 0.11); }
.product-card__media { display: block; aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__kicker { margin: 0; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #4184af; }
.product-card__title { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: -0.02em; }
.product-card__title a { color: var(--navy); text-decoration: none; }
.product-card__title a:hover { color: #086baa; text-decoration: underline; }
.product-card__model { margin: 0; font-size: 12px; color: var(--muted); }
.product-card__specs { margin: 4px 0 0; display: grid; gap: 2px; font-size: 12px; }
.product-card__specs div { display: flex; justify-content: space-between; gap: 8px; }
.product-card__specs dt { color: var(--muted); }
.product-card__specs dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.product-card__excerpt { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__compare, .product__compare { margin-top: auto; padding-top: 8px; display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.product__compare { margin-top: 10px; }
.js .product-card__compare, .js .product__compare { display: inline-flex; }
.product-card--text { border-top: 3px solid var(--blue); }

.pager--numbered { flex-wrap: wrap; gap: var(--space-3); }
.pager__pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pager__pages a, .pager__current { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; }
.pager__pages a { background: #fff; border: 1px solid #bed8eb; color: #126eb6; }
.pager__pages a:hover { filter: brightness(0.97); }
.pager__current { background: var(--blue); color: #fff; }
.pager__gap { color: var(--muted); align-self: center; padding: 0 4px; }

/* Compare bar: appears when products are ticked (script). */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy-header); color: #fff; box-shadow: 0 -6px 24px rgb(5 24 38 / 0.3); transform: translateY(110%); transition: transform 0.2s ease; }
.compare-bar.is-open { transform: none; }
.compare-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px var(--gutter); }
.compare-bar__title { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bright); margin-right: 4px; }
.compare-bar__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.compare-bar__item { display: inline-flex; align-items: center; gap: 6px; background: var(--navy-2); border: 1px solid #254a68; border-radius: 99px; padding: 4px 6px 4px 11px; font-size: 12px; font-weight: 700; }
.compare-bar__item button { border: 0; background: #fff; color: var(--navy); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }
.compare-bar__actions { display: flex; gap: 8px; }
.compare-bar .btn--alt { border-color: #4a6f8d; }
.compare-bar .is-disabled { opacity: 0.5; cursor: default; }

/* Product page */
.product__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.product__main { max-width: 44rem; min-width: 0; display: grid; gap: var(--space-8); }
.product__title { font-size: clamp(28px, 3.4vw, 42px); margin: 8px 0 14px; }
.product__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; }
.product__facts div { display: flex; gap: 6px; }
.product__facts dt { color: var(--muted); font-weight: 600; }
.product__facts dd { margin: 0; font-weight: 800; color: var(--navy); }
.product__facts a { color: #076ba9; text-decoration: none; }
.product__facts a:hover { text-decoration: underline; }
.product__section-title { font-size: 20px; margin-bottom: 12px; }
.gallery--product .gallery__slide img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 10px; max-height: 32rem; width: 100%; }
.gallery--product .gallery__thumb img { object-fit: contain; background: #fff; border: 1px solid var(--line); }

.breadcrumb ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: "\203A"; margin: 0 6px 0 2px; color: #9fb5c6; }
.breadcrumb a { color: #076ba9; text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; border-top: 1px solid #e9f0f4; text-align: left; vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { width: 40%; color: #547188; font-weight: 700; background: #f7fafc; }
.spec-table td { font-weight: 700; color: var(--navy); }
.spec-table__conversion { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.document-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.document-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.document-list a { color: #076ba9; font-weight: 700; }
.document-list small { color: var(--muted); font-size: 11px; }
.versus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.versus-list a { color: #076ba9; font-weight: 700; text-decoration: none; }
.versus-list a:hover { text-decoration: underline; }
.title--small { font-size: clamp(22px, 2.4vw, 30px); }

/* Compare page */
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 13px; }
.compare-table th, .compare-table td { padding: 10px 14px; border-top: 1px solid #e9f0f4; text-align: left; vertical-align: top; }
.compare-table thead th { background: #eaf2f7; border-top: 0; vertical-align: bottom; }
.compare-table thead th img { margin-bottom: 8px; object-fit: contain; }
.compare-table thead a { color: var(--navy); font-weight: 800; text-decoration: none; }
.compare-table thead a:hover { color: #086baa; text-decoration: underline; }
.compare-table tbody th { color: #547188; font-weight: 700; background: #f7fafc; white-space: nowrap; }
.compare-table tbody th small { font-weight: 500; color: var(--muted); }
.compare-table td { font-weight: 700; color: var(--navy); }
.compare-table__field { width: 14rem; }

/* Advanced search */
.adv-search { max-width: 60rem; }
.adv-form { padding: var(--space-6); }
.adv-form__grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 48em) { .adv-form__grid { grid-template-columns: 1fr 1fr; } .adv-form__field--wide { grid-column: 1 / -1; } }
@media (min-width: 64em) { .adv-form__grid { grid-template-columns: 1fr 1fr 1fr; } .adv-form__field--wide { grid-column: span 1; } }
.adv-form__field { display: grid; gap: 6px; min-width: 0; }
.adv-form__field label, .adv-form__range legend { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #2584c6; }
.adv-form__range { border: 0; margin: 0; padding: 0; min-width: 0; }
.adv-form__range legend { padding: 0; margin-bottom: 6px; }
.adv-form__bounds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); }
.adv-form__hint { color: var(--muted); font-size: 11px; }
.adv-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }

/* ---------- Live banners (ad server creatives) ---------- */

.ad-slot--live { background: transparent; border: 0; border-radius: 0; padding: 0; display: block; overflow: hidden; height: auto; }
.ad-slot--live a { display: block; line-height: 0; }
.ad-slot--live img { width: 100%; height: auto; display: block; }
.ad-slot--live noscript img { width: 100%; height: auto; }
.ad-stack:empty, .leaderboard:empty { display: none; }

/* Compact news cards (home, news list): 300px wide, about 250px tall, the banners' size. */
.news-grid--compact { grid-template-columns: repeat(auto-fill, 300px); justify-content: start; gap: var(--space-4); }
@media (max-width: 47.99em) { .news-grid--compact { justify-content: center; } }
.news-grid--compact .news-card__body { padding: 9px 12px 11px; gap: 3px; }
.news-grid--compact .news-card__kicker { font-size: 9px; letter-spacing: 0.1em; }
.news-grid--compact .news-card__title { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-grid--compact .news-card__meta { font-size: 10px; margin-top: 2px; }
.news-grid--compact .news-card__excerpt { font-size: 12px; -webkit-line-clamp: 5; }
.news-grid--compact .news-card--text { min-height: 250px; }
