/* Calculators: app-style layer, scoped to main.calc-page. */
.calc-page {
    --cp-ink: #1b2a24;
    --cp-text: #4a5a53;
    --cp-muted: #6f7f78;
    --cp-line: #e2e8e4;
    --cp-line-strong: #d3dbd6;
    --cp-surface: #f6f8f7;
    --cp-green: #03875f;
    --cp-green-lip: #026447;
    --cp-bright: #12b886;
    --cp-sel-bg: #eafaf3;
    --cp-sel-border: #3fcf9b;
    --cp-sel-lip: #19b37f;
    --cp-sel-ink: #05603f;
    --cp-spring: cubic-bezier(.34, 1.56, .64, 1);
    -webkit-tap-highlight-color: transparent;
}
.calc-page :focus-visible { outline: 3px solid #7fdcb8; outline-offset: 3px; }

/* grid columns may shrink below their content, so a wide table scrolls inside
   its own overflow-x-auto box instead of pushing the whole page sideways */
.calc-page [class*="col-span"], .calc-page .grid > * { min-width: 0; }

/* ---------- Hero: breadcrumb + Pip ---------- */
.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--cp-muted); font-size: 12px; font-weight: 700; }
.cp-crumbs a { color: var(--cp-muted); text-decoration: none; }
.cp-crumbs a:hover { color: var(--cp-green); }
.cp-crumbs li[aria-current] { color: var(--cp-ink); }
.cp-crumbs i { font-size: 8px; opacity: .7; }
.cp-pip { width: 84px; margin: 0 auto 10px; animation: mmPopIn .6s var(--cp-spring) .1s backwards; }
.cp-pip .mm-mascot { width: 100%; }
@media (max-width: 639px) { .cp-pip { width: 70px; } }

/* hero lead box (definition paragraph under the H1) */
.calc-page section:first-of-type .rounded-2xl.border,
.calc-page section:first-of-type .rounded-3xl.border {
    border-width: 2px !important;
    border-color: var(--cp-line) !important;
    box-shadow: 0 4px 0 var(--cp-line) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ---------- Big cards (forms, results, content blocks) ---------- */
.calc-page [class*="rounded-3xl"][class*="shadow"]:not(a):not(button),
.calc-page [class*="rounded-[2rem]"][class*="shadow"]:not(a):not(button),
.calc-page [class*="rounded-[2.5rem]"][class*="shadow"]:not(a):not(button) {
    border-width: 2px !important;
    border-style: solid;
    border-color: var(--cp-line);
    border-radius: 26px !important;
    box-shadow: 0 5px 0 var(--cp-line) !important;
}
/* dark/coloured result panels keep their colour, get a darker lip */
.calc-page [class*="rounded-3xl"][class*="bg-gradient"][class*="shadow"],
.calc-page [class*="rounded-[2rem]"][class*="bg-gradient"][class*="shadow"],
.calc-page [class*="rounded-3xl"][class*="bg-brand-9"],
.calc-page [class*="rounded-3xl"][class*="bg-gray-900"] {
    border-color: transparent !important;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .28) !important;
}
.calc-page .rounded-2xl.shadow-sm.border:not(a):not(button) {
    border-width: 2px !important;
    border-color: var(--cp-line) !important;
    box-shadow: 0 4px 0 var(--cp-line) !important;
}

/* ---------- Inputs ---------- */
.calc-page input[type="number"],
.calc-page input[type="text"],
.calc-page input[type="time"],
.calc-page input[type="date"],
.calc-page select {
    border-width: 2px !important;
    border-style: solid !important;
    border-color: var(--cp-line) !important;
    border-radius: 14px !important;
    background-color: var(--cp-surface) !important;
    color: var(--cp-ink);
    font-size: max(16px, 1em);          /* never below 16px, or iOS zooms on focus */
    font-weight: 600;
    box-shadow: none !important;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease !important;
}
.calc-page input[type="number"]:focus,
.calc-page input[type="text"]:focus,
.calc-page input[type="time"]:focus,
.calc-page input[type="date"]:focus,
.calc-page select:focus {
    border-color: var(--cp-bright) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(18, 184, 134, .16) !important;
    outline: none;
}
.calc-page input[type="range"] { accent-color: var(--cp-bright); }
.calc-page input[type="checkbox"], .calc-page input[type="radio"] { accent-color: var(--cp-green); }

