/* Names Wallet: the one header, footer, skip link and button set for every page of
   nameswallet.app. Self-contained: it needs only /assets/tokens.css?v=586856d3, so sections with their own
   stylesheet (/bridge/ uses app.css, /registry/ adds registry.css) can load it too.
   Every class starts with "site-" so it cannot collide with a section's own .top / .brand / .foot.
   Markup to paste: partials/README.md in the repository. No green, no blue. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Bold.woff2?v=fa888127") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --site-focus: color-mix(in srgb, var(--orange) 70%, var(--ink)); /* 3:1 or better on paper and card */
  --site-on-orange: #1b1a17;  /* text on the orange button: 5.3:1 */
  --site-wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --site-on-orange: #11110f; } /* paper-dark on #f0794a: 7:1 */
}

/* Self-contained: no reliance on the host page's reset */
.site-top, .site-top *, .site-foot, .site-foot *, .site-skip, .site-btn { box-sizing: border-box; }
.site-top, .site-foot { font-family: var(--font); line-height: 1.5; }

/* Skip link */
.site-skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.site-skip:focus { top: 8px; }

/* Header: mark + name left, testnet marker beside it, nav right. On phones the nav takes its
   own row and scrolls sideways if it ever has to (it fits at 320 px). */
.site-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-top-in { max-width: var(--site-wrap); margin: 0 auto; padding: 10px 16px 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1; }
.site-brand img { display: block; width: 28px; height: 28px; }
.site-net { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 8px; font-family: var(--font); font-size: .8125rem; line-height: 1.5; color: var(--dim); white-space: nowrap; }
.site-net::before { content: ""; margin-right: 6px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
.site-net b { color: var(--ink); font-weight: 600; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 22px; }
.site-nav a { display: block; padding: 14px 0 12px; color: var(--ink); text-decoration: none; font-family: var(--font); font-weight: 600; font-size: .9375rem; line-height: 1.2; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 10px; } /* section-specific controls (the bridge's buttons): own row below 1000 px */
@media (min-width: 1000px) { .site-slot { padding: 0; margin-left: 20px; } }
@media (max-width: 859px) { .site-net .site-net-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 700px) { .site-top-in { padding: 0 32px; } .site-nav a { padding: 20px 0 18px; } }
@media (max-width: 699px) {
  .site-top-in { padding: 8px 16px 0; }
  .site-net { margin-left: auto; }
  .site-net .site-net-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav ul { gap: 0 20px; }
  .site-nav a { padding: 10px 0 9px; }
}
@media (max-width: 359px) { .site-nav ul { gap: 0 12px; } .site-nav a { font-size: .875rem; } }

/* Buttons: one primary (ink text on orange) per page, outlined secondary */
.site-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; }
.site-btn:hover { background: var(--card); }
.site-btn-primary { background: var(--orange); border-color: var(--orange); color: var(--site-on-orange); }
.site-btn-primary:hover { background: color-mix(in srgb, var(--orange) 85%, #fff); border-color: color-mix(in srgb, var(--orange) 85%, #fff); } /* lighter on hover: ink text gains contrast */

/* Footer: brand block, then link columns */
.site-foot { border-top: 1px solid var(--line); margin-top: 8px; background: var(--card); color: var(--dim); font-family: var(--font); font-size: .875rem; line-height: 1.5; }
.site-foot-in { max-width: var(--site-wrap); margin: 0 auto; padding: 32px 16px 44px; display: grid; gap: 28px 48px; }
.site-foot-brand .site-brand { font-size: 1.125rem; margin-bottom: 10px; }
.site-foot-brand .site-brand img { width: 36px; height: 36px; }
.site-foot p { margin: 0; max-width: 30ch; }
.site-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 24px; }
.site-foot h2 { margin: 0 0 4px; color: var(--dim); font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot ul a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.site-foot ul a:hover { text-decoration: underline; text-decoration-color: var(--orange-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (min-width: 700px) { .site-foot-in { padding: 44px 32px 56px; } .site-foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); } }

.site-top a:focus-visible, .site-foot a:focus-visible, .site-skip:focus-visible, .site-btn:focus-visible { outline: 3px solid var(--site-focus); outline-offset: 2px; border-radius: 6px; }
