/* =========================================================
   LICENSING PAGE
========================================================= */

body:has(.licensing-page),
body:has(.licensing-page) main {
    background: #f5f5f5;
}

/* =========================================================
   RESOURCES PAGE SELECTOR
========================================================= */

.resources-selector {
    width: min(1600px, calc(100% - 48px));
    margin: 0 auto 16px;
}

.resources-selector-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.resources-selector-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.resources-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    max-width: 180px;
    height: 32px;
    margin: 16px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #171717;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.resources-option:hover {
    border-color: #171717;
}

.resources-option.active {
    border-color: #171717;
    background: #171717;
    color: #fff;
}

.resources-label {
    display: block;
}

/* =========================================================
   RESOURCE CONTENT SWITCHING
========================================================= */

[data-resources-content] {
    display: none;
}

[data-resources-content].is-active {
    display: block;
}

/* =========================================================
   SHARED RESOURCE CONTENT
========================================================= */

.resources-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    box-sizing: border-box;
}

/* =========================================================
   LICENSING CONTAINER
========================================================= */

.licensing-page {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 64px;
    background: #f5f5f5;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    box-sizing: border-box;
}

.licensing-page *,
.licensing-page *::before,
.licensing-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
========================================================= */

.licensing-hero {
    width: min(1200px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto 48px;
    padding: 32px 0 0;
    background: transparent;
    text-align: center;
}

.licensing-hero-brand {
    max-width: 900px;
    margin: 0 auto 32px;
    color: #444;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.licensing-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transform: scaleY(1.125);
    transform-origin: center;
}

.licensing-hero-intro {
    max-width: 700px;
    margin: 24px auto 0;
    color: #666;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
}

/* =========================================================
   MAIN WHITE SECTIONS
========================================================= */

.licensing-step-card {
    position: relative;
    width: min(1200px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto 24px;
    padding: 48px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: none;
}

.licensing-section-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.licensing-step-card h2 {
    margin: 0 0 24px;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.licensing-section-dek {
    margin-bottom: 28px !important;
    color: #555 !important;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.7 !important;
}

.licensing-step-card p {
    margin: 0 0 22px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.licensing-step-card p:last-child {
    margin-bottom: 0;
}

.licensing-step-card a {
    color: #171717;
    font-weight: 600;
    text-decoration: none;
}

.licensing-step-card a:hover {
    text-decoration: underline;
}

/* =========================================================
   BUDGET EXAMPLES
========================================================= */

.licensing-budget-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 36px auto 0;
}

.licensing-budget-example {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #dedede;
    background: #fafafa;
}

.licensing-budget-example-heading {
    margin-bottom: 26px;
}

.licensing-budget-example h3 {
    margin: 0 0 12px;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.licensing-budget-example-heading p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.licensing-budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
}

.licensing-budget-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e5e5;
}

.licensing-budget-row span {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.licensing-budget-row strong {
    flex-shrink: 0;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.licensing-budget-total {
    align-items: center;
    margin-top: 10px;
    padding: 17px 0 0;
    border-top: 2px solid #171717;
    border-bottom: 0;
}

.licensing-budget-total span {
    color: #171717;
    font-size: 14px;
    font-weight: 700;
}

.licensing-budget-total strong {
    color: #087d91;
    font-size: 26px;
    letter-spacing: -0.035em;
}

.licensing-budget-footnote {
    margin-top: 36px;
}

.licensing-budget-footnote p {
    font-size: 14px;
    color: #666;
}

/* =========================================================
   KEY TAKEAWAYS
========================================================= */

.licensing-takeaways {
    max-width: 850px;
    margin: 28px 0 0;
    padding-left: 24px;
}

.licensing-takeaways li {
    margin-bottom: 18px;
    padding-left: 5px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.licensing-takeaways li:last-child {
    margin-bottom: 0;
}

.licensing-takeaways li::marker {
    color: #087d91;
}

/* =========================================================
   FILTER INTRODUCTION
========================================================= */

.licensing-subheading {
    margin: 36px 0 14px;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

/* =========================================================
   LICENSING CATEGORY CARDS
========================================================= */

.licensing-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 900px;
    margin: 36px auto 0;
}

.licensing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border: 1px solid #dedede;
    background: #e8f9ff;
}

.licensing-card h3 {
    margin: 0 0 18px;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.licensing-card p {
    margin: 0 0 17px;
    color: #4d4d4d;
    font-size: 14px;
    line-height: 1.75;
}

.licensing-card p:last-child {
    margin-bottom: 0;
}

.licensing-filter-action {
    margin-top: 32px;
}

.licensing-step-card a.licensing-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    background: #171717;
    border: 1px solid #171717;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.licensing-step-card a.licensing-inline-button:hover {
    background: #087d91;
    border-color: #087d91;
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   LICENSING OPTIONS
========================================================= */

.licensing-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 36px auto 0;
}

.licensing-option {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    border: 1px solid #dedede;
    background: #f8fafc;
}

.licensing-option h3 {
    margin: 0 0 18px;
    color: #0d234f;
    font-family: "Inter", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.licensing-option p {
    margin: 0 0 17px;
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

.licensing-option p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   REASSURANCE
========================================================= */

.licensing-reassurance {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto 24px;
    padding: 72px 48px;
    background: #0d234f;
    color: #fff;
}

.licensing-reassurance-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.licensing-reassurance h2 {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #fff;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1.15;
}

.licensing-reassurance p {
    max-width: 760px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.8;
}

.licensing-reassurance-final {
    margin-top: 32px !important;
    margin-bottom: 0 !important;
    color: #20e1ff !important;
    font-weight: 600;
}

/* =========================================================
   FINAL CATALOG CTA
========================================================= */

.licensing-cta {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
}

.licensing-cta-content {
    width: 100%;
    padding: 65px 48px;
    background: #fff;
    text-align: center;
}

.licensing-cta h2 {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #171717;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.licensing-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 16px;
    line-height: 1.75;
}

/* =========================================================
   BUTTONS
========================================================= */

.licensing-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.licensing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.licensing-button-primary {
    background: #171717;
    color: #fff !important;
}

.licensing-button-primary:hover {
    background: #087d91;
    color: #fff !important;
}

/* =========================================================
   RESOURCE SELECTOR — TABLET
========================================================= */

@media (max-width: 900px) {

    .resources-selector-options {
        gap: 12px;
    }

    .resources-option {
        width: 180px;
        max-width: 180px;
        margin: 16px 8px;
    }

    .licensing-hero {
        width: min(700px, calc(100% - 32px));
        margin-bottom: 32px;
        padding-top: 24px;
    }

    .licensing-step-card,
    .licensing-reassurance,
    .licensing-cta {
        width: min(700px, calc(100% - 32px));
    }

    .licensing-step-card {
        padding: 36px 32px;
    }

    .licensing-budget-examples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .licensing-card-grid {
        grid-template-columns: 1fr;
    }

    .licensing-option-grid {
        grid-template-columns: 1fr;
    }

    .licensing-reassurance {
        padding: 60px 32px;
    }

    .licensing-cta-content {
        padding: 52px 32px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .resources-selector-options {
        flex-direction: column;
        align-items: center;
    }

    .resources-option {
        width: 100%;
        max-width: 180px;
        margin: 8px 0;
    }

    .licensing-page {
        padding-bottom: 48px;
    }

    .licensing-hero {
        width: calc(100% - 24px);
        margin-bottom: 24px;
        padding: 16px 0 0;
    }

    .licensing-hero-brand {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .licensing-hero h1 {
        font-size: clamp(32px, 9vw, 52px);
    }

    .licensing-hero-intro {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.7;
    }

    .licensing-step-card,
    .licensing-reassurance,
    .licensing-cta {
        width: calc(100% - 24px);
    }

    .licensing-step-card {
        margin-bottom: 16px;
        padding: 30px 22px;
    }

    .licensing-step-card h2 {
        margin-bottom: 20px;
        font-size: 27px;
        line-height: 1.2;
    }

    .licensing-step-card p,
    .licensing-takeaways li {
        font-size: 14px;
        line-height: 1.8;
    }

    .licensing-section-dek {
        font-size: 14px !important;
    }

    .licensing-budget-examples {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .licensing-budget-example {
        padding: 22px;
    }

    .licensing-budget-example h3 {
        font-size: 18px;
    }

    .licensing-budget-total strong {
        font-size: 24px;
    }

    .licensing-budget-footnote {
        margin-top: 28px;
    }

    .licensing-subheading {
        margin-top: 30px;
        font-size: 20px;
    }

    .licensing-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .licensing-card {
        padding: 22px;
    }

    .licensing-card h3 {
        font-size: 18px;
    }

    .licensing-option-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .licensing-option {
        padding: 22px;
    }

    .licensing-option h3 {
        font-size: 18px;
    }

    .licensing-reassurance {
        margin-bottom: 16px;
        padding: 48px 24px;
    }

    .licensing-reassurance h2 {
        font-size: 38px;
        line-height: 1.15;
    }

    .licensing-reassurance p {
        font-size: 14px;
        line-height: 1.8;
    }

    .licensing-cta-content {
        padding: 42px 24px;
    }

    .licensing-cta h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .licensing-cta p {
        font-size: 14px;
        line-height: 1.8;
    }

    .licensing-buttons {
        flex-direction: column;
        width: 100%;
    }

    .licensing-button {
        width: 100%;
    }

}

@media (max-width: 400px) {

    .licensing-step-card {
        padding: 26px 18px;
    }

    .licensing-budget-example,
    .licensing-card,
    .licensing-option {
        padding: 18px;
    }

    .licensing-budget-row {
        gap: 10px;
    }

    .licensing-budget-row span {
        font-size: 12px;
    }

    .licensing-budget-row strong {
        font-size: 14px;
    }

    .licensing-budget-total strong {
        font-size: 22px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .licensing-page *,
    .licensing-page *::before,
    .licensing-page *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
    }

}

/* ==========================================
   LICENSING — DARK SECTION TEXT ALIGNMENT
========================================== */

.licensing-page .licensing-step-card {
    text-align: left;
}

.licensing-page .licensing-step-card h2,
.licensing-page .licensing-step-card p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================
   LICENSING — REASSURANCE TEXT ALIGNMENT
========================================== */

.licensing-page .licensing-reassurance-content {
    text-align: left;
}

.licensing-page .licensing-reassurance-content h2,
.licensing-page .licensing-reassurance-content p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}