/* mackforge.dev's site header (index.html <header class="nav">), for the South Carolina pages. Every value is the one the
   site's style.css ends with for .nav in its dark theme, scoped to .mf-nav so it cannot touch the page below; the band
   behind it is the site's own background. */
.mf-band { background: #0d1117; padding: 16px 0 12px; position: sticky; top: 0; z-index: 20; }
.mf-band *, .mf-band *::before, .mf-band *::after { box-sizing: border-box; }
.mf-nav { display: flex; justify-content: space-between; align-items: stretch; gap: 10px; width: min(1200px, calc(100% - 64px));
  margin: 0 auto; padding: 0; border: 0; background: transparent; font: 400 16px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  color: #f3efe8; -webkit-text-size-adjust: 100%; }
.mf-nav [hidden] { display: none !important; }
.mf-nav a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mf-nav button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mf-nav a:focus-visible, .mf-nav button:focus-visible { outline: 3px solid #e8862e; outline-offset: 4px; }
.mf-nav a:hover { color: #f6a85a; }
.mf-nav .brand { display: flex; align-items: center; min-height: 0; margin: 0; background: #f5e9d7; color: #0d1117; padding: 20px 30px;
  border-radius: 28px; font: 400 28px/1.55 "Anton", Impact, sans-serif; letter-spacing: .01em; text-transform: uppercase; }
.mf-nav .brand:hover { color: #f6a85a; }
.mf-nav .brand span { color: #e8862e; }
.mf-nav nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 24px; padding: 0 18px 0 30px;
  background: linear-gradient(160deg, #1f2a38 0%, #161d27 55%, #121822 100%); border: 1px solid #2b3947; border-radius: 28px;
  color: #f3efe8; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mf-nav nav a:hover, .mf-nav nav a[aria-current="page"] { color: #f6a85a; }
.mf-nav nav > a.gh, .mf-nav nav > a.sc { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; line-height: 0; }
.mf-nav nav > a.gh svg { width: 20px; height: 20px; fill: currentColor; }
.mf-nav nav > a.sc img { width: 20px; height: 20px; display: block; }
.mf-nav nav > a.sc:hover img { filter: brightness(1.08); }
.mf-nav .share { position: relative; }
.mf-nav .share button { border: 0; background: transparent; color: inherit; padding: 12px 0; }
.mf-nav .share #share-btn { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; padding: 0; line-height: 0; }
.mf-nav .share #share-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mf-nav .share #share-menu { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 170px; padding: 8px; background: #f5e9d7;
  color: #0d1117; border: 0; border-radius: 18px; box-shadow: 0 12px 28px #0002; }
.mf-nav .share #share-menu a, .mf-nav .share #share-menu button { display: block; text-align: left; padding: 10px; width: 100%;
  font-size: 14px; line-height: 1.55; }
.mf-nav .share #share-menu a:hover, .mf-nav .share #share-menu button:hover { background: #ead9bf; }

/* Phone: the wordmark in its own cream bar with GitHub at its left; the links, the South Carolina icon and Share in the
   row under it. */
@media (max-width: 640px) {
  .mf-band { position: static; }
  .mf-nav { position: relative; flex-wrap: wrap; gap: 8px; width: calc(100% - 32px); }
  .mf-nav .brand { flex: 1 1 100%; justify-content: center; min-height: 56px; padding: 8px 60px; font-size: 24px; border-radius: 20px; }
  .mf-nav nav { flex: 1 1 100%; justify-content: space-between; min-width: 0; gap: 8px; padding: 6px 8px 6px 18px; border-radius: 22px; }
  .mf-nav nav > a, .mf-nav .share button { font-size: 13px; }
  .mf-nav nav > a.gh { position: absolute; top: 6px; left: 8px; width: 44px; height: 44px; min-width: 44px; color: #0d1117; }
  .mf-nav nav > a.gh:hover { color: #c8621c; }
  .mf-nav nav > a.gh svg { width: 24px; height: 24px; }
  .mf-nav .share #share-btn { min-width: 40px; }
  .mf-nav .share #share-btn svg { transform: translateY(1px); }
}
@media (max-width: 429px) {
  .mf-nav nav { padding-left: 12px; gap: 6px; }
  .mf-nav nav > a, .mf-nav .share button { font-size: 11px; }
}
/* narrow phones: smaller link text keeps the icons at a 40px tap width; below 330px the row wraps inside its pill */
@media (max-width: 379px) { .mf-nav nav { gap: 4px; } .mf-nav nav > a { font-size: 10px; } }
@media (max-width: 349px) { .mf-nav nav { gap: 2px; padding-left: 10px; } }
@media (max-width: 329px) { .mf-nav nav { flex-wrap: wrap; white-space: normal; justify-content: flex-start; column-gap: 12px; } }
