/*
 * RCAST public foundation
 * Shared visual tokens and typography for unauthenticated pages.
 * Page-specific layouts remain in homepage.css and the legacy page styles.
 */

:root {
    --rcast-green: #328e32;
    --rcast-green-dark: #246f27;
    --rcast-green-soft: #eaf5eb;
    --rcast-ink: #14232c;
    --rcast-text: #465760;
    --rcast-muted: #6f7f87;
    --rcast-surface: #ffffff;
    --rcast-soft: #f4f8f5;
    --rcast-line: #dfe8e2;
    --rcast-radius: 12px;
    --rcast-shadow: 0 16px 42px rgba(20, 35, 44, .09);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body.rcast-theme,
body.rcast-theme button,
body.rcast-theme input,
body.rcast-theme select,
body.rcast-theme textarea {
    font-family: "Poppins", sans-serif !important;
}

body.rcast-public {
    background: var(--rcast-surface);
    color: var(--rcast-text);
    font-size: 16px;
    line-height: 1.7;
}

body.rcast-public *,
body.rcast-public *::before,
body.rcast-public *::after {
    box-sizing: border-box;
}

body.rcast-public img {
    height: auto;
    max-width: 100%;
}

body.rcast-public h1,
body.rcast-public h2,
body.rcast-public h3,
body.rcast-public h4,
body.rcast-public h5,
body.rcast-public h6 {
    color: var(--rcast-ink);
    font-family: "Poppins", sans-serif !important;
    font-weight: 800;
    line-height: 1.2;
}

body.rcast-public p,
body.rcast-public li {
    font-family: "Poppins", sans-serif !important;
}

body.rcast-public a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.rcast-public a:focus-visible,
body.rcast-public button:focus-visible,
body.rcast-public input:focus-visible,
body.rcast-public select:focus-visible,
body.rcast-public textarea:focus-visible {
    outline: 3px solid rgba(50, 142, 50, .24);
    outline-offset: 2px;
}

body.rcast-public ::selection {
    background: var(--rcast-green);
    color: #fff;
}

/* Shared legacy section headings until each page receives the new components. */
body.rcast-public .default-title h1,
body.rcast-public .default-title h2,
body.rcast-public .default-title h3,
body.rcast-public .PageHead h1,
body.rcast-public .PageHead h2,
body.rcast-public .PageHead h3 {
    color: var(--rcast-ink);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.22;
}

body.rcast-public .default-title > p,
body.rcast-public .PageHead > p,
body.rcast-public .PageHead > div > p {
    color: var(--rcast-muted);
    font-size: 16px;
    line-height: 1.72;
}

/* Reusable public primitives for the staged page migration. */
.rcast-section {
    padding: 88px 0;
}

.rcast-section--soft {
    background: var(--rcast-soft);
}

.rcast-section-head {
    margin: 0 auto 44px;
    max-width: 760px;
    text-align: center;
}

.rcast-section-head h2 {
    font-size: 36px;
    margin: 0 0 16px;
}

.rcast-section-head p {
    color: var(--rcast-muted);
    font-size: 16px;
    line-height: 1.72;
    margin: 0;
}

.rcast-card {
    background: var(--rcast-surface);
    border: 1px solid var(--rcast-line);
    border-radius: var(--rcast-radius);
    box-shadow: var(--rcast-shadow);
}

.rcast-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    text-decoration: none !important;
}

.rcast-button--primary {
    background: var(--rcast-green);
    color: #fff !important;
}

.rcast-button--primary:hover,
.rcast-button--primary:focus {
    background: var(--rcast-green-dark);
    color: #fff !important;
}

body.rcast-public .form-control {
    border: 1px solid #d8e2dc;
    border-radius: 7px;
    box-shadow: none;
    color: var(--rcast-ink);
    font-size: 14px;
    min-height: 44px;
}

body.rcast-public textarea.form-control {
    min-height: 120px;
}

body.rcast-public .form-control:focus {
    border-color: var(--rcast-green);
    box-shadow: 0 0 0 3px rgba(50, 142, 50, .12);
}

body.rcast-public .btn-success,
body.rcast-public .btn-primary {
    background-color: var(--rcast-green);
    border-color: var(--rcast-green);
}

