/* =====================================================================
 * RabDash landing / About page (resources/views/welcome.blade.php)
 *
 * Loaded only on that page via @push('styles'), after rabdash-mobile.css.
 * Layout: light page background -> white section panels -> light-grey
 * cards inside each panel.
 *
 * Text colours are chosen to pass WCAG AA (4.5:1) for small text:
 * SB Admin 2's default body grey (#858796) and the brand red (#e74a3b)
 * only reach ~3.4-3.9:1, so they are kept for icons/lines/borders and
 * darker shades are used for text.
 * =================================================================== */

.rd-landing {
    --rd-red: #e74a3b;          /* brand red: lines, icons, borders */
    --rd-red-text: #c0392b;     /* red used as text (5.4:1 on white) */
    --rd-red-tint: rgba(231, 74, 59, .1);
    --rd-text: #4a4c57;         /* body text */
    --rd-heading: #2f3039;
    --rd-muted: #5f6170;        /* labels, hints (>= 5:1 on card grey) */
    --rd-link: #2e59d9;
    --rd-line: #e3e6f0;         /* borders (dashboard's card border) */
    --rd-card: #fff;            /* cards (same as the dashboard's) */
    --rd-card-alt: #f8f9fc;     /* card header strip */
    --rd-measure: 70ch;         /* comfortable reading width */

    color: var(--rd-text);
    margin-bottom: 1.5rem;   /* gap above the footer; the last panel and footer are both white */
    /* Centred, capped width so panels hug their content on wide screens
       instead of stretching edge to edge (logged-in view; visitors get the
       same cap via the page padding in rabdash-sidebar.css). */
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.rd-landing h2,
.rd-landing h3,
.rd-landing h4 {
    color: var(--rd-heading);
}

.rd-landing h2 {
    margin-bottom: .75rem;
}

.rd-landing a:not(.btn) {
    color: var(--rd-link);
}

/* Keep running text at a readable line length on wide screens. */
.rd-landing section p,
.rd-landing section .lead {
    max-width: var(--rd-measure);
}

.rd-landing .rd-feature p {
    max-width: none;
}

.rd-subhead {
    font-size: 1.35rem;
    margin: 2.75rem 0 1.25rem;
}


/* ---------------------------------------------------------------------
 * Banner (hero)
 * Slightly deeper than bg-danger so white text passes contrast; same
 * red as the sidebar (rabdash-sidebar.css).
 * ------------------------------------------------------------------- */
.rd-landing > header.rd-hero {
    background: linear-gradient(135deg, #d13f2f 0%, #b52d1e 100%) !important;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.rd-hero h1 {
    font-weight: 800;
    margin-bottom: .5rem;
}

.rd-hero .lead {
    margin: 0 auto;
    opacity: .95;
}

.rd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.75rem;
}

.rd-hero-actions .btn {
    min-width: 10rem;
    padding: .6rem 1.4rem;
    font-weight: 700;
    border-radius: 2rem;
}

.rd-btn-light {
    background: #fff;
    color: var(--rd-red-text);
    border: 2px solid #fff;
}

.rd-btn-light:hover,
.rd-btn-light:focus {
    background: #fdf0ee;
    color: #a82b20;
}

.rd-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .75);
}

.rd-btn-ghost:hover,
.rd-btn-ghost:focus {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: #fff;
}

.rd-hero-actions .btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}


/* ---------------------------------------------------------------------
 * Sections: same pattern as the dashboard -- a small uppercase label on
 * the grey page background, then white cards. Sections themselves have no
 * panel, so labels and cards line up with the banner's edges.
 * (styles.css gives every <section> 9rem top/bottom; replaced here.)
 * ------------------------------------------------------------------- */
.rd-landing > section {
    padding: 0;
    margin-bottom: 2rem;
}

.rd-landing > section:last-of-type {
    margin-bottom: 0;
}

/* Old full-width wrappers (centred .container, 10-of-12 column, px-4):
   neutralised so content spans the page column. */
.rd-landing > section > .container {
    max-width: none;
}

