@charset "UTF-8";

:root {
    --bg: #f7f8f3;
    --paper: #fff;
    --ink: #223c36;
    --muted: #74817a;
    --green: #1c594c;
    --light: #e8efe4;
    --line: #e1e6dd;
    --lime: #d5eeb0;
    --result: #174f46;
    --shadow: 0 14px 50px #234b3610;
    --radius: 18px;
    color-scheme: light
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter,"Segoe UI",Arial,sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased
}

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

button, input, select, textarea {
    font: inherit
}

button, a, input, select, textarea {
    outline-offset: 4px
}

button {
    cursor: pointer
}

    button:disabled {
        cursor: not-allowed;
        opacity: .55
    }

button {
    color: inherit
}

svg {
    display: block;
    max-width: 100%
}

input, select, textarea {
    min-width: 0
}

button {
    touch-action: manipulation
}

::selection {
    background: #d3edb1;
    color: #143d34
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: var(--green);
    color: white;
    padding: 12px
}

    .skip:focus {
        top: 12px
    }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 238px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 30px 20px 20px;
    overflow: auto;
    z-index: 30;
    scrollbar-width: thin
}

.brand {
    display: flex;
    align-items: center;
    font-size: 26px;
    letter-spacing: -1.8px;
    font-weight: 750;
    line-height: 1.2;
    padding-left: 9px
}

.brand-mark {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 36px;
    background: var(--green);
    color: var(--lime);
    border-radius: 9px;
    font-family: Georgia,serif;
    font-style: italic;
    font-size: 34px;
    margin-right: 10px;
    font-weight: 400
}

    .brand-mark span {
        font-size: 32px;
        position: absolute;
        right: 4px;
        bottom: -2px
    }

.brand-dot {
    color: #8cb56b
}

.side-caption {
    font-size: 9px;
    letter-spacing: 1.65px;
    color: var(--muted);
    padding: 14px 10px 26px
}

.overview {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600
}

.count {
    font-size: 10px;
    background: var(--light);
    padding: 0 6px;
    border-radius: 4px;
    margin-left: auto
}

.nav-group {
    margin-top: 22px
}

    .nav-group p {
        font-size: 10px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--muted);
        margin: 0 12px 7px
    }

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 12px;
    line-height: 1.5;
    margin: 2px 0;
    transition: background .2s
}

    .nav-link:hover {
        background: var(--bg)
    }

    .nav-link.active {
        background: var(--light);
        color: var(--green);
        font-weight: 650;
        box-shadow: inset 3px 0 var(--green)
    }

.live-dot {
    display: inline-block;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background: #79a965;
    flex-shrink: 0
}

.side-bottom {
    margin: 30px 10px 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 10px;
    color: var(--muted)
}

    .side-bottom a {
        display: block;
        margin-top: 8px;
        color: var(--green)
    }

    .side-bottom .live-dot {
        margin-right: 5px
    }

.page {
    margin-left: 238px
}

.topbar {
    height: 79px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 4.4%;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 20
}

.top-label {
    color: var(--muted);
    font-size: 12px;
    flex: 1
}

    .top-label b {
        font-weight: 500;
        color: var(--ink)
    }

.search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    min-width: 226px;
    text-align: left
}

    .search-trigger > span {
        font-size: 20px;
        line-height: 1
    }

    .search-trigger kbd {
        margin-left: auto;
        font-size: 10px;
        border: 1px solid var(--line);
        padding: 0 5px;
        border-radius: 3px
    }

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 22px;
    min-height: 38px;
    min-width: 38px
}

.menu {
    display: none
}

main {
    max-width: 1390px;
    margin: auto;
    padding: 0 4.4%
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: var(--muted);
    margin: 26px 0 34px
}

    .breadcrumb a:hover {
        color: var(--green)
    }

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--green)
}

    .eyebrow .live-dot {
        width: 6px;
        height: 6px
    }

.tool-heading .eyebrow {
    justify-content: space-between
}

