/* ==========================================================================
   Market Hollow — design system
   Bootstrap 5.3 provides the grid and utilities; this file defines the brand.
   Sections: 1 tokens · 2 fonts · 3 base · 4 layout · 5 header · 6 buttons/forms
             7 cards · 8 home · 9 listings · 10 article · 11 product · 12 service
             13 trends · 14 misc components · 15 footer · 16 utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --mh-ink: #15181d;
    --mh-ink-2: #2c3138;
    --mh-text: #2f343b;
    --mh-muted: #5f6670;
    --mh-subtle: #6b717a;        /* AA on white and surface */
    --mh-line: #e6e3dc;
    --mh-line-2: #d9d5cc;
    --mh-paper: #ffffff;
    --mh-surface: #f7f5f0;
    --mh-surface-2: #efece4;
    --mh-accent: #1f5b46;
    --mh-accent-600: #174636;
    --mh-accent-700: #113528;
    --mh-accent-50: #e8f1ec;
    --mh-accent-100: #d3e5db;
    --mh-brass: #8f6824;          /* text-safe brass (AA on white) */
    --mh-brass-400: #a87b2d;
    --mh-brass-50: #f6efe1;
    --mh-danger: #a8322b;
    --mh-success: #1f6b3a;
    --mh-warning-50: #fff6e0;

    --mh-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --mh-font-head: "Manrope", "Inter", system-ui, sans-serif;

    --mh-radius-sm: 6px;
    --mh-radius: 10px;
    --mh-radius-lg: 16px;
    --mh-shadow-sm: 0 1px 2px rgba(21, 24, 29, .06);
    --mh-shadow: 0 2px 6px rgba(21, 24, 29, .06), 0 12px 28px -12px rgba(21, 24, 29, .14);
    --mh-measure: 720px;
    --mh-header-h: 64px;

    --bs-body-font-family: var(--mh-font-body);
    --bs-body-color: var(--mh-text);
    --bs-body-bg: var(--mh-paper);
    --bs-link-color: var(--mh-accent);
    --bs-link-color-rgb: 31, 91, 70;
    --bs-link-hover-color: var(--mh-accent-700);
    --bs-link-hover-color-rgb: 17, 53, 40;
    --bs-border-color: var(--mh-line);
    --bs-emphasis-color: var(--mh-ink);
    --bs-focus-ring-color: rgba(31, 91, 70, .35);
}

/* 2. Fonts (self-hosted, OFL) ---------------------------------------------- */
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-var-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

/* 3. Base ------------------------------------------------------------------ */
html { scroll-padding-top: calc(var(--mh-header-h) + 16px); }
body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--mh-text);
    background: var(--mh-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--mh-font-head);
    color: var(--mh-ink);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}
h1, .h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.35rem); }
h2, .h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.08rem + .35vw, 1.3rem); }
h4, .h4 { font-size: 1.1rem; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--mh-accent-100); color: var(--mh-ink); }
:focus-visible { outline: 2px solid var(--mh-accent); outline-offset: 2px; border-radius: 3px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--mh-ink); color: #fff; padding: 10px 16px; border-radius: var(--mh-radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* 4. Layout ---------------------------------------------------------------- */
.container { --bs-gutter-x: 2rem; max-width: 1240px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-surface { background: var(--mh-surface); }
.section + .section:not(.section-surface) { padding-top: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--mh-muted); max-width: 60ch; }
.section-link { font-weight: 600; white-space: nowrap; text-decoration: none; font-size: .95rem; }
.section-link:hover { text-decoration: underline; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-accent); margin-bottom: 8px; }
.lead-text { font-size: 1.125rem; color: var(--mh-muted); line-height: 1.65; }
.page-head { padding: 40px 0 28px; border-bottom: 1px solid var(--mh-line); background: var(--mh-surface); }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead-text { max-width: 70ch; margin: 0; }
@media (max-width: 767.98px) { .section { padding: 40px 0; } .container { --bs-gutter-x: 2rem; } }

