/* =============================================================================
 * burst.layout.css - shared chrome (header, nav, footer, page shell)
 * Extracted from the ~7,900 lines of inline <style> that were duplicated across
 * 13 templates; 367 distinct CSS lines appeared in five or more of them.
 * ========================================================================== */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 768px) { .wrap { padding-inline: 16px; } }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: var(--radius-lg);
  border: 1px solid var(--brand); background: var(--brand); color: var(--ground);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.alt { background: transparent; color: var(--brand); }
.btn.alt:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* --- analytics sub-nav (burstnodes identity) ------------------------------- */
/* One row of section links plus the chain picker. On phones the links scroll
   sideways instead of collapsing into a "Navigate..." select. */
.sub-nav-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.sub-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; }
.sub-nav-links { display: flex; align-items: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sub-nav-links::-webkit-scrollbar { display: none; }
.sub-nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .75rem; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.sub-nav-link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.sub-nav-link[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }

.chain-picker { position: relative; flex: none; }
.dropdown-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 9999px; font-weight: 600; font-size: .875rem; cursor: pointer; }
.dropdown-button:hover { border-color: var(--line-strong); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .25rem; z-index: 40; }
.dropdown-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; min-height: 40px; padding: 0 .6rem; background: none; border: 0; border-radius: var(--radius); color: var(--ink); font-weight: 500; cursor: pointer; }
.dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu button[aria-checked="true"]::after { content: "\2713"; color: var(--brand); font-weight: 700; }

/* Network strip: static headline numbers for the selected chain. */
#network-stats-bubble-container { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
#network-stats-bubble-container::-webkit-scrollbar { display: none; }
#network-stats-bubble { display: flex; gap: 1.5rem; align-items: center; white-space: nowrap; padding-block: .55rem; font-size: .8125rem; color: var(--ink-2); min-height: 2.4rem; }
#network-stats-bubble b, #network-stats-bubble strong { color: var(--ink); font-weight: 600; }
#network-stats-bubble .stats-updated { margin-left: auto; color: var(--ink-3, var(--ink-2)); }

.nav-quiet { color: var(--ink-2); font-size: .875rem; }
@media (max-width: 560px) { .site-nav .nav-quiet { display: none; } }


/* --- form controls --------------------------------------------------------
 * Tailwind's preflight left <select>, <input> and <button> looking like raw OS
 * widgets: white boxes on a dark page. They are styled here so every page gets
 * consistent controls without each one re-inventing them. */
select, input[type="text"], input[type="search"], input[type="email"],
input[type="number"], input[type="url"], textarea {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .45rem .6rem;
  min-height: 38px;
  max-width: 100%;
}
select { padding-right: 1.9rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.05rem center, right .8rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select:hover, input:hover, textarea:hover { border-color: var(--line-strong); }
select:focus-visible, input:focus-visible, textarea:focus-visible { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }

input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--brand); cursor: pointer; }

/* Bare <button> (no utility classes) should still read as a control. */
button:not([class]) {
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem .9rem; min-height: 38px; font-weight: 600; cursor: pointer;
}
button:not([class]):hover { border-color: var(--line-strong); }
button[disabled] { opacity: .5; cursor: not-allowed; }
