/**
 * FurniCore Result Dashboard
 *
 * Shared visual system for calculator result dashboards.
 *
 * @package FurniCore
 * @since 1.0.0
 */

/* ==========================================================================
   Dashboard container
   ========================================================================== */

.fc-result-dashboard {
    --fc-result-primary: var(--fc-color-primary, #2563eb);
    --fc-result-primary-hover: var(--fc-color-primary-hover, #1d4ed8);
    --fc-result-primary-soft: rgba(37, 99, 235, 0.1);

    --fc-result-success: #15803d;
    --fc-result-success-soft: #f0fdf4;

    --fc-result-warning: #b45309;
    --fc-result-warning-soft: #fffbeb;

    --fc-result-danger: #b91c1c;
    --fc-result-danger-soft: #fef2f2;

    --fc-result-info: #0369a1;
    --fc-result-info-soft: #f0f9ff;

    --fc-result-surface: #ffffff;
    --fc-result-surface-muted: #f8fafc;
    --fc-result-border: #e2e8f0;
    --fc-result-heading: #0f172a;
    --fc-result-text: #334155;
    --fc-result-muted: #64748b;

    --fc-result-radius-small: 10px;
    --fc-result-radius: 16px;
    --fc-result-radius-large: 24px;

    --fc-result-shadow-small:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.05);

    --fc-result-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);

    width: 100%;
    max-width: 960px;
    margin: 32px auto 0;
    color: var(--fc-result-text);
    font-family: inherit;
    line-height: 1.6;
}

.fc-result-dashboard,
.fc-result-dashboard *,
.fc-result-dashboard *::before,
.fc-result-dashboard *::after {
    box-sizing: border-box;
}

.fc-result-dashboard[hidden] {
    display: none !important;
}

/* ==========================================================================
   Dashboard structure
   ========================================================================== */

.fc-result-dashboard__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fc-result-dashboard__grid,
.fc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fc-result-dashboard__section,
.fc-result-section {
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: var(--fc-result-surface);
    border: 1px solid var(--fc-result-border);
    border-radius: var(--fc-result-radius);
    box-shadow: var(--fc-result-shadow-small);
}

.fc-result-dashboard__section--full,
.fc-result-section--full {
    grid-column: 1 / -1;
}

.fc-result-dashboard__section-header,
.fc-result-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fc-result-dashboard__section-title,
.fc-result-section__title {
    margin: 0;
    color: var(--fc-result-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.fc-result-dashboard__section-description,
.fc-result-section__description {
    margin: 6px 0 0;
    color: var(--fc-result-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Result hero
   ========================================================================== */

.fc-result-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.2),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--fc-result-primary),
            var(--fc-result-primary-hover)
        );
    border-radius: var(--fc-result-radius-large);
    box-shadow: var(--fc-result-shadow);
}

.fc-result-hero::before,
.fc-result-hero::after {
    position: absolute;
    z-index: -1;
    display: block;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.fc-result-hero::before {
    top: -80px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
}

.fc-result-hero::after {
    bottom: -100px;
    left: -70px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.06);
}

.fc-result-hero__eyebrow,
.fc-result-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 14px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(5px);
}

.fc-result-hero__title {
    max-width: 680px;
    margin: 0 auto 10px;
    color: inherit;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.fc-result-hero__value,
.fc-result-value {
    margin: 0;
    color: inherit;
    font-size: clamp(2.5rem, 8vw, 4.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.fc-result-hero__currency {
    margin-inline-start: 8px;
    font-size: 0.48em;
    font-weight: 700;
    letter-spacing: 0;
    opacity: 0.9;
}

.fc-result-hero__range,
.fc-result-range {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9375rem;
    background: rgba(15, 23, 42, 0.14);
    border-radius: 999px;
}

.fc-result-hero__range-label {
    font-weight: 500;
    opacity: 0.85;
}

.fc-result-hero__range-value {
    font-weight: 700;
}

.fc-result-hero__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
}

/* ==========================================================================
   Shared result cards
   ========================================================================== */

.fc-result-card {
    position: relative;
    min-width: 0;
    height: 100%;
    padding: 24px;
    background: var(--fc-result-surface);
    border: 1px solid var(--fc-result-border);
    border-radius: var(--fc-result-radius);
    box-shadow: var(--fc-result-shadow-small);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.fc-result-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--fc-result-shadow);
    transform: translateY(-2px);
}

.fc-result-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.fc-result-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--fc-result-primary);
    background: var(--fc-result-primary-soft);
    border-radius: 12px;
}

