:root {
    --paper: #f7f5ee;
    --paper-deep: #ede9dc;
    --ink: #09201c;
    --muted: #5e6763;
    --forest: #063f33;
    --forest-soft: #0b5b49;
    --lime: #b9f20d;
    --line: rgba(9, 32, 28, 0.16);
    --line-strong: rgba(9, 32, 28, 0.3);
    --white: #fffefa;
    --danger: #a53b2c;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shell: min(1440px, calc(100% - 80px));
    --shadow: 0 18px 50px rgba(8, 34, 29, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.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;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--forest-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(247, 245, 238, 0.94);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 52px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
}

.brand-copy > span {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.brand-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-acronym {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(7, 63, 51, 0.22);
    border-radius: 999px;
    color: var(--forest-soft);
    font-size: 0.48em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
}

.brand small {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.01em;
}

.footer-brand .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-nav a {
    position: relative;
    padding: 32px 0 29px;
    font-size: 0.88rem;
    font-weight: 600;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 21px;
    height: 3px;
    border-radius: 99px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.header-search {
    width: 230px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.header-search span {
    flex: 1;
    color: var(--muted);
    text-align: left;
    font-size: 0.78rem;
}

.header-search kbd {
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    font-size: 0.68rem;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.91fr) minmax(620px, 1.25fr);
    min-height: 920px;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 76px 64px 64px 0;
    border-right: 1px solid var(--line);
}

.hero-copy h1 {
    max-width: 640px;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 5px solid var(--lime);
    font-size: clamp(4rem, 5vw, 5.9rem);
    line-height: 0.94;
    letter-spacing: -0.078em;
}

.hero-intro {
    max-width: 540px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-search {
    max-width: 550px;
    width: 100%;
    min-height: 68px;
    margin-top: 36px;
    padding: 0 0 0 20px;
    display: grid;
    grid-template-columns: auto 1fr 62px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 12px 32px rgba(9, 32, 28, 0.05);
}

.hero-search > span {
    color: var(--muted);
}

.hero-search > i:last-child {
    display: grid;
    place-items: center;
    align-self: stretch;
    color: var(--white);
    background: var(--forest);
    font-size: 1.4rem;
}

.trending-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.72rem;
}

.trending-links strong {
    color: var(--ink);
}

.trending-links a {
    border-bottom: 1px solid var(--line-strong);
}

.text-cta {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    font-size: 0.94rem;
    font-weight: 800;
}

.text-cta span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    transition: transform 180ms ease;
}

.text-cta:hover span {
    transform: translateX(4px);
}

.hero-calculator {
    padding: 48px 0 46px 42px;
}

.quick-switcher-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
}

.quick-switcher-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.15vw, 2.35rem);
    letter-spacing: -0.055em;
}

.quick-switcher-count {
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quick-tool-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 20px 0 28px;
    padding: 1px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--line-strong);
}

.quick-tool-tab {
    min-width: 0;
    min-height: 76px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 13px;
    border: 0;
    background: var(--paper);
    cursor: pointer;
    text-align: left;
    transition: color 160ms ease, background 160ms ease;
}

.quick-tool-tab:hover {
    background: var(--white);
}

.quick-tool-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline-offset: -4px;
}

.quick-tool-tab.is-active {
    color: var(--white);
    background: var(--forest);
}

.quick-tool-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 254, 250, 0.72);
    color: var(--forest);
    font-size: 1.06rem;
}

.quick-tool-tab.is-active .quick-tool-icon {
    border-color: rgba(185, 242, 13, 0.4);
    background: rgba(185, 242, 13, 0.1);
    color: var(--lime);
}

.quick-tool-tab > span:last-child {
    min-width: 0;
}

.quick-tool-tab strong,
.quick-tool-tab small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-tool-tab strong {
    font-size: 0.76rem;
    line-height: 1.25;
}

.quick-tool-tab small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.61rem;
}

.quick-tool-tab.is-active small {
    color: rgba(255, 254, 250, 0.68);
}

.preview-heading-compact {
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.preview-heading,
.result-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.preview-heading h2,
.preview-heading h3 {
    margin: 0 0 7px;
    font-size: 1.72rem;
    letter-spacing: -0.045em;
}

.preview-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    padding: 8px 12px;
    border: 1px solid rgba(6, 63, 51, 0.18);
    border-radius: 99px;
    color: var(--forest);
    background: rgba(185, 242, 13, 0.16);
    font-size: 0.7rem;
    font-weight: 800;
}

.status-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(185, 242, 13, 0.18);
}

.preview-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.preview-inputs label > span:first-child {
    display: block;
    margin-bottom: 9px;
    font-size: 0.7rem;
    font-weight: 700;
}

.input-shell {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 254, 250, 0.74);
}

.input-shell input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.input-shell span {
    color: var(--muted);
    font-size: 0.72rem;
}

.preview-results {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(320px, 1.28fr);
    gap: 30px;
    align-items: stretch;
}

.preview-totals {
    padding-right: 30px;
    border-right: 1px solid var(--line);
}