/* ---------- Choice buttons (sex, units, goals) ---------- */
.calc-page .sex-btn,
.calc-page button[class*="border-2"][class*="rounded-xl"],
.calc-page button[class*="border-2"][class*="rounded-2xl"],
.calc-page label[class*="border-2"][class*="rounded"] {
    border-color: var(--cp-line);
    box-shadow: 0 3px 0 var(--cp-line);
    transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease, border-color .15s ease, color .15s ease !important;
}
.calc-page .sex-btn:active,
.calc-page button[class*="border-2"]:active,
.calc-page label[class*="border-2"]:active { transform: translateY(3px); box-shadow: none; }
/* the scripts mark the chosen option with the brand border/background */
.calc-page .sex-btn.border-brand-500,
.calc-page button[class*="border-2"].border-brand-500,
.calc-page button[class*="border-2"].bg-brand-50,
.calc-page label[class*="border-2"].border-brand-500,
.calc-page .peer:checked + label[class*="border-2"] {
    border-color: var(--cp-sel-border) !important;
    background-color: var(--cp-sel-bg) !important;
    box-shadow: 0 3px 0 var(--cp-sel-lip) !important;
    color: var(--cp-sel-ink) !important;
}
/* metric / imperial segmented toggle */
.calc-page .unit-btn { border-radius: 10px !important; }
.calc-page .unit-btn.bg-white { box-shadow: 0 2px 0 var(--cp-line-strong) !important; color: var(--cp-sel-ink) !important; }

/* ---------- Primary actions ---------- */
.calc-page button[class*="bg-brand-600"],
.calc-page button[class*="from-brand-600"],
.calc-page a[class*="bg-brand-600"],
.calc-page a[class*="bg-[#1a4d44]"],
.calc-page a[class*="bg-brand-500"] {
    background-image: none !important;
    background-color: var(--cp-green) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 0 var(--cp-green-lip) !important;
    transform: none !important;
    transition: transform .1s ease, box-shadow .1s ease, filter .15s ease !important;
}
@media (hover: hover) {
    .calc-page button[class*="bg-brand-600"]:hover,
    .calc-page button[class*="from-brand-600"]:hover,
    .calc-page a[class*="bg-brand-600"]:hover,
    .calc-page a[class*="bg-[#1a4d44]"]:hover,
    .calc-page a[class*="bg-brand-500"]:hover { filter: brightness(1.07); }
}
.calc-page button[class*="bg-brand-600"]:active,
.calc-page button[class*="from-brand-600"]:active,
.calc-page a[class*="bg-brand-600"]:active,
.calc-page a[class*="bg-[#1a4d44]"]:active,
.calc-page a[class*="bg-brand-500"]:active { transform: translateY(4px) !important; box-shadow: 0 0 0 var(--cp-green-lip) !important; }
/* white button on a dark result panel */
.calc-page button[class*="bg-white"][class*="font-bold"][class*="w-full"],
.calc-page a[class*="bg-white"][class*="font-extrabold"][class*="w-full"] {
    border-radius: 16px !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .22) !important;
}

