/* ==========================================================
   GALLOP DESIGN — DELTA E CALCULATOR
   STAGING UI ONLY
   ========================================================== */

.delta-e-tool {
    padding-bottom: 72px;
}

.delta-e-tool > .container {
    max-width: 1320px;
}

/* HERO */

.delta-e-hero {
    padding: 40px 44px;
    margin-bottom: 30px;
}

.delta-e-hero h1 {
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.04;
    margin-bottom: 16px;
}

.delta-e-hero p {
    max-width: 900px;
    font-size: 18px;
    line-height: 1.7;
}

/* INPUT GRID */

.delta-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.delta-color-card {
    padding: 34px;
}

.delta-color-card .card-heading {
    margin-bottom: 26px;
}

.delta-color-card .card-heading h2 {
    font-size: 27px;
}

.delta-color-card .card-heading p {
    font-size: 15px;
    line-height: 1.6;
}

.delta-color-card input,
.delta-color-card select,
.delta-settings-card select {
    min-height: 56px;
    font-size: 17px;
}

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

.delta-input-group {
    margin-top: 24px;
}

/* SETTINGS */

.delta-settings-card {
    margin-top: 26px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 26px;
    align-items: end;
}

.delta-settings-card .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.delta-settings-card .calculate-button,
.delta-settings-card .reset-button {
    min-height: 52px;
    padding: 0 28px;
    font-size: 16px;
}

/* REPORT */

.delta-e-report {
    margin-top: 38px;
    padding: 38px;
    border: 1px solid #ded6c8;
    border-radius: 20px;
    background: #fffdf9;
    box-shadow: 0 14px 38px rgba(15, 24, 38, .08);
}

.delta-e-report .report-header {
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #e5ddd1;
}

.delta-e-report .report-header h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

/* PREVIEW */

.delta-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 26px;
}

.delta-preview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    border: 1px solid #e1d9cd;
    border-radius: 16px;
    background: #fff;
}

.delta-swatch {
    min-height: 150px;
    border-radius: 14px;
    border: 7px solid #fff;
    outline: 1px solid #d4cbbb;
    box-shadow: 0 10px 24px rgba(15, 24, 38, .12);
}

.delta-preview-meta span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b7553;
}

.delta-preview-meta strong {
    display: block;
    margin-bottom: 8px;
    font-size: 30px;
    color: #142033;
}

.delta-preview-meta small {
    font-size: 15px;
    color: #626b76;
}

/* RESULTS */

.delta-result-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 26px;
}

.delta-result-card {
    min-height: 190px;
    padding: 28px;
    border: 1px solid #e0d8cb;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.delta-result-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a775a;
}

.delta-result-card strong {
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.1;
    color: #142033;
}

.delta-result-card small {
    margin-top: 12px;
    font-size: 14px;
    color: #6d7480;
}

.delta-result-card.primary-result {
    min-height: 220px;
    border-color: #172235;
    background:
        linear-gradient(
            135deg,
            #172235 0%,
            #24324a 100%
        );
}

.delta-result-card.primary-result span,
.delta-result-card.primary-result small {
    color: #d9b86c;
}

.delta-result-card.primary-result strong {
    font-size: clamp(54px, 5vw, 78px);
    color: #fff;
}

/* LAB */

.delta-lab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.delta-lab-card {
    padding: 24px 26px;
    border: 1px solid #e0d8cb;
    border-radius: 15px;
    background: #f8f4ed;
}

.delta-lab-card span {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a775a;
}

.delta-lab-card strong {
    display: inline-block;
    margin-right: 18px;
    margin-bottom: 8px;
    font-size: 18px;
    color: #142033;
}

/* REPORT FOOTER */

.delta-report-footer {
    display: grid;
    grid-template-columns: .6fr 1.4fr;
    gap: 20px;
    margin-top: 24px;
}

.delta-report-footer > div {
    padding: 22px 24px;
    border: 1px solid #e1d8ca;
    border-radius: 14px;
    background: #f3eee5;
}

.delta-report-footer span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #87765d;
}

.delta-report-footer strong {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    color: #142033;
}

.delta-e-report > .calculator-alert {
    margin-top: 24px;
    padding: 20px 24px;
    font-size: 16px;
    line-height: 1.65;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .delta-color-grid,
    .delta-preview-grid,
    .delta-lab-grid {
        grid-template-columns: 1fr;
    }

    .delta-settings-card {
        grid-template-columns: 1fr;
    }

    .delta-settings-card .form-actions {
        justify-content: flex-start;
    }

    .delta-result-grid {
        grid-template-columns: 1fr;
    }

    .delta-result-card.primary-result {
        min-height: 190px;
    }
}

