/* =============================================================================
   Blast Bags Help Center — uses colors_and_type.css tokens (locked flame system)
   Mobile-first. Dark surfaces, flame gradient, Bowlby/Inter/JetBrains Mono.
   ============================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 50% at 50% -8%, rgba(230,50,50,0.10) 0%, rgba(11,11,15,0) 52%),
    var(--bhurst-ink);
  color: var(--bhurst-text);
  font-family: var(--font-sans);
  scroll-padding-top: 140px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(245,166,35,0.35); }

/* scrollbars */
.sidebar::-webkit-scrollbar, .lb-scroll::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb, .lb-scroll::-webkit-scrollbar-thumb { background: var(--bhurst-border); border-radius: 9999px; }

/* =============================== HEADER ============================== */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,11,15,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bhurst-border);
}
.hdr-in {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
}
.hdr-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hdr-brand img { width: 34px; height: 34px; border-radius: 9999px; border: 1px solid var(--bhurst-border); object-fit: cover; flex-shrink: 0; }
.hdr-wordmark { font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.hdr-wordmark small { display: block; font-family: var(--font-sans); font-weight: 700; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bhurst-orange); margin-top: 1px; }
.hdr-spacer { flex: 1; }
.hdr-search {
  position: relative; flex: 1; max-width: 340px;
}
.hdr-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hdr-search input {
  width: 100%; height: 42px; padding: 0 14px 0 38px;
  background: var(--bhurst-surface-2); border: 1px solid var(--bhurst-border); border-radius: var(--radius-md);
  color: var(--bhurst-text); font-family: var(--font-sans); font-size: 14px; outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.hdr-search input::placeholder { color: var(--bhurst-muted); }
.hdr-search input:focus { border-color: var(--bhurst-orange); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.hdr-search kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--bhurst-muted);
  border: 1px solid var(--bhurst-border); border-radius: 5px; padding: 2px 6px; background: var(--bhurst-ink);
}
.hamburger {
  display: none; width: 42px; height: 42px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: var(--bhurst-surface); border: 1px solid var(--bhurst-border); border-radius: var(--radius-md);
}

/* =============================== HERO =============================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 36px 0 8px; }
.hero-eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bhurst-orange); }
.hero h1 { font-family: var(--font-display); font-size: clamp(34px, 9vw, 60px); line-height: 0.96; letter-spacing: -0.02em; margin: 12px 0 0; }
.hero p.lede { font-family: var(--font-sans); font-size: clamp(15px, 4vw, 18px); line-height: 1.55; color: var(--bhurst-muted); max-width: 640px; margin: 16px 0 0; }

/* two-sites */
.sites { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.site-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--bhurst-border); border-radius: var(--radius-2xl);
  background: var(--bhurst-surface); padding: 20px;
}
.site-card.live { box-shadow: var(--shadow-flame); border-color: rgba(230,50,50,0.3); }
.site-card.virtual { box-shadow: var(--shadow-holo); border-color: rgba(192,132,252,0.28); }
.site-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.site-dot { width: 10px; height: 10px; border-radius: 9999px; flex-shrink: 0; }
.site-card.live .site-dot { background: var(--state-live); box-shadow: 0 0 10px var(--state-live); animation: live-pulse var(--dur-live-pulse) ease-in-out infinite; }
.site-card.virtual .site-dot { background: var(--tier-crystal-end); box-shadow: 0 0 10px var(--tier-crystal-end); }
.site-kicker { font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bhurst-muted); }
.site-card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin: 2px 0 2px; }
.site-url { font-family: var(--font-mono); font-size: 12.5px; color: var(--bhurst-orange); }
.site-card.virtual .site-url { color: var(--tier-crystal-end); }
.site-desc { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--bhurst-text); margin: 14px 0 0; }
.site-rows { margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.site-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.site-row b { color: var(--bhurst-text); font-weight: 700; }
.site-row span { color: var(--bhurst-muted); }
.site-row .ico { flex-shrink: 0; color: var(--bhurst-orange); margin-top: 1px; }
.site-card.virtual .site-row .ico { color: var(--tier-crystal-end); }
.age-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 5px 11px; border-radius: 9999px; background: rgba(248,113,113,0.14); border: 1px solid rgba(248,113,113,0.4); font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #FF9B9B; }

/* journeys */
.journeys { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.journey { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--bhurst-border); border-radius: var(--radius-lg); background: var(--bhurst-surface); }
.journey .jn { font-family: var(--font-display); font-size: 18px; background: var(--bhurst-flame); -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0; line-height: 1.2; }
.journey b { display: block; font-family: var(--font-sans); font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.journey p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--bhurst-muted); }
.journey em { color: var(--bhurst-text); font-style: normal; font-weight: 600; }

