﻿
.spacing-page {
    background: #f7faf7;
    padding: 30px 0 60px;
    color: #183b25;
}

    .spacing-page .container {
        max-width: 1050px;
    }

.spacing-hero {
    text-align: center;
    background: linear-gradient(135deg, #075b2b, #198754);
    color: #fff;
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 25px;
}

    .spacing-hero span {
        font-size: 12px;
        font-weight: 700;
    }

    .spacing-hero h1 {
        font-size: clamp(26px, 4vw, 38px);
        font-weight: 800;
        margin: 12px 0;
    }

    .spacing-hero p {
        max-width: 600px;
        margin: auto;
    }

.spacing-panel,
.spacing-results,
.spacing-guide {
    background: #fff;
    border: 1px solid #dfe9e0;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 22px;
}

    .spacing-panel h2,
    .spacing-results h2,
    .spacing-guide h2 {
        font-size: 23px;
        font-weight: 750;
        margin-bottom: 20px;
    }

.spacing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.spacing-field label {
    display: block;
    font-weight: 650;
    margin-bottom: 8px;
}

.spacing-field input,
.spacing-field select {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbdccc;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #183b25;
}

    .spacing-field input:focus,
    .spacing-field select:focus {
        outline: 2px solid #198754;
        outline-offset: 1px;
    }

.spacing-unit {
    margin-top: 18px;
}

.spacing-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

    .spacing-actions button {
        padding: 13px 20px;
        border-radius: 10px;
        font-weight: 700;
        cursor: pointer;
    }

#psCalculate {
    background: #087a37;
    color: white;
    border: 1px solid #087a37;
}

#psReset {
    background: white;
    color: #087a37;
    border: 1px solid #087a37;
}

#psError {
    margin-top: 15px;
    color: #b42318;
    font-weight: 600;
}

.spacing-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.spacing-result {
    background: #edf8f0;
    border-radius: 12px;
    padding: 18px 10px;
    text-align: center;
}

    .spacing-result span,
    .spacing-result small {
        display: block;
        font-size: 13px;
    }

    .spacing-result strong {
        display: block;
        font-size: 27px;
        color: #075b2b;
        margin: 8px 0;
        overflow-wrap: anywhere;
    }

.spacing-results h3 {
    font-size: 19px;
    margin: 28px 0 14px;
}

.spacing-preview {
    background: #f4faf4;
    border: 1px dashed #b4d5bd;
    border-radius: 12px;
    padding: 20px;
    overflow: auto;
}

.spacing-dots {
    display: grid;
    gap: 12px;
    justify-content: center;
}

.spacing-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #198754;
}

.spacing-hint {
    font-size: 13px;
    color: #607568;
    margin-top: 12px;
}

.spacing-guide {
    line-height: 1.8;
}

    .spacing-guide h3 {
        margin-top: 22px;
        font-size: 19px;
    }

/* BREADCRUMB */

.tools-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}

    .tools-breadcrumb ol {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .tools-breadcrumb li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #476b52;
    }

        .tools-breadcrumb li:not(:last-child)::after {
            content: "›";
            color: #789482;
            font-size: 18px;
        }

    .tools-breadcrumb a {
        color: #087a37;
        text-decoration: none;
        font-weight: 600;
    }

        .tools-breadcrumb a:hover {
            text-decoration: underline;
        }

    .tools-breadcrumb li[aria-current="page"] {
        color: #183b25;
        font-weight: 700;
    }

@media (max-width: 576px) {
    .tools-breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
}


@media (max-width: 767px) {
    .spacing-page {
        padding: 16px 0 40px;
    }

    .spacing-hero {
        padding: 30px 16px;
    }

    .spacing-panel,
    .spacing-results,
    .spacing-guide {
        padding: 18px;
    }

    .spacing-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spacing-actions {
        flex-direction: column;
    }

        .spacing-actions button {
            width: 100%;
        }
}