.fc-result-card__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.fc-result-card__heading {
    min-width: 0;
}

.fc-result-card__title {
    margin: 0;
    color: var(--fc-result-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.fc-result-card__subtitle {
    margin: 4px 0 0;
    color: var(--fc-result-muted);
    font-size: 0.875rem;
}

.fc-result-card__body > :first-child {
    margin-top: 0;
}

.fc-result-card__body > :last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.fc-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--fc-result-text);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    background: var(--fc-result-surface-muted);
    border: 1px solid var(--fc-result-border);
    border-radius: 999px;
}

.fc-result-badge--success {
    color: var(--fc-result-success);
    background: var(--fc-result-success-soft);
    border-color: rgba(21, 128, 61, 0.18);
}

.fc-result-badge--warning {
    color: var(--fc-result-warning);
    background: var(--fc-result-warning-soft);
    border-color: rgba(180, 83, 9, 0.18);
}

.fc-result-badge--danger {
    color: var(--fc-result-danger);
    background: var(--fc-result-danger-soft);
    border-color: rgba(185, 28, 28, 0.18);
}

.fc-result-badge--info {
    color: var(--fc-result-info);
    background: var(--fc-result-info-soft);
    border-color: rgba(3, 105, 161, 0.18);
}

.fc-result-badge--primary {
    color: var(--fc-result-primary);
    background: var(--fc-result-primary-soft);
    border-color: rgba(37, 99, 235, 0.18);
}

/* ==========================================================================
   Budget assessment
   ========================================================================== */

