﻿.wift-calculator {
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px;
}

.wift-card,
.wift-result {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.wift-intro {
    margin-bottom: 28px;
}

.wift-kicker {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.wift-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.wift-intro p {
    max-width: 720px;
    color: #4b5563;
}

.wift-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eef2f7;
}

.wift-section h3 {
    margin: 0 0 18px;
    font-size: 1.15rem;
}

.wift-route-block {
    margin: 20px 0;
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.wift-route-block h4 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.wift-route-block h4 span {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.9rem;
}

.wift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wift-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wift-field label {
    font-weight: 600;
    font-size: 0.95rem;
}

.wift-field input,
.wift-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    background: #ffffff;
}

.wift-field small {
    color: #6b7280;
}

.wift-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.wift-button,
.wift-button-secondary {
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 700;
    cursor: pointer;
}

.wift-button {
    border: 0;
    background: #111827;
    color: #ffffff;
}

.wift-button:hover {
    background: #000000;
}

.wift-button-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.wift-result {
    margin-top: 28px;
}

.wift-result-main {
    margin-bottom: 22px;
}

.wift-result-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.wift-result-main h3 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.wift-route-results {
    display: grid;
    gap: 14px;
}

.wift-route-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.wift-route-result p {
    margin: 4px 0 0;
    color: #4b5563;
}

.wift-route-result small {
    grid-column: 1 / -1;
    color: #6b7280;
}

.wift-status-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.wift-status-likely-fits {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.wift-status-likely-fits .wift-status-pill {
    background: #16a34a;
    color: #ffffff;
}

.wift-status-tight-fit {
    background: #fffbeb;
    border-color: #fde68a;
}

.wift-status-tight-fit .wift-status-pill {
    background: #d97706;
    color: #ffffff;
}

.wift-status-possible-problem {
    background: #fff7ed;
    border-color: #fed7aa;
}

.wift-status-possible-problem .wift-status-pill {
    background: #ea580c;
    color: #ffffff;
}

.wift-status-probably-wont-fit {
    background: #fef2f2;
    border-color: #fecaca;
}

.wift-status-probably-wont-fit .wift-status-pill {
    background: #dc2626;
    color: #ffffff;
}

.wift-status-not-checked {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.wift-status-not-checked .wift-status-pill {
    background: #6b7280;
    color: #ffffff;
}

.wift-status-text-likely-fits {
    color: #15803d;
}

.wift-status-text-tight-fit {
    color: #b45309;
}

.wift-status-text-possible-problem {
    color: #c2410c;
}

.wift-status-text-probably-wont-fit {
    color: #b91c1c;
}

.wift-tightest {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f3f4f6;
    border-radius: 12px;
}

.wift-note {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .wift-card,
    .wift-result {
        padding: 20px;
    }

    .wift-grid {
        grid-template-columns: 1fr;
    }

    .wift-route-result {
        grid-template-columns: 1fr;
    }

    .wift-status-pill {
        width: fit-content;
    }
}

.wift-example-loaded input,
.wift-example-loaded select {
    color: #6b7280;
    background-color: #f9fafb;
}

.wift-example-note {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

/* Mobile headline adjustment */
@media (max-width: 768px) {
    .entry-content h1,
    h1.entry-title {
        font-size: 2rem;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .entry-content > p:first-of-type {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .entry-content h1,
    h1.entry-title {
        font-size: 1.75rem;
    }
}

/* =========================
   Will It Fit Through
   First visual polish
   ========================= */

/* General page feel */
body {
    background: #f8fafc;
}

/* Hide default page title on homepage */
body.home h1.entry-title {
    display: none;
}

/* Header / brand */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.inside-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-branding .main-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-branding .main-title a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.site-branding .main-title a::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #111827 0%, #2563eb 100%);
    display: inline-block;
}

.main-navigation .main-nav ul li a {
    font-weight: 600;
}

/* Main content width */
.separate-containers .inside-article,
.one-container .site-content {
    background: transparent;
}

/* Hero */
.wift-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 42px 42px;
    margin: 18px 0 30px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.wift-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.10), transparent 45%),
        radial-gradient(circle at 65% 65%, rgba(17, 24, 39, 0.08), transparent 48%);
    pointer-events: none;
}

.wift-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.wift-hero__eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.wift-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #111827;
}

.wift-hero__subtitle {
    margin: 0;
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #4b5563;
    text-align: center;
}

.wift-hero__content {
    margin: 0 auto;
    text-align: center;
}

/* Calculator spacing */
.wift-calculator {
    margin-top: 10px;
}

.wift-card,
.wift-result {
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.wift-intro {
    position: relative;
    padding-right: 140px;
}

.wift-intro::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(17, 24, 39, 0.05));
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.wift-intro h2 {
    margin-bottom: 8px;
}

.wift-intro p:last-child {
    max-width: 700px;
}

/* Home content below calculator */
.entry-content {
    color: #374151;
}

.entry-content > h2 {
    margin-top: 42px;
    margin-bottom: 14px;
    font-size: 1.65rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

.entry-content > h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #111827;
}

.entry-content > p,
.entry-content li {
    font-size: 1rem;
    line-height: 1.72;
    color: #4b5563;
}

.entry-content > p {
    max-width: 860px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.2em;
}

/* FAQ / note blocks visual rhythm */
.entry-content > h2 + p,
.entry-content > h3 + p {
    margin-top: 0;
}

/* Footer */
.site-info {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Mobile */
@media (max-width: 768px) {
    .inside-header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-branding .main-title {
        font-size: 1.25rem;
    }

    .wift-hero {
        padding: 28px 22px;
        border-radius: 18px;
        margin: 12px 0 24px;
    }

    .wift-hero::after {
        display: none;
    }

    .wift-hero h1 {
        font-size: 1.9rem;
        line-height: 1.12;
    }

    .wift-hero__subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .wift-intro {
        padding-right: 0;
    }

    .wift-intro::after {
        display: none;
    }

    .entry-content > h2 {
        font-size: 1.4rem;
        margin-top: 34px;
    }

    .entry-content > h3 {
        font-size: 1.08rem;
    }
}

@media (max-width: 480px) {
    .wift-hero h1 {
        font-size: 1.7rem;
    }

    .entry-content > h2 {
        font-size: 1.28rem;
    }
}

/* Reduce empty space above the homepage hero */
body.home.separate-containers .site-main {
    margin-top: 18px;
}

body.home .inside-article {
    padding-top: 0;
}

body.home .entry-content > .wift-hero:first-child {
    margin-top: 0;
}

/* Remove decorative square inside calculator intro */
.wift-intro {
    padding-right: 0;
}

.wift-intro::after {
    display: none;
}

/* =========================
   Content sections polish
   ========================= */

.wift-content-sections {
    max-width: 1120px;
    margin: 42px auto 0;
}

.wift-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.wift-info-card,
.wift-result-guide,
.wift-common-uses,
.wift-faq-section,
.wift-important-note {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.wift-section-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.wift-info-card h2,
.wift-result-guide h2,
.wift-common-uses h2,
.wift-faq-section h2,
.wift-important-note h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

.wift-info-card p,
.wift-result-guide p,
.wift-common-uses p,
.wift-faq-section p,
.wift-important-note p {
    color: #4b5563;
    line-height: 1.72;
}

.wift-result-guide,
.wift-common-uses,
.wift-faq-section,
.wift-important-note {
    margin-top: 24px;
}

.wift-result-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.wift-result-guide-item {
    padding: 18px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 16px;
}

.wift-result-guide-item strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.wift-result-guide-item p {
    margin: 0;
}

.wift-faq-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.wift-faq-item {
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 16px;
}

.wift-faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #111827;
}

.wift-faq-item p {
    margin: 0;
}

.wift-important-note {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 768px) {
    .wift-content-sections {
        margin-top: 32px;
    }

    .wift-info-grid,
    .wift-result-guide-grid {
        grid-template-columns: 1fr;
    }

    .wift-info-card,
    .wift-result-guide,
    .wift-common-uses,
    .wift-faq-section,
    .wift-important-note {
        padding: 22px;
        border-radius: 18px;
    }

    .wift-info-card h2,
    .wift-result-guide h2,
    .wift-common-uses h2,
    .wift-faq-section h2,
    .wift-important-note h2 {
        font-size: 1.28rem;
    }

    .wift-faq-item {
        padding: 16px;
    }
}

/* FAQ accordion */
.wift-faq-item {
    padding: 0;
    overflow: hidden;
}

.wift-faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 48px 18px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}

.wift-faq-item summary::-webkit-details-marker {
    display: none;
}

.wift-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.wift-faq-item[open] summary::after {
    content: "-";
}

.wift-faq-item p {
    padding: 0 20px 18px;
    margin: 0;
}

@media (max-width: 768px) {
    .wift-faq-item summary {
        padding: 16px 44px 16px 16px;
        font-size: 1rem;
    }

    .wift-faq-item p {
        padding: 0 16px 16px;
    }
}

