/* Customer story pages (stories/midco.html first).
   Colours come from rl-tokens.css so the page works in both themes;
   only the hero band keeps the brand navy in light and dark. */

.rl-cs { background: var(--rl-bg, #fff); color: var(--rl-text, #252930); }
.rl-cs h1, .rl-cs h2, .rl-cs h3 { color: var(--rl-heading, #252930); font-weight: 700; }
.rl-cs p { line-height: 1.7; }
.rl-cs-kicker {
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #b07c12; margin-bottom: 12px;
}
html[data-theme="dark"] .rl-cs-kicker { color: #EEBF41; }

/* hero */
.rl-cs-hero {
    background: linear-gradient(120deg, #04283a 0%, #063F5B 55%, #0a5678 100%);
    color: #fff; padding: 72px 0 64px; overflow: hidden;
}
.rl-cs-hero .rl-cs-kicker { color: #EEBF41; }
/* Customer logo on a white tile so its own colours read on the navy band in both themes */
.rl-cs-logo {
    display: inline-flex; align-items: center; background: #fff; border-radius: 12px;
    padding: 12px 18px; margin-bottom: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.rl-cs-logo img { display: block; height: 64px; width: auto; }
.rl-cs-hero h1 { color: #fff; font-size: 2.7rem; line-height: 1.1; max-width: 820px; }
.rl-cs-hero .rl-cs-sub { color: #c9dcea; font-size: 1.15rem; max-width: 700px; margin-top: 16px; }
/* Own button classes: the theme's .btn-light / .btn-outline-light are restyled for
   the dark page background and vanish on the navy bands. */
.rl-cs .rl-cs-btn {
    background: #fff; color: #063F5B; border: 1px solid #fff; font-weight: 600;
}
.rl-cs .rl-cs-btn:hover, .rl-cs .rl-cs-btn:focus-visible { background: #e6eef4; color: #063F5B; border-color: #e6eef4; }
.rl-cs .rl-cs-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.rl-cs .rl-cs-btn--ghost:hover, .rl-cs .rl-cs-btn--ghost:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
/* sections */
.rl-cs-section { padding: 72px 0; }
.rl-cs-section--tint { background: var(--rl-bg-alt, #F5F7FA); }
.rl-cs-section h2 { font-size: 1.95rem; }
.rl-cs-lead { color: var(--rl-text-muted, #5d6168); font-size: 1.08rem; max-width: 760px; margin-top: 12px; }
.rl-cs-narrow { max-width: 860px; }

/* footprint chips */
.rl-cs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.rl-cs-chips li {
    background: var(--rl-surface, #fff); border: 1px solid var(--rl-line, #e3e6ea); color: var(--rl-heading, #252930);
    border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem;
}
.rl-cs-chips i { color: var(--rl-accent, #063F5B); margin-right: 8px; }

/* cards */
.rl-cs-cards { margin-top: 32px; row-gap: 24px; }
.rl-cs-card {
    background: var(--rl-surface, #fff); border: 1px solid var(--rl-line, #e3e6ea); border-radius: 14px;
    padding: 24px; height: 100%;
}
.rl-cs-card h3 { font-size: 1.08rem; margin: 0 0 8px; }
.rl-cs-card p { color: var(--rl-text-muted, #5d6168); font-size: .96rem; margin: 0; line-height: 1.6; }
.rl-cs-card-icon {
    width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--rl-accent-rgb, 6, 63, 91), .1); color: var(--rl-accent, #063F5B); margin-bottom: 14px;
}

/* how it works diagram */
.rl-cs-flow { margin-top: 36px; }
.rl-cs-rv {
    border: 2px solid var(--rl-accent-bright, #4DA8DA); background: rgba(77, 168, 218, .1);
    border-radius: 12px; padding: 14px 18px; text-align: center; max-width: 560px; margin: 0 auto;
}
.rl-cs-rv b { display: block; color: var(--rl-heading, #252930); }
.rl-cs-rv span { color: var(--rl-text, #252930); font-size: .93rem; }
.rl-cs-rv-link {
    height: 28px; width: 0; margin: 0 auto; border-left: 2px dashed var(--rl-accent-bright, #4DA8DA);
}
.rl-cs-flow-row { display: flex; align-items: stretch; gap: 0; }
.rl-cs-step {
    flex: 1 1 0; background: var(--rl-surface, #fff); border: 1px solid var(--rl-line-strong, #d9dce1);
    border-radius: 12px; padding: 18px 16px; text-align: center;
}
.rl-cs-step b { display: block; color: var(--rl-heading, #252930); margin-bottom: 6px; }
.rl-cs-step span { display: block; color: var(--rl-text-muted, #5d6168); font-size: .9rem; line-height: 1.45; }
.rl-cs-arrow {
    flex: 0 0 34px; display: flex; align-items: center; justify-content: center;
    color: var(--rl-text-faint, #8a8f98); font-size: 1rem;
}
.rl-cs-property {
    flex: 3 1 0; display: flex; flex-direction: column;
    background: rgba(var(--rl-accent-rgb, 6, 63, 91), .05); border: 1px dashed var(--rl-line-strong, #d9dce1);
    border-radius: 14px; padding: 14px;
}
.rl-cs-property .rl-cs-flow-row { flex: 1 1 auto; }
.rl-cs-property-note { color: var(--rl-text-muted, #5d6168); font-size: .88rem; margin-top: 12px; text-align: left; }
.rl-cs-flow-caption { color: var(--rl-text-muted, #5d6168); text-align: center; margin-top: 18px; }

/* hardware */
.rl-cs-product { text-align: left; }
.rl-cs-product .rl-cs-pn { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: #b07c12; text-transform: uppercase; }
html[data-theme="dark"] .rl-cs-product .rl-cs-pn { color: #EEBF41; }
.rl-cs-product a { font-weight: 600; font-size: .92rem; display: inline-block; margin-top: 12px; }

/* ReadyView feature rows */
.rl-cs-feature { margin-top: 56px; align-items: center; row-gap: 22px; }
.rl-cs-feature h3 { font-size: 1.4rem; }
.rl-cs-feature p { color: var(--rl-text-muted, #5d6168); font-size: 1.02rem; margin-top: 10px; }
.rl-cs-shot img {
    display: block; width: 100%; height: auto; border-radius: 12px;
    border: 1px solid var(--rl-line, #e3e6ea); box-shadow: var(--rl-shadow, 0 .5rem 1.5rem rgba(15, 23, 42, .08));
}

/* quotes */
.rl-cs-quote {
    margin: 0; background: var(--rl-surface, #fff); border: 1px solid var(--rl-line, #e3e6ea);
    border-left: 4px solid #EEBF41; border-radius: 14px; padding: 28px 28px 24px; height: 100%;
}
.rl-cs-quote p { font-size: 1.12rem; color: var(--rl-heading, #252930); line-height: 1.6; margin: 0; }
.rl-cs-quote footer { margin-top: 18px; color: var(--rl-text-muted, #5d6168); font-size: .95rem; }
.rl-cs-quote footer b { color: var(--rl-heading, #252930); display: block; }

/* partner note */
.rl-cs-partner {
    display: flex; gap: 18px; align-items: flex-start; margin-top: 40px;
    border-top: 1px solid var(--rl-line, #e3e6ea); padding-top: 28px;
}
.rl-cs-partner p { color: var(--rl-text-muted, #5d6168); margin: 0; }
.rl-cs-partner a { font-weight: 600; }

/* cta */
.rl-cs-cta { background: linear-gradient(100deg, #063F5B, #0a5678); color: #fff; padding: 56px 0; }
.rl-cs-cta h2 { color: #fff; font-size: 1.7rem; font-weight: 700; }
.rl-cs-cta p { color: #c9dcea; }

@media (max-width: 991.98px) {
    .rl-cs-flow-row { flex-direction: column; }
    .rl-cs-arrow { flex-basis: 30px; transform: rotate(90deg); }
    .rl-cs-property { flex-basis: auto; }
}
@media (max-width: 767.98px) {
    .rl-cs-hero { padding: 52px 0 44px; }
    .rl-cs-hero h1 { font-size: 1.95rem; }
    .rl-cs-section { padding: 52px 0; }
    .rl-cs-section h2 { font-size: 1.6rem; }
    .rl-cs-feature { margin-top: 40px; }
}