.status {
    color: #4e7551;
    letter-spacing: .2px;
    text-transform: none;
    background: #eaf1e3;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px
}

.preview-status {
    background: #f4ebdb;
    color: #876636
}

h1, h2, h3, p {
    margin-top: 0
}

h1 {
    font-size: clamp(32px,3.5vw,49px);
    line-height: 1.16;
    letter-spacing: -1.9px;
    font-weight: 650;
    margin: 19px 0 15px
}

.title-light {
    font-weight: 400
}

.lead {
    color: var(--muted);
    font-size: 15px;
    max-width: 660px;
    line-height: 1.8
}

.tool-heading {
    margin-bottom: 30px
}

.calculator-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.calculator-input {
    padding: 30px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px
}

    .panel-heading h2 {
        font-size: 18px;
        letter-spacing: -.4px;
        font-weight: 600;
        margin: 0
    }

.mini-label {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink)
}

input, select, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    padding: 11px 12px;
    transition: border-color .2s,box-shadow .2s;
    font-weight: 450;
    font-size: 14px
}

    input:focus, select:focus, textarea:focus {
        outline: 0;
        border-color: #649f79;
        box-shadow: 0 0 0 3px #8fbd6f22
    }

textarea {
    resize: vertical;
    line-height: 1.9;
    font-family: ui-monospace,monospace
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px
}

    .field-grid.three {
        grid-template-columns: repeat(3,1fr)
    }

.separated {
    border-top: 1px solid var(--line);
    padding-top: 18px
}

.row-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    background: var(--paper)
}

.row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 650;
    text-transform: uppercase;
    margin-bottom: 12px
}

.remove-row {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0;
    padding: 3px
}

    .remove-row:hover {
        color: #b84d39
    }

.row-card .field:last-child {
    margin-bottom: 0
}

.quantity-unit {
    display: grid;
    grid-template-columns: 1fr 75px;
    gap: 6px
}

    .quantity-unit select {
        padding: 10px 6px
    }

.add-button {
    width: 100%;
    border: 1px dashed #a9bfa4;
    background: transparent;
    color: var(--green);
    font-size: 12px;
    padding: 10px;
    border-radius: 7px
}

.input-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
    margin: 14px 0
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px
}

.primary, .secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 7px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    transition: transform .2s,background .2s
}

.primary {
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green)
}

    .primary:hover:not(:disabled) {
        background: #276b59;
        transform: translateY(-1px)
    }

.form-actions .primary {
    flex: 1;
    justify-content: space-between
}

.secondary {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink)
}

    .secondary:hover {
        background: var(--light)
    }

.local-note {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 20px;
    color: var(--muted);
    font-size: 9px
}

.result-panel {
    padding: 30px 32px;
    background: var(--result);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative
}

.result-kicker {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: #bbd2c3
}

.answer {
    font-size: clamp(34px,4.4vw,62px);
    font-weight: 450;
    letter-spacing: -2px;
    line-height: 1.2;
    margin: 16px 0 6px;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums
}

    .answer small {
        font-size: 20px;
        letter-spacing: -.5px;
        color: #d8e9d5
    }

.result-panel p {
    font-size: 12px;
    color: #d2e3d9;
    line-height: 1.75
}

.result-rule {
    border-top: 1px solid #ffffff26;
    margin: 23px 0
}

.result-actions {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 25px
}

    .result-actions button {
        background: none;
        border: 0;
        border-bottom: 1px solid #ffffff40;
        color: #d5e5d8;
        padding: 4px 0;
        font-size: 10px
    }

.result-panel h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 18px 0 10px
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    color: #e7f0e8
}

    .result-table th {
        text-align: left;
        font-weight: 400;
        color: #b8cec0;
        padding: 7px 0
    }

    .result-table td {
        padding: 10px 0;
        border-top: 1px solid #ffffff20
    }

        .result-table td:last-child, .result-table th:last-child {
            text-align: right
        }

    .result-table tr.winner {
        color: var(--lime)
    }