/* 5. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--mh-line); backdrop-filter: saturate(1.2) blur(6px); }
.header-main { display: flex; align-items: center; gap: 24px; min-height: var(--mh-header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mh-ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; color: var(--mh-ink); }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-family: var(--mh-font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { color: var(--mh-accent); }
.header-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.header-search .form-control { padding-left: 40px; height: 42px; border-radius: 999px; background: var(--mh-surface); border-color: transparent; font-size: .95rem; }
.header-search .form-control:focus { background: #fff; border-color: var(--mh-accent); box-shadow: 0 0 0 3px var(--mh-accent-50); }
.header-search .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); pointer-events: none; }
.header-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.header-links a { display: block; padding: 8px 12px; font-weight: 600; font-size: .94rem; color: var(--mh-ink-2); text-decoration: none; border-radius: var(--mh-radius-sm); }
.header-links a:hover, .header-links a[aria-current="page"] { color: var(--mh-accent); background: var(--mh-accent-50); }
.header-actions { display: none; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--mh-ink); border-radius: var(--mh-radius-sm); font-size: 1.3rem; text-decoration: none; }
.icon-btn:hover { background: var(--mh-surface); color: var(--mh-ink); }

.cat-nav { border-top: 1px solid var(--mh-line); }
.cat-nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.cat-item { position: relative; }
.cat-link { display: flex; align-items: center; gap: 5px; padding: 11px 12px; font-size: .9rem; font-weight: 600; color: var(--mh-ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-link .bi-chevron-down { font-size: .65rem; opacity: .6; transition: transform .15s; }
.cat-link:hover, .cat-item:focus-within > .cat-link, .cat-link.active { color: var(--mh-accent); border-bottom-color: var(--mh-accent); text-decoration: none; }
.cat-drop { position: absolute; top: 100%; left: 0; z-index: 1040; min-width: 300px; padding: 18px; background: #fff; border: 1px solid var(--mh-line); border-radius: 0 0 var(--mh-radius) var(--mh-radius); box-shadow: var(--mh-shadow); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility .12s; }
.cat-item:last-child .cat-drop { left: auto; right: 0; }
.cat-item:hover > .cat-drop, .cat-item:focus-within > .cat-drop { opacity: 1; visibility: visible; transform: none; }
.cat-item:hover .bi-chevron-down { transform: rotate(180deg); }
.cat-drop p { font-size: .88rem; color: var(--mh-muted); margin: 0 0 12px; line-height: 1.5; }
.cat-drop ul { list-style: none; margin: 0 0 12px; padding: 0; }
.cat-drop li a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: var(--mh-radius-sm); color: var(--mh-ink-2); text-decoration: none; font-size: .93rem; }
.cat-drop li a:hover { background: var(--mh-surface); color: var(--mh-accent); }
.cat-drop .cat-all { font-weight: 600; font-size: .9rem; text-decoration: none; }
.cat-drop-wide { min-width: 560px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-drop-wide h3 { font-size: .92rem; margin: 0 0 6px; }
.cat-drop-wide h3 a { color: var(--mh-ink); text-decoration: none; }
.cat-drop-wide h3 a:hover { color: var(--mh-accent); }
.cat-drop-wide ul { margin: 0; }
.cat-drop-wide li a { font-size: .87rem; padding: 4px 8px; }

@media (max-width: 991.98px) {
    .header-search, .header-links, .cat-nav { display: none; }
    .header-actions { display: flex; }
    :root { --mh-header-h: 60px; }
}

.offcanvas-nav { --bs-offcanvas-width: min(88vw, 380px); }
.offcanvas-nav .offcanvas-header { border-bottom: 1px solid var(--mh-line); }
.offcanvas-nav .header-search { display: block; max-width: none; margin: 0 0 16px; }
.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav > li { border-bottom: 1px solid var(--mh-line); }
.mobile-nav a, .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; color: var(--mh-ink); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .bi { transition: transform .15s; font-size: .8rem; }
.mobile-nav details[open] summary .bi { transform: rotate(180deg); }
.mobile-nav details ul { list-style: none; padding: 0 0 10px 12px; margin: 0; }
.mobile-nav details li a { padding: 8px 2px; font-weight: 500; color: var(--mh-ink-2); }
.mobile-nav-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-muted); font-weight: 700; margin: 20px 0 4px; }

/* 6. Buttons and forms ----------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .62rem; --bs-btn-padding-x: 1.15rem; --bs-btn-border-radius: var(--mh-radius-sm); --bs-btn-font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .8rem; --bs-btn-font-size: .87rem; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1.02rem; }
.btn-primary { --bs-btn-bg: var(--mh-accent); --bs-btn-border-color: var(--mh-accent); --bs-btn-hover-bg: var(--mh-accent-600); --bs-btn-hover-border-color: var(--mh-accent-600); --bs-btn-active-bg: var(--mh-accent-700); --bs-btn-active-border-color: var(--mh-accent-700); --bs-btn-disabled-bg: var(--mh-accent); --bs-btn-disabled-border-color: var(--mh-accent); }
.btn-dark { --bs-btn-bg: var(--mh-ink); --bs-btn-border-color: var(--mh-ink); --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; }
.btn-outline { --bs-btn-color: var(--mh-ink); --bs-btn-border-color: var(--mh-line-2); --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--mh-surface); --bs-btn-hover-border-color: var(--mh-ink); --bs-btn-hover-color: var(--mh-ink); --bs-btn-active-bg: var(--mh-surface-2); }
.btn-link-plain { padding: 0; background: none; border: 0; color: var(--mh-accent); font-weight: 600; text-decoration: none; }
.btn-buy { --bs-btn-bg: var(--mh-brass); --bs-btn-border-color: var(--mh-brass); --bs-btn-color: #fff; --bs-btn-hover-bg: #7a5820; --bs-btn-hover-border-color: #7a5820; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #6f5019; --bs-btn-active-color: #fff; }
.form-label { font-weight: 600; font-size: .92rem; color: var(--mh-ink-2); margin-bottom: 6px; }
.form-control, .form-select { border-color: var(--mh-line-2); border-radius: var(--mh-radius-sm); padding: .62rem .85rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--mh-accent); box-shadow: 0 0 0 3px var(--mh-accent-50); }
.form-text { color: var(--mh-muted); font-size: .85rem; }
.form-check-input:checked { background-color: var(--mh-accent); border-color: var(--mh-accent); }
.req { color: var(--mh-danger); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--mh-line); border-radius: var(--mh-radius-sm); width: 180px; height: 56px; }
.captcha-row .form-control { max-width: 160px; text-transform: uppercase; letter-spacing: .15em; }
.form-panel { background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); padding: 28px; box-shadow: var(--mh-shadow-sm); }
.form-success { text-align: center; padding: 36px 20px; }
.form-success .bi { font-size: 2.6rem; color: var(--mh-success); }
.form-success .reference { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--mh-surface); padding: 4px 10px; border-radius: var(--mh-radius-sm); font-weight: 600; }
@media (max-width: 575.98px) { .form-panel { padding: 20px; } }

/* 7. Cards ----------------------------------------------------------------- */
.card-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.a-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.a-card .media { display: block; border-radius: var(--mh-radius); overflow: hidden; background: var(--mh-surface); aspect-ratio: 16 / 9; }
.a-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.a-card:hover .media img { transform: scale(1.025); }
.a-card .media .img-placeholder { height: 100%; aspect-ratio: auto; }
.a-card-title { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.a-card-title a { color: var(--mh-ink); text-decoration: none; }
.a-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.a-card:hover .a-card-title a { color: var(--mh-accent); }
.a-card-excerpt { color: var(--mh-muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-card .chip, .a-card .meta a { position: relative; z-index: 2; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .84rem; color: var(--mh-muted); }
.meta > * + *::before { content: "·"; margin-right: 10px; color: var(--mh-subtle); }
.meta a { color: var(--mh-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mh-accent); text-decoration: none; }
.chip:hover { color: var(--mh-accent-700); text-decoration: underline; }
.chip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge-soft { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--mh-surface-2); color: var(--mh-ink-2); }
.badge-sample { background: var(--mh-warning-50); color: #7a5600; border: 1px dashed #d9b45a; }
.badge-sponsored { background: var(--mh-brass-50); color: var(--mh-brass); }
.badge-lifecycle-emerging { background: var(--mh-accent-50); color: var(--mh-accent-700); }
.badge-lifecycle-active { background: #e7eefb; color: #1d4a8f; }
.badge-lifecycle-cooling { background: var(--mh-surface-2); color: var(--mh-muted); }

.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.p-card:hover { border-color: var(--mh-line-2); box-shadow: var(--mh-shadow); }
.p-card .media { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--mh-line); }
.p-card .media img { max-height: 100%; width: auto; object-fit: contain; }
.p-card .media .img-placeholder { width: 100%; height: 100%; aspect-ratio: auto; }
.p-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card-brand { font-size: .78rem; font-weight: 700; color: var(--mh-muted); letter-spacing: .04em; text-transform: uppercase; }
.p-card-title { font-size: 1.04rem; margin: 0; line-height: 1.35; }
.p-card-title a { color: var(--mh-ink); text-decoration: none; }
.p-card-title a::after { content: ""; position: absolute; inset: 0; }
.p-card-desc { font-size: .9rem; color: var(--mh-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-family: var(--mh-font-head); font-weight: 800; color: var(--mh-ink); font-size: 1.12rem; }
.price-old { color: var(--mh-muted); text-decoration: line-through; font-size: .88rem; font-weight: 500; margin-left: 6px; }
.price-note { display: block; font-size: .75rem; color: var(--mh-subtle); font-weight: 400; font-family: var(--mh-font-body); }
.p-card .view-link { font-size: .88rem; font-weight: 600; color: var(--mh-accent); white-space: nowrap; }
.p-card .badge-row { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }

.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--mh-muted); }
.stars { display: inline-flex; gap: 1px; color: var(--mh-brass-400); font-size: .9rem; }
.stars .bi-star { color: var(--mh-line-2); }

.s-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); padding: 24px; transition: border-color .15s, box-shadow .15s; height: 100%; }
.s-card:hover { border-color: var(--mh-accent-100); box-shadow: var(--mh-shadow); }
.s-card-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--mh-accent-50); color: var(--mh-accent); border-radius: var(--mh-radius); font-size: 1.3rem; }
.s-card h3 { font-size: 1.12rem; margin: 0; }
.s-card h3 a { color: var(--mh-ink); text-decoration: none; }
.s-card h3 a::after { content: ""; position: absolute; inset: 0; }
.s-card p { margin: 0; color: var(--mh-muted); font-size: .95rem; }
.s-card .s-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.s-card .s-card-price { color: var(--mh-ink-2); font-weight: 600; }

