@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
    --ink: #172f29;
    --green: #155b45;
    --muted: #78827e;
    --line: #e2e7e3;
    --lime: #d1ee9a;
    --bg: #f6f8f5;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font:
        16px 'DM Sans',
        sans-serif;
}
button,
input,
select {
    font: inherit;
}
button,
a,
select {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: default;
    opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid #83b963;
    outline-offset: 3px;
}
a {
    color: inherit;
    text-decoration: none;
}
header {
    height: 100px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 4.5%;
    gap: 60px;
}
.brand {
    display: flex;
    align-items: center;
    font:
        800 27px Manrope,
        sans-serif;
    letter-spacing: -1.2px;
}
.brand > span:not(.brand-icon) {
    color: var(--green);
}
.brand-dot {
    color: #73a53e !important;
}
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: var(--lime);
    width: 38px;
    height: 39px;
    border-radius: 10px;
    font-size: 27px;
    margin-right: 10px;
    position: relative;
}
.brand-icon span {
    font-size: 17px;
    position: absolute;
    right: 3px;
    top: 0;
}
nav {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    font-size: 14px;
    font-weight: 600;
}
nav a,
nav button {
    background: none;
    border: 0;
    padding: 38px 0;
    color: #67746e;
}
nav .active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
}
.country-label {
    margin-left: auto;
}
.country-label > span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 5px 3px;
}
select {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
}
main {
    max-width: 1450px;
    margin: auto;
    padding: 43px 4.5% 0;
}
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #65816b;
}
.intro-title {
    font:
        650 43px/1.2 Manrope,
        sans-serif;
    letter-spacing: -1.7px;
    margin: 14px 0;
}
.intro-title span {
    color: var(--green);
}
.intro p {
    font-size: 15px;
    color: #6c7972;
    margin: 12px 0 0;
}
.region-note {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #718077;
    line-height: 1.8;
    max-width: 240px;
}
.region-note strong {
    color: var(--ink);
    font-weight: 500;
}
.globe {
    font-size: 36px;
    color: #6e907c;
}
.workspace {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.aside-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin: 12px 0 25px;
    color: #7c8981;
}
.category {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #8a948c;
    margin: 25px 0 9px;
}
.tool {
    display: flex;
    width: 100%;
    align-items: center;
    text-align: left;
    gap: 12px;
    border: 0;
    background: none;
    padding: 13px 12px;
    border-radius: 7px;
    color: #53655b;
    font-size: 14px;
    margin: 4px 0;
}
.tool.selected {
    background: #e5edde;
    color: #254f31;
    font-weight: 650;
}
.tool .icon {
    font-size: 19px;
    width: 21px;
    text-align: center;
}
.tool .indicator {
    margin-left: auto;
}
.aside-note {
    border: 1px solid #dfe7d9;
    border-radius: 9px;
    padding: 18px;
    margin-top: 33px;
    background: #f0f4e9;
}
.aside-note > span {
    display: block;
    font-size: 27px;
    color: var(--green);
    margin-bottom: 10px;
}
.aside-note strong {
    font:
        650 14px/1.5 Manrope,
        sans-serif;
    display: block;
}
.aside-note p {
    font-size: 13px;
    line-height: 1.7;
    color: #7a877b;
    margin-bottom: 0;
}
.calculator {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 25px #243e2104;
}
.calc-heading {
    padding: 26px 29px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.breadcrumb {
    font-size: 12px;
    color: #879289;
}
.calc-heading :is(h1, h2) {
    font:
        700 25px Manrope,
        sans-serif;
    margin: 9px 0;
}
.calc-heading p {
    font-size: 14px;
    color: #7a867e;
    margin: 0;
}
.chip {
    background: #f2f6ee;
    border: 1px solid #e3ebdf;
    border-radius: 5px;
    color: #547245;
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
}
.scenario-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    background: #fcfdfa;
    gap: 12px;
}
.scenario-bar #scenario-tabs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.scenario-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 17px 2px;
    background: none;
    color: #839084;
    font-size: 13px;
    white-space: nowrap;
}
.scenario-tab.selected {
    color: var(--green);
    border-bottom-color: var(--green);
    font-weight: 600;
}
.dot {
    display: inline-block;
    border-radius: 50%;
    width: 7px;
    height: 7px;
    margin-right: 7px;
}
.add {
    border: 0;
    background: none;
    color: var(--green);
    font-size: 12px;
    white-space: nowrap;
}
.calc-grid {
    display: grid;
    grid-template-columns: 36% 64%;
}
.inputs {
    padding: 24px 27px;
    border-right: 1px solid var(--line);
}
.input-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.text-button {
    color: #7c8a81;
    background: none;
    border: 0;
    font-size: 12px;
}
.field {
    margin-bottom: 22px;
}
.field label {
    display: block;
    font-size: 13px;
    color: #5f7065;
    margin-bottom: 9px;
}
.input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dce4db;
    border-radius: 6px;
    background: #fdfefa;
    padding: 10px 12px;
    gap: 6px;
}
.input-wrap:focus-within {
    border-color: var(--green);
}
.input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}
.input-wrap span {
    font-size: 13px;
    color: #83917e;
}
.input-note {
    font-size: 12px;
    color: #8a938b;
    line-height: 1.7;
    margin: 20px 0 0;
}
.results {
    padding: 29px 30px 18px;
    background: linear-gradient(130deg, #fbfdf8, #fff);
}
.result-label {
    font-size: 13px;
    color: #71816e;
}
.big-result {
    font:
        750 clamp(24px, 3vw, 39px)/1.3 Manrope,
        sans-serif;
    letter-spacing: -1px;
    color: var(--green);
    margin: 7px 0 23px;
    overflow-wrap: anywhere;
}
.result-stats {
    display: flex;
    gap: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.stat label {
    font-size: 12px;
    color: #83907e;
    display: block;
    margin-bottom: 7px;
}
.result-stats.extended-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.extended-stats strong {
    overflow-wrap: anywhere;
}
.stat strong {
    font-size: 16px;
    font-weight: 550;
}
.chart-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 10px;
}
.chart-title h3 {
    font-size: 12px;
}
.chart-title #legend {
    font-size: 10px;
    display: flex;
    gap: 9px;
}
#chart svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
#chart text {
    font-size: 11px;
    fill: #89968a;
}
#chart {
    min-height: 180px;
}
.comparison {
    padding: 23px 28px;
    border-top: 1px solid var(--line);
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
}
.section-heading span {
    font-size: 11px;
    color: #8c968d;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 12px;
    white-space: nowrap;
}
th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf0ea;
}
th:first-child,
td:first-child {
    text-align: left;
    padding-left: 0;
    color: #7d897e;
}
th {
    font-weight: 500;
    background: #fafbf7;
    color: #516a51;
}
tr:last-child td {
    font-weight: 600;
    color: var(--green);
    border-bottom: 0;
}
details {
    padding: 18px 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
summary {
    cursor: pointer;
    list-style: none;
    color: #61765f;
    display: flex;
    justify-content: space-between;
}
details p {
    line-height: 1.8;
    color: #788676;
    font-size: 13px;
}
.calculator-guide .guide-body {
    color: #61765f;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.calculator-guide h3 {
    color: var(--ink);
    margin: 22px 0 8px;
}
.calculator-guide ul {
    padding-left: 20px;
}
.calculator-guide li {
    margin-bottom: 7px;
}
.calculator-guide summary {
    gap: 12px;
    align-items: baseline;
}
.guide-toggle::before {
    content: '+';
}
details[open] > summary > .guide-toggle::before {
    content: '−';
}
.calculator-guide .guide-faq {
    padding: 12px 0;
}
.calculator-guide dl > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}
.calculator-guide dd {
    margin: 0;
    color: var(--green);
    font-weight: 600;
}
.guide-example-results {
    padding: 12px;
    background: #f2f6ee;
    border-radius: 6px;
}
.more {
    margin: 44px 0 30px;
}
.more h2 {
    font:
        650 24px Manrope,
        sans-serif;
    letter-spacing: -0.6px;
    margin: 10px 0 22px;
}
.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.more-grid a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: left;
    padding: 21px 22px;
    position: relative;
    color: var(--ink);
}
.mini-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    background: #edf3e6;
    border-radius: 7px;
    font-size: 20px;
    color: var(--green);
    margin-bottom: 14px;
}
.more-grid strong {
    font-size: 15px;
}
.more-grid p {
    font-size: 13px;
    color: #859080;
    margin: 7px 0 0;
    line-height: 1.6;
}
.card-arrow {
    position: absolute;
    right: 23px;
    top: 23px;
    color: #6e8066;
}
.more-grid a:hover {
    border-color: #a3bb92;
    transform: translateY(-2px);
    transition: 0.15s;
}
.disclaimer {
    font-size: 11px;
    color: #929b90;
    line-height: 1.8;
    border-top: 1px solid var(--line);
    padding: 23px 0 30px;
}
footer {
    border-top: 1px solid var(--line);
    padding: 24px 4.5%;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 12px;
    color: #8b958a;
}
footer .brand {
    font-size: 20px;
    color: var(--ink);
}
footer > span:last-child {
    margin-left: auto;
}
.error {
    color: #b13e34;
    font-size: 14px;
    line-height: 1.5;
}
.bar-summary {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    height: 155px;
    padding-top: 10px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-align: center;
    font-size: 11px;
    gap: 7px;
}
.bar-col i {
    display: block;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
}
@media (min-width: 1500px) {
    header,
    footer {
        padding-left: max(4.5%, calc((100vw - 1320px) / 2));
        padding-right: max(4.5%, calc((100vw - 1320px) / 2));
    }
}
@media (max-width: 1100px) {
    header {
        gap: 28px;
    }
    nav {
        gap: 18px;
    }
    .workspace {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 20px;
    }
    .calc-grid {
        grid-template-columns: 40% 60%;
    }
    .inputs,
    .results {
        padding: 23px 20px;
    }
    .chip {
        display: none;
    }
    .chart-title {
        align-items: flex-start;
        gap: 10px;
    }
    .chart-title #legend {
        flex-wrap: wrap;
    }
    .section-heading span {
        display: none;
    }
}
@media (max-width: 800px) {
    header {
        height: auto;
        min-height: 86px;
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px 5%;
    }
    nav {
        order: 3;
        width: 100%;
        gap: 30px;
    }
    nav a,
    nav button {
        padding: 10px 0;
    }
    .brand {
        font-size: 24px;
    }
    .country-label > span {
        display: none;
    }
    select {
        max-width: 190px;
        font-size: 12px;
    }
    main {
        padding: 30px 5% 0;
    }
    .intro-title {
        font-size: 36px;
    }
    .region-note {
        display: none;
    }
    .workspace {
        grid-template-columns: 1fr;
    }
    aside {
        overflow-x: auto;
    }
    .aside-title,
    .category,
    .aside-note {
        display: none;
    }
    #toolkit {
        display: flex;
        width: max-content;
        gap: 8px;
    }
    .tool {
        width: auto;
        white-space: nowrap;
        border: 1px solid var(--line);
        padding: 10px 13px;
    }
    .tool .indicator {
        display: none;
    }
    .intro {
        margin-bottom: 24px;
    }
    .calc-heading {
        padding: 23px;
    }
    .calc-heading :is(h1, h2) {
        font-size: 23px;
    }
    .more-grid {
        gap: 12px;
    }
    .more-grid a {
        padding: 17px;
    }
    .more-grid p {
        font-size: 12px;
    }
    footer {
        flex-wrap: wrap;
    }
    footer > span:last-child {
        margin-left: 0;
    }
}
@media (max-width: 540px) {
    .brand {
        font-size: 21px;
    }
    .brand-icon {
        width: 30px;
        height: 33px;
        font-size: 24px;
        margin-right: 7px;
    }
    .country-label {
        max-width: 160px;
    }
    select {
        width: 160px;
        font-size: 11px;
        padding: 8px 4px;
    }
    nav {
        justify-content: space-between;
        gap: 10px;
    }
    .intro-title {
        font-size: 33px;
    }
    .intro p {
        font-size: 14px;
        line-height: 1.6;
    }
    .eyebrow {
        font-size: 9px;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .inputs {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    #fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
    }
    .field {
        margin-bottom: 16px;
    }
    .input-heading {
        margin-bottom: 17px;
    }
    .input-note {
        margin-top: 0;
    }
    .results {
        padding: 23px;
    }
    .big-result {
        font-size: 33px;
    }
    .scenario-bar {
        padding: 0 18px;
        align-items: flex-start;
    }
    .scenario-bar #scenario-tabs {
        gap: 12px;
    }
    .scenario-tab {
        font-size: 11px;
        padding: 15px 0;
    }
    .add {
        font-size: 11px;
        padding: 15px 0;
    }
    .comparison {
        padding: 22px;
    }
    .more-grid {
        grid-template-columns: 1fr;
    }
    .more-grid a {
        padding-left: 70px;
    }
    .mini-icon {
        position: absolute;
        left: 18px;
        top: 20px;
    }
    .card-arrow {
        top: 20px;
    }
    .more h2 {
        font-size: 22px;
    }
    .calc-heading p {
        line-height: 1.6;
        font-size: 13px;
    }
    footer {
        gap: 12px;
    }
    footer > span {
        font-size: 11px;
    }
    #chart {
        min-height: 160px;
    }
}
/* Readable controls and numeric comparisons at every viewport. */
.field label,
.input-wrap span,
.scenario-tab,
.add,
.text-button,
table,
details,
.calc-heading p,
.tool {
    font-size: 14px;
}
.input-note,
.stat label,
.result-label,
.section-heading span,
.more-grid p,
.disclaimer {
    font-size: 12px;
}
.aside-title,
.category,
.eyebrow {
    font-size: 12px;
}
.chart-title h3,
#legend {
    font-size: 12px;
}
.more-grid p {
    font-size: 14px;
}
.intro p {
    font-size: 16px;
}
@media (max-width: 540px) {
    .scenario-bar {
        flex-wrap: wrap;
        gap: 0;
    }
    .add {
        padding-top: 5px;
    }
    .scenario-tab {
        font-size: 13px;
    }
    .field label {
        font-size: 14px;
    }
    .calc-heading p {
        font-size: 14px;
    }
    .eyebrow {
        font-size: 11px;
    }
}
