/* =========================================
   HOBBY PAINT FAQ AND HELP CENTRE
   ========================================= */

.hp-faq {
    --hp-green: #28563e;
    --hp-light: #edf4ef;
    --hp-border: #dce5de;
    color: #333;
    line-height: 1.7;
}

.hp-faq * {
    box-sizing: border-box;
}

.hp-faq h1,
.hp-faq h2,
.hp-faq h3 {
    color: var(--hp-green);
    line-height: 1.3;
}

.hp-faq h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 14px;
}

.hp-faq h2 {
    font-size: clamp(23px, 3vw, 30px);
    margin: 0 0 16px;
}

.hp-faq h3 {
    font-size: 19px;
    margin: 0 0 10px;
}

.hp-faq p {
    margin: 0 0 16px;
}

.hp-faq section {
    margin-bottom: 32px;
    scroll-margin-top: 30px;
}

.hp-faq .hp-small {
    font-size: 13px;
    color: #626b65;
}

.hp-faq .hp-eyebrow {
    color: var(--hp-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Introduction */

.hp-faq .hp-hero {
    background: var(--hp-light);
    border: 1px solid var(--hp-border);
    border-radius: 9px;
    padding: 34px 24px;
    text-align: center;
}

.hp-faq .hp-hero p {
    max-width: 720px;
    margin: 0 auto;
}

/* Section navigation */

.hp-faq .hp-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hp-faq .hp-index a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 7px;
    padding: 18px 12px;
    color: var(--hp-green);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    min-height: 65px;
}

.hp-faq .hp-index a:hover {
    background: var(--hp-light);
    border-color: var(--hp-green);
}

/* Expandable FAQs */

.hp-faq details {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    padding: 15px 18px;
    margin-bottom: 10px;
}

.hp-faq details[open] {
    background: #f7faf7;
    border-color: #b7c9bd;
}

.hp-faq summary {
    cursor: pointer;
    color: var(--hp-green);
    font-weight: 600;
    font-size: 15px;
}

.hp-faq details p {
    margin: 14px 0 0;
}

.hp-faq details ul {
    margin: 12px 0 12px 22px;
}

.hp-faq details a {
    color: var(--hp-green);
}

/* Information panels */

.hp-faq .hp-panel {
    background: var(--hp-light);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.hp-faq .hp-panel p:last-child {
    margin-bottom: 0;
}

/* Difficulty ratings */

.hp-faq .hp-difficulty {
    margin: 20px 0;
}

.hp-faq .hp-grade {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hp-faq .hp-grade:last-child {
    border-bottom: 0;
}

.hp-faq .hp-grade p {
    margin: 0;
    font-size: 14px;
}

.hp-faq .hp-badge {
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.hp-faq .hp-easy {
    color: #387653;
}

.hp-faq .hp-moderate {
    color: #36768c;
}

.hp-faq .hp-advanced {
    color: #a66a24;
}

.hp-faq .hp-difficult {
    color: #a64040;
}

.hp-faq .hp-master {
    color: #76518d;
}

/* Information cards */

.hp-faq .hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.hp-faq .hp-card {
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    min-width: 0;
}

.hp-faq .hp-card p {
    font-size: 14px;
    margin-bottom: 0;
}

.hp-faq .hp-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hp-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Buttons */

.hp-faq .hp-button {
    display: inline-block;
    padding: 12px 20px;
    margin: 4px;
    border: 1px solid var(--hp-green);
    border-radius: 5px;
    background: var(--hp-green);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.hp-faq .hp-button:hover {
    background: #193e2b;
}

.hp-faq .hp-outline {
    background: #fff;
    color: var(--hp-green) !important;
}

.hp-faq .hp-outline:hover {
    background: var(--hp-light);
}

.hp-faq .hp-actions {
    margin-top: 20px;
    text-align: center;
}

.hp-faq a:focus-visible,
.hp-faq summary:focus-visible {
    outline: 2px solid var(--hp-green);
    outline-offset: 3px;
}

/* Mix and match promotion */

.hp-faq .hp-promotion {
    background: var(--hp-light);
    border: 1px solid var(--hp-border);
    border-radius: 9px;
    padding: 28px 24px;
    text-align: center;
}

.hp-faq .hp-promotion p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Final call to action */

.hp-faq .hp-final {
    background: var(--hp-green);
    color: #fff;
    border-radius: 9px;
    padding: 30px 24px;
    text-align: center;
}

.hp-faq .hp-final h2 {
    color: #fff;
}

.hp-faq .hp-final .hp-button {
    background: #fff;
    color: var(--hp-green) !important;
    border-color: #fff;
}

.hp-faq .hp-final .hp-button:hover {
    background: var(--hp-light);
}

/* Mobile layout */

@media (max-width: 767px) {

    .hp-faq section {
        margin-bottom: 24px;
    }

    .hp-faq .hp-hero {
        padding: 24px 16px;
    }

    .hp-faq .hp-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hp-faq .hp-index a {
        font-size: 13px;
        padding: 13px 8px;
        min-height: 55px;
    }

    .hp-faq .hp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-faq .hp-card,
    .hp-faq .hp-panel {
        padding: 18px;
    }

    .hp-faq .hp-grade {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 12px;
    }

    .hp-faq .hp-grade p {
        font-size: 13px;
    }

    .hp-faq .hp-badge {
        padding: 5px;
        font-size: 12px;
    }

    .hp-faq details {
        padding: 14px;
    }

    .hp-faq summary {
        font-size: 14px;
    }

    .hp-faq .hp-final,
    .hp-faq .hp-promotion {
        padding: 24px 16px;
    }

    .hp-faq .hp-final .hp-button {
        display: block;
        max-width: 280px;
        margin: 8px auto;
    }

}

@media (max-width: 340px) {

    .hp-faq .hp-index {
        grid-template-columns: 1fr;
    }

}
/* FAQ layout corrections */

/* Remove unwanted empty paragraphs */

.hp-faq .hp-index > p:empty,
.hp-faq .hp-grade > p:empty,
.hp-faq .hp-final > p:empty,
.hp-faq .hp-actions > p:empty {
    display: none !important;
}

/* Section navigation */

.hp-faq .hp-index {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.hp-faq .hp-index > p {
    display: contents;
}

.hp-faq .hp-index br {
    display: none;
}

.hp-faq .hp-index a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 65px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #dce5de;
    border-radius: 7px;
}

/* Correct difficulty rating layout */

.hp-faq .hp-grade {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 14px 0;
}

.hp-faq .hp-grade > br {
    display: none;
}

.hp-faq .hp-grade .hp-badge {
    flex: 0 0 110px;
    width: 110px;
}

.hp-faq .hp-grade p:has(.hp-badge) {
    flex: 0 0 110px !important;
    margin: 0 !important;
}

.hp-faq .hp-grade p:not(:has(.hp-badge)) {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    white-space: normal;
}

/* Desktop button alignment */

.hp-faq .hp-final > p:has(.hp-button),
.hp-faq .hp-actions > p {
    display: contents;
}

.hp-faq .hp-final > br,
.hp-faq .hp-actions br,
.hp-faq .hp-final p:has(.hp-button) br {
    display: none;
}

.hp-faq .hp-final .hp-button,
.hp-faq .hp-actions .hp-button {
    display: inline-block !important;
    width: auto;
    margin: 5px;
}

/* Mobile adjustments */

@media (max-width: 767px) {

    .hp-faq .hp-index {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .hp-faq .hp-grade {
        gap: 12px;
    }

    .hp-faq .hp-grade .hp-badge,
    .hp-faq .hp-grade p:has(.hp-badge) {
        flex: 0 0 85px !important;
        width: 85px;
    }

    .hp-faq .hp-final .hp-button {
        display: block !important;
        width: 100%;
        max-width: 280px;
        margin: 8px auto;
    }

}
.hp-faq .hp-index a {
    background: #edf4ef !important;
    border: 1px solid #c5d6ca !important;
    border-radius: 6px;
    font-weight: 600;
}

.hp-faq .hp-index a:hover {
    background: #28563e !important;
    color: #ffffff !important;
}