/* Mergable's own chrome (header, footer, type) — these pages stand alone from the Sarnia LLC site. */

:root { --mgx-ink: #1c130c; --mgx-paper: #f6efe7; --mgx-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

body { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.page-main h1, .page-main h2 { font-family: var(--mgx-mono); letter-spacing: -0.02em; }

/* Header */
.mgx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(28, 19, 12, 0.92); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid rgba(246, 239, 231, 0.08); }
.mgx-header .mgx-nav { height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mgx-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--mgx-paper); text-decoration: none; font-family: var(--mgx-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.mgx-brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mgx-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.mgx-links a { color: rgba(246, 239, 231, 0.72); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.mgx-links a:hover, .mgx-links a[aria-current="page"] { color: var(--mgx-paper); }
.mgx-links .mgx-cta { color: var(--mgx-ink); background: var(--mgx-paper); padding: 0.45rem 0.9rem; border-radius: 9px; }
.mgx-links .mgx-cta:hover { color: var(--mgx-ink); background: #fff; }
.mgx-header a:focus-visible, .mgx-footer a:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; border-radius: 4px; }

/* Footer (overrides the site's generic footer) */
footer.mgx-footer { background: var(--mgx-ink); color: rgba(246, 239, 231, 0.55); text-align: left; padding: 2.4rem 1.5rem; font-size: 0.9rem; letter-spacing: 0; }
.mgx-footer .mgx-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.mgx-footer .mgx-brand { font-size: 0.95rem; }
.mgx-footer .mgx-brand img { width: 22px; height: 22px; border-radius: 6px; }
.mgx-footer nav { height: auto; max-width: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.mgx-footer nav a { color: rgba(246, 239, 231, 0.75); text-decoration: none; }
.mgx-footer nav a:hover { color: var(--mgx-paper); }

@media (max-width: 640px) {
    .mgx-links { gap: 1rem; }
    .mgx-links li.mgx-hide-sm { display: none; }
    .mgx-links a { font-size: 0.85rem; }
}