@media (max-width: 720px) {

    .delta-e-tool > .container {
        width: min(94%, 1320px);
    }

    .delta-e-hero,
    .delta-color-card,
    .delta-settings-card,
    .delta-e-report {
        padding: 24px 20px;
    }

    .delta-e-hero h1 {
        font-size: 40px;
    }

    .delta-three-grid {
        grid-template-columns: 1fr;
    }

    .delta-preview-card {
        grid-template-columns: 1fr;
    }

    .delta-swatch {
        min-height: 210px;
    }

    .delta-settings-card .form-actions {
        flex-direction: column;
    }

    .delta-report-footer {
        grid-template-columns: 1fr;
    }
}

/* PRINT */

@media print {

    .delta-e-report {
        box-shadow: none;
        border: 1px solid #bbb;
    }

    .delta-result-card,
    .delta-preview-card,
    .delta-lab-card {
        break-inside: avoid;
    }
}

/* ==========================================================
   GALLOP DESIGN — DELTA E CALCULATOR
   BLACK + GOLD + WHITE VISUAL ADAPTER

   VISUAL ONLY.
   Existing Delta E layout/grid geometry is preserved.
   Dynamic .delta-swatch backgrounds remain calculated colors.
   ========================================================== */


/* PAGE CANVAS */

.delta-e-tool {
    --delta-black: #0B0B0B;
    --delta-panel: #151515;
    --delta-gold: #D4A017;
    --delta-gold-light: #E5B62F;
    --delta-cream: #FFF8E7;
    --delta-white: #FFFFFF;
    --delta-light: #E7E7E7;

    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(255,248,231,.78) 0,
            rgba(255,248,231,0) 32%
        ),
        linear-gradient(
            135deg,
            #D9AD38 0%,
            #EBCB68 34%,
            #F3DB8B 58%,
            #E6C04E 78%,
            #C9961E 100%
        );
}


/* HERO */

.delta-e-tool .delta-e-hero {
    position: relative;
    overflow: hidden;

    border: 1px solid var(--delta-gold);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 92% 14%,
            rgba(212,160,23,.25) 0,
            rgba(212,160,23,0) 36%
        ),
        linear-gradient(
            145deg,
            #070707,
            #161616 66%,
            #231C0E
        );

    box-shadow:
        0 18px 40px rgba(11,11,11,.20);
}

.delta-e-tool .delta-e-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #D4A017,
            #E5B62F,
            #FFF8E7,
            #E5B62F,
            #D4A017
        );
}

.delta-e-tool .delta-e-hero .eyebrow {
    color: var(--delta-gold-light);
}

.delta-e-tool .delta-e-hero h1 {
    color: var(--delta-white);
}

.delta-e-tool .delta-e-hero p {
    color: var(--delta-light);
}

.delta-e-tool .tool-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;

    border:
        1px solid rgba(229,182,47,.65);

    background:
        linear-gradient(
            145deg,
            #D4A017,
            #E5B62F
        );

    color: #0B0B0B;

    font-weight: 800;

    box-shadow:
        0 8px 22px rgba(0,0,0,.18);
}


/* COLOR A / COLOR B CARDS */

.delta-e-tool .delta-color-card {
    position: relative;
    overflow: hidden;

    border:
        1px solid rgba(212,160,23,.45);

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #FFF8E7
        );

    box-shadow:
        0 16px 38px rgba(11,11,11,.12);
}

.delta-e-tool .delta-color-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #D4A017,
            #E5B62F,
            #FFF8E7,
            #E5B62F,
            #D4A017
        );
}

.delta-e-tool .delta-color-card h2,
.delta-e-tool .delta-color-card h3 {
    color: #0B0B0B;
}

.delta-e-tool .delta-color-card .card-heading {
    border-bottom-color:
        rgba(212,160,23,.30);
}

.delta-e-tool .step-number {
    border:
        2px solid #D4A017;

    background:
        linear-gradient(
            145deg,
            #070707,
            #151515
        );

    color: #FFFFFF;

    box-shadow:
        0 3px 0 #D4A017;
}


/* FORM LABELS / CONTROLS */

.delta-e-tool label {
    color: #0B0B0B;
    font-weight: 700;
}