.result-badge {
    display: inline-block;
    font-size: 9px;
    border: 1px solid #b9db9e66;
    color: var(--lime);
    padding: 3px 9px;
    border-radius: 15px;
    margin-bottom: 12px
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.metric {
    background: #ffffff0b;
    border: 1px solid #ffffff20;
    border-radius: 9px;
    padding: 13px;
    min-width: 0
}

    .metric span {
        display: block;
        color: #b7d0c0;
        font-size: 9px;
        letter-spacing: .5px
    }

    .metric strong {
        font-size: 22px;
        font-weight: 450;
        overflow-wrap: anywhere
    }

.math-working {
    font-family: ui-monospace,monospace;
    background: #ffffff0b;
    padding: 13px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.9;
    color: #e3efdf;
    overflow-wrap: anywhere
}

.chart {
    margin-top: 18px;
    background: #ffffff05;
    border-radius: 10px;
    padding: 6px
}

    .chart text {
        font-family: inherit
    }

.sorted-data {
    max-height: 90px;
    overflow: auto;
    font-size: 11px;
    color: #d0e0d3;
    overflow-wrap: anywhere
}

.error {
    font-size: 12px;
    color: #a32c21;
    background: #fff0ed;
    padding: 10px;
    border-radius: 6px;
    margin-top: 12px
}

.data-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted)
}

.text-button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--green);
    font-size: 10px
}

.section-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    padding: 26px 0 18px;
    font-size: 11px;
    color: var(--muted)
}

    .section-nav a:hover {
        color: var(--green)
    }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 235px;
    gap: 50px;
    padding-top: 8px
}

.content-section {
    padding-top: 40px
}

.section-number {
    font-size: 10px;
    color: #8a9d84;
    letter-spacing: 1px;
    margin-bottom: 8px
}

.content-section h2, .example-box h2 {
    font-size: 23px;
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: -.65px;
    margin: 0 0 18px
}

.content-section p, .example-box p {
    font-size: 13px;
    line-height: 1.95;
    color: var(--muted)
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0
}

    .steps li {
        counter-increment: step;
        display: flex;
        gap: 15px;
        align-items: flex-start;
        font-size: 13px;
        color: var(--muted);
        margin: 14px 0
    }

        .steps li:before {
            content: counter(step);
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--light);
            border-radius: 50%;
            font-size: 10px;
            color: var(--green)
        }

.formula-box {
    border: 1px solid var(--line);
    border-left: 3px solid #8eb278;
    padding: 19px 21px;
    background: var(--paper);
    border-radius: 0 9px 9px 0;
    margin: 24px 0
}

    .formula-box > span {
        display: block;
        font-size: 9px;
        letter-spacing: 1.5px;
        color: var(--muted);
        margin-bottom: 10px
    }

    .formula-box code {
        font-size: 13px;
        line-height: 1.8;
        overflow-wrap: anywhere
    }

.example-box {
    padding: 26px;
    background: #ecf0e5;
    border-radius: 12px;
    margin-top: 35px
}

    .example-box .eyebrow {
        margin-bottom: 12px;
        font-size: 9px
    }

    .example-box p {
        margin: 0;
        color: #5d705e
    }

details {
    border-bottom: 1px solid var(--line)
}

summary {
    font-size: 13px;
    padding: 16px 25px 16px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-weight: 550
}

    summary::-webkit-details-marker {
        display: none
    }

    summary:after {
        content: '+';
        position: absolute;
        right: 0;
        font-weight: 400;
        font-size: 19px;
        color: var(--muted);
        top: 10px
    }

details[open] summary:after {
    content: '−'
}

details p {
    padding-right: 20px
}

.content-aside {
    padding-top: 44px
}

.aside-card {
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 12px;
    background: var(--paper)
}

.aside-icon {
    font-size: 29px;
    color: #89a174
}

.aside-card h3 {
    font-weight: 550;
    letter-spacing: -.5px;
    font-size: 19px;
    line-height: 1.5;
    margin: 13px 0
}