.t-card { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--mh-line); }
.t-card:first-child { padding-top: 0; }
.t-card .media { border-radius: var(--mh-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mh-surface); }
.t-card .media img { width: 100%; height: 100%; object-fit: cover; }
.t-card .media .img-placeholder { height: 100%; aspect-ratio: auto; }
.t-card h3 { font-size: 1.02rem; margin: 4px 0 6px; line-height: 1.35; }
.t-card h3 a { color: var(--mh-ink); text-decoration: none; }
.t-card h3 a::after { content: ""; position: absolute; inset: 0; }
.t-card:hover h3 a { color: var(--mh-accent); }
.t-card p { margin: 0; font-size: .9rem; color: var(--mh-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.c-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; height: 100%; }
.c-card .media { aspect-ratio: 16/9; background: var(--mh-surface); }
.c-card .media img { width: 100%; height: 100%; object-fit: cover; }
.c-card .media .img-placeholder { height: 100%; aspect-ratio: auto; }
.c-card-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.c-card h3 { font-size: 1.05rem; margin: 0; }
.c-card h3 a { color: var(--mh-ink); text-decoration: none; }
.c-card h3 a::after { content: ""; position: absolute; inset: 0; }

.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; background: linear-gradient(135deg, var(--mh-surface) 0%, var(--mh-surface-2) 100%); color: var(--mh-subtle); font-size: .8rem; text-align: center; }
.img-placeholder .bi { font-size: 1.6rem; opacity: .55; }
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-1x1 { aspect-ratio: 1; } .ratio-3x1 { aspect-ratio: 3 / 1; } .ratio-2x1 { aspect-ratio: 2 / 1; } .ratio-4x5 { aspect-ratio: 4 / 5; }