.delta-e-tool input,
.delta-e-tool select {
    border:
        1px solid rgba(212,160,23,.46);

    background: #FFFFFF;
    color: #0B0B0B;
}

.delta-e-tool input:focus,
.delta-e-tool select:focus {
    border-color: #D4A017;

    outline:
        2px solid rgba(212,160,23,.16);

    box-shadow:
        0 0 0 3px rgba(212,160,23,.10);
}


/* DELTA E 94 SETTINGS CARD */

.delta-e-tool .delta-settings-card {
    position: relative;
    overflow: hidden;

    border:
        1px solid #D4A017;

    background:
        linear-gradient(
            145deg,
            #070707,
            #161616 68%,
            #231C0E
        );

    color: #FFFFFF;

    box-shadow:
        0 16px 38px rgba(0,0,0,.20);
}

.delta-e-tool .delta-settings-card h2,
.delta-e-tool .delta-settings-card h3,
.delta-e-tool .delta-settings-card label {
    color: #FFFFFF;
}

.delta-e-tool .delta-settings-card p {
    color: #E7E7E7;
}

.delta-e-tool .delta-settings-card select {
    background: #FFFFFF;
    color: #0B0B0B;
}


/* PRIMARY ACTION */

.delta-e-tool .calculate-button {
    border: 1px solid #E5B62F;

    background:
        linear-gradient(
            145deg,
            #070707,
            #151515
        );

    color: #FFFFFF;

    box-shadow:
        0 5px 0 #D4A017,
        0 10px 20px rgba(0,0,0,.15);
}

.delta-e-tool .calculate-button:hover {
    background:
        linear-gradient(
            145deg,
            #151515,
            #231C0E
        );

    color: #FFFFFF;
}


/* RESET */

.delta-e-tool .reset-button {
    border:
        1px solid #D4A017;

    background:
        linear-gradient(
            145deg,
            #FFF8E7,
            #FFFFFF
        );

    color: #0B0B0B;
}

.delta-e-tool .reset-button:hover {
    background: #FFFFFF;
    border-color: #E5B62F;
}


/* REPORT */

.delta-e-tool .delta-e-report {
    position: relative;
    overflow: hidden;

    border:
        1px solid #D4A017;

    background:
        linear-gradient(
            145deg,
            #070707,
            #151515
        );

    color: #FFFFFF;

    box-shadow:
        0 18px 42px rgba(0,0,0,.20);
}

.delta-e-tool .delta-e-report::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #D4A017,
            #E5B62F,
            #FFF8E7,
            #E5B62F,
            #D4A017
        );
}

.delta-e-tool .delta-e-report .report-header h2 {
    color: #FFFFFF;
}

.delta-e-tool .delta-e-report .report-header p,
.delta-e-tool .delta-e-report .report-header .eyebrow {
    color: #E7E7E7;
}


/* COLOR PREVIEW CARDS */

.delta-e-tool .delta-preview-card {
    border:
        1px solid rgba(212,160,23,.48);

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #FFF8E7
        );

    color: #0B0B0B;

    box-shadow:
        0 12px 26px rgba(0,0,0,.12);
}

/*
   CRITICAL:
   .delta-swatch background-color is calculated output.
   Never override background/background-color here.
*/

.delta-e-tool .delta-swatch {
    border:
        2px solid rgba(212,160,23,.76);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.20),
        0 8px 22px rgba(0,0,0,.20);
}

.delta-e-tool .delta-preview-meta span {
    color: #6B5111;
}

.delta-e-tool .delta-preview-meta strong {
    color: #0B0B0B;
}


/* DELTA RESULT CARDS */

.delta-e-tool .delta-result-card {
    border:
        1px solid rgba(212,160,23,.48);

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #FFF8E7
        );

    color: #0B0B0B;

    box-shadow:
        0 12px 26px rgba(0,0,0,.12);
}

.delta-e-tool .delta-result-card span,
.delta-e-tool .delta-result-card small {
    color: #665733;
}

.delta-e-tool .delta-result-card strong {
    color: #0B0B0B;
}

.delta-e-tool .delta-result-card.primary-result {
    border-color: #E5B62F;

    background:
        linear-gradient(
            145deg,
            #E5B62F,
            #FFF8E7
        );

    box-shadow:
        0 12px 28px rgba(212,160,23,.20);
}


/* LAB DETAIL CARDS */

.delta-e-tool .delta-lab-card {
    border:
        1px solid rgba(212,160,23,.42);

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #FFF8E7
        );

    color: #0B0B0B;
}