.aside-card p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.9
}

.aside-card a {
    font-size: 11px;
    color: var(--green)
}

.related {
    margin-top: 30px
}

    .related a {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 11px
    }

.bottom-banner {
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 30px;
    margin: 55px 0
}

    .bottom-banner .eyebrow {
        font-size: 9px
    }

    .bottom-banner h2 {
        margin: 8px 0 0;
        font-size: 25px;
        letter-spacing: -.6px;
        font-weight: 500
    }

footer {
    max-width: 1390px;
    margin: auto;
    border-top: 1px solid var(--line);
    padding: 25px 4.4%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 9px;
    color: var(--muted)
}

    footer div {
        display: flex;
        gap: 22px
    }

.preview-note {
    display: flex;
    gap: 12px;
    background: #f6f0e4;
    border: 1px solid #e7dcc4;
    border-radius: 9px;
    padding: 16px;
    margin-bottom: 22px;
    color: #846636
}

    .preview-note > span {
        font-size: 23px
    }

    .preview-note strong {
        font-size: 12px
    }

    .preview-note p {
        font-size: 11px;
        margin: 5px 0 0
    }

.preview-fields {
    border: 0;
    margin: 0;
    padding: 0
}

    .preview-fields .primary {
        width: 100%;
        margin-top: 10px
    }

.example-detail {
    margin-top: 15px !important
}

.standalone {
    max-width: 760px;
    min-height: 70vh;
    margin: 55px 0 80px
}

    .standalone p {
        color: var(--muted);
        font-size: 15px
    }

    .standalone h2 {
        margin-top: 36px;
        font-size: 23px
    }

.home-hero {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 10px;
    align-items: center;
    min-height: 500px;
    padding: 58px 0 45px
}

    .home-hero h1 {
        font-size: clamp(37px,4vw,60px);
        letter-spacing: -2.4px;
        line-height: 1.12;
        margin: 24px 0
    }

        .home-hero h1 em {
            font-family: Georgia,serif;
            font-weight: 400;
            letter-spacing: -2px;
            color: var(--green)
        }

    .home-hero .lead {
        max-width: 455px;
        font-size: 13px
    }

.hero-button {
    margin-top: 12px;
    padding: 13px 20px
}

.hero-trust {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 9px;
    margin-top: 24px
}

.hero-art {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center
}

.orbit {
    position: absolute;
    border: 1px solid #dfe6d6;
    border-radius: 50%;
    width: 310px;
    height: 310px
}

.orbit-two {
    width: 370px;
    height: 250px;
    transform: rotate(-32deg)
}

.hero-note {
    background: var(--result);
    color: white;
    width: 280px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px #153d3420;
    transform: rotate(-6deg);
    z-index: 2;
    animation: bob 8s ease-in-out infinite
}

    .hero-note .mini-label {
        color: #a9c5b2;
        font-size: 8px
    }

.note-equation {
    font-size: 39px;
    letter-spacing: -1px;
    margin: 20px 0 15px;
    font-weight: 350
}

    .note-equation span {
        color: #82a68b
    }

    .note-equation strong {
        font-weight: 500;
        color: var(--lime)
    }

.note-footer {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #c5d9c9;
    margin-top: 15px
}

.floating-symbol {
    position: absolute;
    font-family: Georgia,serif;
    font-size: 30px;
    background: #e8eddf;
    border: 1px solid #d7e0ce;
    display: grid;
    place-items: center;
    border-radius: 12px;
    width: 53px;
    height: 53px;
    color: #55764b
}

.s1 {
    left: 3%;
    top: 40px;
    transform: rotate(-15deg)
}

.s2 {
    right: 0;
    top: 10px;
    transform: rotate(12deg);
    background: #f2e9da;
    color: #947855;
    border-color: #e9dfce
}

.s3 {
    bottom: 5px;
    left: 12%;
    transform: rotate(15deg)
}

