:root {
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --background: #f8fafc;
    --surface: #ffffff;
    --accent: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.7;
}

.container {
    width: min(900px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    background: transparent;
    border-bottom: 1px solid rgb(229 231 235 / 60%);
}

.site-header .container {
    width: min(760px, calc(100% - 2rem));
    min-height: 76px;
}

.brand {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.portal-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.page {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.page h1 {
    margin-top: 0;
    line-height: 1.2;
}

.content h2 {
    margin-top: 2rem;
    line-height: 1.3;
}

.content a {
    color: var(--accent);
}

.site-footer {
    padding: 2rem 0 3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.main-navigation {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.main-navigation ul {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.main-navigation a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.main-navigation a:hover {
    color: var(--accent);
}

.home-page {
    max-width: 760px;
    margin: 3.5rem auto;
    padding: 3rem 2rem 3rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.home-eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-page h1 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.home-intro {
    max-width: 520px;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem;
}

.primary-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: 2rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.primary-action:hover {
    border-color: rgb(37 99 235 / 35%);
    box-shadow: 0 16px 40px rgb(0 0 0 / 7%);
    transform: translateY(-3px);
}

.primary-action-featured {
    grid-column: 1 / -1;
    min-height: 190px;
    border-color: rgb(37 99 235 / 25%);
    background:
        linear-gradient(
            180deg,
            rgb(37 99 235 / 4%),
            var(--surface)
        );
}

.primary-action-label {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.primary-action-featured .primary-action-label {
    font-size: 1.75rem;
}

.primary-action-description {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.more-navigation {
    margin-top: 3rem;
}

.more-navigation {
    margin-top: 2rem;
    text-align: center;
}

.more-navigation summary {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
}

.more-navigation summary::-webkit-details-marker {
    display: none;
}

.more-navigation summary::after {
    content: " +";
}

.more-navigation[open] summary::after {
    content: " −";
}

.more-navigation .main-navigation {
    margin-top: 1rem;
    border: 0;
}

@media (max-width: 640px) {
    .home-page {
        margin: 2rem auto;
        padding: 2.5rem 1.5rem;
    }

    .primary-actions {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .primary-action-featured {
        grid-column: auto;
    }
}
/* Documents */

.document {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.document h2 {
    margin-top: 0;
}

.document-current {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: var(--accent);
    color: var(--surface);
    font-weight: 600;
    text-decoration: none;
}

.document-current:hover {
    opacity: 0.9;
}

.document-previous-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.document-previous {
    color: var(--muted);
}

/* Signed-in user and login */

.site-header .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    color: var(--muted);
    font-size: 0.875rem;
}

.site-user-logout {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.site-user-logout:hover {
    color: var(--accent);
}

.login-form {
    display: grid;
    gap: 0.5rem;
    max-width: 360px;
}

.login-form input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
}

.login-form button {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--surface);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.login-error {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
}

.login-error p {
    margin: 0;
}