body.rcast-public .btn-success:hover,
body.rcast-public .btn-success:focus,
body.rcast-public .btn-primary:hover,
body.rcast-public .btn-primary:focus {
    background-color: var(--rcast-green-dark);
    border-color: var(--rcast-green-dark);
}

/* RadioDJ navigation: deep broadcast green with a bright on-air accent. */
body.rcast-theme nav.navbar.bootsnav,
body.rcast-theme .wrap-sticky nav.navbar.bootsnav,
body.rcast-theme .wrap-sticky nav.navbar.bootsnav.sticked {
    background: #101d25;
    border-bottom: 3px solid #43ad4b;
    box-shadow: 0 8px 28px rgba(3, 14, 24, .3);
}

body.rcast-theme nav.navbar.bootsnav ul.nav > li > a,
body.rcast-theme .navbar .rdj-mobile-account-toggle > ul > li > a {
    color: #f2f8f5 !important;
    font-weight: 600 !important;
}

body.rcast-theme nav.navbar.bootsnav ul.nav > li > a:hover,
body.rcast-theme nav.navbar.bootsnav ul.nav > li > a:focus,
body.rcast-theme nav.navbar.bootsnav ul.nav > li.open > a,
body.rcast-theme nav.navbar.bootsnav ul.nav > li.active > a,
body.rcast-theme .navbar .rdj-mobile-account-toggle > ul > li > a:hover,
body.rcast-theme .navbar .rdj-mobile-account-toggle > ul > li > a:focus {
    color: #8ee493 !important;
}

body.rcast-theme .navbar .rdj-mobile-account-toggle > ul > li.side-menu > a {
    color: #73c477 !important;
}

body.rcast-theme .navbar .rdj-desktop-cart > a:hover > i,
body.rcast-theme .navbar .rdj-desktop-cart > a:focus > i,
body.rcast-theme .navbar .rdj-main-account > a:hover > .fa-user-circle-o,
body.rcast-theme .navbar .rdj-main-account > a:focus > .fa-user-circle-o {
    color: #8ee493 !important;
}

body.rcast-theme nav.navbar.bootsnav .navbar-toggle {
    background: transparent;
    color: #fff;
}

body.rcast-theme nav.navbar.bootsnav .navbar-toggle i,
body.rcast-theme nav.navbar.bootsnav .attr-nav > ul > li > a,
body.rcast-theme nav.navbar.bootsnav .attr-nav > ul > li > a i {
    color: #fff !important;
}

body.rcast-theme nav.navbar.bootsnav ul.nav > li > a::after {
    background: #8ee493;
}

@media (max-width: 991px) {
    body.rcast-theme nav.navbar.bootsnav .navbar-collapse {
        background: #101d25;
        border-color: rgba(255, 255, 255, .1);
    }

    body.rcast-theme nav.navbar.bootsnav .navbar-nav > li > a {
        border-color: rgba(255, 255, 255, .1) !important;
    }
}

@media (max-width: 991px) {
    .rcast-section {
        padding: 68px 0;
    }
}

@media (max-width: 767px) {
    body.rcast-public {
        font-size: 15px;
    }

    body.rcast-public .default-title h1,
    body.rcast-public .default-title h2,
    body.rcast-public .default-title h3,
    body.rcast-public .PageHead h1,
    body.rcast-public .PageHead h2,
    body.rcast-public .PageHead h3,
    .rcast-section-head h2 {
        font-size: 28px;
    }

    body.rcast-public .default-title > p,
    body.rcast-public .PageHead > p,
    body.rcast-public .PageHead > div > p,
    .rcast-section-head p {
        font-size: 15px;
    }

    .rcast-section {
        padding: 52px 0;
    }

    .rcast-section-head {
        margin-bottom: 32px;
    }
}