.small-note {
    position: absolute;
    right: -4px;
    bottom: 15px;
    z-index: 3;
    box-shadow: 0 5px 25px #2949360b;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: 9px;
    transform: rotate(4deg)
}

    .small-note span {
        display: block;
        font-size: 7px;
        color: var(--muted);
        letter-spacing: 1px
    }

    .small-note b {
        font-size: 11px;
        font-weight: 550
    }

.collection {
    padding-top: 20px
}

.collection-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px
}

    .collection-heading h2 {
        font-size: 28px;
        font-weight: 500;
        letter-spacing: -1px;
        line-height: 1.4;
        margin: 12px 0 20px
    }

    .collection-heading > p {
        font-size: 11px;
        color: var(--muted);
        text-align: right
    }

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 8px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.filter {
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    font-size: 10px;
    padding: 7px 13px;
    color: var(--muted)
}

    .filter.selected {
        background: var(--green);
        color: #fff
    }

    .filter:not(.selected):hover {
        background: var(--light)
    }

#tool-count {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap
}

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

.tool-tile {
    display: flex;
    flex-direction: column;
    padding: 23px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .25s,box-shadow .25s,border-color .25s
}

    .tool-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: #a5bea0
    }

.tile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px
}

.tool-symbol {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dae4d0;
    background: #f0f4e9;
    border-radius: 11px;
    font-family: Georgia,serif;
    font-size: 23px;
    color: #547748
}

.tile-state {
    font-size: 8px;
    letter-spacing: .2px;
    color: var(--muted);
    background: var(--bg);
    padding: 3px 7px;
    border-radius: 20px
}

    .tile-state.is-live {
        color: #5b7c4a;
        background: #edf4e5
    }

        .tile-state.is-live:before {
            content: '●';
            font-size: 5px;
            margin-right: 5px;
            vertical-align: middle
        }

.tool-tile .mini-label {
    font-size: 8px
}

.tool-tile h3 {
    font-size: 19px;
    font-weight: 550;
    letter-spacing: -.4px;
    line-height: 1.4;
    margin: 8px 0
}

.tool-tile p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 22px
}

.tile-bottom {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--green)
}

.principles {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 35px;
    padding: 45px 0;
    margin: 50px 0 10px;
    border-top: 1px solid var(--line)
}

    .principles h2 {
        font-family: Georgia,serif;
        font-weight: 400;
        font-size: 30px;
        line-height: 1.3;
        margin: 15px 0
    }

    .principles h3 {
        font-size: 15px;
        font-weight: 550;
        margin: 8px 0
    }

    .principles p {
        color: var(--muted);
        font-size: 12px
    }

.principle-no {
    font-family: Georgia,serif;
    font-size: 24px;
    color: #8caa73
}

dialog {
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 24px;
    width: min(580px,90vw);
    max-height: 75vh;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 100px #0003
}

    dialog::backdrop {
        background: #16352ca6;
        backdrop-filter: blur(5px)
    }

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px
}

.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 13px 4px;
    font-size: 13px
}

    .search-result small {
        color: var(--muted);
        font-size: 10px
    }

#search-results {
    margin-top: 10px;
    max-height: 45vh;
    overflow: auto
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%,20px);
    background: var(--ink);
    color: var(--paper);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: .2s
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%,0)
    }

.scrim {
    display: none
}

[hidden] {
    display: none !important
}

.reveal {
    animation: arrive .5s ease both
}

.result-flash {
    animation: arrive .35s ease both
}

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes bob {
    0%,100% {
        transform: translateY(0) rotate(-6deg)
    }

    50% {
        transform: translateY(-7px) rotate(-4deg)
    }
}