/* =============================== KEY FACTS ============================== */
.facts { margin-top: 30px; }
.facts-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.facts-head h2 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.facts-head .line { flex: 1; height: 1px; background: var(--bhurst-border); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact {
  position: relative; overflow: hidden;
  border: 1px solid var(--bhurst-border); border-radius: var(--radius-lg);
  background: var(--bhurst-surface); padding: 14px;
}
.fact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bhurst-flame); }
.fact .fval { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.fact .flabel { font-family: var(--font-sans); font-weight: 600; font-size: 11px; color: var(--bhurst-muted); margin-top: 7px; line-height: 1.35; }
.fact.warn::before { background: linear-gradient(135deg, #F87171, #FBBF24); }
.fact.warn .fval { color: #FF9B9B; }

/* =============================== LAYOUT (sidebar + content) ============================== */
.shell { display: grid; grid-template-columns: 248px 1fr; gap: 28px; margin-top: 40px; align-items: start; }

.sidebar {
  position: sticky; top: 78px; align-self: start;
  max-height: calc(100vh - 94px); overflow-y: auto;
  padding-right: 6px; padding-bottom: 30px;
}
.sb-title { font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bhurst-muted); padding: 0 10px 8px; }
.sb-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; background: transparent; border-radius: var(--radius-md);
  color: var(--bhurst-muted); text-align: left; font-size: 13.5px; font-weight: 500;
  transition: background 140ms, color 140ms;
}
.sb-link .sb-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.8; }
.sb-link .sb-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; opacity: 0.6; }
.sb-link:hover { background: var(--bhurst-surface); color: var(--bhurst-text); }
.sb-link.active { background: var(--bhurst-surface-2); color: var(--bhurst-text); }
.sb-link.active .sb-ico { opacity: 1; color: var(--bhurst-orange); }
.sb-link.hidden { display: none; }

.sb-backdrop { display: none; }

/* =============================== CONTENT ============================== */
.content { min-width: 0; }
.grp { margin-bottom: 44px; scroll-margin-top: 140px; }
.grp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.grp-ico { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--bhurst-surface-2); border: 1px solid var(--bhurst-border); display: flex; align-items: center; justify-content: center; color: var(--bhurst-orange); flex-shrink: 0; }
.grp-head h2 { font-family: var(--font-display); font-size: clamp(22px, 5vw, 28px); letter-spacing: -0.02em; margin: 0; }
.grp-sub { font-size: 13.5px; color: var(--bhurst-muted); margin: 8px 0 20px; line-height: 1.5; max-width: 660px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }

.card {
  border: 1px solid var(--bhurst-border); border-radius: var(--radius-xl);
  background: var(--bhurst-surface); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 160ms, box-shadow 160ms, transform 160ms;
}
.card:hover { border-color: rgba(245,166,35,0.32); box-shadow: var(--shadow-card-hover); }
.card.has-shot { display: grid; grid-template-columns: 1fr 240px; }
.card-body { padding: 18px 18px 18px; min-width: 0; }
.card-top { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0; flex: 1; min-width: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9999px; font-family: var(--font-sans); font-weight: 700; font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.badge.live { background: rgba(230,50,50,0.14); color: #FF8A5C; border: 1px solid rgba(230,50,50,0.3); }
.badge.virtual { background: rgba(125,211,252,0.12); color: var(--tier-crystal-end); border: 1px solid rgba(125,211,252,0.3); }
.badge.both { background: rgba(245,166,35,0.12); color: var(--bhurst-orange); border: 1px solid rgba(245,166,35,0.3); }

.url-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--bhurst-ink); border: 1px solid var(--bhurst-border); font-family: var(--font-mono); font-size: 11.5px; color: var(--bhurst-muted); max-width: 100%; overflow: hidden; }
.url-chip .u-site { color: var(--bhurst-orange); }
.url-chip .u-path { color: var(--bhurst-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.blk { margin-top: 15px; }
.blk-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.blk-label .tick { width: 14px; height: 2px; border-radius: 2px; }
.blk.what .blk-label { color: var(--bhurst-text); }
.blk.what .tick { background: var(--bhurst-flame); }
.blk.how .blk-label { color: var(--bhurst-orange); }
.blk.how .tick { background: var(--bhurst-orange); }
.blk.know .blk-label { color: var(--tier-crystal-end); }
.blk.know .tick { background: var(--tier-crystal-end); }
.blk p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bhurst-muted); }
.blk p b, .blk li b { color: var(--bhurst-text); font-weight: 700; }
.blk ol, .blk ul { margin: 0; padding-left: 18px; }
.blk li { font-size: 14px; line-height: 1.55; color: var(--bhurst-muted); margin-bottom: 5px; }
.blk li::marker { color: var(--bhurst-orange); font-family: var(--font-mono); font-size: 12px; }

