@font-face {
    font-family: "WT Inter Tight";
    src: url("../fonts/InterTight-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --wt-font-family: "WT Inter Tight", "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    --wt-type-display: 36px;
    --wt-type-page-title: 28px;
    --wt-type-section-title: 20px;
    --wt-type-card-title: 18px;
    --wt-type-drawer-title: 17px;
    --wt-type-subtitle: 16px;

    --wt-type-body-lg: 15px;
    --wt-type-body: 14px;
    --wt-type-body-sm: 13px;
    --wt-type-meta: 12px;
    --wt-type-micro: 11px;
    --wt-type-nano: 10px;

    --wt-weight-regular: 400;
    --wt-weight-medium: 500;
    --wt-weight-semibold: 600;
    --wt-weight-bold: 700;

    --wt-leading-display: 1.1;
    --wt-leading-heading: 1.2;
    --wt-leading-body: 1.35;
    --wt-leading-compact: 1;

    --wt-tracking-display: -0.56px;
    --wt-tracking-heading: -0.4px;
    --wt-tracking-body: 0.28px;
    --wt-tracking-compact: 0.3px;
    --wt-tracking-meta: 0.48px;
    --wt-tracking-eyebrow: 0.65px;
}

.fd-dashboard,
.fp-overlay,
.fp-drawer-shell {
    font-family: var(--wt-font-family);
    font-size: var(--wt-type-body);
    font-weight: var(--wt-weight-regular);
    line-height: var(--wt-leading-body);
    letter-spacing: var(--wt-tracking-body);
    font-synthesis: none;
    text-rendering: geometricPrecision;
}

.fd-dashboard button,
.fd-dashboard input,
.fd-dashboard select,
.fd-dashboard textarea {
    font-family: inherit;
}

.wt-type-page-title {
    font-size: var(--wt-type-page-title);
    font-weight: var(--wt-weight-semibold);
    line-height: var(--wt-leading-heading);
    letter-spacing: var(--wt-tracking-display);
}

.wt-type-section-title {
    font-size: var(--wt-type-section-title);
    font-weight: var(--wt-weight-semibold);
    line-height: var(--wt-leading-heading);
    letter-spacing: var(--wt-tracking-heading);
}

.wt-type-card-title {
    font-size: var(--wt-type-card-title);
    font-weight: var(--wt-weight-semibold);
    line-height: var(--wt-leading-heading);
}

.wt-type-eyebrow {
    font-size: var(--wt-type-body-sm);
    font-weight: var(--wt-weight-semibold);
    line-height: 16px;
    letter-spacing: var(--wt-tracking-eyebrow);
    text-transform: uppercase;
}

.wt-type-body {
    font-size: var(--wt-type-body);
    font-weight: var(--wt-weight-regular);
    line-height: var(--wt-leading-body);
    letter-spacing: var(--wt-tracking-body);
}

.wt-type-meta {
    font-size: var(--wt-type-meta);
    font-weight: var(--wt-weight-regular);
    line-height: 16px;
    letter-spacing: var(--wt-tracking-meta);
}

/* Keep the projection's dollar basis next to its title on every viewport. */
.wt-chart-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: min-content;
    max-width: 100%;
}
.wt-dollar-basis {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    color: #334fc4;
    background: #eef2ff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* Keep the active household visible across all planning pages. */
.wt-active-plan { margin: 6px 0 0; color: #4b5563; font-size: 12px; line-height: 1.5; }
.wt-active-plan strong { color: #374151; font-weight: 600; }
.fp-header-copy, .sn-header-copy { display: flex; flex-direction: column; }
.fp-header-copy > .wt-active-plan, .sn-header-copy > .wt-active-plan { order: 5; }

.wt-plan-switch { margin: 0; max-width: min(26vw, 15rem); }