.preview-totals > span {
    color: var(--muted);
    font-size: 0.76rem;
}

.preview-totals > strong {
    display: block;
    margin: 6px 0 18px;
    font-size: clamp(1.9rem, 2.4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.preview-totals dl {
    margin: 0;
}

.preview-totals dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
}

.preview-totals dt,
.preview-totals dd {
    margin: 0;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 2px;
}

.legend-dot.invested { background: var(--forest); }
.legend-dot.returns { background: var(--lime); }

.preview-totals a {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 0.74rem;
    font-weight: 700;
}

.preview-chart {
    min-height: 245px;
    padding-top: 5px;
}

.fine-print {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
}

.popular-section {
    padding: 54px 0 72px;
}

.section-heading-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 30px;
}

.section-heading-line h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    letter-spacing: -0.05em;
}

.section-heading-line > span {
    height: 1px;
    background: var(--line);
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.popular-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 18px 24px;
    border-right: 1px solid var(--line);
    transition: background 180ms ease;
}

.popular-item:first-child { padding-left: 0; }
.popular-item:last-child { border-right: 0; padding-right: 0; }
.popular-item:hover { background: rgba(255, 254, 250, 0.6); }

.tool-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--forest);
    font-size: 1.45rem;
}

.popular-copy {
    min-width: 0;
}

.popular-copy strong,
.popular-copy small {
    display: block;
}

.popular-copy strong {
    margin-bottom: 7px;
    font-size: 0.78rem;
}

.popular-copy small {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.5;
}

.popular-item > i {
    align-self: end;
}

.directory-section {
    padding: 110px 0;
    color: var(--white);
    background: var(--forest);
}

.directory-intro {
    display: grid;
    grid-template-columns: 1.5fr 0.72fr;
    gap: 90px;
    align-items: end;
    padding-bottom: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.directory-intro .eyebrow {
    color: var(--lime);
}

.directory-intro h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.directory-intro > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.category-block {
    display: grid;
    grid-template-columns: minmax(230px, 0.55fr) 1.45fr;
    gap: 80px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.category-block header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-content: start;
}

.category-block header span {
    color: var(--lime);
    font-size: 0.7rem;
}

.category-block h3 {
    margin: 0;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.category-block header small {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.56);
}

.category-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 50px;
}

.category-tools a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.category-tools a:hover strong {
    color: var(--lime);
}

.category-tools .tool-icon {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.category-tools strong,
.category-tools small {
    display: block;
}

.category-tools strong {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.category-tools small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    line-height: 1.45;
}

.trust-section {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 100px;
    padding-top: 110px;
    padding-bottom: 110px;
}

.trust-statement h2 {
    margin: 0;
    font-size: clamp(2.6rem, 4.4vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -0.065em;
}

.trust-points {
    align-self: end;
}

.trust-points > div {
    display: grid;
    grid-template-columns: 42px minmax(150px, 0.72fr) 1fr;
    gap: 20px;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.trust-points span {
    color: var(--forest-soft);
    font-size: 0.7rem;
}

.trust-points strong {
    font-size: 0.9rem;
}

.trust-points p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.site-footer {
    color: var(--white);
    background: #061713;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 62px;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-brand .brand-acronym {
    border-color: rgba(184, 255, 45, 0.35);
    color: var(--lime);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 60px;
}

.footer-links div {
    display: grid;
    gap: 10px;
}

.footer-links strong {
    margin-bottom: 5px;
    color: var(--lime);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
}

.footer-bottom p { margin: 0; }

.search-overlay[hidden] { display: none; }

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: start center;
    padding-top: min(12vh, 120px);
}

.search-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(5, 21, 17, 0.72);
    backdrop-filter: blur(10px);
}

.search-dialog {
    position: relative;
    width: min(720px, calc(100% - 32px));
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.search-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.search-dialog h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.045em;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.search-input-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
    padding: 0 18px;
    min-height: 62px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.search-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.search-results {
    max-height: 48vh;
    margin-top: 18px;
    overflow: auto;
}

.search-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
}

.search-result strong,
.search-result small {
    display: block;
}

.search-result small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.7rem;
}

.search-empty {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

.no-scroll { overflow: hidden; }

/* Calculator pages */
.calculator-hero {
    padding-top: 34px;
    padding-bottom: 92px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.7rem;
}

.breadcrumbs i { font-size: 0.62rem; }
.breadcrumbs span { color: var(--ink); }

.calculator-title-row {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
    padding: 50px 0 38px;
}

.calculator-title-row h1 {
    max-width: 850px;
    margin: 0 0 18px;
    font-size: clamp(3rem, 5.2vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.calculator-title-row > div > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.freshness-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
}

.calculator-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 0.76fr) minmax(500px, 1.24fr);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.calculator-form {
    padding: 36px 44px 36px 0;
    border-right: 1px solid var(--line-strong);
}

.form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.form-heading > span {
    font-size: 1.05rem;
    font-weight: 800;
}

.form-heading button,
.result-actions button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
}