#content .rd-landing > section > .container.px-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rd-landing > section .row > .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Section label (matches the dashboard's "ANALYTICS" / "REPORTS"). */
.rd-landing h2.rd-label {
    margin: 0 0 .75rem;
    color: var(--rd-muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rd-landing h2.rd-label--spaced {
    margin-top: 2rem;
}

/* White card (matches the dashboard's cards). */
.rd-card {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: .5rem;
    box-shadow: 0 .125rem .5rem rgba(58, 59, 69, .06);
}

.rd-sub {
    margin-bottom: 1.25rem;
    color: var(--rd-muted);
}

@media (min-width: 992px) {
    .rd-landing > header.rd-hero {
        padding: 3.5rem 1.5rem;
    }
}


/* ---------------------------------------------------------------------
 * About: quick-facts strip, then the full-width text card.
 * SB Admin sets body text to .875rem; About text uses normal reading size.
 * ------------------------------------------------------------------- */
.rd-stats {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.rd-stats li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-left: .3rem solid var(--rd-red);   /* same accent as the dashboard's analytics cards */
    border-radius: .5rem;
    box-shadow: 0 .125rem .5rem rgba(58, 59, 69, .06);
    min-width: 0;
}

.rd-stat-icon {
    flex: 0 0 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .6rem;
    background: var(--rd-red-tint);
    color: var(--rd-red);
}

.rd-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rd-stat-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rd-muted);
}

.rd-stat-value {
    font-size: .98rem;
    font-weight: 700;
    color: var(--rd-heading);
    line-height: 1.3;
}

.rd-about p:not(.lead) {
    font-size: 1rem;
    line-height: 1.7;
}

.rd-about .lead {
    max-width: none;
}

/* Opening line as a highlighted band: soft red tint, red bar, larger text. */
.rd-about > .lead {
    margin: 0;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(90deg, #fdf1ef 0%, #fff 100%);
    border-left: 4px solid var(--rd-red);
    border-radius: .5rem;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--rd-heading);
}

/* Body text as labelled blocks: "Our story" (longest) in the wider left
   column, "Why it matters" and "How it helps" stacked on the right, so the
   two sides end at about the same height. Stacked below 992px. */
.rd-about-body {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.25rem 2rem;
    margin-top: 1.5rem;
}

.rd-about-block h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--rd-heading);
}

/* Icon chip before each block title (same style as the feature cards). */
.rd-block-icon {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: var(--rd-red-tint);
    color: var(--rd-red);
    font-size: .9rem;
}

.rd-about-block strong {
    color: var(--rd-heading);
    font-weight: 700;
}

/* Side notes ("Why it matters", "How it helps"): light grey mini-cards. */
.rd-about-block--note {
    padding: 1.1rem 1.25rem;
    background: #f8f9fc;
    border: 1px solid var(--rd-line);
    border-radius: .5rem;
}

.rd-about-block--note p {
    font-size: .95rem;
}

.rd-about-block p {
    max-width: none;
    margin-bottom: .75rem;
}

.rd-about-block p:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    /* Right column: "How it helps" follows "Why it matters" directly
       (first row sized to its content, the second takes the rest). */
    .rd-about-body {
        grid-template-rows: auto 1fr;
        align-items: start;
    }

    .rd-about-block--story {
        grid-row: span 2;
    }
}

@media (max-width: 991.98px) {
    .rd-about-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .rd-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .rd-stats {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}


/* ---------------------------------------------------------------------
 * Feature cards ("What RabDash does")
 * ------------------------------------------------------------------- */
.rd-features {
    margin-bottom: -1.5rem;   /* cancel the last row's mb-4 */
}

.rd-feature {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    background: var(--rd-card);
    border: 1px solid var(--rd-line);
    border-radius: .5rem;
}

.rd-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.rd-feature p {
    font-size: .95rem;
}

.rd-feature-icon {
    flex: 0 0 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rd-red-tint);
    color: var(--rd-red);
    font-size: 1.1rem;
}


/* ---------------------------------------------------------------------
 * Milestones timeline
 * ------------------------------------------------------------------- */
.rd-timeline {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0 .5rem;
}

.rd-timeline li {
    position: relative;
    padding: 0 0 1.5rem 1.5rem;
    border-left: 3px solid var(--rd-red);
}

.rd-timeline li::before {
    content: "";
    position: absolute;
    left: -.55rem;
    top: .3rem;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--rd-red);
}

.rd-timeline li:last-child {
    padding-bottom: 0;
}

.rd-timeline strong {
    color: var(--rd-heading);
}

.rd-timeline-when {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rd-red-text);
}

/* "Next" step: dashed line and hollow grey dot, so it reads as planned. */
.rd-timeline li.rd-upcoming {
    border-left-style: dashed;
    border-left-color: #b7b9cc;
}

.rd-timeline li.rd-upcoming::before {
    border-color: #b7b9cc;
}

