:root {
    --ink: #0b1523;
    --ink-soft: #4b5d72;
    --paper: #f5f8fb;
    --surface: #ffffff;
    --line: #d9e2ec;
    --navy: #071523;
    --navy-2: #10283c;
    --accent: #19bca5;
    --accent-dark: #0b7f71;
    --gold: #f3b642;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(7, 21, 35, .12);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.site-header {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-bottom: 3px solid var(--accent);
}

.header-inner,
.page-shell {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-name {
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
    font-size: 1.2rem;
}

.site-nav { display: flex; gap: 22px; }
.site-nav a { text-decoration: none; color: #d8e7ef; font-weight: 650; }
.site-nav a:hover { color: #fff; }

.public-nav-group { display: flex; align-items: center; gap: 18px; }
.affiliate-sign-in-link { padding: 8px 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 800; white-space: nowrap; }

.page-shell { padding: 58px 0 80px; }

.catalog-intro {
    max-width: 840px;
    margin-bottom: 36px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-size: .78rem;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 700px; }

.mode-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(7, 21, 35, .06);
}

.mode-card strong { display: block; }
.mode-card span { color: var(--ink-soft); }

.catalog-tools { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 26px rgba(7,21,35,.05); }
.catalog-tools form { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 12px; }
.catalog-search { margin: 0; }
.clear-filter { align-self: center; color: var(--accent-dark); font-weight: 800; }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.category-filter a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: .88rem; font-weight: 750; }
.category-filter a.active { color: #fff; border-color: var(--navy-2); background: var(--navy-2); }
.category-filter span { margin-left: 4px; opacity: .76; }
.catalog-result-count { margin: 0 0 14px; color: var(--ink-soft); font-size: .9rem; font-weight: 750; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.catalog-pagination a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent-dark); background: var(--surface); text-decoration: none; font-weight: 850; }
.catalog-pagination span { color: var(--ink-soft); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(7, 21, 35, .07);
}

.product-card.featured { border-top: 4px solid var(--accent); }
.product-card h2 { font-size: 1.42rem; margin: 12px 0; }
.product-card p { color: var(--ink-soft); }
.product-meta { font-size: .82rem; color: var(--accent-dark); font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.product-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price { font-size: 1.2rem; font-weight: 850; }
.list-price { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-decoration: line-through; }
.sale-label { display: block; margin-top: 4px; color: var(--accent-dark); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }

.button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary { color: #05231f; background: var(--accent); }
.button.primary:hover { background: #39d4bd; }
.button.secondary { color: #fff; background: var(--navy-2); }

.empty-state {
    padding: 44px;
    background: var(--surface);
    border: 1px dashed #aebdca;
    border-radius: 16px;
    text-align: center;
}

.home-copy, .content-page {
    margin-bottom: 34px;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(7,21,35,.07);
}
.home-copy h2 { margin-top: 0; font-size: clamp(1.8rem,4vw,3rem); }
.content-page-shell { width: min(920px,calc(100% - 32px)); }
.content-page h1 { max-width: 760px; }
.prose-content { margin-top: 24px; color: #27384a; font-size: 1.04rem; line-height: 1.8; }
.prose-content p:first-child { margin-top: 0; }
.prose-content p:last-child { margin-bottom: 0; }
.landing-product-grid { width: min(620px,100%); grid-template-columns: 1fr; }
.site-footer { padding: 28px 16px; color: #b9cfda; background: var(--navy); border-top: 1px solid #203749; text-align: center; }
.site-footer > div { width: min(1160px,100%); margin-inline: auto; }

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .55fr);
    gap: 36px;
    align-items: start;
}

.edition-section { margin-top: 36px; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.edition-heading h2 { margin: 4px 0 22px; font-size: clamp(1.45rem,3vw,2rem); }
.edition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.edition-card { display: flex; flex-direction: column; min-height: 142px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-decoration: none; }
.edition-card:hover { border-color: var(--accent); box-shadow: 0 10px 24px rgba(7,21,35,.08); }
.edition-card.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.edition-card span { font-weight: 850; }
.edition-card strong { margin-top: 12px; color: var(--accent-dark); font-size: 1.2rem; }
.edition-card small { margin-top: auto; padding-top: 12px; color: var(--ink-soft); }
.edition-card .list-price { margin: 0 0 4px; padding: 0; }
.bundle-section { margin-top: 48px; }
.bundle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.bundle-card { display: grid; gap: 7px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 10px 26px rgba(7,21,35,.06); }
.bundle-card span { color: var(--accent-dark); font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.bundle-card strong { font-size: 1.1rem; }
.bundle-card small { color: var(--ink-soft); }

.purchase-panel {
    position: sticky;
    top: 24px;
    padding: 26px;
    color: #fff;
    background: var(--navy);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.purchase-panel .price { font-size: 2rem; }
.purchase-panel .list-price { color: #afc3d0; font-size: .9rem; }
.purchase-panel .sale-label { color: var(--accent); font-size: .76rem; }
.purchase-panel .button { width: 100%; margin-top: 18px; }
.purchase-panel form { margin: 0; }
.muted-note { color: #afc3d0; font-size: .9rem; }

.narrow-shell { width: min(860px, calc(100% - 32px)); }
.cart-panel, .checkout-card, .order-status-card { margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(7, 21, 35, .07); }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-child { padding-top: 0; }
.cart-row h2 { margin: 4px 0 0; font-size: 1.18rem; }
.cart-actions { text-align: right; }
.cart-actions form { margin-top: 5px; }
.cart-actions .list-price { margin-bottom: 3px; }
.text-button { padding: 0; border: 0; color: var(--danger); background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.promotion-entry { margin-top: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.promotion-entry > div { display: flex; justify-content: space-between; gap: 18px; }
.promotion-entry > div span, .promotion-entry > div strong { display: block; }
.promotion-entry > form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
.promotion-entry label { margin: 0; }
.cart-totals { display: grid; gap: 10px; padding-top: 18px; }
.cart-totals > div { display: flex; justify-content: space-between; gap: 20px; }
.cart-totals .discount-line { color: var(--accent-dark); }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; font-size: 1.2rem; }
.cart-total strong { font-size: 1.5rem; }
.checkout-card h2, .order-status-card h1 { margin-top: 0; }
.checkout-form { display: grid; gap: 4px; }
.checkout-form .button { margin-top: 18px; }
.optional { color: var(--ink-soft); font-size: .82rem; font-weight: 500; }
.download-list { display: grid; gap: 12px; margin-top: 24px; }
.download-list article { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.download-list strong, .download-list span { display: block; }
.download-list span { color: var(--ink-soft); }

.installer-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(25, 188, 165, .2), transparent 32%),
        linear-gradient(145deg, #06111d, #102b3e);
}

.installer-shell {
    width: min(900px, calc(100% - 28px));
    margin-inline: auto;
    padding: 54px 0;
}

.installer-card {
    padding: clamp(26px, 5vw, 52px);
    background: rgba(255, 255, 255, .98);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #06241f;
    background: var(--accent);
    font-weight: 900;
}

.installer-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.installer-release { margin: 8px 0 0; color: var(--ink-soft); font-size: .88rem; font-weight: 750; }
.installer-preflight { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfd; }
.installer-preflight > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.installer-preflight h2 { margin: 0; font-size: 1.35rem; }
.installer-preflight > div > span { color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.installer-preflight ul { margin: 18px 0 0; padding: 0; list-style: none; }
.installer-preflight li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.installer-preflight li strong, .installer-preflight li small { display: block; }
.installer-preflight li small { color: var(--ink-soft); font-size: .82rem; font-weight: 500; }
.preflight-status { flex: 0 0 auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 850; }
.preflight-status.pass { color: #075c42; border-color: #8ad9bd; background: #dff8ec; }
.preflight-status.action { color: var(--danger); border-color: #edb4ae; background: #fff0ee; }
.installer-form .button:disabled { cursor: not-allowed; opacity: .52; }
.installer-form { display: grid; gap: 24px; margin-top: 30px; }
fieldset { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 8px; font-weight: 850; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; margin-top: 14px; font-weight: 700; }
input, select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9c7d3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9c7d3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    resize: vertical;
}
textarea:focus { outline: 3px solid rgba(25, 188, 165, .24); border-color: var(--accent-dark); }
input:focus, select:focus { outline: 3px solid rgba(25, 188, 165, .24); border-color: var(--accent-dark); }
.hint { color: var(--ink-soft); font-size: .86rem; font-weight: 500; }
.notice { margin: 22px 0; padding: 15px 17px; border-radius: 10px; background: #edf3f8; }
.notice.success { color: #075c42; background: #dff8ec; }
.notice.error { color: var(--danger); background: #fff0ee; }

.affiliate-shell { width: min(1080px, calc(100% - 32px)); }
.affiliate-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) 260px; gap: 34px; align-items: center; margin-bottom: 34px; }
.commission-card { padding: 26px; color: #fff; background: var(--navy); border-radius: 18px; box-shadow: var(--shadow); }
.commission-card span, .commission-card small, .commission-card strong { display: block; }
.commission-card span, .commission-card small { color: #b9cfda; }
.commission-card strong { margin: 4px 0; color: var(--accent); font-size: 3.2rem; line-height: 1; }
.affiliate-steps, .affiliate-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.affiliate-steps article, .affiliate-stat-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.affiliate-steps article > span { width: 34px; height: 34px; display: grid; place-items: center; color: #06241f; background: var(--accent); border-radius: 50%; font-weight: 900; }
.affiliate-steps h2, .affiliate-steps h3 { margin: 14px 0 5px; font-size: 1.35rem; }
.affiliate-steps p { margin: 0; color: var(--ink-soft); }
.affiliate-form-card { margin-top: 30px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 14px 38px rgba(7,21,35,.08); }
.affiliate-form-card h2 { margin: 0; font-size: 2rem; }
.affiliate-form { display: grid; gap: 8px; }
.affiliate-form .button { margin-top: 18px; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.check-label { grid-template-columns: 22px 1fr; align-items: start; font-weight: 550; }
.check-label input { width: 20px; min-height: 20px; margin-top: 3px; }
.affiliate-login-shell { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 5%, rgba(25,188,165,.13), transparent 34%); }
.affiliate-login-card { width: min(460px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.affiliate-login-card h1 { font-size: 2.5rem; }
.account-link { margin-top: 22px; color: var(--ink-soft); }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.referral-badge { padding: 9px 14px; color: #fff; background: var(--navy); border-radius: 999px; font-weight: 850; letter-spacing: .05em; }
.affiliate-stat-grid { grid-template-columns: repeat(4, 1fr); }
.affiliate-stat-grid span, .affiliate-stat-grid strong { display: block; }
.affiliate-stat-grid span { color: var(--ink-soft); }
.affiliate-stat-grid strong { margin-top: 4px; font-size: 1.6rem; }
.affiliate-link-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 24px 0; padding: 24px; color: #fff; background: linear-gradient(135deg, var(--navy), #113b4c); border-radius: 16px; }
.affiliate-link-card h2 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 1.05rem; color: #d9e8ef; }
.affiliate-section { margin-top: 38px; }
.affiliate-section.first-section { margin-top: 20px; }
.affiliate-section > h2 { margin-top: 0; font-size: 2rem; }
.earnings-examples { display: grid; gap: 14px; }
.earnings-examples article { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; align-items: center; padding: 19px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.earnings-examples span { font-weight: 800; }
.earnings-examples small { color: var(--ink-soft); }
.earnings-examples strong { color: var(--accent-dark); font-size: 1.15rem; text-align: right; }
.dark-note { color: var(--ink-soft); }
.affiliate-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.affiliate-actions a { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-decoration: none; }
.affiliate-actions strong, .affiliate-actions span { display: block; }
.affiliate-actions span { margin-top: 5px; color: var(--ink-soft); }
.toolkit-list { display: grid; gap: 14px; margin-top: 26px; }
.toolkit-list article { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toolkit-list strong, .toolkit-list span, .toolkit-list small { display: block; }
.toolkit-list span, .toolkit-list small { color: var(--ink-soft); }
.toolkit-list small { max-width: 720px; overflow-wrap: anywhere; }
.panel-light { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.table-wrap { overflow-x: auto; }
.panel-light table { width: 100%; border-collapse: collapse; }
.panel-light th, .panel-light td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; }
.panel-light th { color: var(--ink-soft); background: #edf3f7; font-size: .78rem; text-transform: uppercase; }
.panel-light td small { display: block; color: var(--ink-soft); }
.public-status { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #e3f5f1; font-size: .82rem; font-weight: 750; }
.negative-amount { color: var(--danger); }
.payout-cards { display: grid; gap: 10px; }
.payout-cards article { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.payout-cards span { display: block; color: var(--ink-soft); }

@media (max-width: 820px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .catalog-intro, .product-detail, .edition-grid, .bundle-grid { grid-template-columns: 1fr; }
    .purchase-panel { position: static; }
    .affiliate-hero { grid-template-columns: 1fr; }
    .affiliate-stat-grid { grid-template-columns: 1fr 1fr; }
    .affiliate-actions { grid-template-columns: 1fr; }
    .earnings-examples article { grid-template-columns: 1fr; }
    .earnings-examples strong { text-align: left; }
    .catalog-tools form { grid-template-columns: 1fr; }
    .clear-filter { justify-self: start; }
}

@media (max-width: 560px) {
    .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
    .site-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px 18px; }
    .public-nav-group { width: 100%; align-items: flex-start; flex-direction: column; }
    .page-shell { padding-top: 36px; }
    .product-grid, .form-grid.two { grid-template-columns: 1fr; }
    .product-card { min-height: 0; }
    .product-footer { align-items: flex-start; flex-direction: column; }
    .cart-row, .download-list article, .promotion-entry > div { align-items: flex-start; flex-direction: column; }
    .promotion-entry > form { width: 100%; grid-template-columns: 1fr; }
    .installer-preflight > div, .installer-preflight li { align-items: flex-start; flex-direction: column; }
    .affiliate-steps { grid-template-columns: 1fr; }
    .dashboard-heading, .affiliate-link-card, .toolkit-list article { align-items: flex-start; flex-direction: column; }
    .affiliate-stat-grid { grid-template-columns: 1fr; }
    .cart-actions { text-align: left; }
}

/* News */
.news-shell { width: min(1180px, calc(100% - 32px)); }
.news-intro { max-width: 820px; margin-bottom: 28px; }
.news-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.news-search label { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topic-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.topic-strip a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); text-decoration: none; font-size: .9rem; font-weight: 750; }
.topic-strip a.active { color: #05231f; border-color: var(--accent); background: var(--accent); }
.topic-strip span { opacity: .72; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { min-height: 330px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 12px 32px rgba(7,21,35,.07); }
.news-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.news-card h2 { margin: 16px 0 10px; font-size: 1.4rem; }
.news-card h2 a { text-decoration: none; }
.news-card p { color: var(--ink-soft); }
.news-card small { color: var(--ink-soft); }
.news-read-link { margin-top: auto; padding-top: 18px; color: var(--accent-dark); font-weight: 850; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination a { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-decoration: none; font-weight: 800; }
.pagination a.active { color: #05231f; border-color: var(--accent); background: var(--accent); }
.news-article-shell { width: min(980px, calc(100% - 32px)); }
.news-article { padding: clamp(25px, 6vw, 60px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.news-article .back-link { display: inline-block; margin-bottom: 34px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.news-article h1 { max-width: 880px; font-size: clamp(2.25rem, 6vw, 4.5rem); }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: var(--ink-soft); font-size: .9rem; }
.article-summary { max-width: 820px; margin: 30px 0; color: var(--ink); font-size: 1.3rem; line-height: 1.55; font-weight: 650; }
.article-body { padding-top: 28px; border-top: 1px solid var(--line); color: #27384a; font-size: 1.06rem; line-height: 1.8; }
.editorial-take { margin-top: 34px; padding: 24px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: #eef9f7; }
.editorial-take p:last-child { margin-bottom: 0; }
.article-source { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.article-source a { color: var(--accent-dark); font-weight: 800; }
.related-products { margin-top: 42px; }
.related-products > h2 { font-size: 2rem; }
.related-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-product-grid > article { display: flex; flex-direction: column; justify-content: space-between; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.related-product-grid h3 { margin: 0; font-size: 1.25rem; }
.related-product-grid p { color: var(--ink-soft); }
.related-product-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }

@media (max-width: 860px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .news-search, .news-grid, .related-product-grid { grid-template-columns: 1fr; }
    .news-card { min-height: 0; }
    .news-card-meta, .related-product-grid footer { align-items: flex-start; flex-direction: column; }
    .news-search .button { width: 100%; }
}

/* Customer assistance */
.help-shell { width: min(1120px, calc(100% - 32px)); }
.help-intro { max-width: 760px; margin-bottom: 28px; }
.help-intro h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr); gap: 24px; align-items: start; }
.assistant-card, .recovery-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(7, 21, 35, .07); }
.assistant-card { overflow: hidden; }
.assistant-card-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 22px 24px; color: #fff; background: var(--navy); }
.assistant-card-heading h2 { margin: 0; }
.assistant-card-heading > span { color: #b9cfda; font-size: .84rem; font-weight: 750; }
.conversation { max-height: 520px; overflow-y: auto; display: grid; gap: 12px; padding: 22px; background: #edf3f7; }
.message { max-width: 88%; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(7, 21, 35, .08); }
.message.visitor { margin-left: auto; color: #fff; background: var(--navy-2); }
.message strong { display: block; font-size: .8rem; }
.message p { margin: 4px 0 0; white-space: normal; overflow-wrap: anywhere; }
.assistant-form { display: grid; padding: 20px 22px 24px; }
.assistant-form label { margin-top: 0; }
.assistant-form .button { justify-self: start; margin-top: 14px; }
.recovery-card { position: sticky; top: 24px; padding: 24px; }
.recovery-card h2 { margin: 4px 0 10px; }
.recovery-card > p:not(.eyebrow) { color: var(--ink-soft); }
.recovery-form { display: grid; }
.recovery-form .button { width: 100%; margin-top: 18px; }
.privacy-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 !important; }

@media (max-width: 760px) {
    .help-grid { grid-template-columns: 1fr; }
    .recovery-card { position: static; }
    .message { max-width: 96%; }
}