.field-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 26px;
}

.calculator-field--wide { grid-column: 1 / -1; }
.calculator-field[hidden] { display: none !important; }

.calculator-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.number-control {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.number-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 800;
}

.number-control span {
    color: var(--muted);
    font-size: 0.7rem;
    white-space: nowrap;
}

.select-control {
    min-height: 52px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
}

.select-control select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    appearance: none;
    color: var(--ink);
    background: transparent;
    font-weight: 800;
}

.select-control i {
    color: var(--muted);
    pointer-events: none;
}

.range-control {
    width: 100%;
    height: 4px;
    margin: 17px 0 0;
    appearance: none;
    border-radius: 99px;
    background: var(--paper-deep);
    accent-color: var(--forest);
}

.range-control::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    appearance: none;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 1px var(--forest);
    cursor: pointer;
}

.range-control::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 1px var(--forest);
    cursor: pointer;
}

.range-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.58rem;
}

.form-error {
    margin: 25px 0 0;
    color: var(--danger);
    font-size: 0.75rem;
}

.result-panel {
    min-width: 0;
    padding: 36px 0 36px 46px;
}

.result-heading p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.76rem;
}

.result-heading strong {
    display: block;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.result-chart {
    height: 270px;
    margin: 28px 0;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.result-metrics:where([data-count="4"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-metrics:where([data-count="7"], [data-count="8"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-metrics:where([data-count="5"], [data-count="6"]) div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
}

.result-metrics:where([data-count="5"], [data-count="6"]) div:nth-child(3) {
    border-right: 0;
}

.result-metrics:where([data-count="5"], [data-count="6"]) div:nth-child(4) {
    padding-left: 0;
}

.result-metrics:where([data-count="7"], [data-count="8"]) div:nth-child(n + 5) {
    border-top: 1px solid var(--line);
}

.result-metrics:where([data-count="7"], [data-count="8"]) div:nth-child(4) {
    border-right: 0;
}

.result-metrics:where([data-count="7"], [data-count="8"]) div:nth-child(5) {
    padding-left: 0;
}

.result-metrics div {
    padding: 18px 20px;
    border-right: 1px solid var(--line);
}

.result-metrics div:first-child { padding-left: 0; }
.result-metrics div:last-child { border-right: 0; }
.result-metrics dt { color: var(--muted); font-size: 0.66rem; }
.result-metrics dd { margin: 7px 0 0; font-size: 1.02rem; font-weight: 800; }

.result-actions {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.projection-section {
    margin-top: 70px;
    padding-top: 54px;
    border-top: 1px solid var(--line-strong);
}

.projection-section[hidden] { display: none; }

.projection-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 30px;
}

.projection-heading h2 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(2.4rem, 4.5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.projection-heading > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.projection-table-wrap {
    max-height: 570px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
}

.projection-table {
    width: 100%;
    min-width: 1450px;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.projection-table:not([data-show-fd-tax="true"]) .projection-fd-tax,
.projection-table:not([data-show-market-tax="true"]) .projection-market-tax {
    display: none;
}

.projection-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.projection-table th,
.projection-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    font-size: 0.7rem;
    white-space: nowrap;
}

.projection-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    color: var(--muted);
    background: var(--paper-deep);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.projection-table th:first-child {
    position: sticky;
    z-index: 1;
    left: 0;
    min-width: 110px;
    text-align: left;
    font-weight: 800;
}

.projection-table thead th:first-child { z-index: 3; background: var(--paper-deep); }
.projection-table tbody tr:last-child th,
.projection-table tbody tr:last-child td { border-bottom: 0; }
.projection-table tbody tr.has-reset th,
.projection-table tbody tr.has-reset td { background: #f2f8e5; }
.projection-table tbody tr.has-reset th { color: var(--forest-soft); }
.projection-table th small { color: var(--muted); font-size: 0.56rem; font-weight: 600; }

.projection-reset-badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 6px;
    border-radius: 99px;
    color: var(--forest);
    background: rgba(185, 242, 13, 0.42);
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
}

.breakdown-section {
    padding: 88px 0;
    color: var(--white);
    background: var(--forest);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 0.88fr;
    gap: 120px;
}

.breakdown-grid .eyebrow { color: var(--lime); }

.breakdown-grid h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.5rem, 4.2vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.assumption-copy {
    align-self: end;
}

.assumption-copy > p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.source-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 14px;
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(185, 242, 13, 0.38);
    text-underline-offset: 4px;
}

.source-link:hover { text-decoration-color: currentColor; }
.source-link:focus-visible { outline-color: var(--lime); }

.calculation-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.calculation-note i { color: var(--lime); font-size: 1.2rem; }
.calculation-note p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.74rem; line-height: 1.65; }
.updated-note { font-size: 0.68rem; }

.seo-guide-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 90px;
    padding-top: 86px;
    padding-bottom: 86px;
    border-bottom: 1px solid var(--line);
}

.seo-guide-copy h2 {
    max-width: 720px;
    margin: 12px 0 20px;
    font-size: clamp(2.2rem, 3.8vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.seo-guide-copy > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.seo-guide-details {
    align-self: end;
    border-top: 1px solid var(--line-strong);
}

.seo-guide-details article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.seo-guide-details article > i {
    color: var(--forest);
    font-size: 1.25rem;
}

.seo-guide-details h3 {
    margin: 0 0 8px;
    font-size: 0.86rem;
}

.seo-guide-details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.7;
}

.related-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.related-list a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 25px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.related-list a:first-child { padding-left: 0; }
.related-list a:last-child { border-right: 0; }
.related-list small,
.related-list strong { display: block; }
.related-list small { color: var(--muted); font-size: 0.62rem; }
.related-list strong { margin-top: 5px; font-size: 0.86rem; }

.not-found {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.not-found h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.07em;
}

.not-found p { color: var(--muted); }

.button {
    display: inline-flex;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
}

.button-dark { color: var(--white); background: var(--forest); }

@media (max-width: 1180px) {
    :root { --shell: min(100% - 48px, 1080px); }
    .header-inner { gap: 28px; }
    .site-nav { gap: 20px; }
    .header-search { width: 195px; }
    .home-hero { grid-template-columns: 0.9fr 1.1fr; }
    .hero-copy { padding-right: 38px; }
    .hero-calculator { padding-left: 34px; }
    .popular-list { grid-template-columns: repeat(3, 1fr); }
    .popular-item { border-bottom: 1px solid var(--line); }
    .popular-item:first-child { padding-left: 24px; }
    .popular-item:last-child { padding-right: 24px; }
}

@media (max-width: 960px) {
    :root { --shell: min(100% - 36px, 760px); }
    .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
    .mobile-menu-button { display: block; }
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        padding: 18px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: grid; }
    .site-nav a { padding: 11px 8px; }
    .site-nav a::after { display: none; }
    .header-search { display: none; }
    .home-hero { grid-template-columns: 1fr; }
    .hero-copy { min-height: auto; padding: 76px 0 64px; border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-copy h1 { font-size: clamp(4rem, 13vw, 6rem); }
    .hero-calculator { padding: 58px 0; }
    .popular-list { grid-template-columns: repeat(2, 1fr); }
    .directory-intro,
    .trust-section,
    .breakdown-grid { grid-template-columns: 1fr; gap: 42px; }
    .category-block { grid-template-columns: 1fr; gap: 20px; }
    .category-block header { grid-template-columns: auto 1fr auto; }
    .category-block header small { grid-column: auto; }
    .calculator-title-row { align-items: flex-start; flex-direction: column; }
    .calculator-workspace { grid-template-columns: 1fr; }
    .calculator-form { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
    .result-panel { padding-left: 0; }
    .projection-heading { grid-template-columns: 1fr; gap: 24px; }
    .seo-guide-section { grid-template-columns: 1fr; gap: 48px; }
    .related-list { grid-template-columns: 1fr; }
    .related-list a,
    .related-list a:first-child,
    .related-list a:last-child { padding-inline: 0; border-right: 0; }
}

@media (max-width: 620px) {
    :root { --shell: calc(100% - 28px); }
    .brand small { display: none; }
    .home-hero { min-height: 0; }
    .hero-copy { padding-top: 54px; }
    .hero-copy h1 { font-size: clamp(3.6rem, 18vw, 5rem); }
    .hero-intro { font-size: 0.92rem; }
    .hero-search { grid-template-columns: auto 1fr 54px; min-height: 62px; padding-left: 15px; }
    .hero-search > span { font-size: 0.78rem; }
    .quick-switcher-heading { align-items: flex-start; }
    .quick-switcher-count { padding-top: 5px; }
    .quick-tool-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-tool-tab { min-height: 70px; padding: 10px 11px; }
    .preview-heading { flex-direction: column; }
    .preview-inputs { grid-template-columns: 1fr; }
    .preview-results { grid-template-columns: 1fr; gap: 22px; }
    .preview-totals { padding-right: 0; padding-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
    .preview-chart { min-height: 220px; }
    .popular-list { grid-template-columns: 1fr; }
    .popular-item,
    .popular-item:first-child,
    .popular-item:last-child { padding: 17px 0; border-right: 0; }
    .directory-section { padding: 76px 0; }
    .directory-intro { gap: 28px; }
    .directory-intro h2 { font-size: 2.85rem; }
    .category-tools { grid-template-columns: 1fr; }
    .trust-section { padding-top: 76px; padding-bottom: 76px; }
    .trust-points > div { grid-template-columns: 30px 1fr; }
    .trust-points p { grid-column: 2; }
    .footer-main { grid-template-columns: 1fr; gap: 44px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .calculator-hero { padding-bottom: 70px; }
    .calculator-title-row { padding-top: 38px; }
    .calculator-title-row h1 { font-size: 3.3rem; }
    .field-list { grid-template-columns: 1fr; }
    .result-heading { flex-direction: column; }
    .result-metrics { grid-template-columns: 1fr; }
    .result-metrics div,
    .result-metrics div:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .result-metrics:where([data-count="5"], [data-count="6"]) div:nth-child(n + 4),
    .result-metrics:where([data-count="7"], [data-count="8"]) div:nth-child(n + 5) { border-top: 0; }
    .result-metrics div:last-child { border-bottom: 0; }
    .projection-section { margin-top: 54px; padding-top: 42px; }
    .projection-heading h2 { font-size: 2.75rem; }
    .projection-table-wrap { max-height: 480px; }
    .breakdown-section { padding: 70px 0; }
    .breakdown-grid h2 { font-size: 2.8rem; }
    .seo-guide-section { padding-top: 68px; padding-bottom: 68px; }
    .seo-guide-copy h2 { font-size: 2.5rem; }
}

@page { size: A4 landscape; margin: 9mm; }

@media print {
    .site-header,
    .site-footer,
    .search-overlay,
    .result-actions,
    .related-section,
    .range-control,
    .range-limits { display: none !important; }
    body { background: #fff; }
    .calculator-workspace { grid-template-columns: 1fr 1fr; }
    .projection-section { break-before: page; margin-top: 20px; padding-top: 0; }
    .projection-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
    .projection-heading h2 { font-size: 25px; }
    .projection-table-wrap { max-height: none; overflow: visible; border: 0; box-shadow: none; }
    .projection-table { min-width: 0; table-layout: auto; }
    .projection-table th,
    .projection-table td { padding: 5px 4px; font-size: 6.3pt; white-space: normal; }
    .projection-table thead th { position: static; font-size: 5.6pt; }
    .projection-table th:first-child { position: static; min-width: 0; }
}

/* Homepage — Open Index redesign */
.home-page .home-hero {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(650px, 1.1fr);
    min-height: 760px;
    border-bottom: 1px solid var(--line);
}

.home-page .hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 62px 58px 0;
    border-right: 1px solid var(--line);
}

.home-page .hero-copy h1 {
    max-width: 620px;
    margin: 0;
    padding-bottom: 25px;
    border-bottom: 4px solid var(--lime);
    font-size: clamp(4.5rem, 6.2vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.078em;
}

.home-page .hero-count {
    margin: 30px 0 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.home-page .hero-intro {
    max-width: 500px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.home-page .hero-search {
    max-width: 510px;
    width: 100%;
    min-height: 62px;
    margin-top: 32px;
    padding: 0 0 0 18px;
    display: grid;
    grid-template-columns: auto 1fr 60px;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    text-align: left;
    box-shadow: 0 12px 32px rgba(9, 32, 28, 0.045);
}

.home-page .hero-search > span {
    color: var(--muted);
    font-size: 0.86rem;
}

.home-page .hero-search > i:last-child {
    display: grid;
    place-items: center;
    align-self: stretch;
    color: var(--white);
    background: var(--forest);
    font-size: 1.25rem;
}

.home-page .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 29px;
}

.home-page .hero-proof > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 9px;
    align-items: start;
}

.home-page .hero-proof i {
    color: var(--forest-soft);
    font-size: 1.35rem;
}

.home-page .hero-proof strong,
.home-page .hero-proof small {
    display: block;
}

.home-page .hero-proof strong {
    font-size: 0.66rem;
    line-height: 1.25;
}

.home-page .hero-proof small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.56rem;
    line-height: 1.45;
}

.home-page .hero-calculator {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0 50px 58px;
}

.home-page .hero-preview-heading {
    display: block;
}

.home-page .preview-heading h3 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    letter-spacing: -0.055em;
}

.home-page .preview-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.home-page .preview-inputs {
    gap: 16px;
    margin: 28px 0 26px;
    padding-bottom: 26px;
}

.home-page .input-shell {
    min-height: 52px;
}

.home-page .preview-results {
    grid-template-columns: minmax(190px, 0.68fr) minmax(300px, 1.32fr);
    gap: 30px;
}

.home-page .preview-totals {
    padding-right: 30px;
}

.home-page .preview-totals > strong {
    font-size: clamp(2rem, 2.6vw, 2.9rem);
}

.home-page .preview-chart {
    min-height: 235px;
}

.home-page .fine-print {
    margin-top: 22px;
}

.home-page .directory-section {
    padding: 64px 0 14px;
    color: var(--ink);
    background: var(--paper);
}

.home-page .directory-intro {
    display: block;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
}

.home-page .directory-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.home-page .directory-intro > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.home-page .directory-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 88px;
    gap: 18px;
    align-items: stretch;
    min-height: 136px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 110px;
}

.home-page .directory-category {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px 0;
}

.home-page .tool-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--white);
    background: var(--forest);
    font-size: 1.35rem;
}

.home-page .directory-category h3 {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: -0.025em;
}

.home-page .directory-category small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.68rem;
}

.home-page .directory-tools {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.home-page .directory-tools a {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border-left: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color 160ms ease, background 160ms ease;
}

.home-page .directory-tools a:hover {
    color: var(--forest-soft);
    background: rgba(255, 254, 250, 0.58);
}

.home-page .directory-tool.is-more {
    display: none;
}

.home-page .directory-row.is-expanded {
    align-items: start;
}

.home-page .directory-row.is-expanded .directory-tool.is-more {
    display: flex;
}

.home-page .directory-view {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.home-page .directory-view i {
    color: var(--lime);
    font-size: 1.15rem;
    transition: transform 160ms ease;
}

.home-page .directory-view:hover i {
    transform: translateX(3px);
}

.home-page .directory-complete {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: var(--muted);
    font-size: 0.64rem;
    white-space: nowrap;
}

.home-page .directory-complete i {
    color: var(--forest-soft);
}

.home-page .popular-section {
    padding: 58px 0 64px;
}

.home-page .section-heading-line {
    margin-bottom: 24px;
}

.home-page .section-heading-line h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.home-page .popular-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-page .popular-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 18px 22px;
    border-right: 1px solid var(--line);
    transition: background 180ms ease;
}

.home-page .popular-item:first-child {
    padding-left: 0;
}

.home-page .popular-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.home-page .popular-icon {
    color: var(--forest-soft);
    font-size: 1.55rem;
}

.home-page .popular-copy strong {
    font-size: 0.76rem;
    line-height: 1.35;
}

.home-page .popular-copy small {
    margin-top: 7px;
    font-size: 0.64rem;
    line-height: 1.5;
}

.home-page .trust-ribbon {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 40px;
    border-top: 1px solid var(--line);
}

.home-page .trust-ribbon > i {
    color: var(--forest-soft);
    font-size: 2.4rem;
}

.home-page .trust-ribbon strong {
    font-size: 0.86rem;
}

.home-page .trust-ribbon p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
}

@media (max-width: 1180px) {
    .home-page .home-hero {
        grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
    }

    .home-page .hero-copy {
        padding-right: 38px;
    }

    .home-page .hero-calculator {
        padding-left: 34px;
    }

    .home-page .hero-proof {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-page .directory-row {
        grid-template-columns: 210px minmax(0, 1fr) 82px;
    }

    .home-page .directory-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .directory-tools a:nth-child(n + 4) {
        display: none;
    }

    .home-page .directory-row.is-expanded .directory-tools a {
        display: flex;
    }
}

@media (max-width: 960px) {
    .home-page .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-page .hero-copy {
        padding: 72px 0 62px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-page .hero-calculator {
        padding: 58px 0;
    }

    .home-page .hero-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .directory-row {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 0 20px;
        padding: 10px 0;
    }

    .home-page .directory-category {
        grid-row: 1 / span 2;
    }

    .home-page .directory-view {
        justify-self: start;
        padding: 10px 0 14px;
    }

    .home-page .directory-complete {
        justify-content: flex-start;
        padding: 10px 0 14px;
    }

    .home-page .popular-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .popular-item,
    .home-page .popular-item:first-child,
    .home-page .popular-item:last-child {
        padding: 20px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 620px) {
    .home-page .hero-copy {
        padding: 54px 0 48px;
    }

    .home-page .hero-copy h1 {
        font-size: clamp(3.45rem, 17vw, 4.8rem);
    }

    .home-page .hero-count {
        font-size: 1.45rem;
    }

    .home-page .hero-intro {
        font-size: 0.9rem;
    }

    .home-page .hero-search {
        grid-template-columns: auto 1fr 54px;
        min-height: 60px;
        padding-left: 15px;
    }

    .home-page .hero-proof {
        grid-template-columns: 1fr;
    }

    .home-page .hero-calculator {
        padding: 48px 0 54px;
    }

    .home-page .preview-inputs {
        grid-template-columns: 1fr;
    }

    .home-page .preview-results {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-page .preview-totals {
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-page .directory-section {
        padding-top: 52px;
    }

    .home-page .directory-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 0;
    }

    .home-page .directory-category {
        grid-row: auto;
        padding: 0 0 16px;
    }

    .home-page .directory-tools {
        grid-template-columns: 1fr;
        border-top: 1px solid var(--line);
    }

    .home-page .directory-tools a {
        min-height: 48px;
        padding: 12px 4px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-page .directory-tools a:nth-child(n + 4) {
        display: none;
    }

    .home-page .directory-row.is-expanded .directory-tools a {
        display: flex;
    }

    .home-page .directory-view {
        padding-top: 15px;
    }

    .home-page .directory-complete {
        justify-content: flex-start;
        padding-top: 15px;
    }

    .home-page .popular-list {
        grid-template-columns: 1fr;
    }

    .home-page .popular-item,
    .home-page .popular-item:first-child,
    .home-page .popular-item:last-child {
        padding: 18px 0;
        border-right: 0;
    }

    .home-page .trust-ribbon {
        justify-content: flex-start;
        padding-bottom: 36px;
    }
}

/* Trust, editorial and category architecture */
.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.footer-bottom nav a {
    color: rgba(255, 255, 255, 0.72);
}

.review-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.review-strip > div,
.review-strip > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 26px 28px;
    border-right: 1px solid var(--line);
}

.review-strip > :first-child { padding-left: 0; }
.review-strip > :last-child { padding-right: 0; border-right: 0; }
.review-strip > :not(a) { grid-template-columns: 34px minmax(0, 1fr); }
.review-strip i { color: var(--forest-soft); font-size: 1.25rem; }
.review-strip span { min-width: 0; }
.review-strip small,
.review-strip strong { display: block; }
.review-strip small { margin-bottom: 4px; color: var(--muted); font-size: 0.62rem; }
.review-strip strong { font-size: 0.76rem; line-height: 1.4; }
.review-strip > a:hover strong { color: var(--forest-soft); }

.deep-guide {
    padding-top: 104px;
    padding-bottom: 104px;
    border-bottom: 1px solid var(--line);
}

.deep-guide-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.78fr);
    gap: 90px;
    align-items: end;
    padding-bottom: 54px;
    border-bottom: 1px solid var(--line-strong);
}

.deep-guide-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -58px; }
.deep-guide-heading h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.8rem, 4.8vw, 5rem);
    line-height: 1;
    letter-spacing: -0.065em;
}
.deep-guide-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }

.deep-guide-section {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 34px;
    padding: 58px 0;
    border-bottom: 1px solid var(--line);
}

.guide-number {
    color: var(--forest-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.deep-guide-section > div { max-width: 1060px; }
.deep-guide-section h3 { margin: -8px 0 20px; font-size: clamp(1.6rem, 2.5vw, 2.5rem); letter-spacing: -0.045em; }
.deep-guide-section p { max-width: 900px; margin: 0 0 16px; color: var(--muted); line-height: 1.8; }

.guide-formula {
    display: grid;
    gap: 10px;
    margin-top: 28px !important;
    padding: 22px 24px;
    border-left: 4px solid var(--lime);
    background: var(--paper-deep);
}
.guide-formula strong { color: var(--ink); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.guide-formula code { overflow-wrap: anywhere; color: var(--ink); font: 600 0.86rem/1.65 "Manrope", sans-serif; }

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 42px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.guide-list li { position: relative; padding: 18px 0 18px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; line-height: 1.65; }
.guide-list li::before { content: ""; position: absolute; top: 26px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--forest); }

.guide-table-wrap { margin-top: 30px; overflow-x: auto; border-top: 1px solid var(--line-strong); }
.guide-table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.guide-table caption { padding: 16px 0; color: var(--muted); font-size: 0.68rem; text-align: left; }
.guide-table th,
.guide-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); font-size: 0.76rem; white-space: nowrap; }
.guide-table thead th { color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; }
.guide-table tbody th { padding-left: 0; font-weight: 800; }
.guide-table td:last-child { font-weight: 800; }