/* ---------- FAQ accordion ---------- */
.calc-page .group:has(> button + div[class*="group-[.active]"]) {
    border-width: 2px !important;
    border-color: var(--cp-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 4px 0 var(--cp-line) !important;
}
.calc-page .group.active:has(> button + div[class*="group-[.active]"]) {
    border-color: var(--cp-sel-border) !important;
    box-shadow: 0 4px 0 var(--cp-sel-lip) !important;
}
.calc-page .group:has(> button + div[class*="group-[.active]"]) > button:hover { background: var(--cp-surface) !important; }
.calc-page .group.active > button i { color: var(--cp-green); }

/* ---------- Hub cards (/calculators) ---------- */
.cp-hub-card {
    border: 2px solid var(--cp-line) !important;
    border-radius: 26px !important;
    box-shadow: 0 5px 0 var(--cp-line) !important;
    transition: border-color .15s ease, box-shadow .1s ease, transform .1s ease !important;
}
.cp-hub-card:hover { transform: none !important; border-color: var(--cp-sel-border) !important; box-shadow: 0 5px 0 var(--cp-sel-lip) !important; }
.cp-hub-card:active { transform: translateY(4px) !important; box-shadow: 0 1px 0 var(--cp-sel-lip) !important; }
.cp-hub-card > div:first-child { display: none; }               /* hover gradient strip */
.cp-hub-card [class*="group-hover:scale"] { transform: none !important; }
.cp-hub-go {
    align-self: flex-start;
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid var(--cp-line);
    border-radius: 12px;
    box-shadow: 0 3px 0 var(--cp-line);
    color: var(--cp-green) !important;
}
.cp-hub-card:hover .cp-hub-go { border-color: var(--cp-green); background: var(--cp-green); box-shadow: 0 3px 0 var(--cp-green-lip); color: #fff !important; }
.cp-hub-cta { box-shadow: 0 5px 0 #062e25 !important; }
.cp-hub-cta > .absolute { display: none; }                      /* blurred glows */
.cp-hub-cta-pip { width: 70px; }
.cp-hub-cta-pip .mm-mascot { width: 100%; }

/* ---------- Related calculators (shared sidebar) ---------- */
.cp-related { border: 2px solid var(--cp-line) !important; border-radius: 22px !important; box-shadow: 0 5px 0 var(--cp-line) !important; }
.cp-related a.cp-rel { border: 2px solid transparent; }
.cp-related a.cp-rel:hover { border-color: var(--cp-line); background: var(--cp-surface); }
.cp-related .cp-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid var(--cp-line);
    border-radius: 14px;
    box-shadow: 0 3px 0 var(--cp-line);
}

/* Calculator page template (includes/calculator-ui.php) */
.calc-page:has(.cp-hero) { background: var(--cp-surface); }

/* ---------- Hero: breadcrumb, pill, H1, one line. Nothing else. ---------- */
.cp-hero {
    padding: 36px 16px 4px;
    text-align: center;
    background: linear-gradient(180deg, #e3f7ee 0%, var(--cp-surface) 100%);
}
.cp-hero-in { max-width: 46rem; margin: 0 auto; }
.cp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 2px solid var(--cp-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 0 var(--cp-line);
    color: var(--cp-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.cp-hero h1 {
    margin: 0 0 10px;
    color: var(--cp-ink);
    font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.cp-tagline {
    max-width: 38rem;
    margin: 0 auto;
    color: var(--cp-text);
    font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
    line-height: 1.55;
}
@media (min-width: 768px) { .cp-hero { padding: 52px 24px 8px; } }

/* ---------- Tool ---------- */
/* the site-wide "body p.text-xl { 16px !important }" rule is meant for
   marketing copy; inside a calculator those classes are result numbers */
.calc-page .cp-tool p.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.calc-page .cp-tool p.text-xl { font-size: 1.25rem !important; line-height: 1.75rem !important; }
.calc-page .cp-tool p.text-2xl { font-size: 1.5rem !important; line-height: 2rem !important; }
.cp-tool { padding: 22px 16px 44px; }
.cp-tool-wrap { max-width: 56rem; margin: 0 auto; }
.cp-tool-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 40rem;
    margin: 18px auto 0;
    color: var(--cp-muted);
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}
.cp-tool-note i { margin-top: 3px; }
@media (min-width: 768px) { .cp-tool { padding: 28px 24px 60px; } }

/* ---------- Body: article + sidebar ---------- */
.cp-body { padding: 44px 16px 64px; border-top: 2px solid var(--cp-line); background: #fff; }
.cp-body-grid { display: grid; gap: 40px; max-width: 76rem; margin: 0 auto; }
.cp-article { min-width: 0; color: var(--cp-text); font-size: 1.0625rem; line-height: 1.75; }
.cp-article > * + * { margin-top: 3rem; }
.cp-article > .cp-answer + .cp-toc-inline { margin-top: 1.25rem; }
@media (min-width: 768px) { .cp-body { padding: 60px 24px 80px; } }
@media (min-width: 1024px) {
    .cp-body-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
    .cp-aside-sticky { position: sticky; top: 112px; }
    .cp-toc-inline { display: none; }
}
@media (max-width: 1023px) { .cp-toc-side { display: none; } }

/* one heading style for every section, whatever classes the page wrote */
.cp-h2 {
    margin: 0 0 18px !important;
    color: var(--cp-ink) !important;
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.875rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em;
    text-align: left !important;
    scroll-margin-top: 112px;
}

/* Plain semantic content in .cp-prose sections; only unclassed elements are touched. */
.cp-prose h3:not([class]) { margin: 1.75rem 0 .6rem; color: var(--cp-ink); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.cp-prose p:not([class]) { margin: 0 0 1rem; }
.cp-prose p:not([class]):last-child { margin-bottom: 0; }
.cp-prose ul:not([class]) { margin: 0 0 1rem; padding-left: 1.3rem; list-style: disc; }
.cp-prose ol:not([class]) { margin: 0 0 1rem; padding-left: 1.3rem; list-style: decimal; }
.cp-prose li:not([class]) { margin: .4rem 0; padding-left: .2rem; }
.cp-prose li:not([class])::marker { color: var(--cp-bright); font-weight: 700; }
.cp-prose a:not([class]) { color: var(--cp-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cp-prose a:not([class]):hover { color: var(--cp-green-lip); }
.cp-article strong { color: var(--cp-ink); }
.cp-table {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 2px solid var(--cp-line);
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
}
.cp-table table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.cp-table th { padding: 12px 16px; background: var(--cp-surface); color: var(--cp-muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.cp-table td { padding: 12px 16px; border-top: 1px solid var(--cp-line); vertical-align: top; }
.cp-table td:first-child { color: var(--cp-ink); font-weight: 700; }
.cp-callout {
    margin: 1.25rem 0;
    padding: 16px 18px;
    border: 2px solid #f3dca5;
    border-radius: 16px;
    background: #fff8e8;
    color: #6b4e0f;
    font-size: .975rem;
    line-height: 1.6;
}
.cp-callout strong { color: #4d3708; }
.cp-formula {
    margin: 1rem 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: #10231c;
    color: #d9f5e8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    line-height: 1.7;
    overflow-x: auto;
}
.cp-cards { display: grid; gap: 14px; margin: 1.25rem 0; }
@media (min-width: 640px) { .cp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-card { padding: 18px 20px; border: 2px solid var(--cp-line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--cp-line); }
.cp-card h3, .cp-prose .cp-card h3 { margin: 0 0 6px; color: var(--cp-ink); font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.cp-card p, .cp-prose .cp-card p { margin: 0; font-size: .95rem; line-height: 1.6; }
.cp-card h3 i { margin-right: 8px; color: var(--cp-green); }

/* ---------- Quick answer, steps ---------- */
.cp-answer {
    padding: 20px 22px;
    border: 2px solid #bdebd6;
    border-radius: 20px;
    background: var(--cp-sel-bg);
    box-shadow: 0 4px 0 #bdebd6;
}
.cp-answer-k { margin: 0 0 6px; color: var(--cp-green); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cp-answer-q { margin: 0 0 8px; color: var(--cp-ink); font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.cp-answer p:last-child { margin: 0; color: #2f4a3f; }
.cp-answer a { color: var(--cp-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cp-steps { margin: 0; padding: 0; list-style: none; counter-reset: cp-step; }
.cp-steps li { position: relative; margin: 0 0 14px; padding-left: 46px; counter-increment: cp-step; }
.cp-steps li::before {
    content: counter(cp-step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--cp-sel-bg);
    box-shadow: 0 2px 0 #bdebd6;
    color: var(--cp-green);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}
.cp-steps li:last-child { margin-bottom: 0; }

/* ---------- Table of contents ---------- */
.cp-toc ol { margin: 0; padding: 0; list-style: none; }
.cp-toc a { display: block; color: var(--cp-text); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.cp-toc-inline { border: 2px solid var(--cp-line); border-radius: 16px; background: var(--cp-surface); }
.cp-toc-inline summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; color: var(--cp-ink); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.cp-toc-inline summary::-webkit-details-marker { display: none; }
.cp-toc-inline summary::after { content: "\f078"; margin-left: auto; font-family: "Font Awesome 6 Free"; font-size: 12px; font-weight: 900; color: var(--cp-muted); transition: transform .2s ease; }
.cp-toc-inline[open] summary::after { transform: rotate(180deg); }
.cp-toc-inline ol { padding: 0 8px 10px; }
.cp-toc-inline a { padding: 9px 10px; border-radius: 10px; }
.cp-toc-inline a:hover { background: #fff; color: var(--cp-green); }
.cp-toc-side { margin-top: 20px; padding: 18px 16px 12px; border: 2px solid var(--cp-line); border-radius: 20px; background: #fff; }
.cp-toc-title { margin: 0 0 8px 8px; color: var(--cp-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cp-toc-side ol { max-height: calc(100vh - 480px); min-height: 120px; overflow-y: auto; }
.cp-toc-side a { padding: 7px 8px 7px 12px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
.cp-toc-side a:hover { background: var(--cp-surface); color: var(--cp-green); }
.cp-toc-side a.is-on { border-left-color: var(--cp-bright); background: var(--cp-sel-bg); color: var(--cp-sel-ink); }

/* ---------- Sidebar CTA ---------- */
.cp-cta {
    padding: 24px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, #064e3b 0%, #03875f 100%);
    box-shadow: 0 5px 0 #043b2d;
    color: #fff;
}
.cp-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-size: 18px; }
.cp-cta-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.cp-cta-text { margin: 0 0 18px; color: rgba(255, 255, 255, .86); font-size: 14.5px; line-height: 1.55; }
.cp-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
    color: var(--cp-green-lip);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .1s ease, box-shadow .1s ease;
}
.cp-cta-btn:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(0, 0, 0, .25); }
.cp-cta-note { margin: 12px 0 0; color: rgba(255, 255, 255, .72); font-size: 12px; text-align: center; }
.cp-cta-note a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ ---------- */
.cp-faq-list { display: grid; gap: 12px; }
.cp-faq-item { border: 2px solid var(--cp-line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--cp-line); transition: border-color .15s ease, box-shadow .15s ease; }
.cp-faq-item[open] { border-color: var(--cp-sel-border); box-shadow: 0 4px 0 var(--cp-sel-lip); }
.cp-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-item summary:hover { background: var(--cp-surface); border-radius: 16px; }
.cp-faq-item h3 { margin: 0; color: var(--cp-ink); font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.cp-faq-item summary i { flex-shrink: 0; color: var(--cp-muted); font-size: 12px; transition: transform .2s ease; }
.cp-faq-item[open] summary i { transform: rotate(180deg); color: var(--cp-green); }
.cp-faq-a { padding: 0 18px 18px; font-size: .98rem; line-height: 1.7; }
.cp-faq-a p { margin: 0; }
.cp-faq-a a { color: var(--cp-green); font-weight: 600; text-decoration: underline; }

/* ---------- Sources ---------- */
.cp-sources ol { margin: 0; padding-left: 1.3rem; list-style: decimal; font-size: .9rem; line-height: 1.6; }
.cp-sources li { margin: .4rem 0; }
.cp-sources a { color: var(--cp-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cp-sources a:hover { color: var(--cp-green); }
.cp-disclaimer { margin: 1rem 0 0; padding: 14px 16px; border-radius: 14px; background: var(--cp-surface); color: var(--cp-muted); font-size: .85rem; line-height: 1.6; }

/* ---------- Related calculators band ---------- */
.cp-related-band { padding: 48px 16px 64px; border-top: 2px solid var(--cp-line); background: var(--cp-surface); }
.cp-related-in { max-width: 76rem; margin: 0 auto; }
.cp-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.cp-related-head h2 { margin: 0; color: var(--cp-ink); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); font-weight: 800; }
.cp-related-head a { color: var(--cp-green); font-size: 14px; font-weight: 800; text-decoration: none; }
.cp-related-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .cp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cp-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cp-rel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 14px 16px;
    border: 2px solid var(--cp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 0 var(--cp-line);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .1s ease, transform .1s ease;
}
.cp-rel-card:hover { border-color: var(--cp-sel-border); box-shadow: 0 4px 0 var(--cp-sel-lip); }
.cp-rel-card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cp-sel-lip); }
.cp-rel-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cp-sel-bg); color: var(--cp-green); }
.cp-rel-copy { min-width: 0; flex: 1; }
.cp-rel-name { display: block; color: var(--cp-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.cp-rel-blurb { display: block; color: var(--cp-muted); font-size: 13px; line-height: 1.4; }
.cp-rel-go { color: var(--cp-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
    .calc-page *, .calc-page *::before, .calc-page *::after { animation: none !important; transition: none !important; }
}