/* Order-form errors, including temporarily unavailable configurations. */
.rdj-order-error{background:linear-gradient(145deg,#fff 0,#f5f9f6 100%);border:1px solid #dce7df;border-radius:20px;box-shadow:0 22px 58px rgba(20,35,44,.11);margin:12px auto;max-width:780px;padding:52px;text-align:center}
.rdj-order-error-icon{align-items:center;background:#edf7ee;border:1px solid #d6ead8;border-radius:18px;color:#53b75a;display:flex;font-size:35px;height:78px;justify-content:center;margin:0 auto 24px;width:78px}
.rdj-order-error-eyebrow{color:#419c47!important;font-size:10px!important;font-weight:800!important;letter-spacing:1.4px!important;margin:0 0 10px!important;text-transform:uppercase}
.rdj-order-error h1{color:#20323b!important;font-size:34px!important;font-weight:800!important;line-height:1.2!important;margin:0 auto 18px!important;max-width:650px!important;text-transform:none!important}
.rdj-order-error-status{background:#fff4e7;border:1px solid #f1d5ae;border-radius:22px;color:#9a641f;display:inline-flex;font-size:11px;font-weight:800;gap:7px;letter-spacing:.35px;padding:8px 14px;text-transform:uppercase}
.rdj-order-error-copy{color:#465a63!important;font-size:15px!important;line-height:1.75!important;margin:23px auto 10px!important;max-width:650px!important}
.rdj-order-error-help{color:#718188!important;font-size:13px!important;line-height:1.7!important;margin:0 auto!important;max-width:650px!important}
.rdj-order-error-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:30px}.rdj-order-error-actions a{border-radius:8px;display:inline-flex;font-size:12px;font-weight:800;gap:8px;justify-content:center;padding:13px 20px;text-decoration:none!important}.rdj-order-error-primary{background:#4daf54;border:1px solid #4daf54;color:#fff!important}.rdj-order-error-primary:hover{background:#328e32;border-color:#328e32}.rdj-order-error-secondary{background:#fff;border:1px solid #b9c8c0;color:#344b54!important}.rdj-order-error-secondary:hover{border-color:#53b75a;color:#328e32!important}
.rdj-order-error-actions a,.rdj-order-error-actions a:hover,.rdj-order-error-actions a:focus,.rdj-order-error-actions a:active{border-width:1px!important;font-size:12px!important;line-height:17px!important;margin:0!important;min-height:45px!important;padding:13px 20px!important;transform:none!important}
@media(max-width:600px){.rdj-order-error{padding:38px 22px}.rdj-order-error h1{font-size:27px!important}.rdj-order-error-actions{display:grid}.rdj-order-error-actions a{width:100%}}

/* Public downloads page.
 * theme.css supplies the component, while this file loads afterwards and owns
 * the public typography cascade. Keep the dark hero and its empty states
 * explicit here so they do not depend on the authenticated account stylesheet.
 */
body.rcast-public .rdj-downloads-page {
    width: 100%;
}

body.rcast-public .rdj-downloads-hero {
    background: #172832 !important;
    background-image: none !important;
}

body.rcast-public .rdj-downloads-hero h1 {
    color: #fff !important;
    font-size: 28px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

body.rcast-public .rdj-downloads-hero .rdj-eyebrow {
    color: #65bd69 !important;
}

body.rcast-public .rdj-downloads-hero p {
    color: #bdc9cf !important;
}

body.rcast-public .rdj-downloads-heading {
    min-height: 78px;
}

body.rcast-public .rdj-downloads-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

body.rcast-public .rdj-downloads-heading small {
    margin: 0 0 3px;
    line-height: 1.2;
    text-transform: uppercase;
}

body.rcast-public .rdj-downloads-heading h2 {
    margin: 0;
    color: #34465a;
    line-height: 1.25;
}

body.rcast-public .rdj-download-category-grid > .rdj-downloads-empty {
    grid-column: 1 / -1;
}

body.rcast-public .rdj-downloads-empty {
    display: flex;
    min-height: 190px;
    padding: 34px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 0;
    background: linear-gradient(180deg, #fff 0%, #fafcfa 100%);
}

body.rcast-public .rdj-downloads-empty > span {
    margin: 0 0 14px;
    color: #328e32;
    background: #eaf5eb;
}

body.rcast-public .rdj-downloads-empty strong {
    color: #34465a;
    font-size: 14px;
    line-height: 1.35;
}

body.rcast-public .rdj-downloads-empty p {
    max-width: 430px;
    margin: 7px auto 0;
    color: #84919d;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 767px) {
    body.rcast-public .rdj-downloads-hero h1 {
        font-size: 23px;
    }

    body.rcast-public .rdj-downloads-heading {
        min-height: 72px;
    }

    body.rcast-public .rdj-downloads-empty {
        min-height: 165px;
    }
}
