/* Home page only (Shared/_LayoutHome.cshtml): the original FOIAv2 layout in the site's colors
   (same palette as css/site.css). */
:root {
    --brand-900: #0f2a47;
    --brand-800: #163a61;
    --brand-700: #1f4e79;
    --brand-600: #2a64a0;
    --brand-100: #e8f0f9;
    --brand-50: #f3f7fc;
    --gold: #c9a227;
    --ink: #1f2933;
    --muted: #5f6b7a;
    --line: #dfe5ec;
    --page: #f5f7fa;
    --shadow-sm: 0 1px 2px rgba(16, 42, 71, .06), 0 1px 3px rgba(16, 42, 71, .08);
    --shadow-md: 0 4px 12px rgba(16, 42, 71, .08), 0 2px 4px rgba(16, 42, 71, .06);
    --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--brand-600);
    --bs-link-color-rgb: 42, 100, 160;
    --bs-link-hover-color: var(--brand-800);
    --bs-link-hover-color-rgb: 22, 58, 97;
}

body {
    background: var(--page);
    color: var(--ink);
    padding: 32px 0;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Frame ---------- */
.frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 32px rgba(16, 42, 71, .10), 0 1px 3px rgba(16, 42, 71, .06);
}

/* ---------- Header ---------- */
.frame-head {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem 2rem 1.1rem;
    background: linear-gradient(115deg, var(--brand-900) 0%, var(--brand-700) 70%, var(--brand-600) 100%);
    border-bottom: 3px solid var(--gold);
}

.frame-head__seal img {
    width: 116px;
    height: 116px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
    transition: transform .2s ease;
}

    .frame-head__seal:hover img { transform: scale(1.03); }

.frame-head__text { flex: 1; min-width: 0; }

.frame-head__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem 1rem;
}

.frame-head__office {
    color: #c9d8ea;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.frame-head__date {
    color: #c9d8ea;
    font-size: 1rem;
}

.frame-head__title {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.25;
    margin-top: .15rem;
}

.frame-head__rule {
    border-color: rgba(255, 255, 255, .22);
    opacity: 1;
    margin: .85rem 0 .7rem;
}

.frame-head__user {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    color: #c9d8ea;
    font-size: .95rem;
}

    .frame-head__user b { color: #fff; }

.frame-head__login {
    padding: .3rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

    .frame-head__login:hover, .frame-head__login:focus {
        background: #fff;
        border-color: #fff;
        color: var(--brand-900);
    }

/* ---------- Title bar ---------- */
.frame-title {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 2rem;
}

    .frame-title h1 {
        color: var(--brand-900);
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: -.01em;
        margin: 0;
    }

/* ---------- Body ---------- */
.frame-body {
    padding: 3rem 1.5rem 3.5rem;
    background: var(--page);
}

.welcome-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand-700);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2.25rem 2.25rem;
    text-align: center;
    font-size: 1.02rem;
}

    .welcome-card p { margin-bottom: .9rem; }
    .welcome-card a { text-underline-offset: 2px; }

.welcome-card__prompt {
    display: block;
    margin-top: 1.4rem;
    color: var(--brand-900);
    font-weight: 600;
}

.welcome-card__actions {
    display: grid;
    gap: .9rem;
    width: min(260px, 100%);
    margin: 2rem auto 0;
}

    .welcome-card__actions .btn {
        padding: .6rem 1rem;
        font-weight: 600;
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
    }

    .welcome-card__actions .btn-primary {
        --bs-btn-bg: var(--brand-700);
        --bs-btn-border-color: var(--brand-700);
        --bs-btn-hover-bg: var(--brand-800);
        --bs-btn-hover-border-color: var(--brand-800);
        --bs-btn-active-bg: var(--brand-900);
        --bs-btn-active-border-color: var(--brand-900);
    }

    .welcome-card__actions .btn-outline-primary {
        --bs-btn-color: var(--brand-700);
        --bs-btn-border-color: var(--brand-700);
        --bs-btn-hover-bg: var(--brand-700);
        --bs-btn-hover-border-color: var(--brand-700);
        --bs-btn-hover-color: #fff;
        --bs-btn-active-bg: var(--brand-800);
        --bs-btn-active-border-color: var(--brand-800);
    }

/* ---------- Footer ---------- */
.frame-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--brand-900);
    color: #b9c8da;
    font-size: .85rem;
    line-height: 1.9;
}

    .frame-foot a { color: #dbe6f3; text-decoration: none; }
    .frame-foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 767.98px) {
    body { padding: 0; }
    .frame { border-radius: 0; border-left: 0; border-right: 0; }
    .frame-head { gap: 1rem; padding: 1rem 1.25rem; }
    .frame-head__seal img { width: 72px; height: 72px; }
    .frame-head__office { font-size: .8rem; }
    .frame-head__date { display: none; }
    .frame-head__title { font-size: 1.3rem; }
    .frame-title { padding: .9rem 1.25rem; }
    .frame-body { padding: 2rem 1rem; }
    .welcome-card { padding: 1.75rem 1.25rem; }
    .frame-foot .text-end { text-align: left !important; }
}
