/* RiderInstinct Site Setup front-end fallbacks. The Authority Engine can replace these later. */
.ri-eyebrow {
    margin-bottom: .65rem;
    color: var(--ri-color-red, #e10600);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ri-hub-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--ri-color-muted, #666);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.ri-setup-topic-grid,
.ri-setup-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ri-setup-topic-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 18px 20px;
    color: var(--ri-color-black, #111);
    font-weight: 750;
    text-decoration: none;
    background: var(--ri-color-white, #fff);
    border: 1px solid var(--ri-color-border, #e3e3e3);
    border-radius: var(--ri-radius-medium, 12px);
    transition: transform var(--ri-transition, 180ms ease), border-color var(--ri-transition, 180ms ease), box-shadow var(--ri-transition, 180ms ease);
}

.ri-setup-topic-card:hover,
.ri-setup-topic-card:focus-visible {
    color: var(--ri-color-black, #111);
    border-color: var(--ri-color-red, #e10600);
    box-shadow: var(--ri-shadow-small, 0 8px 24px rgba(17,17,17,.07));
    transform: translateY(-2px);
}

.ri-setup-latest {
    margin-top: clamp(40px, 6vw, 72px);
}

.ri-setup-section-heading {
    margin-bottom: 20px;
}

.ri-setup-content-card {
    overflow: hidden;
    background: var(--ri-color-white, #fff);
    border: 1px solid var(--ri-color-border, #e3e3e3);
    border-radius: var(--ri-radius-medium, 12px);
}

.ri-setup-content-image {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.ri-setup-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ri-setup-content-body {
    padding: 20px;
}

.ri-setup-content-body h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.ri-setup-content-body h3 a {
    color: var(--ri-color-black, #111);
    text-decoration: none;
}

.ri-setup-content-type {
    margin-bottom: 6px;
    color: var(--ri-color-red, #e10600);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ri-setup-text-link {
    font-weight: 750;
    text-decoration: none;
}

.ri-setup-empty,
.ri-setup-ai-placeholder,
.ri-setup-admin-review,
.ri-setup-form-message {
    padding: 18px 20px;
    border-radius: var(--ri-radius-medium, 12px);
}

.ri-setup-empty {
    margin-top: 30px;
    background: var(--ri-color-surface, #f6f6f6);
}

.ri-setup-ai-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    background: var(--ri-color-black, #111);
    color: var(--ri-color-white, #fff);
}

.ri-setup-ai-placeholder strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.ri-setup-ai-placeholder p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.ri-setup-status-pill {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: .76rem;
    font-weight: 800;
    background: var(--ri-color-red, #e10600);
    border-radius: 999px;
}

.ri-setup-admin-review {
    margin-bottom: 24px;
    color: #6c4300;
    background: #fff8e5;
    border: 1px solid #e8c36c;
}

.ri-setup-contact-form {
    margin-top: 28px;
}

.ri-setup-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ri-setup-contact-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--ri-color-black, #111);
    font-weight: 750;
}

.ri-setup-contact-form input,
.ri-setup-contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ri-color-text, #222);
    background: var(--ri-color-white, #fff);
    border: 1px solid var(--ri-color-border, #e3e3e3);
    border-radius: var(--ri-radius-small, 6px);
}

.ri-setup-contact-form input:focus,
.ri-setup-contact-form textarea:focus {
    border-color: var(--ri-color-red, #e10600);
    outline: 3px solid rgba(225,6,0,.12);
}

.ri-setup-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ri-setup-form-message {
    margin: 0 0 24px;
    font-weight: 700;
}

.ri-setup-form-message.is-success {
    color: #0f623c;
    background: #eaf8f1;
    border: 1px solid #8fd0ad;
}

.ri-setup-form-message.is-error {
    color: #8f1d18;
    background: #fff0ef;
    border: 1px solid #e8a39f;
}

@media (max-width: 900px) {
    .ri-setup-topic-grid,
    .ri-setup-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ri-setup-topic-grid,
    .ri-setup-content-grid,
    .ri-setup-form-grid {
        grid-template-columns: 1fr;
    }

    .ri-setup-ai-placeholder {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   RiderInstinct managed page system v1.1
========================================================= */
.ri-page-shell,
.ri-page-shell * { box-sizing: border-box; }
.ri-page-shell { color: var(--ri-color-text, #222); background: #fff; }
.ri-page-hero { position: relative; overflow: hidden; padding: clamp(54px, 8vw, 104px) 0; border-bottom: 1px solid var(--ri-color-border, #e3e3e3); background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%); }
.ri-page-hero::after { content: ""; position: absolute; right: -110px; bottom: -150px; width: 360px; height: 360px; border: 65px solid rgba(225,6,0,.055); border-radius: 50%; pointer-events: none; }
.ri-page-hero--dark { color: #fff; background: #111; border-bottom: 3px solid var(--ri-color-red, #e10600); }
.ri-page-hero--dark::after { border-color: rgba(225,6,0,.18); }
.ri-page-hero--resource { background: #111; color: #fff; border-bottom: 3px solid var(--ri-color-red, #e10600); }
.ri-page-hero__content,
.ri-page-section,
.ri-page-cta { width: min(calc(100% - 40px), 1240px); margin-inline: auto; }
.ri-page-hero__content { position: relative; z-index: 1; max-width: 860px; }
.ri-page-hero h1 { max-width: 850px; margin: 0 0 20px; color: inherit; font-size: clamp(2.35rem, 5.2vw, 4.85rem); line-height: 1.02; letter-spacing: -.055em; }
.ri-page-lead { max-width: 760px; margin: 0; color: #5e5e5e; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.72; }
.ri-page-hero--dark .ri-page-lead,
.ri-page-hero--resource .ri-page-lead { color: rgba(255,255,255,.74); }
.ri-page-promise { display: inline-flex; margin: 25px 0 0; padding: 10px 13px; border-left: 3px solid var(--ri-color-red, #e10600); background: rgba(255,255,255,.075); color: #fff; font-size: .93rem; font-weight: 750; }
.ri-page-section { padding: clamp(50px, 7vw, 88px) 0; }
.ri-page-section + .ri-page-section { border-top: 1px solid var(--ri-color-border, #e3e3e3); }
.ri-page-section h2 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.ri-page-section p { line-height: 1.78; }
.ri-page-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ri-page-pills span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.07); color: #fff; font-size: .78rem; font-weight: 750; }
.ri-page-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: clamp(42px, 6vw, 70px); }
.ri-page-feature-grid article { min-height: 175px; padding: 26px; border: 1px solid var(--ri-color-border, #e3e3e3); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(17,17,17,.045); }
.ri-page-feature-grid article::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 20px; background: var(--ri-color-red, #e10600); }
.ri-page-feature-grid strong { display: block; margin-bottom: 10px; color: #111; font-size: 1.04rem; }
.ri-page-feature-grid p { margin: 0; color: #666; font-size: .93rem; line-height: 1.65; }
.ri-page-two-column { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: clamp(35px, 6vw, 86px); align-items: start; }
.ri-page-highlight { padding: 30px; border-top: 3px solid var(--ri-color-red, #e10600); border-radius: 12px; background: #111; color: #fff; }
.ri-page-highlight span { color: var(--ri-color-red, #e10600); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.ri-page-highlight strong { display: block; margin: 14px 0; font-size: 1.55rem; line-height: 1.35; }
.ri-page-highlight p { margin: 0; color: rgba(255,255,255,.72); }
.ri-page-cta { margin-bottom: clamp(45px, 7vw, 80px); padding: 35px; border: 1px solid var(--ri-color-border, #e3e3e3); border-top: 3px solid var(--ri-color-red, #e10600); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: #f7f7f7; }
.ri-page-cta h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.15rem); }
.ri-page-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.ri-page-assistant-wrap { max-width: 1040px; margin-inline: auto; }
.ri-page-form-panel { display: grid; grid-template-columns: minmax(260px,.62fr) minmax(0,1.38fr); gap: clamp(30px, 5vw, 70px); margin-top: 45px; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--ri-color-border, #e3e3e3); border-radius: 15px; background: #f7f7f7; }
.ri-page-process { display: grid; gap: 0; }
.ri-page-process article { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--ri-color-border, #e3e3e3); }
.ri-page-process article:first-child { border-top: 1px solid var(--ri-color-border, #e3e3e3); }
.ri-page-process article > span { color: var(--ri-color-red, #e10600); font-size: 1.05rem; font-weight: 900; }
.ri-page-process h2 { margin: 0 0 8px; font-size: 1.35rem; }
.ri-page-process p { margin: 0; color: #666; }
.ri-legal-content { max-width: 850px; margin-inline: auto; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--ri-color-border, #e3e3e3); border-radius: 14px; background: #fff; box-shadow: 0 15px 45px rgba(17,17,17,.04); }
.ri-legal-content h2 { margin-top: 2.2em; font-size: 1.5rem; }
.ri-legal-content h2:first-child { margin-top: 0; }
.ri-legal-updated { margin-top: 35px!important; padding-top: 20px; border-top: 1px solid var(--ri-color-border, #e3e3e3); color: #777; font-size: .86rem; }
.ri-text-link { color: var(--ri-color-red, #e10600); font-weight: 800; text-decoration: none; }

.ri-setup-topic-grid { margin-top: 20px; }
.ri-setup-topic-card { min-height: 112px; align-items: flex-start; gap: 20px; }
.ri-setup-topic-card__content { display: flex; flex-direction: column; gap: 7px; }
.ri-setup-topic-card__content strong { font-size: 1rem; }
.ri-setup-topic-card__content small { color: #717171; font-size: .78rem; font-weight: 500; line-height: 1.45; }
.ri-setup-topic-card__arrow { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #f1f1f1; display: grid; place-items: center; color: var(--ri-color-red, #e10600); }
.ri-setup-products { margin-top: clamp(45px, 7vw, 80px); }
.ri-setup-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.ri-setup-product-card { overflow: hidden; border: 1px solid var(--ri-color-border, #e3e3e3); border-radius: 13px; background: #fff; }
.ri-setup-product-image { display: grid; place-items: center; aspect-ratio: 1/1; padding: 18px; background: #f7f7f7; overflow: hidden; }
.ri-setup-product-image img { width: 100%; height: 100%; object-fit: contain; }
.ri-setup-product-image > span { color: #999; font-weight: 850; }
.ri-setup-product-body { padding: 19px; }
.ri-setup-product-body h3 { margin: 8px 0 10px; font-size: 1.04rem; line-height: 1.38; }
.ri-setup-product-body h3 a { color: #111; text-decoration: none; }
.ri-setup-product-body p { margin: 0 0 13px; color: #676767; font-size: .82rem; line-height: 1.55; }
.ri-setup-rating { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #111; color: #fff; font-size: .72rem; font-weight: 850; }
.ri-setup-latest { padding-top: clamp(45px, 7vw, 75px); border-top: 1px solid var(--ri-color-border, #e3e3e3); }
.ri-setup-admin-review { display: none!important; }

@media (max-width: 980px) {
    .ri-page-feature-grid,
    .ri-setup-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ri-page-two-column,
    .ri-page-form-panel { grid-template-columns: 1fr; }
    .ri-page-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .ri-page-hero__content,
    .ri-page-section,
    .ri-page-cta { width: min(calc(100% - 28px), 1240px); }
    .ri-page-feature-grid,
    .ri-setup-product-grid { grid-template-columns: 1fr; }
    .ri-page-feature-grid article { min-height: 0; padding: 22px; }
    .ri-page-process article { grid-template-columns: 46px minmax(0,1fr); gap: 14px; }
    .ri-page-cta { padding: 24px; }
    .ri-page-cta > div:last-child,
    .ri-page-cta .ri-button { width: 100%; }
}