.fc-result-budget {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fc-result-budget__level {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.fc-result-budget__label {
    margin: 0;
    color: var(--fc-result-heading);
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.25;
}

.fc-result-budget__description {
    margin: 0;
    color: var(--fc-result-text);
    font-size: 0.9375rem;
}

.fc-result-budget__scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 4px;
}

.fc-result-budget__scale-item {
    height: 7px;
    overflow: hidden;
    background: var(--fc-result-border);
    border-radius: 999px;
}

.fc-result-budget__scale-item.is-active {
    background: var(--fc-result-primary);
}

/* ==========================================================================
   Confidence score
   ========================================================================== */

.fc-result-confidence {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fc-result-confidence__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.fc-result-confidence__score {
    color: var(--fc-result-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.fc-result-confidence__label {
    color: var(--fc-result-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.fc-result-progress {
    position: relative;
    width: 100%;
    height: 10px;
    overflow: hidden;
    background: var(--fc-result-border);
    border-radius: 999px;
}

.fc-result-progress__bar {
    display: block;
    width: var(--fc-confidence-score, 0%);
    min-width: 0;
    max-width: 100%;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--fc-result-primary),
            var(--fc-result-primary-hover)
        );
    border-radius: inherit;
    transition: width 500ms ease;
}

.fc-result-confidence__description {
    margin: 0;
    color: var(--fc-result-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Recommendations
   ========================================================================== */

.fc-result-recommendations {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-result-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    color: var(--fc-result-text);
    background: var(--fc-result-surface-muted);
    border: 1px solid var(--fc-result-border);
    border-radius: var(--fc-result-radius-small);
}

.fc-result-recommendation__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    color: var(--fc-result-primary);
    background: var(--fc-result-primary-soft);
    border-radius: 50%;
}

.fc-result-recommendation__content {
    min-width: 0;
}

.fc-result-recommendation__title {
    margin: 0;
    color: var(--fc-result-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.fc-result-recommendation__description {
    margin: 4px 0 0;
    color: var(--fc-result-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.fc-result-recommendation--success {
    background: var(--fc-result-success-soft);
    border-color: rgba(21, 128, 61, 0.16);
}

.fc-result-recommendation--success .fc-result-recommendation__icon {
    color: var(--fc-result-success);
    background: rgba(21, 128, 61, 0.1);
}

.fc-result-recommendation--warning {
    background: var(--fc-result-warning-soft);
    border-color: rgba(180, 83, 9, 0.16);
}

.fc-result-recommendation--warning .fc-result-recommendation__icon {
    color: var(--fc-result-warning);
    background: rgba(180, 83, 9, 0.1);
}

.fc-result-recommendation--info {
    background: var(--fc-result-info-soft);
    border-color: rgba(3, 105, 161, 0.16);
}

.fc-result-recommendation--info .fc-result-recommendation__icon {
    color: var(--fc-result-info);
    background: rgba(3, 105, 161, 0.1);
}

/* ==========================================================================
   Result actions
   ========================================================================== */

.fc-result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fc-result-action,
.fc-result-actions .fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin: 0;
    padding: 10px 18px;
    color: #ffffff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background: var(--fc-result-primary);
    border: 1px solid var(--fc-result-primary);
    border-radius: 10px;
    appearance: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.fc-result-action:hover,
.fc-result-actions .fc-button:hover {
    color: #ffffff;
    text-decoration: none;
    background: var(--fc-result-primary-hover);
    border-color: var(--fc-result-primary-hover);
    transform: translateY(-1px);
}

.fc-result-action--secondary,
.fc-result-actions .fc-button--secondary {
    color: var(--fc-result-heading);
    background: var(--fc-result-surface);
    border-color: var(--fc-result-border);
}

.fc-result-action--secondary:hover,
.fc-result-actions .fc-button--secondary:hover {
    color: var(--fc-result-primary);
    background: var(--fc-result-primary-soft);
    border-color: rgba(37, 99, 235, 0.3);
}

.fc-result-action--ghost {
    color: var(--fc-result-primary);
    background: transparent;
    border-color: transparent;
}

.fc-result-action--ghost:hover {
    color: var(--fc-result-primary-hover);
    background: var(--fc-result-primary-soft);
    border-color: transparent;
}

.fc-result-action[disabled],
.fc-result-action[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
    transform: none;
}

.fc-result-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fc-result-action__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Empty states and placeholders
   ========================================================================== */

.fc-result-placeholder {
    padding: 24px;
    color: var(--fc-result-muted);
    text-align: center;
    background: var(--fc-result-surface-muted);
    border: 1px dashed var(--fc-result-border);
    border-radius: var(--fc-result-radius-small);
}

.fc-result-placeholder__title {
    margin: 0 0 6px;
    color: var(--fc-result-heading);
    font-size: 1rem;
    font-weight: 700;
}

.fc-result-placeholder__description {
    margin: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Related calculators and articles
   ========================================================================== */

.fc-result-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-result-related__item {
    min-width: 0;
}

.fc-result-related__link {
    display: block;
    height: 100%;
    padding: 16px;
    color: var(--fc-result-text);
    text-decoration: none;
    background: var(--fc-result-surface-muted);
    border: 1px solid var(--fc-result-border);
    border-radius: var(--fc-result-radius-small);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.fc-result-related__link:hover {
    color: var(--fc-result-primary);
    text-decoration: none;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--fc-result-shadow-small);
    transform: translateY(-2px);
}

.fc-result-related__title {
    margin: 0;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.fc-result-related__description {
    margin: 6px 0 0;
    color: var(--fc-result-muted);
    font-size: 0.8125rem;
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.fc-result-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    color: var(--fc-result-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    background: var(--fc-result-surface-muted);
    border: 1px solid var(--fc-result-border);
    border-radius: var(--fc-result-radius-small);
}

.fc-result-disclaimer__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--fc-result-muted);
}

.fc-result-disclaimer p {
    margin: 0;
}

/* ==========================================================================
   Theme: Minimal
   ========================================================================== */

.fc-result-dashboard.fc-theme-minimal {
    --fc-result-shadow-small: none;
    --fc-result-shadow: none;
    --fc-result-radius: 8px;
    --fc-result-radius-large: 12px;
}

.fc-result-dashboard.fc-theme-minimal .fc-result-hero {
    color: var(--fc-result-heading);
    background: var(--fc-result-surface);
    border: 2px solid var(--fc-result-heading);
}

.fc-result-dashboard.fc-theme-minimal .fc-result-hero::before,
.fc-result-dashboard.fc-theme-minimal .fc-result-hero::after {
    display: none;
}

.fc-result-dashboard.fc-theme-minimal .fc-result-hero__eyebrow,
.fc-result-dashboard.fc-theme-minimal .fc-result-hero__badge,
.fc-result-dashboard.fc-theme-minimal .fc-result-hero__range {
    color: var(--fc-result-text);
    background: var(--fc-result-surface-muted);
    border-color: var(--fc-result-border);
}

.fc-result-dashboard.fc-theme-minimal .fc-result-hero__meta {
    color: var(--fc-result-muted);
}

/* ==========================================================================
   Theme: Luxury
   ========================================================================== */

.fc-result-dashboard.fc-theme-luxury {
    --fc-result-primary: #8a6b2f;
    --fc-result-primary-hover: #6f5525;
    --fc-result-primary-soft: rgba(138, 107, 47, 0.11);
    --fc-result-heading: #241f17;
    --fc-result-text: #4c4437;
    --fc-result-muted: #746b5e;
    --fc-result-border: #e7decd;
    --fc-result-surface-muted: #fbf8f2;
    --fc-result-radius: 10px;
    --fc-result-radius-large: 14px;
}

.fc-result-dashboard.fc-theme-luxury .fc-result-hero {
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.17),
            transparent 36%
        ),
        linear-gradient(135deg, #2d271d, #7a5f2c);
}

.fc-result-dashboard.fc-theme-luxury .fc-result-card,
.fc-result-dashboard.fc-theme-luxury .fc-result-section {
    border-top: 3px solid var(--fc-result-primary);
}

/* ==========================================================================
   Theme: Dark
   ========================================================================== */

.fc-result-dashboard.fc-theme-dark {
    --fc-result-primary: #60a5fa;
    --fc-result-primary-hover: #93c5fd;
    --fc-result-primary-soft: rgba(96, 165, 250, 0.13);

    --fc-result-success: #4ade80;
    --fc-result-success-soft: rgba(74, 222, 128, 0.09);

    --fc-result-warning: #fbbf24;
    --fc-result-warning-soft: rgba(251, 191, 36, 0.09);

    --fc-result-danger: #f87171;
    --fc-result-danger-soft: rgba(248, 113, 113, 0.09);

    --fc-result-info: #38bdf8;
    --fc-result-info-soft: rgba(56, 189, 248, 0.09);

    --fc-result-surface: #111827;
    --fc-result-surface-muted: #1f2937;
    --fc-result-border: #374151;
    --fc-result-heading: #f8fafc;
    --fc-result-text: #d1d5db;
    --fc-result-muted: #9ca3af;

    --fc-result-shadow-small:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15);

    --fc-result-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);
}

.fc-result-dashboard.fc-theme-dark .fc-result-hero {
    color: #ffffff;
    background:
        radial-gradient(
            circle at top right,
            rgba(96, 165, 250, 0.2),
            transparent 38%
        ),
        linear-gradient(135deg, #111827, #1e3a8a);
}

/* ==========================================================================
   RTL support
   ========================================================================== */

.fc-result-dashboard[dir="rtl"],
.fc-result-dashboard.fc-is-rtl,
.rtl .fc-result-dashboard {
    direction: rtl;
    text-align: right;
}

.fc-result-dashboard[dir="rtl"] .fc-result-value,
.fc-result-dashboard.fc-is-rtl .fc-result-value,
.rtl .fc-result-dashboard .fc-result-value {
    letter-spacing: 0;
}

.fc-result-dashboard[dir="rtl"] .fc-result-hero__currency,
.fc-result-dashboard.fc-is-rtl .fc-result-hero__currency,
.rtl .fc-result-dashboard .fc-result-hero__currency {
    margin-right: 8px;
    margin-left: 0;
}

.fc-result-dashboard[dir="rtl"] .fc-result-actions,
.fc-result-dashboard.fc-is-rtl .fc-result-actions,
.rtl .fc-result-dashboard .fc-result-actions {
    justify-content: flex-start;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.fc-result-dashboard a:focus-visible,
.fc-result-dashboard button:focus-visible,
.fc-result-dashboard [tabindex]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.38);
    outline-offset: 3px;
}

.fc-result-dashboard .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fc-result-dashboard *,
    .fc-result-dashboard *::before,
    .fc-result-dashboard *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 782px) {
    .fc-result-dashboard {
        margin-top: 24px;
    }

    .fc-result-dashboard__grid,
    .fc-result-grid {
        grid-template-columns: 1fr;
    }

    .fc-result-dashboard__section--full,
    .fc-result-section--full {
        grid-column: auto;
    }

    .fc-result-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-result-hero {
        padding: 32px 22px;
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 520px) {
    .fc-result-dashboard__inner {
        gap: 14px;
    }

    .fc-result-dashboard__section,
    .fc-result-section,
    .fc-result-card {
        padding: 18px;
        border-radius: 13px;
    }

    .fc-result-hero {
        padding: 28px 16px;
        border-radius: 18px;
    }

    .fc-result-hero__value,
    .fc-result-value {
        font-size: clamp(2.25rem, 14vw, 3.35rem);
    }

    .fc-result-hero__range,
    .fc-result-range {
        width: 100%;
        border-radius: 10px;
    }

    .fc-result-confidence__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .fc-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-result-action,
    .fc-result-actions .fc-button {
        width: 100%;
    }

    .fc-result-related {
        grid-template-columns: 1fr;
    }

    .fc-result-budget__scale {
        gap: 3px;
    }

    .fc-result-disclaimer {
        padding: 14px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .fc-result-dashboard {
        max-width: none;
        margin: 0;
        color: #000000;
    }

    .fc-result-dashboard__inner {
        gap: 12px;
    }

    .fc-result-hero {
        color: #000000;
        background: #ffffff !important;
        border: 2px solid #000000;
        box-shadow: none;
    }

    .fc-result-hero::before,
    .fc-result-hero::after {
        display: none;
    }

    .fc-result-hero__eyebrow,
    .fc-result-hero__badge,
    .fc-result-hero__range {
        color: #000000;
        background: #ffffff;
        border: 1px solid #777777;
    }

    .fc-result-hero__meta {
        color: #333333;
    }

    .fc-result-card,
    .fc-result-section,
    .fc-result-dashboard__section {
        color: #000000;
        background: #ffffff;
        border: 1px solid #999999;
        box-shadow: none;
        break-inside: avoid;
    }

    .fc-result-actions {
        display: none !important;
    }

    .fc-result-progress {
        border: 1px solid #777777;
    }

    .fc-result-progress__bar {
        background: #555555 !important;
    }

    .fc-result-related__link {
        color: #000000;
        background: #ffffff;
        border-color: #999999;
    }
}
/* ==========================================================================
   Gutenberg calculator width fix
   ========================================================================== */

.furnicore-calculator-block {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.furnicore-calculator-block > .furnicore-calculator,
.furnicore-calculator-block > .fc-calculator,
.furnicore-calculator-block > .fc-result-dashboard {
    width: 100%;
    max-width: 100%;
}

/*
 * Allow the calculator shell to use a practical desktop width.
 * This overrides restrictive widths inherited from the block or theme.
 */
.furnicore-calculator-block .furnicore-calculator,
.furnicore-calculator-block .fc-calculator {
    width: min(100%, 1100px);
    max-width: 1100px;
    margin-inline: auto;
}

/*
 * Some WordPress themes restrict ordinary blocks to a narrow content width.
 * The wide alignment option allows the calculator to use more page space.
 */
.wp-block-furnicore-calculator.alignwide {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.wp-block-furnicore-calculator.alignfull {
    width: 100%;
    max-width: none;
}

/* Result dashboard */
.furnicore-calculator-block .fc-result-dashboard {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .wp-block-furnicore-calculator.alignwide,
    .furnicore-calculator-block .furnicore-calculator,
    .furnicore-calculator-block .fc-calculator,
    .furnicore-calculator-block .fc-result-dashboard {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 782px) {
    .wp-block-furnicore-calculator.alignwide {
        width: 100%;
    }

    .furnicore-calculator-block {
        padding-inline: 12px;
    }
}
/* ==========================================================================
   Gutenberg calculator: follow the active theme content width
   ========================================================================== */

.wp-block-furnicore-calculator,
.furnicore-calculator-block {
    width: 100%;
    max-width: none;
    margin: 0;
}

.furnicore-calculator-block > *,
.furnicore-calculator-block .furnicore-calculator,
.furnicore-calculator-block .fc-calculator,
.furnicore-calculator-block .fc-calculator-shell,
.furnicore-calculator-block .fc-result-dashboard {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/*
 * Keep the calculator inside the width controlled by the WordPress theme.
 * Do not force wide or full-width behavior.
 */
.wp-block-furnicore-calculator.alignwide,
.wp-block-furnicore-calculator.alignfull {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* Mobile spacing only */
@media (max-width: 782px) {
    .furnicore-calculator-block {
        padding-inline: 0;
    }
}