/* 8. Home ------------------------------------------------------------------ */
.hero { padding: 48px 0 56px; background: var(--mh-surface); border-bottom: 1px solid var(--mh-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem); line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--mh-accent); }
.hero .lead-text { margin-bottom: 26px; max-width: 52ch; }
.hero-media { border-radius: var(--mh-radius-lg); overflow: hidden; aspect-ratio: 2 / 1.25; background: var(--mh-surface-2); box-shadow: var(--mh-shadow); }
.hero-media img, .hero-media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.hero-search { position: relative; max-width: 480px; margin-bottom: 18px; }
.hero-search .form-control { height: 52px; padding-left: 46px; padding-right: 110px; border-radius: 999px; border-color: var(--mh-line-2); }
.hero-search .bi-search { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); }
.hero-search .btn { position: absolute; right: 5px; top: 5px; bottom: 5px; border-radius: 999px; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--mh-muted); }
.hero-topics a { padding: 5px 12px; border: 1px solid var(--mh-line-2); border-radius: 999px; background: #fff; color: var(--mh-ink-2); text-decoration: none; font-weight: 500; }
.hero-topics a:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
@media (max-width: 991.98px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 32px 0 40px; } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar .bi { flex-shrink: 0; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--mh-radius); background: var(--mh-accent-50); color: var(--mh-accent); font-size: 1.2rem; }
.pillar h3 { font-size: 1rem; margin: 2px 0 4px; }
.pillar p { margin: 0; font-size: .9rem; color: var(--mh-muted); line-height: 1.55; }
@media (max-width: 991.98px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .pillars { grid-template-columns: 1fr; } }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--mh-accent-100); box-shadow: var(--mh-shadow); }
.cat-tile .media { aspect-ratio: 4 / 3; background: var(--mh-surface); }
.cat-tile .media img, .cat-tile .media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.cat-tile-body { padding: 14px 16px 16px; }
.cat-tile h3 { font-size: 1.02rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.cat-tile h3 .bi { color: var(--mh-accent); }
.cat-tile h3 a { color: var(--mh-ink); text-decoration: none; }
.cat-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-tile p { margin: 0; font-size: .85rem; color: var(--mh-muted); }
@media (max-width: 991.98px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .cat-grid { gap: 14px; } .cat-tile-body { padding: 12px; } .cat-tile p { display: none; } }

.lead-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.lead-story .a-card-lg .a-card-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.lead-story .a-card-lg .a-card-excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.lead-side { display: flex; flex-direction: column; gap: 24px; }
.lead-side .a-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.lead-side .a-card .a-card-title { font-size: 1.02rem; }
.lead-side .a-card .a-card-excerpt { -webkit-line-clamp: 2; font-size: .9rem; }
@media (max-width: 991.98px) { .lead-story { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .lead-side .a-card { grid-template-columns: 110px 1fr; } .lead-side .a-card .a-card-excerpt { display: none; } }

.list-links { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.list-links li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--mh-line); counter-increment: rank; }
.list-links li::before { content: counter(rank, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--mh-font-head); font-weight: 800; color: var(--mh-accent-100); font-size: 1.35rem; line-height: 1; }
.list-links a { font-family: var(--mh-font-head); font-weight: 700; color: var(--mh-ink); text-decoration: none; line-height: 1.35; }
.list-links a:hover { color: var(--mh-accent); }
.list-links .meta { margin-top: 4px; }

.reco-list { display: grid; gap: 12px; }
.reco-item { position: relative; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); }
.reco-item .media { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.reco-item .media img { max-height: 72px; width: auto; object-fit: contain; }
.reco-item .media .img-placeholder { height: 72px; aspect-ratio: auto; border-radius: var(--mh-radius-sm); }
.reco-item h3 { font-size: .98rem; margin: 0; }
.reco-item h3 a { color: var(--mh-ink); text-decoration: none; }
.reco-item h3 a::after { content: ""; position: absolute; inset: 0; }
.reco-item p { margin: 2px 0 0; font-size: .85rem; color: var(--mh-muted); }

.newsletter-band { background: var(--mh-ink); color: #d7dae0; border-radius: var(--mh-radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter-band h2 { color: #fff; margin: 0 0 8px; }
.newsletter-band p { margin: 0; color: #b7bcc4; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form .form-control { flex: 1 1 220px; height: 48px; border-color: transparent; }
.newsletter-form .btn { height: 48px; }
.newsletter-band .form-text, .newsletter-band .form-text a { color: #9aa0a8; }
.newsletter-msg { width: 100%; font-size: .9rem; margin-top: 6px; }
@media (max-width: 767.98px) { .newsletter-band { grid-template-columns: 1fr; padding: 28px 22px; } }

/* 9. Listings -------------------------------------------------------------- */
.breadcrumb-nav { padding: 14px 0 0; }
.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-margin-bottom: 0; font-size: .85rem; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a { color: var(--mh-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--mh-accent); text-decoration: underline; }
.breadcrumb-item.active { color: var(--mh-ink-2); overflow: hidden; text-overflow: ellipsis; }
.cat-banner { position: relative; border-radius: var(--mh-radius-lg); overflow: hidden; aspect-ratio: 3 / 1; background: var(--mh-surface-2); margin-top: 20px; }
.cat-banner img, .cat-banner .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (max-width: 575.98px) { .cat-banner { aspect-ratio: 2 / 1; } }
.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.subcat-row a { padding: 7px 14px; border: 1px solid var(--mh-line-2); border-radius: 999px; background: #fff; color: var(--mh-ink-2); font-size: .9rem; font-weight: 500; text-decoration: none; }
.subcat-row a:hover, .subcat-row a.active { border-color: var(--mh-accent); color: var(--mh-accent); background: var(--mh-accent-50); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; margin-bottom: 24px; border-bottom: 1px solid var(--mh-line); }
.filter-bar .form-select { width: auto; min-width: 180px; font-size: .92rem; padding-top: .45rem; padding-bottom: .45rem; }
.filter-bar .result-count { color: var(--mh-muted); font-size: .9rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tab-links { display: flex; gap: 4px; flex-wrap: wrap; }
.tab-links a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--mh-ink-2); text-decoration: none; }
.tab-links a:hover { background: var(--mh-surface); }
.tab-links a.active { background: var(--mh-ink); color: #fff; }
.pagination-nav { margin-top: 40px; display: flex; justify-content: center; }
.pagination { --bs-pagination-color: var(--mh-ink-2); --bs-pagination-hover-color: var(--mh-accent); --bs-pagination-active-bg: var(--mh-ink); --bs-pagination-active-border-color: var(--mh-ink); --bs-pagination-border-color: var(--mh-line); --bs-pagination-focus-box-shadow: 0 0 0 3px var(--mh-accent-50); gap: 4px; }
.pagination .page-link { border-radius: var(--mh-radius-sm) !important; min-width: 40px; text-align: center; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--mh-line-2); border-radius: var(--mh-radius-lg); background: var(--mh-surface); }
.empty-state .bi { font-size: 2rem; color: var(--mh-subtle); }
.empty-state h2 { font-size: 1.25rem; margin: 12px 0 8px; }
.empty-state p { color: var(--mh-muted); max-width: 52ch; margin: 0 auto; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.listing-layout-left { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
@media (max-width: 991.98px) { .listing-layout, .listing-layout-left { grid-template-columns: 1fr; gap: 32px; } .listing-layout-left > aside { order: 2; } }
.side-box { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 20px; background: #fff; }
.side-box + .side-box { margin-top: 20px; }
.side-box h2 { font-size: 1rem; margin: 0 0 12px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--mh-line); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--mh-ink-2); text-decoration: none; font-size: .93rem; }
.side-list a:hover, .side-list a.active { color: var(--mh-accent); }
.side-list .count { color: var(--mh-subtle); font-size: .85rem; }

/* 10. Article -------------------------------------------------------------- */
.article-head { padding: 28px 0 8px; }
.article-head-inner { max-width: 860px; }
.article-head h1 { font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.5rem); line-height: 1.18; letter-spacing: -0.022em; margin: 10px 0 14px; }
.article-subtitle { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); color: var(--mh-muted); line-height: 1.6; margin: 0 0 22px; max-width: 70ch; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--mh-line); border-bottom: 1px solid var(--mh-line); }
.byline-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--mh-accent-50); color: var(--mh-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--mh-font-head); flex-shrink: 0; }
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-weight: 600; color: var(--mh-ink); font-size: .95rem; text-decoration: none; }
.byline .meta { font-size: .85rem; }
.byline-share { margin-left: auto; }
.article-hero { margin: 28px 0 0; }
.article-hero .media { border-radius: var(--mh-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mh-surface); }
.article-hero .media img, .article-hero .media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.article-hero figcaption, .prose figcaption { font-size: .85rem; color: var(--mh-muted); margin-top: 10px; line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--mh-measure)) minmax(0, 300px); justify-content: space-between; gap: 56px; padding: 36px 0 56px; }
.article-main { min-width: 0; }
.article-aside { position: relative; }
.article-aside-sticky { position: sticky; top: calc(var(--mh-header-h) + 52px); display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1099.98px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; justify-content: center; } .article-layout > * { max-width: var(--mh-measure); width: 100%; margin: 0 auto; } .article-aside-sticky { position: static; } }

