/*
 * Unified government shell — shared header & footer chrome.
 *
 * Layout/structure lives here so every prototype page (MUP, CRPS, eDiploma)
 * renders an identical header and footer. Colors are NOT hard-coded: they come
 * from each page's :root design tokens (--primary, --surface, ...), so a page
 * keeps its own theme (e.g. blue MUP/CRPS vs. orange eDiploma) while sharing
 * exactly the same structure.
 */

/* Accessibility skip link */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* Header */
.gov-header {
    background: var(--surface);
    border-bottom: 4px solid var(--primary);
}
.gov-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand__seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.brand__title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    line-height: 1.25;
}
.brand__subtitle {
    font-size: 12px;
    color: var(--muted);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--primary-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.header-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.header-link:hover,
.header-link.is-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.header-link:hover::before,
.header-link.is-current::before {
    background: #fff;
}
.lang {
    display: flex;
    gap: 6px;
}
.lang button {
    background: var(--bg-soft);
    color: var(--text-soft);
    border: 1px solid var(--line);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
}
.lang button.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
footer.gov-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line-soft);
    background: var(--surface);
    margin-top: 30px;
}
.gov-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}
.gov-footer a {
    color: var(--text-soft);
    text-decoration: none;
    margin-right: 14px;
}
.gov-footer a:hover {
    color: var(--primary);
}