.rd-timeline li.rd-upcoming .rd-timeline-when {
    color: var(--rd-muted);
}


/* ---------------------------------------------------------------------
 * Partner cards: every logo gets the same square box (contain), so round
 * seals and the wide DiWA mark carry similar visual weight.
 * ------------------------------------------------------------------- */
/* Centred flex grid: 5 across on desktop, 3 on tablets, 2 on phones;
   a short last row stays centred instead of hanging to the left. */
.rd-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.rd-partner-cell {
    flex: 0 1 calc((100% - 5rem) / 5);
    min-width: 0;
}

@media (max-width: 1199.98px) {
    .rd-partner-cell {
        flex-basis: calc((100% - 2.5rem) / 3);
    }
}

@media (max-width: 575.98px) {
    .rd-partners {
        gap: .75rem;
    }

    .rd-partner-cell {
        flex-basis: calc((100% - .75rem) / 2);
    }
}

.rd-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
    background: var(--rd-card);
    border: 1px solid var(--rd-line);
    border-radius: .75rem;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

a.rd-partner:hover,
a.rd-partner:focus {
    text-decoration: none;
    color: inherit;
    background: #fff;
    transform: translateY(-3px);
    border-color: var(--rd-red);
    box-shadow: 0 .5rem 1.25rem rgba(58, 59, 69, .1);
}

.rd-partner-logo {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rd-partner-name {
    font-weight: 700;
    color: var(--rd-heading);
}

.rd-partner-role {
    font-size: .85rem;
    color: var(--rd-muted);
    margin-top: .2rem;
}


/* Past partners and supporters: an even grid of smaller, muted tiles
   (greyscale logos that turn full colour on hover) under the current
   partner cards, each with a colour-coded role tag. */
.rd-past-label {
    margin: 2rem 0 .25rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rd-muted);
}

.rd-past-thanks {
    margin-bottom: .85rem;
    font-size: .9rem;
    color: var(--rd-muted);
}

.rd-past {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.rd-past-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1rem .85rem 1.1rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: .5rem;
    color: inherit;
    line-height: 1.3;
    transition: border-color .15s ease, box-shadow .15s ease;
}

a.rd-past-tile:hover,
a.rd-past-tile:focus {
    color: inherit;
    text-decoration: none;
    border-color: #f3c2bc;
    box-shadow: 0 .4rem 1rem rgba(58, 59, 69, .1);
}

.rd-past-logo {
    width: 100%;
    height: 3.25rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-past-logo img {
    max-width: 6.5rem;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s ease, opacity .2s ease;
}

.rd-past-tile:hover .rd-past-logo img,
.rd-past-tile:focus .rd-past-logo img {
    filter: none;
    opacity: 1;
}

.rd-past-tile strong {
    font-size: .875rem;
    color: var(--rd-heading);
}

.rd-past-role {
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--rd-muted);
}

/* Role tags (text colours all >= 4.5:1 on their tint). */
.rd-past-tag {
    margin-bottom: .45rem;
    padding: .12rem .55rem;
    border-radius: 2rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rd-past-tag--funding     { background: #e8eefc; color: #2448b5; }
.rd-past-tag--research    { background: #f0eafb; color: #5b34a3; }
.rd-past-tag--predecessor { background: #fdf0d9; color: #7a4f00; }
.rd-past-tag--community   { background: #e3f5ea; color: #1b6b3f; }

@media (max-width: 1199.98px) {
    .rd-past {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .rd-past {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rd-past-tile,
    .rd-past-logo img {
        transition: none;
    }
}


.rd-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}


/* ---------------------------------------------------------------------
 * Contact card
 * ------------------------------------------------------------------- */
.rd-contact-card {
    background: var(--rd-card);
    border: 1px solid var(--rd-line);
    border-radius: .75rem;
    overflow: hidden;
}

.rd-contact-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rd-line);
    background: var(--rd-card-alt);
}

.rd-brand-diwa {
    height: 2.5rem;
    width: auto;
}

.rd-brand-rabdash {
    height: 3rem;
    width: auto;
}

.rd-brand-divider {
    width: 1px;
    align-self: stretch;
    background: #d9dce8;
}

.rd-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.rd-brand-text strong {
    color: var(--rd-heading);
    font-size: 1.05rem;
}

.rd-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-left: auto;
}

.rd-btn-outline {
    padding: .45rem 1.1rem;
    border: 1px solid #b7b9cc;
    border-radius: 2rem;
    background: #fff;
    color: var(--rd-heading) !important;
    font-weight: 600;
}

.rd-btn-outline:hover,
.rd-btn-outline:focus {
    border-color: var(--rd-red);
    color: var(--rd-red-text) !important;
}

.rd-brand-text span {
    color: var(--rd-muted);
    font-size: .85rem;
}

.rd-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.rd-contact-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.25rem 1.5rem;
    min-width: 0;
}

.rd-contact-list li + li {
    border-left: 1px solid var(--rd-line);
}

.rd-contact-list li > div {
    min-width: 0;
}

.rd-contact-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rd-muted);
    margin-bottom: .15rem;
}

