/**
 * SSP Core Frontend Styles
 *
 * Brand Colors:
 *   --ssp-teal:      #184456  (primary headings)
 *   --ssp-gold:      #c28d63  (accents, TOC bullets)
 *   --ssp-terracotta: #a65b44 (TOC title, secondary accents)
 *   --ssp-bg:        #F5F5F5  (page background)
 *   --ssp-white:     #FFFFFF
 *   --ssp-dark:      #000000
 *
 * Typography:
 *   Headings: Spectral, serif (600)
 *   Body:     "Source Sans 3", sans-serif
 */

:root {
    --ssp-teal: #184456;
    --ssp-gold: #c28d63;
    --ssp-terracotta: #a65b44;
    --ssp-bg: #F5F5F5;
    --ssp-white: #FFFFFF;
    --ssp-dark: #000000;
    --ssp-grey-light: #F2F5F7;
    --ssp-grey-mid: #c7c8cc;
    --ssp-grey-dark: #424242;
    --ssp-radius: 12px;
    --ssp-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===========================
   TABLE OF CONTENTS
   =========================== */

.ssp-toc {
    background: var(--ssp-white);
    border-radius: var(--ssp-radius);
    box-shadow: var(--ssp-shadow);
    padding: 20px 16px;
    font-family: "Source Sans 3", sans-serif;
}

.ssp-toc__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ssp-toc__title {
    font-family: Spectral, serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--ssp-terracotta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
}

.ssp-toc__toggle {
    display: none; /* Hidden on desktop, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ssp-terracotta);
    transition: transform 0.3s ease;
}

.ssp-toc__toggle[aria-expanded="false"] .ssp-toc__chevron {
    transform: rotate(-90deg);
}

.ssp-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.ssp-toc__list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ssp-grey-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssp-toc__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--ssp-gold);
    border-radius: 50%;
}

.ssp-toc__list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ssp-toc__list li a:hover {
    color: var(--ssp-teal);
}

.ssp-toc__list li.ssp-toc--active a {
    color: var(--ssp-teal);
    font-weight: 600;
}

/* === TOC Mobile === */
@media (max-width: 1024px) {
    .ssp-toc {
        padding: 16px;
    }

    .ssp-toc__toggle {
        display: flex;
    }

    .ssp-toc__body[hidden] {
        display: none;
    }

    .ssp-toc__list li {
        white-space: normal;
    }
}


/* ===========================
   FAQ SECTION
   =========================== */

.ssp-faqs {
    margin: 40px 0;
}

.ssp-faqs__title {
    font-family: Spectral, serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--ssp-teal);
    margin-bottom: 24px;
}

.ssp-faqs__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ssp-faqs__item {
    border: 1px solid var(--ssp-grey-mid);
    border-radius: var(--ssp-radius);
    overflow: hidden;
    background: var(--ssp-white);
    transition: box-shadow 0.2s ease;
}

.ssp-faqs__item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ssp-faqs__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssp-teal);
    gap: 12px;
}

.ssp-faqs__question:hover {
    background: var(--ssp-grey-light);
}

.ssp-faqs__chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--ssp-gold);
}

.ssp-faqs__question[aria-expanded="true"] .ssp-faqs__chevron {
    transform: rotate(180deg);
}

.ssp-faqs__answer {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ssp-grey-dark);
}

.ssp-faqs__answer[hidden] {
    display: none;
}

.ssp-faqs__answer-text p {
    margin: 0 0 8px;
}

.ssp-faqs__answer-text p:last-child {
    margin-bottom: 0;
}


/* ===========================
   AFFILIATE SECTION
   =========================== */

.ssp-affiliate-section {
    margin: 40px 0;
}

.ssp-affiliate__title {
    font-family: Spectral, serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--ssp-teal);
    margin-bottom: 16px;
}

.ssp-affiliate__intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ssp-grey-dark);
    font-style: italic;
    margin-bottom: 24px;
}

.ssp-affiliate__retailers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.ssp-affiliate__retailer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ssp-affiliate__region {
    font-family: Spectral, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssp-terracotta);
}

.ssp-affiliate__btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.ssp-affiliate__btn--primary {
    background: var(--ssp-teal);
    color: var(--ssp-white);
    border: 2px solid var(--ssp-teal);
}

.ssp-affiliate__btn--primary:hover {
    background: transparent;
    color: var(--ssp-teal);
}

.ssp-affiliate__btn--sample {
    background: transparent;
    color: var(--ssp-teal);
    border: 2px solid var(--ssp-teal);
}

.ssp-affiliate__btn--sample:hover {
    background: var(--ssp-teal);
    color: var(--ssp-white);
}

/* Affiliate Accordion (Notino / Amazon) */
.ssp-affiliate__accordion {
    border: 1px solid var(--ssp-grey-mid);
    border-radius: var(--ssp-radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--ssp-white);
}

.ssp-affiliate__accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: Spectral, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ssp-terracotta);
}

.ssp-affiliate__accordion-trigger:hover {
    background: var(--ssp-grey-light);
}

.ssp-affiliate__accordion-chevron {
    transition: transform 0.3s ease;
    color: var(--ssp-gold);
}

.ssp-affiliate__accordion-trigger[aria-expanded="true"] .ssp-affiliate__accordion-chevron {
    transform: rotate(180deg);
}

.ssp-affiliate__accordion-panel {
    padding: 0 20px 16px;
}

.ssp-affiliate__accordion-panel[hidden] {
    display: none;
}

.ssp-affiliate__country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.ssp-affiliate__country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ssp-teal);
    background: var(--ssp-grey-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ssp-affiliate__country-btn:hover {
    background: var(--ssp-teal);
    color: var(--ssp-white);
}

/* === Affiliate Mobile === */
@media (max-width: 768px) {
    .ssp-affiliate__retailers {
        flex-direction: column;
    }

    .ssp-affiliate__country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