body.dark {
    --bg: #15231f;
    --paper: #1b2c25;
    --ink: #e3eddf;
    --muted: #a0afa4;
    --green: #a9d895;
    --light: #2b4032;
    --line: #34463a;
    --result: #103f37;
    color-scheme: dark
}

    body.dark .primary, body.dark .filter.selected {
        color: #172b20
    }

    body.dark .brand-mark {
        background: #b4d698;
        color: #193c2b
    }

    body.dark .example-box {
        background: #293b2d
    }

        body.dark .example-box p {
            color: #b5c8af
        }

    body.dark .tool-symbol {
        background: #2d3d2b;
        border-color: #42563b;
        color: #c1ddad
    }

    body.dark .status {
        background: #2d432d;
        color: #cae5b9
    }

    body.dark .orbit {
        border-color: #3c513c
    }

    body.dark .preview-note {
        background: #3b3425;
        color: #d7c49b;
        border-color: #615337
    }

    body.dark .error {
        background: #472b29;
        color: #ffc5b8
    }

    body.dark .primary:hover:not(:disabled) {
        background: #b8e3a6
    }

@media(min-width:1600px) {
    .home-hero {
        min-height: 570px
    }

    .hero-note {
        width: 310px
    }

    .tool-tile {
        padding: 28px
    }

    .topbar {
        padding-left: max(4.4%,calc((100% - 1268px)/2))
    }
}

@media(max-width:1150px) {
    .sidebar {
        width: 210px;
        padding: 26px 14px
    }

    .page {
        margin-left: 210px
    }

    .calculator-input, .result-panel {
        padding: 24px
    }

    .content-layout {
        gap: 30px;
        grid-template-columns: minmax(0,1fr) 200px
    }

    .home-hero h1 {
        font-size: 43px
    }

    .home-hero {
        grid-template-columns: 1.15fr 1fr
    }

    .hero-note {
        width: 230px;
        padding: 20px
    }

    .orbit {
        width: 250px;
        height: 250px
    }

    .orbit-two {
        width: 290px;
        height: 210px
    }

    .small-note {
        right: 0
    }

    .hero-trust {
        gap: 10px;
        font-size: 8px
    }

    .tool-grid {
        gap: 12px
    }

    .tool-tile {
        padding: 18px
    }

        .tool-tile h3 {
            font-size: 17px
        }
}

@media(max-width:900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s;
        width: 238px
    }

    .page {
        margin-left: 0
    }

    .menu {
        display: block
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .scrim.open {
        display: block;
        position: fixed;
        inset: 0;
        background: #0006;
        z-index: 25
    }

    .topbar {
        height: 65px;
        gap: 10px;
        padding: 0 5%
    }

    main {
        padding: 0 5%
    }

    .top-label {
        font-size: 10px
    }

    .home-hero {
        padding-top: 40px
    }

    .content-layout {
        grid-template-columns: minmax(0,1fr) 210px
    }

    .breadcrumb {
        margin-top: 20px
    }

    .hero-art {
        min-height: 320px
    }

    .home-hero h1 {
        font-size: 44px
    }
}