.rd-contact-list a {
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* Each milestone sits in a small bubble so date, title and text read as
   one unit. The dot is aligned with the bubble's first line. */
.rd-tl-body {
    position: relative;
    padding: .9rem 1.15rem 1rem;
    /* Red tint that grows a little with each milestone (--i = position,
       set inline), so the timeline warms up toward the present. */
    background: rgba(231, 74, 59, calc(.05 + var(--i, 0) * .018));
    background: color-mix(in srgb, #e74a3b calc(5% + var(--i, 0) * 1.8%), #fff);
    border: 1px solid #f3c2bc;
    border-radius: 1rem;
    box-shadow: 0 .125rem .5rem rgba(58, 59, 69, .06);
}

/* Pointer toward the line (a rotated square sharing the bubble's fill and
   border), at the bubble's vertical middle, level with the dot. Points left by default (phones/tablets and
   right-hand entries on desktop). */
.rd-tl-body::before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -.35rem;
    left: -.4rem;
    width: .7rem;
    height: .7rem;
    background: inherit;
    border-left: 1px solid #f3c2bc;
    border-bottom: 1px solid #f3c2bc;
    transform: rotate(45deg);
}

/* Date as a solid red pill (white on #c0392b = 5.4:1). */
.rd-tl-body .rd-timeline-when {
    display: inline-block;
    margin-bottom: .45rem;
    padding: .18rem .7rem;
    border-radius: 2rem;
    background: #c0392b;
    color: #fff;
    font-size: .72rem;
}

/* Finished milestones: solid red dot with a white ring. */
.rd-timeline li:not(.rd-upcoming)::before {
    background: var(--rd-red);
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--rd-red);
}

.rd-tl-body strong {
    display: block;
    margin-bottom: .15rem;
}

.rd-timeline li {
    --pb: 1rem;
    padding-bottom: var(--pb);
}

.rd-timeline li:last-child {
    --pb: 0rem;
}

/* Dot: centred on the 3px line (sizes include borders here, so half the
   dot is .4rem) and on the bubble's vertical middle. */
.rd-timeline li::before {
    left: calc(-1.5px - .4rem);
    top: calc((100% - var(--pb)) / 2);
    transform: translateY(-50%);
}

.rd-timeline li.rd-upcoming .rd-tl-body {
    background: #fff;
    border-style: dashed;
    border-color: #b7b9cc;
    box-shadow: none;
}

.rd-timeline li.rd-upcoming .rd-tl-body::before {
    border-left-style: dashed;
    border-bottom-style: dashed;
    border-color: #b7b9cc;
}

.rd-timeline li.rd-upcoming .rd-timeline-when {
    background: #eaecf4;
    color: var(--rd-muted);
}

/* Desktop: centred, staggered timeline -- line down the middle, entries
   alternating sides, each starting halfway down the previous one so there
   is no empty row beside every entry. Each entry draws its own segment of
   the line (::after) so the "Next" step can stay dashed. Below 992px it
   stays the single left-aligned line. */
