:root {
    --ink: #30302f;
    --muted: #535353;
    --accent: #f0dcf0;
    --surface: #ffffff;
    --line: #eceff0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #98139c;
}

a:focus-visible, input:focus-visible {
    outline: 3px solid #98139c;
    outline-offset: 3px;
}

.container {
    max-width: 1240px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--ink);
}

.site-brand:hover, .site-brand:focus {
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 48px;
}

.brand-divider {
    width: 1px;
    height: 26px;
    background: #c9c9c9;
}

.brand-caption {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.8vw, 38px);
}

.site-nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover, .site-footer a:hover {
    color: #98139c;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.site-nav .site-nav-external {
    padding: 11px 16px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    white-space: nowrap;
}

.body-content {
    padding-top: 32px;
    padding-bottom: 40px;
}

.portal-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 335px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 77% 20%, rgba(240, 220, 240, .18) 0, transparent 42%), linear-gradient(120deg, #4f0077, #98139c);
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-languages {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
}

.hero-languages input[type="image"] {
    width: 31px;
    height: 22px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 4px;
    transition: border-color .2s, transform .2s;
}

.hero-languages input[type="image"]:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.portal-hero .lead {
    max-width: 620px;
    margin: 0;
    color: #f0dcf0;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.6;
}

.hero-art {
    position: absolute;
    right: -85px;
    top: -100px;
    width: 470px;
    height: 470px;
    transform: rotate(-32deg);
    opacity: .65;
    pointer-events: none;
}

.hero-art span {
    position: absolute;
    display: block;
    border: 1px solid rgba(240, 220, 240, .45);
    border-radius: 45%;
}

.hero-art span:nth-child(1) { inset: 0; }
.hero-art span:nth-child(2) { inset: 52px; }
.hero-art span:nth-child(3) { inset: 104px; background: rgba(240, 220, 240, .12); }

.portal-sections {
    row-gap: 24px;
    margin-top: 26px;
}

.portal-card {
    height: 100%;
    padding: clamp(24px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(79, 0, 119, .04);
}

.portal-card h2 {
    margin: 0 0 14px;
    font-size: clamp(23px, 2.5vw, 29px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.portal-card p {
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.portal-card p b {
    color: var(--ink);
}

.portal-card .table {
    width: 100%;
    margin-bottom: 0;
}

.portal-card .table td {
    padding: 0;
    border: 0;
    background: transparent;
}

.portal-card .table tr + tr td {
    border-top: 1px solid var(--line);
}

.portal-card .table a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 57px;
    padding: 12px 3px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.portal-card .table a:hover {
    color: #98139c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-card .table a::after {
    content: "↗";
    margin-left: auto;
    padding-left: 8px;
    color: #8f8f8f;
    font-size: 18px;
    text-decoration: none;
}

.portal-card .table img,
.portal-card .table svg {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    object-fit: contain;
}

.portal-card .table svg {
    color: #98139c;
}

.portal-extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-top: 22px;
        padding-bottom: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .site-nav .site-nav-external {
        padding: 0;
        border: 0;
    }

    .body-content { padding-top: 16px; }

    .portal-hero { min-height: 300px; }

    .hero-art { opacity: .25; }

    .portal-extras { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-languages input[type="image"] { transition: none; }
}