.delta-e-tool .delta-lab-card span {
    color: #665733;
}

.delta-e-tool .delta-lab-card strong {
    color: #0B0B0B;
}


/* REPORT FOOTER */

.delta-e-tool .delta-report-footer {
    border:
        1px solid rgba(212,160,23,.55);

    background:
        linear-gradient(
            145deg,
            #231C0E,
            #151515
        );

    color: #FFFFFF;
}

.delta-e-tool .delta-report-footer span {
    color: #E7E7E7;
}

.delta-e-tool .delta-report-footer strong {
    color: #E5B62F;
}


/* PRINT */

@media print {

    .delta-e-tool {
        background: #FFFFFF;
    }
}


/* =========================================================
   PAINT FORMULA SCALER SEO CONTENT — FULL-WIDTH BLACK / GOLD
   ========================================================= */

.delta-e-tool > .tool-intro,
.delta-e-tool > .calculator-layout,
.delta-e-tool > .calculator-report,
.delta-e-tool > .calculator-content {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
    box-sizing: border-box;
}

.delta-e-tool .delta-e-seo-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 68px 24px 72px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: linear-gradient(145deg, #0B0B0B 0%, #151515 100%);
    color: #FFFFFF;
}

.delta-e-tool .delta-e-seo-content > * {
    width: min(1120px, 100%);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.delta-e-tool .delta-e-seo-intro {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.delta-e-tool .delta-e-seo-eyebrow {
    display: block;
    margin: 0 0 16px;
    color: #E5B62F;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    text-align: center;
}

.delta-e-tool .delta-e-seo-intro h2 {
    margin: 0 0 18px;
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
}

.delta-e-tool .delta-e-seo-intro p {
    max-width: 820px;
    margin: 0 auto;
    color: #FFFFFF;
    line-height: 1.75;
    text-align: center;
}

.delta-e-tool .delta-e-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.delta-e-tool .delta-e-seo-card {
    padding: 30px;
    border: 1px solid #D4A017;
    border-radius: 16px;
    background: linear-gradient(145deg, #101010 0%, #171717 100%);
    color: #FFFFFF;
}

.delta-e-tool .delta-e-seo-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    padding: 0;
    border-radius: 50%;
    background: #E5B62F;
    color: #0B0B0B;
    font-weight: 900;
}

.delta-e-tool .delta-e-seo-card h3 {
    margin: 0 0 14px;
    color: #E5B62F;
    font-size: 1.2rem;
    line-height: 1.3;
}

.delta-e-tool .delta-e-seo-card p,
.delta-e-tool .delta-e-seo-summary p {
    color: #FFFFFF;
    line-height: 1.7;
}

.delta-e-tool .delta-e-formula {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid #D4A017;
    border-radius: 10px;
    background: #0B0B0B;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.5;
}

.delta-e-tool .delta-e-seo-summary {
    margin-top: 24px;
    padding: 28px 30px;
    border: 1px solid #D4A017;
    border-radius: 16px;
    background: linear-gradient(145deg, #101010 0%, #171717 100%);
}

.delta-e-tool .delta-e-seo-summary h3 {
    margin: 0 0 14px;
    color: #E5B62F;
}

@media (max-width: 800px) {
    .delta-e-tool .delta-e-seo-content {
        padding: 48px 18px 52px;
    }

    .delta-e-tool .delta-e-seo-grid {
        grid-template-columns: 1fr;
    }

    .delta-e-tool .delta-e-seo-card {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .delta-e-tool > .tool-intro,
    .delta-e-tool > .calculator-layout,
    .delta-e-tool > .calculator-report,
    .delta-e-tool > .calculator-content {
        width: calc(100% - 20px);
    }

    .delta-e-tool .delta-e-seo-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .delta-e-tool .delta-e-seo-number {
        width: 46px;
        height: 46px;
    }
}

@media print {
    .delta-e-tool .delta-e-seo-content,
    .delta-e-tool .delta-e-seo-card,
    .delta-e-tool .delta-e-seo-summary,
    .delta-e-tool .delta-e-formula {
        background: #FFFFFF !important;
        color: #000000 !important;
        border-color: #999999 !important;
    }

    .delta-e-tool .delta-e-seo-intro h2,
    .delta-e-tool .delta-e-seo-intro p,
    .delta-e-tool .delta-e-seo-card p,
    .delta-e-tool .delta-e-seo-summary p {
        color: #000000 !important;
    }
}