@media (min-width: 992px) {

    .rd-timeline {
        margin: 0;
    }

    .rd-timeline li {
        --pb: 1.25rem;
        width: 50%;
        border-left: 0;
        padding: 0 2rem var(--pb) 0;
    }

    .rd-timeline li + li {
        margin-top: -3rem;
    }

    .rd-timeline li.rd-tl-r {
        margin-left: 50%;
        padding: 0 0 var(--pb) 2rem;
    }

    .rd-timeline li:last-child {
        --pb: 0rem;
    }

    .rd-timeline li p {
        max-width: none;
    }

    /* Line segment on the centre edge of each entry. */
    .rd-timeline li::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -1.5px;
        width: 3px;
        background: var(--rd-red);
    }

    .rd-timeline li.rd-tl-r::after {
        right: auto;
        left: -1.5px;
    }

    .rd-timeline li.rd-upcoming::after {
        width: 0;
        background: none;
        border-left: 3px dashed #b7b9cc;
    }

    /* Dot centred exactly on the line (the entry's centre-side edge). */
    .rd-timeline li::before {
        z-index: 1;
        left: auto;
        right: -.4rem;
    }

    .rd-timeline li.rd-tl-r::before {
        right: auto;
        left: -.4rem;
    }

    /* Left-hand entries: pointer on the right, toward the line. */
    .rd-timeline li.rd-tl-l .rd-tl-body::before {
        left: auto;
        right: -.4rem;
        border-left: 0;
        border-bottom: 0;
        border-top: 1px solid #f3c2bc;
        border-right: 1px solid #f3c2bc;
    }

    .rd-timeline li.rd-upcoming.rd-tl-l .rd-tl-body::before {
        border-top: 1px dashed #b7b9cc;
        border-right: 1px dashed #b7b9cc;
    }
}


/* Milestones intro line (headline-style, centred). */
.rd-tl-intro {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--rd-heading);
}

/* Chapter markers on the line: "Research beginnings · 2018 – 2022" ... */
.rd-timeline li.rd-era {
    padding: .25rem 0 1rem 1.5rem;
}

.rd-timeline li.rd-era::before {
    display: none;   /* no milestone dot */
}

.rd-era-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .85rem;
    border: 1px solid #f3c2bc;
    border-radius: 2rem;
    background: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rd-red-text);
}

.rd-era-pill span {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rd-muted);
}

@media (min-width: 992px) {
    /* Full-width row centred on the line; the line runs through it. */
    .rd-timeline li.rd-era {
        width: 100%;
        margin-left: 0;
        padding: .5rem 0 1.5rem;
        text-align: center;
    }

    .rd-timeline li.rd-era::after {
        right: auto;
        left: calc(50% - 1.5px);
    }

    /* No stagger overlap around a chapter marker. */
    .rd-timeline li.rd-era,
    .rd-timeline li.rd-era + li {
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .rd-tl-intro {
        text-align: left;
        margin-left: 0;
    }
}


/* All cards share the dashboard's card look: .5rem corners, soft shadow. */
.rd-feature,
.rd-partner,
.rd-contact-card {
    border-radius: .5rem;
}

.rd-feature,
.rd-partner,
.rd-contact-card {
    box-shadow: 0 .125rem .5rem rgba(58, 59, 69, .06);
}


/* ---------------------------------------------------------------------
 * Contact: "Need access?" and "Data privacy" cards
 * ------------------------------------------------------------------- */
.rd-help-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.rd-help-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: .5rem;
    box-shadow: 0 .125rem .5rem rgba(58, 59, 69, .06);
    scroll-margin-top: 5.5rem;   /* footer "Data privacy" link lands below the pinned header */
}

.rd-help-card h3 {
    margin-bottom: .4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.rd-help-card p {
    font-size: .95rem;
    max-width: none;
}

.rd-btn-solid {
    padding: .5rem 1.25rem;
    border-radius: 2rem;
    background: #c0392b;
    color: #fff !important;
    font-weight: 700;
}

.rd-btn-solid:hover,
.rd-btn-solid:focus {
    background: #a82b20;
}

@media (max-width: 767.98px) {
    .rd-help-row {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .rd-landing > header.rd-hero {
        border-radius: .75rem;
        margin-bottom: 1.25rem;
    }

    .rd-landing > section {
        margin-bottom: 1.5rem;
    }

    .rd-card {
        padding: 1.25rem;
    }

    .rd-contact-list {
        grid-template-columns: 1fr;
    }

    .rd-contact-list li + li {
        border-left: 0;
        border-top: 1px solid var(--rd-line);
    }
}

@media (max-width: 767.98px) {
    .rd-partner {
        padding: 1.25rem .75rem;
    }

    .rd-partner-logo {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 575.98px) {
    .rd-contact-brand {
        flex-wrap: wrap;
    }

    .rd-brand-text {
        flex-basis: 100%;
    }

    .rd-brand-actions {
        margin-left: 0;
    }

    .rd-hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* Respect the OS "reduce motion" setting. */
@media (prefers-reduced-motion: reduce) {
    .rd-partner,
    .rd-landing .btn {
        transition: none;
    }

    a.rd-partner:hover,
    a.rd-partner:focus {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
