/* ==========================================================================
   Shared site chrome: the footer on every public page, plus the slim top bar
   used by standalone tools that do not load the main stylesheet.

   Markup comes from scripts/site-chrome.mjs (run scripts/sync-site-chrome.mjs).
   This sheet is self-contained on purpose: it sets its own colours and fonts
   so it looks the same on pages that do not load /css/styles.css.
   ========================================================================== */

.site-footer {
    --sf-gold: #f8d44c;
    --sf-ink: #f2efe8;
    --sf-ink-2: rgba(242, 239, 232, 0.72);
    --sf-ink-3: rgba(242, 239, 232, 0.5);
    --sf-rule: rgba(255, 255, 255, 0.09);
    position: relative;
    z-index: 10;
    margin: 0;
    padding: 56px 24px 28px;
    background: #0a0a0a;
    border-top: 1px solid rgba(248, 212, 76, 0.28);
    color: var(--sf-ink-2);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
}

.site-footer *,
.site-bar * {
    box-sizing: border-box;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
}

.site-footer a {
    color: var(--sf-ink-2);
    text-decoration: none;
    border: 0;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--sf-gold);
}

.site-footer a:focus-visible,
.site-bar a:focus-visible {
    outline: 2px solid var(--sf-gold, #f8d44c);
    outline-offset: 3px;
}

.site-footer .site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.site-footer-logo img {
    width: 40px;
    height: 40px;
}

.site-footer-brand p {
    margin: 14px 0 16px;
    max-width: 34ch;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.site-footer .site-footer-social a {
    color: var(--sf-gold);
    font-size: 0.86rem;
    font-weight: 600;
}

.site-footer .site-footer-social a:hover {
    color: #fff;
}

.site-footer-title {
    margin: 0 0 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--sf-gold);
}

.site-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.site-footer-col li {
    margin: 0;
    padding: 0;
}

.site-footer-note {
    max-width: 1120px;
    margin: 36px auto 0;
    font-size: 0.8rem;
    color: var(--sf-ink-3);
}

.site-footer .site-footer-note a {
    color: var(--sf-ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-base {
    max-width: 1120px;
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--sf-rule);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    font-size: 0.82rem;
    color: var(--sf-ink-3);
}

.site-footer-base p {
    margin: 0;
}

.site-footer-base strong {
    color: var(--sf-ink-2);
    font-weight: 600;
}

/* Slim top bar for standalone tools */
.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(248, 212, 76, 0.28);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.86rem;
    line-height: 1.4;
}

.site-bar a {
    text-decoration: none;
    color: rgba(242, 239, 232, 0.72);
    transition: color 0.2s ease;
}

.site-bar a:hover {
    color: #f8d44c;
}

.site-bar .site-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
}

.site-bar-brand img {
    width: 32px;
    height: 32px;
}

.site-bar-links {
    display: flex;
    gap: 18px;
}

@media (max-width: 860px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 44px 18px 24px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