@media(max-width:640px) {
    body {
        font-size: 14px
    }

    .top-label {
        display: none
    }

    .search-trigger {
        min-width: 0;
        flex: 1
    }

    .topbar {
        padding: 0 4%
    }

    .home-hero {
        display: block;
        padding: 35px 0 20px
    }

        .home-hero h1 {
            font-size: 43px;
            letter-spacing: -2px
        }

        .home-hero .eyebrow {
            font-size: 8px
        }

    .hero-art {
        min-height: 320px;
        max-width: 360px;
        margin: 15px auto 0
    }

    .hero-note {
        width: 255px
    }

    .orbit {
        width: 275px;
        height: 275px
    }

    .orbit-two {
        width: 310px
    }

    .small-note {
        right: 0;
        bottom: 15px
    }

    .hero-trust {
        font-size: 9px;
        flex-wrap: wrap
    }

    .collection-heading {
        display: block
    }

        .collection-heading h2 {
            font-size: 26px
        }

        .collection-heading > p {
            text-align: left;
            font-size: 11px
        }

            .collection-heading > p br {
                display: none
            }

    .filter-bar {
        display: block
    }

    .filters {
        gap: 3px;
        margin-bottom: 10px
    }

    .filter {
        padding: 7px 9px
    }

    .tool-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .tool-tile {
        padding: 16px
    }

        .tool-tile h3 {
            font-size: 16px
        }

        .tool-tile p {
            font-size: 10px
        }

    .tool-symbol {
        width: 35px;
        height: 35px;
        font-size: 20px
    }

    .tile-state {
        font-size: 7px
    }

    .tile-top {
        margin-bottom: 20px
    }

    .tool-tile .mini-label {
        font-size: 7px
    }

    .tile-bottom {
        font-size: 9px
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 0;
        margin-top: 30px
    }

        .principles h2 br {
            display: none
        }

        .principles h2 {
            font-size: 27px
        }

        .principles p {
            max-width: 400px
        }

    .calculator-card {
        grid-template-columns: 1fr
    }

    .calculator-input, .result-panel {
        padding: 23px
    }

    .result-panel {
        min-height: 310px
    }

    .tool-heading h1 {
        font-size: 34px;
        letter-spacing: -1.3px
    }

    .tool-heading .lead {
        font-size: 13px
    }

    .tool-heading .eyebrow {
        font-size: 9px;
        gap: 8px
    }

    .status {
        font-size: 8px
    }

    .breadcrumb {
        font-size: 9px;
        gap: 8px;
        margin-bottom: 25px
    }

    .answer {
        font-size: 49px
    }

    .content-layout {
        display: block
    }

    .content-aside {
        padding-top: 30px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px
    }

    .related {
        margin: 0
    }

    .aside-card {
        padding: 20px
    }

        .aside-card h3 {
            margin: 6px 0
        }

    .aside-icon {
        font-size: 22px
    }

    .section-nav {
        gap: 19px;
        font-size: 9px;
        overflow: auto;
        white-space: nowrap
    }

    .content-section {
        padding-top: 30px
    }

        .content-section h2 {
            font-size: 22px
        }

    .bottom-banner {
        display: block;
        padding: 24px;
        margin: 35px 0
    }

        .bottom-banner h2 {
            font-size: 24px
        }

        .bottom-banner .secondary {
            margin-top: 18px
        }

    .field-grid.three {
        grid-template-columns: 1fr
    }

        .field-grid.three .field {
            margin-bottom: 12px
        }

    .local-note {
        font-size: 9px
    }

    .row-card {
        padding: 13px
    }

    .result-table {
        font-size: 10px
    }

    footer {
        display: block;
        font-size: 9px;
        padding: 20px 5%
    }

        footer div {
            margin-top: 12px;
            gap: 20px
        }

    .standalone h1 {
        font-size: 34px
    }

    .standalone {
        margin-top: 30px
    }

    .formula-box code {
        font-size: 12px
    }
}

@media(max-width:360px) {
    .tool-grid {
        grid-template-columns: 1fr
    }

    .field-grid {
        gap: 0 10px
    }

    .hero-art {
        transform: scale(.9);
        margin: -5px auto
    }

    .home-hero h1 {
        font-size: 37px
    }

    .section-nav {
        gap: 14px
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media print {
    body {
        background: white;
        color: black
    }

    .sidebar, .topbar, .section-nav, .content-aside, .bottom-banner, footer, .form-actions, .add-button, .remove-row, .result-actions, .search-trigger, .toast {
        display: none !important
    }

    .page {
        margin: 0
    }

    main {
        padding: 0;
        max-width: none
    }

    .breadcrumb {
        display: none
    }

    .calculator-card {
        box-shadow: none;
        break-inside: avoid
    }

    .result-panel {
        background: #eee;
        color: black
    }

        .result-panel p, .result-kicker, .metric span, .result-table, .math-working, .metric strong {
            color: black
        }

    .content-layout {
        display: block
    }

    .content-section, .example-box {
        break-inside: avoid
    }

    .hero-art {
        display: none
    }

    details p {
        display: block !important
    }

    .chart {
        display: none
    }
}
