/* The Oncidium Foundation FUP design tokens, taken from the "minds" theme on oncidiumfoundation.org */
:root {
    color-scheme: light;

    --color-primary: #1f4688;
    --color-primary-light: #90a2c3;
    --color-primary-lighter: #d4edfc;
    --color-secondary: #0077ad;
    --color-cta: #0fa0d4;
    --color-cyan: #00b0db;
    --color-light-grey: #f4f6f9;
    --color-medium-grey: #666666;
    --color-dark-grey: #282828;
    --color-light-beige: #fef7dd;
    --border-color: #dddedf;

    --gradient: linear-gradient(76deg, #1f4688 16%, #00b0db 78%);
    --radius: 30px;
    --radius-card: 30px 0 30px 0;

    --bg: #ffffff;
    --surface: var(--color-light-grey);
    --border: var(--border-color);
    --card-border: var(--color-primary-lighter);
    --text: var(--color-dark-grey);
    --muted: var(--color-medium-grey);
    --heading: var(--color-primary);
    --accent: var(--color-secondary);
    --flag-bg: var(--color-light-beige);
    --flag-border: #e0cf8a;

    --font-heading: Rockwell, "Rockwell Std", Rokkitt, "Roboto Slab", "Zilla Slab", Georgia, serif;
    --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Hero band — echoes .intro__content */
.intro {
    background: var(--gradient);
    color: #fff;
    padding: 5.5rem 1.25rem 4.5rem;
    margin-bottom: 3.5rem;
}

.intro__inner {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.intro .eyebrow {
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin: 0 0 .9rem;
}

.intro h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2.8125rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 1rem;
}

.intro .updated {
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
    margin: 0;
}

main {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

h2 {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 3.25rem 0 .85rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

h3 {
    color: var(--heading);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 2rem 0 .5rem;
}

p, ul, ol {
    margin: 0 0 1.1rem;
}

ul, ol {
    padding-left: 1.35rem;
}

li {
    margin-bottom: .45rem;
}

li::marker {
    color: var(--color-cyan);
}

strong {
    font-weight: 600;
}

a {
    color: var(--accent);
    text-underline-offset: .15em;
}

a:hover {
    color: var(--color-cta);
}

.lede {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Button — .button on the site: square, uppercase, weight 800 */
.button {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    background: var(--color-cta);
    color: #fff;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    padding: .85em 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .35s ease;
}

.button:hover {
    background: var(--color-secondary);
    color: #fff;
}

.button--primary {
    background: var(--color-primary);
}

/* Numbered steps — .road__num: cyan circle, white Rockwell numeral */
.steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
    margin-bottom: 1.6rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3.75rem;
    min-height: 2.6rem;
    margin-bottom: 1.1rem;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -.15rem;
    width: 2.6rem;
    height: 2.6rem;
    background: var(--color-cyan);
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 2.6rem;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 1.6rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 34rem;
    font-size: .92rem;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface);
    color: var(--heading);
    font-family: var(--font-heading);
    font-weight: 700;
}

th:first-child {
    border-top-left-radius: var(--radius);
}

th:last-child {
    border-top-right-radius: var(--radius);
}

tr:last-child td {
    border-bottom: none;
}

/* Card — .card-newsletter: asymmetric radius, primary-lighter border */
.callout {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.9rem 2.2rem;
    margin: 0 0 1.6rem;
}

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

.flag {
    background: var(--flag-bg);
    border: 1px solid var(--flag-border);
    border-radius: var(--radius-card);
    padding: 1.9rem 2.2rem;
    margin: 0 0 2rem;
    font-size: .92rem;
}

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

/* Grey panel — .archive-centers__filters */
address {
    font-style: normal;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.9rem 2.2rem;
    margin-bottom: 1.6rem;
}

/* Footer band — same gradient as the hero */
footer {
    background: var(--gradient);
    color: #fff;
    padding: 3rem 1.25rem;
    font-size: .9rem;
}

.footer__inner {
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 2rem;
    text-align: center;
}

footer a {
    color: #fff;
    font-weight: 600;
    text-underline-offset: .2em;
}

footer a:hover {
    color: var(--color-primary-lighter);
}

@media (max-width: 40rem) {
    .intro {
        padding: 3.5rem 1.25rem 3rem;
        margin-bottom: 2.5rem;
    }

    .intro h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .callout, .flag, address {
        padding: 1.4rem 1.5rem;
    }
}

/* ── Gradient pages: home and 404 ─────────────────────────────────── */
body.home {
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.25rem;
}

.home__inner {
    max-width: 60rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.home__inner .eyebrow {
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.home__inner h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 1.1rem;
}

.home__lede {
    color: rgba(255, 255, 255, .9);
    font-size: 1.15rem;
    line-height: 1.55;
    max-width: 34rem;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin: 3.25rem 0 0;
    text-align: left;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-card);
    padding: 2rem 2rem 1.75rem;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.card__title {
    margin: 0 0 .65rem;
    padding: 0;
    border: 0;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.card__text {
    flex: 1;
    margin: 0 0 1.4rem;
    color: var(--color-dark-grey);
    font-size: .95rem;
    line-height: 1.55;
}

.card__cta {
    color: var(--color-cta);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card:hover .card__cta {
    color: var(--color-secondary);
}

.home__foot {
    margin: 3.25rem 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    line-height: 1.6;
}

.home__foot a {
    color: #fff;
}

.home__actions {
    margin: 2.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.home .button {
    background: #fff;
    color: var(--color-primary);
}

.home .button:hover {
    background: var(--color-primary-lighter);
    color: var(--color-primary);
}

@media (max-width: 40rem) {
    .home__inner h1 {
        font-size: 2.3rem;
    }

    .card {
        padding: 1.6rem;
    }
}