.guide-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
    gap: 90px;
    padding: 76px 0;
    border-bottom: 1px solid var(--line-strong);
}
.guide-faq h2,
.guide-sources h2,
.guide-next h2 { margin: 0 0 28px; font-size: clamp(1.8rem, 2.8vw, 2.8rem); letter-spacing: -0.05em; }
.guide-faq details { border-top: 1px solid var(--line); }
.guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.guide-faq summary { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 21px 0; cursor: pointer; font-size: 0.82rem; font-weight: 800; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary i { color: var(--forest-soft); transition: transform 160ms ease; }
.guide-faq details[open] summary i { transform: rotate(45deg); }
.guide-faq details p { margin: -5px 0 22px; padding-right: 45px; color: var(--muted); font-size: 0.78rem; line-height: 1.75; }

.guide-sources { align-self: start; padding: 32px; color: var(--white); background: var(--forest); }
.guide-sources .eyebrow { color: var(--lime); }
.guide-sources h2 { font-size: 2rem; }
.guide-sources > div { border-top: 1px solid rgba(255,255,255,0.18); }
.guide-sources a { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-size: 0.75rem; line-height: 1.5; }
.guide-sources a i { color: var(--lime); }
.guide-sources > p:last-child { margin: 22px 0 0; color: rgba(255,255,255,0.58); font-size: 0.66rem; line-height: 1.65; }

.guide-next { display: grid; grid-template-columns: minmax(260px, 0.6fr) 1fr; gap: 90px; padding-top: 76px; }
.guide-next h2 { margin-bottom: 0; }
.guide-next > div:last-child { border-top: 1px solid var(--line-strong); }
.guide-next a { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.guide-next strong,
.guide-next small { display: block; }
.guide-next strong { margin-bottom: 5px; font-size: 0.84rem; }
.guide-next small { color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.guide-next a > i { color: var(--forest-soft); }

/* Category hubs */
.category-hero { padding-top: 34px; padding-bottom: 82px; border-bottom: 1px solid var(--line-strong); }
.category-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.65fr); gap: 90px; align-items: end; padding-top: 78px; }
.category-hero-grid h1 { max-width: 820px; margin: 0; font-size: clamp(3.4rem, 6vw, 6.3rem); line-height: 0.96; letter-spacing: -0.075em; }
.category-hero-grid > p { margin: 0; color: var(--muted); line-height: 1.8; }
.category-tools-section { padding-top: 80px; padding-bottom: 100px; }
.category-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.category-tool-card { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 25px 28px 25px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-tool-card:nth-child(2n) { padding-left: 28px; border-right: 0; }
.category-tool-card .tool-icon { width: 54px; height: 54px; flex-basis: 54px; }
.category-tool-card strong,
.category-tool-card small { display: block; }
.category-tool-card strong { margin-bottom: 7px; font-size: 0.86rem; }
.category-tool-card small { color: var(--muted); font-size: 0.68rem; line-height: 1.55; }
.category-tool-card > i { color: var(--forest-soft); }
.category-principles { padding: 92px 0; color: var(--white); background: var(--forest); }
.category-principles-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr); gap: 110px; }
.category-principles .eyebrow { color: var(--lime); }
.category-principles h2 { max-width: 700px; margin: 0; font-size: clamp(2.8rem, 4.8vw, 5rem); line-height: 1; letter-spacing: -0.065em; }
.category-principle { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.category-principle span { color: var(--lime); font-size: 0.66rem; }
.category-principle p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.8rem; line-height: 1.65; }

