:root {
    color-scheme: light;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

::selection {
    background: #99f6e4;
    color: #0f2742;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    border-radius: 0.75rem;
    background: #0f2742;
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 1rem;
}

.nav-link,
.footer-link {
    transition: color 160ms ease;
}

.nav-link {
    color: #475569;
    font-size: 0.925rem;
    font-weight: 600;
}

.site-main-nav {
    column-gap: 2rem;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #0f766e;
}

.mobile-nav-link {
    border-radius: 0.75rem;
    color: #0f2742;
    font-weight: 600;
    padding: 0.875rem 1rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: #f5faf9;
    color: #0f766e;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #5eead4;
}

.button-primary,
.button-secondary {
    align-items: center;
    border-radius: 0.75rem;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary {
    background: #0f766e;
    color: #fff;
    padding: 0.75rem 1.125rem;
}

.button-primary:hover {
    background: #115e59;
    transform: translateY(-1px);
}

.button-secondary {
    border: 1px solid #cbd5e1;
    color: #0f2742;
    padding: 0.75rem 1.125rem;
}

.button-secondary:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.button-large {
    min-height: 3.25rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.3);
    outline-offset: 3px;
}

.hero-grid {
    background-image: linear-gradient(rgba(15, 118, 110, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 118, 110, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.result-row {
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.875rem;
}

.result-row span {
    color: #475569;
    font-size: 0.875rem;
}

.result-row strong {
    color: #0f766e;
    font-size: 0.75rem;
    text-align: right;
}

.section-kicker {
    color: #0f766e;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    color: #0f2742;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-top: 0.75rem;
}

.section-description {
    color: #64748b;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-top: 1rem;
}

.tool-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 24rem;
    padding: 1.5rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 22px 45px -30px rgba(15, 39, 66, 0.45);
    transform: translateY(-3px);
}

.tool-icon {
    align-items: center;
    background: #f5faf9;
    border-radius: 1rem;
    color: #0f766e;
    display: flex;
    height: 3.5rem;
    justify-content: center;
    width: 3.5rem;
}

.tool-icon svg {
    height: 1.8rem;
    width: 1.8rem;
}

.step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.step-number {
    color: #0f766e;
    font-family: Manrope, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.api-benefit {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    color: #e2e8f0;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
}

.api-benefit span {
    color: #5eead4;
    font-weight: 800;
}

.api-doc-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

.api-doc-sidebar,
.api-doc-content,
.api-doc-content > *,
.api-doc-content pre {
    max-width: 100%;
    min-width: 0;
}

.api-doc-sidebar {
    display: grid;
    gap: 1rem;
}

.api-doc-nav-link {
    border-radius: 0.65rem;
    display: block;
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
}

.api-doc-nav-child {
    padding-left: 1.6rem;
    font-size: .78rem;
    font-weight: 600;
}

.api-params-table th,
.api-params-table td {
    padding: .8rem .9rem;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

.api-params-table tbody tr:last-child td {
    border-bottom: 0;
}

.api-doc-nav-link:hover,
.api-doc-nav-link:focus-visible {
    background: #f5faf9;
    color: #0f766e;
}

.api-metric-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.api-metric-row dt { color: #64748b; }
.api-metric-row dd { color: #0f2742; font-weight: 700; white-space: nowrap; }

.api-code {
    background: #0f2742;
    border-radius: 0.85rem;
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.65;
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    white-space: pre;
}

.api-response-code { max-height: 36rem; overflow: auto; }
.api-json-editor { line-height: 1.55; min-height: 18rem; resize: vertical; }

@media (min-width: 1024px) {
    .api-doc-layout {
        align-items: start;
        grid-template-columns: 19rem minmax(0, 1fr);
    }

    .api-doc-sidebar {
        position: sticky;
        top: 7rem;
    }
}

.faq-item {
    padding: 1.25rem 0;
}

.faq-item summary {
    color: #0f2742;
    cursor: pointer;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 700;
    list-style-position: outside;
    padding-right: 1rem;
}

.faq-item p {
    color: #64748b;
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 48rem;
}

.calculator-card,
.result-panel,
.result-placeholder {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px -36px rgba(15, 39, 66, 0.35);
    padding: clamp(1.25rem, 3vw, 2rem);
    min-width: 0;
    width: 100%;
}

.calculator-layout {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
    }
}

.result-panel,
.result-placeholder {
    scroll-margin-top: 7rem;
}

.result-placeholder {
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
    text-align: center;
}

.field-label {
    color: #0f2742;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.field-control,
.currency-field {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    color: #102a43;
    min-height: 3rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.field-control {
    min-width: 0;
    padding: 0.65rem 0.8rem;
}

.currency-field {
    align-items: center;
    display: flex;
    overflow: hidden;
}

.currency-field span {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    align-self: stretch;
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    padding: 0 0.75rem;
}

.currency-field input {
    min-width: 0;
    outline: 0;
    padding: 0.65rem 0.8rem;
    width: 100%;
}

.field-control:focus,
.currency-field:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: 0;
}

.field-control[aria-invalid="true"],
.currency-field:has(input[aria-invalid="true"]) {
    border-color: #dc2626;
}

.field-help,
.field-error {
    font-size: 0.75rem;
    line-height: 1.25rem;
    margin-top: 0.35rem;
}

.field-help { color: #64748b; }
.field-error { color: #b91c1c; font-weight: 600; }

.form-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    color: #991b1b;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
}

.calculator-details {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.calculator-details summary {
    color: #0f2742;
    cursor: pointer;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 700;
}

.result-summary-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.875rem;
}

.result-summary-card span,
.result-summary-card strong {
    display: block;
}

.result-summary-card span { color: #64748b; font-size: 0.7rem; }
.result-summary-card strong { color: #0f2742; font-size: 0.82rem; margin-top: 0.25rem; }
.result-heading { color: #0f2742; font-family: Manrope, Arial, sans-serif; font-size: 1rem; font-weight: 800; }

.calculation-line {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.9rem;
}

.result-totals {
    background: #f5faf9;
    border: 1px solid #ccfbf1;
    border-radius: 1rem;
    padding: 1rem;
}

.total-line {
    align-items: center;
    color: #475569;
    display: flex;
    font-size: 0.78rem;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.45rem 0;
}

.total-line strong { color: #0f2742; white-space: nowrap; }
.total-line-main { border-bottom: 1px solid #99f6e4; border-top: 1px solid #99f6e4; color: #0f2742; font-size: 0.9rem; margin: 0.4rem 0; padding: 0.8rem 0; }
.total-line-main strong { color: #0f766e; font-size: 1rem; }
.prose-content { color: #475569; line-height: 1.8; }
.prose-content p + p { margin-top: 1rem; }
.source-link { color: #0f766e; font-weight: 600; text-decoration: underline; text-decoration-color: #99f6e4; text-underline-offset: 3px; }
.source-link:hover { color: #0f2742; }
.button-primary:disabled { cursor: wait; opacity: 0.65; transform: none; }

.option-check {
    align-items: flex-start;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    cursor: pointer;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.option-check:hover,
.option-check:focus-within {
    background: #f5faf9;
    border-color: #0f766e;
}

.option-check input {
    accent-color: #0f766e;
    flex: 0 0 auto;
    height: 1.1rem;
    margin-top: 0.15rem;
    width: 1.1rem;
}

.option-check strong,
.option-check small { display: block; }
.option-check strong { color: #0f2742; font-size: 0.875rem; }
.option-check small { color: #64748b; line-height: 1.4; margin-top: 0.25rem; }

.deadline-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.deadline-row strong { margin-top: 0; }
.deadline-row span { text-align: right; }

.legal-table {
    border-collapse: collapse;
    font-size: 0.8125rem;
    min-width: 32rem;
    width: 100%;
}

.legal-table th,
.legal-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.875rem 1.25rem;
    text-align: left;
}

.legal-table th {
    background: #f8fafc;
    color: #0f2742;
    font-weight: 700;
}

.legal-table td { color: #475569; }

.ad-slot {
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    text-align: center;
    width: 100%;
}

.ad-slot-flow {
    max-width: 80rem;
    padding: 1.5rem 1rem;
}

.ad-slot-vertical {
    max-width: 18.75rem;
    min-width: 10rem;
    padding-bottom: 1.5rem;
}

.ad-label {
    color: #94a3b8;
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
}

.adsbygoogle[data-ad-status="unfilled"],
.ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
.cookie-consent-banner {
    position: fixed;
    z-index: 100;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 1.25rem;
    max-width: 72rem;
    margin-inline: auto;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1rem;
    background: #0f2742;
    color: #fff;
    box-shadow: 0 24px 60px rgba(15, 39, 66, .28);
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-banner h2 {
    font-family: Manrope, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
}

.cookie-consent-banner p {
    margin-top: .4rem;
    max-width: 52rem;
    color: #cbd5e1;
    font-size: .875rem;
    line-height: 1.55;
}

.cookie-consent-banner a {
    display: inline-block;
    margin-top: .45rem;
    color: #99f6e4;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.cookie-consent-banner .button-secondary {
    background: #fff;
    border-color: #fff;
    color: #0f2742;
}

.cookie-consent-banner .button-secondary:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f2742;
}

@media (min-width: 900px) {
    .cookie-consent-banner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 1.4rem 1.6rem;
    }
}