.toc { border-left: 2px solid var(--mh-line); padding-left: 16px; }
.toc-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 5px 0; font-size: .9rem; color: var(--mh-ink-2); text-decoration: none; line-height: 1.4; }
.toc li.lvl-3 a { padding-left: 14px; font-size: .86rem; color: var(--mh-muted); }
.toc li a:hover, .toc li a.active { color: var(--mh-accent); }
.toc li a.active { font-weight: 600; }
.toc-mobile { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 0 16px; margin-bottom: 28px; background: var(--mh-surface); }
.toc-mobile summary { padding: 13px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary .bi { transform: rotate(180deg); }
.toc-mobile .toc { border: 0; padding: 0 0 12px; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }
@media (max-width: 1099.98px) { .aside-toc { display: none; } }

/* Prose: the reading experience */
.prose { font-size: 1.125rem; line-height: 1.72; color: var(--mh-text); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.4rem, 1.25rem + .55vw, 1.62rem); margin-top: 2.1em; margin-bottom: -.25em; }
.prose h3 { font-size: clamp(1.18rem, 1.1rem + .3vw, 1.3rem); margin-top: 1.8em; margin-bottom: -.35em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.6em; margin-bottom: -.45em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--mh-accent); font-weight: 500; }
.prose strong { color: var(--mh-ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--mh-accent); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--mh-accent); font-size: 1.15rem; color: var(--mh-ink-2); font-style: italic; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--mh-radius); display: block; width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--mh-line); margin: 2.2em 0; opacity: 1; }
.prose code { font-size: .88em; background: var(--mh-surface); padding: 2px 6px; border-radius: 4px; color: var(--mh-ink-2); }
.prose pre { background: var(--mh-ink); color: #e6e8eb; padding: 18px; border-radius: var(--mh-radius); font-size: .9rem; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); -webkit-overflow-scrolling: touch; }
.prose table, .spec-table, .compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose table caption { caption-side: top; padding: 12px 14px 0; font-size: .85rem; color: var(--mh-muted); text-align: left; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--mh-line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--mh-surface); font-family: var(--mh-font-head); font-weight: 700; color: var(--mh-ink); font-size: .9rem; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.callout { padding: 18px 20px; border-radius: var(--mh-radius); background: var(--mh-surface); border-left: 4px solid var(--mh-subtle); font-size: 1.02rem; }
.callout > * + * { margin-top: .6em; }
.callout-title { font-family: var(--mh-font-head); font-weight: 700; color: var(--mh-ink); }
.callout-tip { background: var(--mh-accent-50); border-left-color: var(--mh-accent); }
.callout-key { background: var(--mh-brass-50); border-left-color: var(--mh-brass-400); }
.callout-warning { background: #fdf0ee; border-left-color: var(--mh-danger); }
@media (max-width: 575.98px) { .prose { font-size: 1.0625rem; line-height: 1.7; } }

.disclosure { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--mh-radius); background: var(--mh-brass-50); color: #5b4518; font-size: .88rem; line-height: 1.5; }
.disclosure .bi { flex-shrink: 0; margin-top: 1px; }
.disclosure a { color: #5b4518; font-weight: 600; }
.sample-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--mh-radius); background: var(--mh-warning-50); border: 1px dashed #d9b45a; color: #6b4c00; font-size: .88rem; margin-bottom: 20px; }

/* Product and service blocks inside articles */
.inline-product { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); background: #fff; box-shadow: var(--mh-shadow-sm); font-size: 1rem; line-height: 1.55; margin: 1.8em 0 !important; }
.inline-product .media { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.inline-product .media img { max-height: 140px; width: auto; object-fit: contain; border-radius: 0; }
.inline-product .media .img-placeholder { height: 100%; aspect-ratio: auto; border-radius: var(--mh-radius-sm); }
.inline-product .label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-muted); }
.inline-product h3 { font-size: 1.12rem; margin: 4px 0 6px !important; }
.inline-product h3 a { color: var(--mh-ink); text-decoration: none; }
.inline-product p { margin: 0 0 12px !important; color: var(--mh-muted); font-size: .95rem; }
.inline-product .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-product .actions .btn { text-decoration: none; }
.inline-product .actions .price { margin-right: 6px; }
@media (max-width: 575.98px) { .inline-product { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; } .inline-product .media img { max-height: 88px; } }
.inline-service { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--mh-radius); background: var(--mh-accent-50); border: 1px solid var(--mh-accent-100); font-size: 1rem; margin: 1.8em 0 !important; }
.inline-service .bi-main { font-size: 1.5rem; color: var(--mh-accent); }
.inline-service .label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-accent-700); }
.inline-service h3 { font-size: 1.1rem; margin: 2px 0 6px !important; }
.inline-service p { margin: 0 0 10px !important; color: var(--mh-ink-2); font-size: .95rem; }
.inline-service a.btn { text-decoration: none; }

