/* ── Custom properties ─────────────────────────── */
:root {
    --hpc-primary:    #1a3e6e;
    --hpc-primary-dk: #112b4e;
    --hpc-surface:    #ffffff;
    --hpc-bg:         #f0f4f8;
    --hpc-border:     #dde3ec;
    --hpc-text:       #1c2333;
    --hpc-muted:      #64748b;
    --hpc-shadow-sm:  0 1px 3px 0 rgb(0 0 0 / .07), 0 1px 2px -1px rgb(0 0 0 / .05);
    --hpc-shadow:     0 4px 12px 0 rgb(0 0 0 / .08), 0 1px 3px 0 rgb(0 0 0 / .05);
    --hpc-radius:     .5rem;
}

/* ── Layout ────────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--hpc-bg);
    color: var(--hpc-text);
}

main {
    flex-grow: 1;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

/* ── Bootstrap overrides ───────────────────────── */
:root {
    --bs-link-color:       var(--hpc-primary);
    --bs-link-hover-color: var(--hpc-primary-dk);
}
.btn-primary {
    --bs-btn-bg:                 var(--hpc-primary);
    --bs-btn-border-color:       var(--hpc-primary);
    --bs-btn-hover-bg:           var(--hpc-primary-dk);
    --bs-btn-hover-border-color: var(--hpc-primary-dk);
    --bs-btn-active-bg:          var(--hpc-primary-dk);
    --bs-btn-focus-shadow-rgb:   26, 62, 110;
    font-weight: 500;
    letter-spacing: .01em;
}
.btn-outline-secondary {
    --bs-btn-color:              var(--hpc-muted);
    --bs-btn-border-color:       var(--hpc-border);
    --bs-btn-hover-bg:           #f8fafc;
    --bs-btn-hover-color:        var(--hpc-text);
    --bs-btn-hover-border-color: #c4cdd9;
    font-weight: 500;
}

/* ── Header ────────────────────────────────────── */
.site-header {
    background: var(--hpc-surface);
    box-shadow: var(--hpc-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--hpc-primary) 0%, #2a5fa8 100%);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-logo {
    max-height: 38px;
    width: auto;
    display: block;
}

.btn-logout {
    font-size: .8125rem;
    color: var(--hpc-muted);
    background: transparent;
    border: 1px solid var(--hpc-border);
    border-radius: .375rem;
    padding: .3rem .875rem;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
    white-space: nowrap;
    font-weight: 500;
}

.btn-logout:hover {
    background-color: #f8fafc;
    color: var(--hpc-text);
    border-color: #c4cdd9;
}

/* ── Language switcher ───────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
}

.lang-switcher form {
    margin: 0;
    padding: 0;
}

.lang-btn {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--hpc-muted);
    background: transparent;
    border: 1px solid var(--hpc-border);
    border-radius: .3rem;
    padding: .25rem .625rem;
    cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s;
    line-height: 1.4;
}

.lang-btn:hover {
    color: var(--hpc-text);
    background-color: #f0f4f8;
    border-color: #c4cdd9;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
    background: var(--hpc-surface);
    border-top: 1px solid var(--hpc-border);
    padding: 20px 0 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 1.25rem;
    font-size: .8rem;
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
}

.footer-links a {
    color: var(--hpc-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--hpc-text);
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    font-size: .75rem;
    color: #94a3b8;
    margin: 0;
}