/* Information and policy pages */
.information-hero { padding-top: 34px; padding-bottom: 88px; border-bottom: 1px solid var(--line-strong); }
.information-hero > .eyebrow { margin-top: 78px; }
.information-hero h1 { max-width: 950px; margin: 0; font-size: clamp(3.5rem, 6vw, 6.4rem); line-height: 0.96; letter-spacing: -0.075em; }
.information-intro { max-width: 780px; margin: 28px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.information-updated { margin: 28px 0 0; color: var(--forest-soft); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.information-content { padding-top: 20px; padding-bottom: 90px; }
.information-section { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 34px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.information-section > span { color: var(--forest-soft); font-size: 0.7rem; font-weight: 800; }
.information-section > div { max-width: 900px; }
.information-section h2 { margin: -8px 0 20px; font-size: clamp(1.7rem, 2.7vw, 2.7rem); letter-spacing: -0.05em; }
.information-section p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; }
.information-section ul { margin: 22px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.8; }
.information-cta { display: grid; grid-template-columns: 48px 1fr auto; gap: 22px; align-items: center; margin-bottom: 90px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.information-cta > i { color: var(--forest-soft); font-size: 2rem; }
.information-cta strong { font-size: 0.9rem; }
.information-cta p { margin: 5px 0 0; color: var(--muted); font-size: 0.72rem; }
.information-cta a { display: flex; gap: 12px; align-items: center; font-size: 0.76rem; font-weight: 800; }
.information-cta a i { color: var(--forest-soft); }

@media (max-width: 960px) {
    .review-strip { grid-template-columns: 1fr; }
    .review-strip > div,
    .review-strip > a,
    .review-strip > :first-child,
    .review-strip > :last-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .deep-guide-heading,
    .guide-support-grid,
    .guide-next,
    .category-hero-grid,
    .category-principles-grid { grid-template-columns: 1fr; gap: 42px; }
    .deep-guide-heading .eyebrow { margin-bottom: -25px; }
    .category-tool-grid { grid-template-columns: 1fr; }
    .category-tool-card,
    .category-tool-card:nth-child(2n) { padding-left: 0; padding-right: 0; border-right: 0; }
}

@media (max-width: 620px) {
    .footer-bottom nav { justify-content: flex-start; }
    .review-strip > div,
    .review-strip > a { grid-template-columns: 30px minmax(0, 1fr) auto; }
    .review-strip > :not(a) { grid-template-columns: 30px minmax(0, 1fr); }
    .deep-guide { padding-top: 72px; padding-bottom: 72px; }
    .deep-guide-heading { padding-bottom: 40px; }
    .deep-guide-heading h2 { font-size: 3rem; }
    .deep-guide-section,
    .information-section { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 42px 0; }
    .deep-guide-section h3,
    .information-section h2 { margin-top: -5px; }
    .guide-list { grid-template-columns: 1fr; }
    .guide-table-wrap { margin-left: -52px; }
    .guide-sources { padding: 25px; }
    .guide-support-grid { padding: 58px 0; }
    .guide-next { padding-top: 58px; }
    .category-hero { padding-bottom: 60px; }
    .category-hero-grid { padding-top: 54px; }
    .category-hero-grid h1,
    .information-hero h1 { font-size: 3.7rem; }
    .category-tools-section { padding-top: 60px; padding-bottom: 72px; }
    .category-tool-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; }
    .category-tool-card .tool-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .category-principles { padding: 72px 0; }
    .category-principles h2 { font-size: 3rem; }
    .information-hero { padding-bottom: 64px; }
    .information-hero > .eyebrow { margin-top: 56px; }
    .information-intro { font-size: 0.9rem; }
    .information-cta { grid-template-columns: 38px 1fr; }
    .information-cta > a { grid-column: 2; }
}