.article-footer { margin-top: 44px; display: flex; flex-direction: column; gap: 28px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 5px 12px; background: var(--mh-surface); border-radius: 999px; font-size: .85rem; color: var(--mh-ink-2); text-decoration: none; }
.tag-list a:hover { background: var(--mh-accent-50); color: var(--mh-accent); }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-label { font-size: .85rem; font-weight: 600; color: var(--mh-muted); margin-right: 4px; }
.share a, .share button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mh-line); border-radius: 50%; color: var(--mh-ink-2); background: #fff; text-decoration: none; font-size: .95rem; }
.share a:hover, .share button:hover { border-color: var(--mh-accent); color: var(--mh-accent); }
.author-box .section-link { white-space: normal; }
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 22px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); background: var(--mh-surface); }
.author-box .byline-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.author-box h2 { font-size: 1.05rem; margin: 0 0 2px; }
.author-box .role { font-size: .88rem; color: var(--mh-muted); margin: 0 0 8px; }
.author-box p { font-size: .95rem; margin: 0 0 8px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prev-next a { display: block; padding: 16px 18px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); text-decoration: none; color: var(--mh-ink); }
.prev-next a:hover { border-color: var(--mh-accent); }
.prev-next small { display: block; color: var(--mh-muted); font-size: .8rem; margin-bottom: 4px; }
.prev-next strong { font-family: var(--mh-font-head); font-size: .98rem; line-height: 1.35; display: block; }
.prev-next .next { text-align: right; grid-column: 2; }
@media (max-width: 575.98px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { grid-column: 1; } }
.related-block h2 { font-size: 1.3rem; margin-bottom: 18px; }
.aside-card { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 18px; background: #fff; }
.aside-card h2 { font-size: .95rem; margin: 0 0 12px; }
.aside-mini { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--mh-line); }
.aside-mini:first-of-type { border-top: 0; padding-top: 0; }
.aside-mini .media { width: 56px; height: 56px; border-radius: var(--mh-radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
.aside-mini .media img { max-height: 56px; width: auto; object-fit: contain; }
.aside-mini .media .img-placeholder { height: 56px; aspect-ratio: auto; }
.aside-mini a { font-size: .9rem; font-weight: 600; color: var(--mh-ink); text-decoration: none; line-height: 1.35; }
.aside-mini a::after { content: ""; position: absolute; inset: 0; }
.aside-mini small { display: block; color: var(--mh-muted); font-size: .8rem; }

/* 11. Product -------------------------------------------------------------- */
.product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 24px 0 48px; }
@media (max-width: 991.98px) { .product-top { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 24px; }
.gallery-main .img-placeholder { height: 100%; aspect-ratio: auto; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mh-line); background: rgba(255,255,255,.95); display: inline-flex; align-items: center; justify-content: center; color: var(--mh-ink); }
.gallery-zoom:hover { border-color: var(--mh-ink); }
.gallery-open { position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-in; z-index: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 76px; height: 76px; padding: 6px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-sm); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumb[aria-current="true"] { border-color: var(--mh-accent); box-shadow: 0 0 0 2px var(--mh-accent-100); }
.gallery-thumb:hover { border-color: var(--mh-line-2); }
.gallery-count { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: .78rem; background: rgba(255,255,255,.95); border: 1px solid var(--mh-line); padding: 3px 9px; border-radius: 999px; color: var(--mh-muted); }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(13, 15, 18, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: var(--mh-radius); }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #c8ccd2; font-size: .85rem; }

.product-info h1 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); margin: 6px 0 10px; }
.product-info .brand-line { font-size: .88rem; color: var(--mh-muted); }
.product-info .brand-line a { color: var(--mh-muted); }
.product-summary { font-size: 1.05rem; color: var(--mh-ink-2); margin: 16px 0; }
.buy-box { border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); padding: 22px; margin-top: 22px; background: var(--mh-surface); }
.buy-box .price { font-size: 1.7rem; }
.buy-box .price-meta { font-size: .82rem; color: var(--mh-muted); margin-top: 4px; }
.availability { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; margin: 12px 0 16px; }
.availability.in_stock { color: var(--mh-success); }
.availability.out_of_stock, .availability.discontinued { color: var(--mh-danger); }
.availability.preorder { color: #1d4a8f; }
.availability.unknown { color: var(--mh-muted); font-weight: 500; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-actions .btn { width: 100%; }
.merchant-line { font-size: .84rem; color: var(--mh-muted); text-align: center; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; font-size: .97rem; }
.feature-list .bi { color: var(--mh-accent); flex-shrink: 0; margin-top: 2px; }
.product-tabs { border-bottom: 1px solid var(--mh-line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--mh-header-h); background: #fff; z-index: 10; }
.product-tabs a { padding: 14px 14px; font-weight: 600; font-size: .93rem; color: var(--mh-ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.product-tabs a:hover { color: var(--mh-accent); border-bottom-color: var(--mh-accent); }
.product-section { padding: 40px 0; border-bottom: 1px solid var(--mh-line); }
.product-section:last-child { border-bottom: 0; }
.product-section > h2 { margin-bottom: 20px; }
.product-section .prose { max-width: var(--mh-measure); }
.spec-table th, .spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--mh-line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--mh-ink-2); background: var(--mh-surface); }
.spec-table .spec-group th { background: #fff; font-family: var(--mh-font-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-accent); padding-top: 18px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons > div { border: 1px solid var(--mh-line); border-radius: var(--mh-radius); padding: 20px; }
.pros-cons h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pros-cons li { display: flex; gap: 10px; font-size: .96rem; }
.pros .bi { color: var(--mh-success); }
.cons .bi { color: var(--mh-danger); }
@media (max-width: 767.98px) { .pros-cons { grid-template-columns: 1fr; } }
.editor-take { border-left: 4px solid var(--mh-accent); padding: 16px 20px; background: var(--mh-accent-50); border-radius: 0 var(--mh-radius) var(--mh-radius) 0; }
.editor-take h3 { font-size: .95rem; margin-bottom: 6px; }
.editor-take p { margin: 0; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--mh-line); vertical-align: top; text-align: left; min-width: 150px; }
.compare-table thead th { background: #fff; vertical-align: bottom; }
.compare-table tbody th { background: var(--mh-surface); font-weight: 600; color: var(--mh-ink-2); position: sticky; left: 0; z-index: 1; min-width: 140px; }
.compare-table .cmp-head { display: flex; flex-direction: column; gap: 8px; }
.compare-table .cmp-head .media { height: 90px; display: flex; align-items: center; }
.compare-table .cmp-head .media img { max-height: 90px; width: auto; }
.compare-table .cmp-head .media .img-placeholder { height: 90px; width: 120px; aspect-ratio: auto; }
.compare-table .cmp-head a { font-family: var(--mh-font-head); font-weight: 700; color: var(--mh-ink); text-decoration: none; line-height: 1.3; }
.compare-table .cmp-label { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mh-accent-700); background: var(--mh-accent-50); border-radius: 999px; padding: 2px 8px; }
.compare-table td.muted { color: var(--mh-subtle); }

.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.review-score { text-align: center; padding: 22px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); }
.review-score .score { font-family: var(--mh-font-head); font-size: 2.6rem; font-weight: 800; color: var(--mh-ink); line-height: 1; }
.review-score .stars { font-size: 1.1rem; margin: 8px 0; }
.review-score small { color: var(--mh-muted); }
@media (max-width: 767.98px) { .review-summary { grid-template-columns: 1fr; } }
.review-list { display: grid; gap: 0; }
.review { padding: 20px 0; border-bottom: 1px solid var(--mh-line); }
.review:first-child { padding-top: 0; }
.review h3 { font-size: 1.02rem; margin: 6px 0; }
.review p { margin: 0; font-size: .97rem; white-space: pre-line; }
.review .review-meta { font-size: .84rem; color: var(--mh-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.review-reply { margin-top: 12px; padding: 12px 16px; background: var(--mh-surface); border-radius: var(--mh-radius-sm); font-size: .93rem; }
.review-reply strong { display: block; font-size: .85rem; margin-bottom: 4px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.6rem; color: var(--mh-line-2); cursor: pointer; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--mh-brass-400); }
.star-input input:focus-visible + label { outline: 2px solid var(--mh-accent); outline-offset: 2px; border-radius: 3px; }

/* 12. Service -------------------------------------------------------------- */
.service-hero { padding: 36px 0 44px; background: var(--mh-surface); border-bottom: 1px solid var(--mh-line); }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.service-hero .media { border-radius: var(--mh-radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--mh-surface-2); }
.service-hero .media img, .service-hero .media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (max-width: 991.98px) { .service-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.pricing-line { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 10px 14px; background: #fff; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); margin: 4px 0 20px; font-size: .95rem; }
.pricing-line strong { font-family: var(--mh-font-head); color: var(--mh-ink); font-size: 1.05rem; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit { padding: 22px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); }
.benefit .bi { color: var(--mh-accent); font-size: 1.3rem; }
.benefit h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.benefit p { margin: 0; font-size: .93rem; color: var(--mh-muted); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--mh-ink); color: #fff; font-family: var(--mh-font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--mh-line); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 1.05rem; margin: 7px 0 6px; }
.steps p { margin: 0; color: var(--mh-muted); }
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--mh-line); }
.faq .accordion-button { font-family: var(--mh-font-head); font-weight: 700; color: var(--mh-ink); padding: 18px 0; background: transparent; box-shadow: none; font-size: 1.02rem; }
.faq .accordion-button:not(.collapsed) { color: var(--mh-accent); }
.faq .accordion-button:focus-visible { outline: 2px solid var(--mh-accent); }
.faq .accordion-body { padding: 0 0 18px; color: var(--mh-text); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.check-list li { display: flex; gap: 10px; }
.check-list .bi { color: var(--mh-accent); margin-top: 2px; }
.enquiry-section { background: var(--mh-surface); }
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; }
@media (max-width: 991.98px) { .enquiry-grid { grid-template-columns: 1fr; gap: 24px; } }
.trust-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.trust-points li { display: flex; gap: 10px; color: var(--mh-ink-2); font-size: .95rem; }
.trust-points .bi { color: var(--mh-accent); }

/* 13. Trends --------------------------------------------------------------- */
.trend-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.trend-feature { position: relative; border: 1px solid var(--mh-line); border-radius: var(--mh-radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.trend-feature .media { aspect-ratio: 16/9; background: var(--mh-surface); }
.trend-feature .media img, .trend-feature .media .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.trend-feature .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.trend-feature h3 { font-size: 1.15rem; margin: 0; }
.trend-feature h3 a { color: var(--mh-ink); text-decoration: none; }
.trend-feature h3 a::after { content: ""; position: absolute; inset: 0; }
.trend-feature p { margin: 0; color: var(--mh-muted); font-size: .95rem; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--mh-success); }
.trend-section h2 { display: flex; align-items: center; gap: 10px; }
.trend-section h2 .bi { color: var(--mh-accent); font-size: 1.2rem; }
.source-list { list-style: none; padding: 0; margin: 0; counter-reset: src; }
.source-list li { counter-increment: src; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--mh-line); font-size: .93rem; }
.source-list li::before { content: "[" counter(src) "]"; color: var(--mh-muted); font-size: .85rem; }
.source-list a { font-weight: 600; word-break: break-word; }
.source-list small { display: block; color: var(--mh-muted); }

/* 14. Misc components ------------------------------------------------------ */
.ad-slot { margin: 32px auto; text-align: center; max-width: 100%; }
.ad-slot-label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mh-subtle); margin-bottom: 6px; }
.ad-slot-inner { background: #fafafa; border: 1px solid #eee; border-radius: var(--mh-radius-sm); overflow: hidden; }
.prose .ad-slot { margin: 2em 0 !important; }
.notice-bar { background: var(--mh-warning-50); border-bottom: 1px solid #ecd9a6; color: #6b4c00; font-size: .84rem; text-align: center; padding: 7px 16px; }
.notice-bar a { color: #6b4c00; font-weight: 600; }
.notice-preview { background: var(--mh-accent); color: #fff; border-bottom-color: var(--mh-accent); font-weight: 600; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--mh-radius-lg); background: var(--mh-accent); color: #e5efe9; }
.cta-band h2 { color: #fff; font-size: 1.35rem; margin: 0 0 4px; }
.cta-band p { margin: 0; }
.cta-band .btn { --bs-btn-bg: #fff; --bs-btn-color: var(--mh-accent-700); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--mh-accent-50); --bs-btn-hover-color: var(--mh-accent-700); --bs-btn-hover-border-color: var(--mh-accent-50); }
.search-hero { padding: 32px 0; background: var(--mh-surface); border-bottom: 1px solid var(--mh-line); }
.search-big { position: relative; max-width: 720px; }
.search-big .form-control { height: 56px; padding-left: 50px; padding-right: 120px; border-radius: 999px; font-size: 1.05rem; }
.search-big .bi-search { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--mh-muted); font-size: 1.1rem; }
.search-big .btn { position: absolute; right: 6px; top: 6px; bottom: 6px; border-radius: 999px; }
.result { position: relative; display: grid; grid-template-columns: 1fr 140px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--mh-line); }
.result .media { border-radius: var(--mh-radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--mh-surface); display: flex; align-items: center; justify-content: center; }
.result .media img { width: 100%; height: 100%; object-fit: cover; }
.result .media .img-placeholder { height: 100%; aspect-ratio: auto; }
.result h2 { font-size: 1.12rem; margin: 6px 0; }
.result h2 a { color: var(--mh-ink); text-decoration: none; }
.result h2 a::after { content: ""; position: absolute; inset: 0; }
.result:hover h2 a { color: var(--mh-accent); }
.result p { margin: 0; color: var(--mh-muted); font-size: .94rem; }
.result-type { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mh-muted); }
.result-type .bi { color: var(--mh-accent); }
@media (max-width: 575.98px) { .result { grid-template-columns: 1fr 88px; gap: 14px; } }
.page-prose { max-width: var(--mh-measure); margin: 0 auto; padding: 40px 0 64px; }
.review-flag { display: flex; gap: 10px; padding: 12px 16px; margin-bottom: 28px; background: var(--mh-warning-50); border: 1px dashed #d9b45a; border-radius: var(--mh-radius); color: #6b4c00; font-size: .9rem; }
.error-page { text-align: center; padding: 72px 0 88px; }
.error-page .code { font-family: var(--mh-font-head); font-size: 4.5rem; font-weight: 800; color: var(--mh-accent-100); line-height: 1; }
.error-page h1 { margin: 12px 0; }
.error-page p { color: var(--mh-muted); max-width: 52ch; margin: 0 auto 24px; }
.error-page .search-big { margin: 0 auto 28px; }
.sitemap-cols { columns: 3 260px; column-gap: 40px; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 28px; }
.sitemap-cols h2 { font-size: 1.05rem; margin-bottom: 10px; }
.sitemap-cols ul { list-style: none; padding: 0; margin: 0; }
.sitemap-cols li { padding: 4px 0; font-size: .93rem; }
.sitemap-cols li.sub { padding-left: 14px; font-size: .88rem; }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.author-card { position: relative; display: flex; gap: 16px; padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--mh-radius); }
.author-card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.author-card h2 a { color: var(--mh-ink); text-decoration: none; }
.author-card h2 a::after { content: ""; position: absolute; inset: 0; }
.author-card p { margin: 0; font-size: .9rem; color: var(--mh-muted); }

/* 15. Footer --------------------------------------------------------------- */
.site-footer { background: var(--mh-ink); color: #b3b8c0; margin-top: 64px; font-size: .93rem; }
.site-footer.no-gap { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 56px 0 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name span { color: #8cc7ad; }
.footer-brand p { color: #a3a9b2; max-width: 36ch; line-height: 1.6; }
.site-footer h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #c9cdd3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Links inside footer sentences stay underlined so they are not told apart by colour alone */
.site-footer p a { text-decoration: underline; text-decoration-color: rgba(201, 205, 211, .55); }
.site-footer p a:hover { text-decoration-color: currentColor; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #3a4049; }
.footer-social a:hover { border-color: #8cc7ad; text-decoration: none; }
.footer-bottom { border-top: 1px solid #2c3138; padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8a9099; }
.footer-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 991.98px) { .footer-top { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; } }

/* 16. Utilities ------------------------------------------------------------ */
.text-muted-2 { color: var(--mh-muted) !important; }
.mw-measure { max-width: var(--mh-measure); }
.divider { border: 0; border-top: 1px solid var(--mh-line); margin: 0; opacity: 1; }
.no-js .js-only { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Cookie consent banner (shown only when Google Analytics is set up) */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: var(--mh-paper); border-top: 1px solid var(--mh-line); box-shadow: 0 -8px 24px -12px rgba(21, 24, 29, .25); padding: 16px 0; }
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.consent-inner p { margin: 0; max-width: 70ch; font-size: .93rem; color: var(--mh-text); }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-actions .btn { min-width: 96px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #c9cdd3; cursor: pointer; }
.link-button:hover, .link-button:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 575.98px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

@media print { .consent-banner, .site-header, .site-footer, .article-aside, .share, .ad-slot, .newsletter-band, .product-tabs { display: none !important; } .article-layout { display: block; } }
