:root {
    --accent-blue: #1e40af;
    --accent-teal: #0aa6c0;
    --accent-link: #2563eb;

    --bg-start: #f2f6ff;
    --bg-end: #f8fafc;

    --card-bg: #ffffff;
    --text-main: #1f2933;
    --text-muted: #4b5563;
    --border-light: #e5e7eb;

    --max-width: 840px;
}

/* reset */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
    color: var(--text-main);
    line-height: 1.6;
}

/* layout */
main {
    max-width: var(--max-width);
    margin: 56px auto;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: visible;
    /* keep pseudo visible but safe */
}

/* top gradient strip (safe bounds + rounded corners) */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6px;
    /* inset slightly so rounded corners read correctly */
    right: 6px;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    pointer-events: none;
    z-index: 2;
}

/* logos row: keep on one line unless tiny screen */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    /* prefer one-line */
}

/* logos scale responsively but have a max-width so longer wordmarks don't dominate */
.logo-row img {
    display: block;
    height: auto;
    max-height: clamp(48px, 6vw, 80px);
    max-width: 32%;
    /* prevents one logo from pushing others off-line */
    object-fit: contain;
}

/* allow wrapping on small screens for readability */
@media (max-width: 520px) {
    .logo-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .logo-row img {
        max-width: 80%;
        max-height: 46px;
    }
}

/* typography */
h1 {
    font-size: 36px;
    margin: 8px 0 10px 0;
    color: #0b254d;
    /* distinct title color */
    letter-spacing: -0.02em;
}

h2 {
    font-size: 20px;
    margin: 0 0 28px 0;
    font-weight: 500;
    color: var(--text-muted);
}

/* gradient section headers (safely applied) */
h3 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;

    /* fallback color if gradient not supported */
    color: var(--accent-blue);

    /* gradient text */
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* content text */
p {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--text-main);
}

ul {
    margin: 10px 0 18px 24px;
}

li {
    margin-bottom: 8px;
}

/* links */
a {
    color: var(--accent-link);
    font-weight: 600;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* callout: simplified & robust */
.callout {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e8f4ff;
    /* subtle, calm background */
    padding: 16px 18px 16px 30px;
    /* left padding leaves room for accent bar */
    margin: 28px 0;
    border-radius: 10px;
    overflow: visible;
}

/* left accent bar: absolutely positioned but constrained inside callout */
.callout::before {
    content: "";
    position: absolute;
    left: 8px;
    /* distance from callout edge */
    top: 8px;
    bottom: 8px;
    width: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-teal));
    box-shadow: 0 6px 14px rgba(10, 30, 80, 0.06);
    pointer-events: none;
}

/* callout inline content styles */
.callout strong {
    font-weight: 700;
}

.callout a {
    font-weight: 700;
    color: var(--accent-link);
    white-space: nowrap;
}

/* subtle-box for LMS instructions */
.subtle-box {
    background: #fbfdff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 16px 0;
}

/* legacy line (argos) */
.legacy {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);

    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    flex-wrap: nowrap;
}

.legacy img {
    display: block;
    max-height: 32px;
    width: auto;
    opacity: 0.85;
}

/* responsive adjustments */
@media (max-width: 720px) {
    .card {
        padding: 28px 22px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 17px;
    }
}

/* tiny screens: allow legacy & logos to wrap */
@media (max-width: 480px) {
    .legacy {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-row img {
        max-height: 44px;
        max-width: 80%;
    }
}

/* print */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .card::before,
    .callout::before {
        display: none;
    }

    .logo-row img {
        max-height: 36px;
    }
}