.callout { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; margin-right: 6px; padding: 5px 11px; border-radius: 9999px; font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.03em; background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.32); color: var(--bhurst-orange); }
.callout.warn { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.4); color: #FF9B9B; }

/* screenshot */
.shot {
  position: relative; cursor: zoom-in; border-left: 1px solid var(--bhurst-border);
  background: var(--bhurst-ink); overflow: hidden; min-height: 100%;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot::after { content: "⤢ View page"; position: absolute; left: 10px; bottom: 10px; font-family: var(--font-sans); font-weight: 700; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bhurst-text); background: rgba(11,11,15,0.72); backdrop-filter: blur(6px); border: 1px solid var(--bhurst-border); padding: 5px 9px; border-radius: 9999px; }
.shot .grad { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, transparent, rgba(11,11,15,0.5)); pointer-events: none; }

.no-results { display: none; text-align: center; padding: 60px 20px; color: var(--bhurst-muted); }
.no-results.show { display: block; }
.no-results .nr-big { font-family: var(--font-display); font-size: 22px; color: var(--bhurst-text); margin-bottom: 8px; }

mark { background: rgba(245,166,35,0.32); color: var(--bhurst-text); border-radius: 3px; padding: 0 1px; }

/* footer */
.foot { border-top: 1px solid var(--bhurst-border); margin-top: 30px; padding: 26px 0 50px; text-align: center; }
.foot p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--bhurst-muted); letter-spacing: 0.04em; }
.foot a { color: var(--bhurst-orange); }

/* =============================== LIGHTBOX ============================== */
.lb { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(6,6,9,0.92); backdrop-filter: blur(8px); }
.lb.open { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bhurst-border); flex-shrink: 0; }
.lb-bar .lb-title { font-family: var(--font-sans); font-weight: 700; font-size: 14px; }
.lb-bar .lb-url { font-family: var(--font-mono); font-size: 12px; color: var(--bhurst-orange); }
.lb-bar .lb-x { margin-left: auto; width: 38px; height: 38px; border-radius: 9999px; border: 1px solid var(--bhurst-border); background: var(--bhurst-surface); display: flex; align-items: center; justify-content: center; }
.lb-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; justify-content: center; }
.lb-scroll img { width: 100%; max-width: 920px; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--bhurst-border); align-self: flex-start; }

/* =============================== RESPONSIVE ============================== */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .hamburger { display: flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 280px; max-height: 100vh; padding: 18px 14px 30px;
    background: var(--bhurst-surface); border-right: 1px solid var(--bhurst-border);
    transform: translateX(-100%); transition: transform 240ms var(--ease-out-expo);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(6,6,9,0.6); }
  .hdr-search { display: none; }
  .hdr-search.mobile-show { display: block; }
}
@media (max-width: 640px) {
  .card.has-shot { grid-template-columns: 1fr; }
  .shot { border-left: 0; border-top: 1px solid var(--bhurst-border); aspect-ratio: 16/9; min-height: 0; }
  .card.has-shot { display: flex; flex-direction: column-reverse; }
  .facts-grid { grid-template-columns: 1fr; }
}
@media (min-width: 760px) {
  .sites { grid-template-columns: 1fr 1fr; }
  .journeys { grid-template-columns: 1fr 1fr 1fr; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* mobile search row under header */
.msearch { display: none; padding: 0 16px 12px; }
@media (max-width: 920px) { .msearch { display: block; } }
.msearch .hdr-search { display: block; max-width: none; }
