/* Chenistory Brand Archive
   HobbyPaint Page CSS Manager */

.hp-chenistory {
    --hp-green: #28563e;
    --hp-pale: #edf4ef;
    --hp-soft: #f5f7f5;
    --hp-border: #dce5de;
    --hp-text: #414b44;

    color: var(--hp-text);
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.hp-chenistory,
.hp-chenistory * {
    box-sizing: border-box;
}

.hp-chenistory h1,
.hp-chenistory h2,
.hp-chenistory h3 {
    color: var(--hp-green);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
}

.hp-chenistory h1 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    margin: 0 0 10px;
}

.hp-chenistory h2 {
    font-size: 26px;
    margin: 0 0 14px;
}

.hp-chenistory h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.hp-chenistory p {
    margin: 0 0 14px;
}

.hp-chenistory a {
    color: var(--hp-green);
}

.hp-chenistory .hp-chenistory-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-green);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin: 0 0 10px;
}

.hp-chenistory .hp-chenistory-small {
    font-size: 13px;
    color: #626b65;
}

/* Top description */

.hp-chenistory-top {
    margin-bottom: 24px;
    scroll-margin-top: 100px;
}

.hp-chenistory-hero {
    background: var(--hp-pale);
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    padding: 28px;
}

.hp-chenistory-hero h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 14px;
}

.hp-chenistory-intro {
    font-size: 16px;
    width: 100%;
}

/* Kit benefits */

.hp-chenistory .hp-chenistory-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 10px 18px;
}

.hp-chenistory-benefits li {
    position: relative;
    padding-left: 23px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.hp-chenistory-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hp-green);
    font-weight: 700;
}

/* Canvas notice */

.hp-chenistory-notice {
    background: #ffffff;
    border: 1px solid var(--hp-border);
    border-left: 3px solid var(--hp-green);
    border-radius: 6px;
    padding: 12px 16px;
}

.hp-chenistory-notice p {
    margin: 0;
    font-size: 13px;
}

/* Bottom description */

.hp-chenistory-bottom {
    clear: both;
    margin: 40px 0 25px;
}

.hp-chenistory-section {
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--hp-border);
}

/* Content cards */

.hp-chenistory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.hp-chenistory-card {
    background: var(--hp-soft);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 20px;
    min-width: 0;
}

.hp-chenistory-card p {
    margin: 0;
    font-size: 14px;
}

/* Canvas sizes */

.hp-chenistory-sizes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.hp-chenistory-sizes > div {
    background: var(--hp-pale);
    border: 1px solid var(--hp-border);
    border-radius: 7px;
    padding: 18px 10px;
    text-align: center;
}

.hp-chenistory-sizes strong {
    display: block;
    font-size: 23px;
    color: var(--hp-green);
    line-height: 1.3;
}

