/* =====================================================
   ARTICLE — EXPANDABLE LONG-FORM SECTION
   -----------------------------------------------------
   Progressive-disclosure article used on every page
   except Packing Supplies, Prices and the blog pages.
   Markup lives in the page HTML (crawlable while
   collapsed); sections/article.js drives the reveal.
   ====================================================== */

.art-section {
    padding: var(--section-pad) 24px;
    background: var(--cream, #fffaf0);
}

.art-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* ---- Header ---- */
.art-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.art-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .09);
    border: 1px solid rgba(254, 111, 1, .20);
    color: var(--orange-dark, #cb5901);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.art-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: var(--black, #171714);
}

.art-title em {
    font-style: normal;
    color: var(--orange-dark, #cb5901);
}

/* ---- Body ---- */
.art-body {
    max-width: 860px;
}

.art-block + .art-block {
    margin-top: 28px;
}

.art-block.is-collapsed {
    display: none;
}

.art-heading {
    font-family: "Manrope", sans-serif;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
    color: var(--black, #171714);
    margin-bottom: 10px;
}

.art-block p {
    color: var(--gray, #706b61);
    font-size: 16px;
    line-height: 1.75;
}

.art-block p + p {
    margin-top: 12px;
}

.art-block strong {
    color: var(--black-2, #24231f);
    font-weight: 700;
}

.art-block a {
    color: var(--orange-dark, #cb5901);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(254, 111, 1, .35);
    transition: var(--transition, 300ms cubic-bezier(.2, .8, .2, 1));
}

.art-block a:hover {
    border-bottom-color: var(--orange, #fe6f01);
    color: var(--orange, #fe6f01);
}

/* ---- Entrance animation for newly revealed blocks ---- */
@keyframes artBlockIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.art-block.is-entering {
    animation: artBlockIn 420ms cubic-bezier(.2, .8, .2, 1) both;
}

/* ---- Footer: fade scrim + toggle ---- */
.art-foot {
    position: relative;
    margin-top: 22px;
}

.art-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 96px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 250, 240, 0), var(--cream, #fffaf0) 88%);
}

.art-section.is-open .art-fade {
    display: none;
}

.art-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border: 1px solid #e2dcd0;
    border-radius: 100px;
    background: #ffffff;
    color: var(--black, #171714);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition, 300ms cubic-bezier(.2, .8, .2, 1));
}

.art-toggle:hover {
    border-color: var(--orange, #fe6f01);
    color: var(--orange-dark, #cb5901);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(254, 111, 1, .16);
}

.art-toggle:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 3px;
}

.art-toggle i,
.art-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition, 300ms cubic-bezier(.2, .8, .2, 1));
}

.art-section.is-open .art-toggle svg {
    transform: rotate(180deg);
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .art-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .art-block + .art-block {
        margin-top: 24px;
    }

    .art-block p {
        font-size: 15px;
    }

    .art-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art-block.is-entering {
        animation: none;
    }

    .art-toggle,
    .art-toggle i,
    .art-toggle svg {
        transition: none;
    }

    .art-toggle:hover {
        transform: none;
    }
}

/*
 * Bulleted and numbered lists the operator types in the CMS.
 *
 * Tailwind's Preflight — which the approved design loads, and which this site reproduces
 * byte-for-byte — resets `ul, ol { list-style: none; margin: 0; padding: 0 }`. Every list in the
 * approved markup carries a class that styles it (tick icons, chips, feature rows), so nothing
 * there needed markers and the reset went unnoticed. A list typed into the rich-text editor has no
 * class, so it inherited the reset: the text was indented as a list and no bullet or number ever
 * appeared, in the editor or on the page.
 *
 * Markers are restored for UNCLASSED lists inside the containers that hold operator prose, so the
 * design's own lists — `.sv-points`, `.bp-list`, `.pr-features`, the comparison cards — keep their
 * icons and are untouched. `revert` hands each level back to the browser's own marker, which is
 * why nested lists still read as disc → circle → square and ordered lists as 1. → a. → i.
 */
.art-block :is(ul, ol):not([class]),
.sv-detail-body :is(ul, ol):not([class]),
.sv-step :is(ul, ol):not([class]),
.bp-body :is(ul, ol):not([class]),
.faq-answer-inner :is(ul, ol):not([class]) {
    margin: 12px 0;
    padding-left: 24px;
    list-style: revert;
}

.art-block :is(ul, ol):not([class]) li,
.sv-detail-body :is(ul, ol):not([class]) li,
.sv-step :is(ul, ol):not([class]) li,
.bp-body :is(ul, ol):not([class]) li,
.faq-answer-inner :is(ul, ol):not([class]) li {
    margin: 4px 0;
    /* Nested lists sit tighter than the gap between top-level points. */
}

.art-block :is(ul, ol):not([class]) :is(ul, ol),
.sv-detail-body :is(ul, ol):not([class]) :is(ul, ol),
.sv-step :is(ul, ol):not([class]) :is(ul, ol),
.bp-body :is(ul, ol):not([class]) :is(ul, ol),
.faq-answer-inner :is(ul, ol):not([class]) :is(ul, ol) {
    margin: 4px 0;
    padding-left: 22px;
    list-style: revert;
}