.hp-chenistory-sizes span {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

/* Collection navigation */

.hp-chenistory-collections a {
    display: block;
    background: var(--hp-pale);
    border: 1px solid var(--hp-border);
    border-radius: 7px;
    padding: 20px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.hp-chenistory-collections strong {
    display: block;
    font-size: 18px;
    margin-bottom: 7px;
}

.hp-chenistory-collections span {
    display: block;
    color: var(--hp-text);
    font-size: 14px;
}

.hp-chenistory-collections a:hover {
    background: #dce9df;
}

/* Canvas preparation */

.hp-chenistory-preparation {
    background: var(--hp-pale);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 24px;
}

/* Difficulty ratings */

.hp-chenistory-grades {
    background: var(--hp-soft);
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    padding: 5px 20px;
    margin: 20px 0;
}

.hp-chenistory-grade {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hp-chenistory-grade:last-child {
    border-bottom: 0;
}

.hp-chenistory-grade strong {
    flex: 0 0 100px;
    padding: 6px 9px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: #ffffff;
    font-size: 13px;
    text-align: center;
}

.hp-chenistory-grade span {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
}

.hp-chenistory .hp-grade-easy {
    color: #387653;
}

.hp-chenistory .hp-grade-moderate {
    color: #36768c;
}

.hp-chenistory .hp-grade-advanced {
    color: #96601e;
}

.hp-chenistory .hp-grade-difficult {
    color: #a64040;
}

.hp-chenistory .hp-grade-master {
    color: #76518d;
}

/* Expandable FAQs */

.hp-chenistory-faq details {
    background: #ffffff;
    border: 1px solid var(--hp-border);
    border-radius: 6px;
    margin-bottom: 9px;
    overflow: hidden;
}

.hp-chenistory-faq summary {
    position: relative;
    cursor: pointer;
    padding: 15px 42px 15px 17px;
    color: var(--hp-green);
    font-weight: 600;
    font-size: 15px;
    list-style: none;
}

.hp-chenistory-faq summary::-webkit-details-marker {
    display: none;
}

.hp-chenistory-faq summary::after {
    content: "+";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 21px;
    font-weight: 400;
}

.hp-chenistory-faq details[open] summary {
    background: var(--hp-pale);
}

.hp-chenistory-faq details[open] summary::after {
    content: "\2212";
}

.hp-chenistory-faq details > p {
    margin: 0;
    padding: 12px 17px;
    font-size: 14px;
}

/* Buttons */

.hp-chenistory .hp-chenistory-button {
    display: inline-block;
    background: var(--hp-green);
    border: 1px solid var(--hp-green);
    border-radius: 5px;
    padding: 11px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.hp-chenistory .hp-chenistory-button:hover {
    background: #1c402d;
    border-color: #1c402d;
    color: #ffffff;
}

.hp-chenistory-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Premium brand cross-sell */

.hp-chenistory-upgrade {
    background: var(--hp-pale);
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 28px;
}

/* Final call to action */

.hp-chenistory-final {
    background: var(--hp-green);
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    color: #ffffff;
}

.hp-chenistory-final h2,
.hp-chenistory-final p {
    color: #ffffff;
}

.hp-chenistory-final .hp-chenistory-actions {
    margin-top: 20px;
}

.hp-chenistory-final .hp-chenistory-button {
    background: #ffffff;
    color: var(--hp-green);
    border-color: #ffffff;
}

.hp-chenistory-final .hp-chenistory-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.hp-chenistory-final .hp-chenistory-button:hover {
    background: #dce9df;
    color: var(--hp-green);
}

/* WordPress formatting corrections */

.hp-chenistory-grid > p,
.hp-chenistory-grade > p,
.hp-chenistory-actions > p,
.hp-chenistory-sizes > p {
    display: contents;
}

.hp-chenistory-grid > br,
.hp-chenistory-grade br,
.hp-chenistory-actions br,
.hp-chenistory-sizes br {
    display: none;
}

.hp-chenistory p:empty {
    display: none;
}

/* Keyboard accessibility */

.hp-chenistory a:focus-visible,
.hp-chenistory summary:focus-visible {
    outline: 2px solid var(--hp-green);
    outline-offset: 3px;
}

.hp-chenistory-final a:focus-visible {
    outline-color: #ffffff;
}

/* Mobile layout */

@media (max-width: 767px) {

    .hp-chenistory {
        font-size: 14px;
    }

    .hp-chenistory h1 {
        font-size: 25px;
    }

    .hp-chenistory h2 {
        font-size: 23px;
    }

    .hp-chenistory-hero {
        padding: 20px 17px;
    }

    .hp-chenistory-hero h2 {
        font-size: 18px;
    }

    .hp-chenistory-intro {
        font-size: 14px;
    }

    .hp-chenistory .hp-chenistory-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 12px;
        margin: 16px 0;
    }

    .hp-chenistory-benefits li {
        font-size: 12px;
        padding-left: 18px;
    }

    .hp-chenistory-notice {
        padding: 10px 12px;
    }

    .hp-chenistory-grid {
        gap: 10px;
    }

    .hp-chenistory-card,
    .hp-chenistory-collections a {
        padding: 15px;
    }

    .hp-chenistory-card h3,
    .hp-chenistory-collections strong {
        font-size: 16px;
    }

    .hp-chenistory-card p,
    .hp-chenistory-collections span {
        font-size: 13px;
    }

    .hp-chenistory-sizes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hp-chenistory-sizes strong {
        font-size: 21px;
    }

    .hp-chenistory-grades {
        padding: 4px 12px;
    }

    .hp-chenistory-grade {
        gap: 10px;
    }

    .hp-chenistory-grade strong {
        flex-basis: 85px;
        font-size: 12px;
    }

    .hp-chenistory-grade span {
        font-size: 13px;
    }

    .hp-chenistory-section {
        margin-bottom: 24px;
        padding-bottom: 22px;
    }

    .hp-chenistory-preparation,
    .hp-chenistory-upgrade,
    .hp-chenistory-final {
        padding: 22px 17px;
    }

    .hp-chenistory-faq summary {
        font-size: 14px;
    }

    .hp-chenistory-final .hp-chenistory-actions {
        flex-direction: column;
    }

    .hp-chenistory-final .hp-chenistory-button {
        width: 100%;
        max-width: 300px;
    }

}

@media (max-width: 360px) {

    .hp-chenistory-grid {
        grid-template-columns: 1fr;
    }

}
