/*
 * Back 9 Spine Site Installer - front-end styles
 * Black / red / white. Mobile-first. System font stack only (no external requests).
 * Component classes are prefixed b9- and page content is scoped under .b9s.
 */
:root {
  --b9-black: #000000;
  --b9-bg: #0b0b0b;
  --b9-elev: #141414;
  --b9-card: #1a1a1a;
  --b9-border: #2a2a2a;
  --b9-white: #ffffff;
  --b9-muted: #c4c4c4;
  --b9-dim: #9a9a9a;
  --b9-red: #e32626;
  --b9-red-h: #ff3b3b;
  --b9-red-t: #ff5252; /* brighter red for small text on black (WCAG AA) */
  --b9-glow: rgba(227, 38, 38, 0.28);
  --b9-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --b9-r: 14px;
  --b9-rs: 8px;
  --b9-max: 1120px;
  --b9-nav-h: 68px;
}

/* ---------- Page chrome on managed pages (theme overrides) ---------- */
body.b9s-page,
body.b9s-page #page,
body.b9s-page .site {
  background: var(--b9-bg) !important;
}
body.b9s-page { color: var(--b9-white); font-family: var(--b9-font); }
body.b9s-page .entry-header,
body.b9s-page .page-header,
body.b9s-page #secondary,
body.b9s-page .widget-area,
body.b9s-page #comments,
body.b9s-page .comments-area,
body.b9s-page .entry-footer,
body.b9s-page .post-thumbnail { display: none !important; }
body.b9s-page .site-main,
body.b9s-page main,
body.b9s-page .pagelayer-content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.b9s-page article,
body.b9s-page .entry-content,
body.b9s-page .hentry {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px;
}

/* ---------- Scoped reset ---------- */
.b9s, .b9s.b9s * , .b9s.b9s *::before, .b9s.b9s *::after { box-sizing: border-box; }
.b9s.b9s {
  font-family: var(--b9-font);
  color: var(--b9-white);
  background: var(--b9-bg);
  line-height: 1.6;
  width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.b9s.b9s h1, .b9s.b9s h2, .b9s.b9s h3, .b9s.b9s h4 {
  font-family: var(--b9-font);
  color: var(--b9-white);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
.b9s.b9s h1 { font-size: clamp(2rem, 7vw, 3.75rem); margin-bottom: 0.45em; }
.b9s.b9s h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
.b9s.b9s h3 { font-size: 1.1rem; letter-spacing: 0.01em; }
.b9s.b9s p { margin: 0 0 1em; color: var(--b9-muted); font-size: 1rem; }
.b9s.b9s ul, .b9s.b9s ol { list-style: none; margin: 0; padding: 0; }
.b9s.b9s img { max-width: 100%; height: auto; display: block; border: 0; }
.b9s.b9s a, .b9s.b9s a:visited { color: inherit; text-decoration: none; }
.b9s.b9s p a, .b9s.b9s li a:not(.b9-btn), .b9s.b9s .b9-note a {
  color: var(--b9-white);
  text-decoration: underline;
  text-decoration-color: var(--b9-red);
  text-underline-offset: 3px;
}
.b9s.b9s a:focus-visible, .b9s.b9s button:focus-visible, .b9s.b9s input:focus-visible,
.b9s.b9s select:focus-visible, .b9s.b9s textarea:focus-visible, .b9s.b9s summary:focus-visible {
  outline: 2px solid var(--b9-red);
  outline-offset: 3px;
}
.b9s.b9s strong { color: var(--b9-white); }

/* ---------- Layout ---------- */
.b9-wrap { width: min(100% - 2rem, var(--b9-max)); margin-inline: auto; }
.b9-wrap--narrow { width: min(100% - 2rem, 760px); }
.b9-sec { padding: 3.5rem 0; background: var(--b9-bg); }
.b9-sec--dark { background: linear-gradient(180deg, var(--b9-elev) 0%, var(--b9-bg) 100%); }
.b9-sec--tight { padding: 2.25rem 0; }
.b9-head { max-width: 42rem; margin-bottom: 2rem; }
.b9-head--center { margin-inline: auto; text-align: center; }
.b9-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b9-red-t) !important;
  margin: 0 0 0.75rem;
}
.b9s.b9s .b9-lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--b9-muted); max-width: 40rem; }
.b9-accent { color: var(--b9-red); }
.b9-dim { color: var(--b9-dim) !important; font-size: 0.9rem !important; }

.b9-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .b9-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .b9-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .b9-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .b9-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.b9-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.b9s.b9s .b9-btn, .b9s.b9s a.b9-btn:visited, .b9s.b9s button.b9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  font: 700 0.95rem/1.2 var(--b9-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.b9s.b9s .b9-btn:active { transform: scale(0.98); }
.b9s.b9s .b9-btn--p, .b9s.b9s a.b9-btn--p:visited { background: var(--b9-red); color: #fff; box-shadow: 0 4px 22px var(--b9-glow); }
.b9s.b9s .b9-btn--p:hover { background: var(--b9-red-h); color: #fff; }
.b9s.b9s .b9-btn--s, .b9s.b9s a.b9-btn--s:visited { background: transparent; color: #fff; border-color: #444; }
.b9s.b9s .b9-btn--s:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.05); }
.b9s.b9s .b9-btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.b9s.b9s .b9-btn--block { width: 100%; }
@media (max-width: 520px) {
  .b9-row .b9-btn { width: 100%; }
}

/* ---------- Hero ---------- */
.b9-hero { position: relative; padding: 3rem 0 3rem; overflow: hidden; background: var(--b9-bg); }
.b9-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(227, 38, 38, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, #0f0f0f 0%, var(--b9-bg) 100%);
  pointer-events: none;
}
.b9-hero > .b9-wrap { position: relative; z-index: 1; }
.b9-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .b9-hero { padding: 5rem 0 4.5rem; }
  .b9-hero__grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.b9-hero--center .b9-wrap { text-align: center; }
.b9s.b9s .b9-hero--center .b9-lead, .b9s.b9s .b9-band .b9-lead { margin-inline: auto; }
.b9-hero--center .b9-row { justify-content: center; }
.b9-logo-card {
  position: relative;
  background: linear-gradient(145deg, var(--b9-card) 0%, #101010 100%);
  border: 1px solid var(--b9-border);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 380px;
  margin-inline: auto;
}
.b9-logo-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -25%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, var(--b9-glow), transparent 70%);
  pointer-events: none;
}
.b9-logo-card img { margin: 0 auto; width: min(100%, 300px); position: relative; z-index: 1; }
.b9-logo-card--bare { background: transparent; border: 0; box-shadow: none; }
.b9-logo-card--bare::after { display: none; }
.b9-logo-card--bare img { width: min(60%, 190px); }
.b9s.b9s .b9-tagline { position: relative; z-index: 1; margin: 1rem 0 0; font-weight: 700; letter-spacing: 0.04em; color: #fff; text-transform: uppercase; }
.b9-tagline span { color: var(--b9-red-t); }

.b9s.b9s .b9-note {
  margin: 1.75rem 0 0;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--b9-red);
  border-radius: 0 var(--b9-rs) var(--b9-rs) 0;
  font-size: 0.88rem;
  color: var(--b9-muted);
  max-width: 42rem;
  text-align: left;
}
.b9s.b9s .b9-hero--center .b9-note { margin-inline: auto; }
.b9s.b9s .b9-price-flag {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(227, 38, 38, 0.45);
  background: rgba(227, 38, 38, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Cards ---------- */
.b9-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--b9-card);
  border: 1px solid var(--b9-border);
  border-radius: var(--b9-r);
  padding: 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.b9-card:hover { border-color: #444; }
.b9-card--red { border-top: 3px solid var(--b9-red); }
.b9-card--glow { background: linear-gradient(145deg, #1d1010 0%, var(--b9-card) 55%); border-color: rgba(227, 38, 38, 0.4); }
.b9s.b9s .b9-card p, .b9s.b9s .b9-card li { font-size: 0.97rem; }
.b9-card > :last-child { margin-bottom: 0; }
.b9-card .b9-row { margin-top: auto; padding-top: 1.25rem; }
.b9-card ul { margin-top: 0.5rem; }
.b9-card li, .b9-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  color: var(--b9-muted);
}
.b9-card li::before, .b9-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--b9-red);
}
.b9-x li::before { background: var(--b9-dim); border-radius: 2px; transform: rotate(45deg); }
.b9-badge {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b9-red-t);
  background: rgba(227, 38, 38, 0.1);
  border: 1px solid rgba(227, 38, 38, 0.4);
}
.b9-badge--soon { color: #fff; background: #262626; border-color: #3a3a3a; }
.b9-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--b9-red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 18px var(--b9-glow);
}
.b9s.b9s .b9-bignum { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--b9-red); margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.b9-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b9-red-t) !important; margin: 0 0 0.5rem; }

/* ladder arrows */
@media (min-width: 860px) {
  .b9-ladder .b9-card:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -1.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--b9-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
  }
}

/* chips + trust strip */
.b9-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; }
.b9-chips li {
  padding: 0.55rem 1rem;
  border: 1px solid var(--b9-border);
  background: var(--b9-card);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}
.b9-chips li::before { content: none; }
.b9-chips--red li { border-color: rgba(227, 38, 38, 0.45); }
.b9-chips a, .b9-chips a:visited { color: #fff; text-decoration: none; }
.b9-chips a:hover { color: var(--b9-red-h); }

/* band CTA */
.b9-band {
  background: linear-gradient(135deg, #1b0b0b 0%, var(--b9-card) 55%, #0c0c12 100%);
  border: 1px solid var(--b9-border);
  border-radius: 20px;
  padding: 2.25rem 1.5rem;
  text-align: center;
}
.b9-band .b9-row { justify-content: center; }
.b9-band--left { text-align: left; }
.b9s.b9s .b9-band--left .b9-lead { margin-inline: 0; }
.b9-band--left .b9-row { justify-content: flex-start; }
@media (min-width: 800px) { .b9-band { padding: 3rem 3rem; } }

/* steps */
.b9-steps { counter-reset: b9step; }
.b9-steps > li { counter-increment: b9step; }
.b9-steps--num .b9-card::before {
  content: counter(b9step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--b9-red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 18px var(--b9-glow);
}
.b9-steps > li { display: flex; }
.b9-steps > li > .b9-card { width: 100%; }

/* refund / red-flag box */
.b9-box {
  background: rgba(227, 38, 38, 0.07);
  border: 1px solid rgba(227, 38, 38, 0.35);
  border-radius: var(--b9-r);
  padding: 1.5rem;
}
.b9-box > :last-child { margin-bottom: 0; }
.b9s.b9s .b9-box h3 { margin-bottom: 0.6rem; }
.b9s.b9s .b9-redflag { font-size: 0.88rem; color: var(--b9-muted); border-top: 1px solid var(--b9-border); margin-top: 1rem; padding-top: 0.9rem; }
.b9s.b9s .b9-redflag strong { color: var(--b9-red-t); }

/* education cards */
.b9s.b9s .b9-topic .b9-q { font-size: 1.15rem; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.b9s.b9s .b9-topic p.b9-a { color: #e6e6e6; }
.b9s.b9s .b9-topic .b9-more { margin-top: auto; padding-top: 0.75rem; font-size: 0.88rem; font-weight: 700; }
.b9s.b9s .b9-topic .b9-more a { color: var(--b9-red-h); text-decoration: none; }
.b9s.b9s .b9-topic .b9-more a:hover { color: #fff; text-decoration: underline; }

/* FAQ */
.b9-faq details {
  background: var(--b9-card);
  border: 1px solid var(--b9-border);
  border-radius: var(--b9-rs);
  margin-bottom: 0.7rem;
}
.b9-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  color: #fff;
}
.b9-faq summary::-webkit-details-marker { display: none; }
.b9-faq summary::after { content: "+"; color: var(--b9-red); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.b9-faq details[open] summary::after { content: "\2212"; }
.b9-faq details[open] { border-color: rgba(227, 38, 38, 0.45); }
.b9s.b9s .b9-faq details p { padding: 0 1.2rem 1.2rem; margin: 0; color: var(--b9-muted); }

/* ---------- Forms ---------- */
.b9-formcard {
  background: linear-gradient(145deg, var(--b9-card), #121212);
  border: 1px solid var(--b9-border);
  border-radius: 20px;
  padding: 1.75rem 1.4rem;
  max-width: 34rem;
}
.b9-grid > .b9-formcard { max-width: none; }
.b9-formcard--center { margin-inline: auto; }
.b9s.b9s .b9-formcard h2, .b9s.b9s .b9-formcard h3 { font-size: 1.35rem; }
.b9-field { margin-bottom: 1.1rem; }
.b9s.b9s .b9-field label, .b9s.b9s .b9-legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e6e6e6;
}
.b9s.b9s .b9-field input[type="text"],
.b9s.b9s .b9-field input[type="email"],
.b9s.b9s .b9-field textarea,
.b9s.b9s .b9-field select {
  width: 100%;
  max-width: none;
  padding: 0.85rem 1rem;
  font: 400 1rem/1.4 var(--b9-font);
  color: #fff;
  background: #000;
  border: 1px solid #3a3a3a;
  border-radius: var(--b9-rs);
  box-shadow: none;
}
.b9s.b9s .b9-field textarea { min-height: 120px; resize: vertical; }
.b9s.b9s .b9-field input:focus, .b9s.b9s .b9-field textarea:focus, .b9s.b9s .b9-field select:focus { border-color: var(--b9-red); color: #fff; }
.b9s.b9s .b9-field input::placeholder, .b9s.b9s .b9-field textarea::placeholder { color: #6f6f6f; }
.b9s.b9s fieldset.b9-field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.b9s.b9s .b9-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  background: #101010;
  border: 1px solid var(--b9-border);
  border-radius: var(--b9-rs);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e6e6e6;
}
.b9s.b9s .b9-check input { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; accent-color: var(--b9-red); }
.b9s.b9s .b9-check:has(input:checked) { border-color: var(--b9-red); background: rgba(227, 38, 38, 0.08); }
.b9-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.b9s.b9s .b9-msg { border-radius: var(--b9-rs); padding: 1rem 1.1rem; margin-bottom: 1.1rem; font-size: 0.95rem; }
.b9s.b9s .b9-msg--ok { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--b9-red); color: #fff; }
.b9s.b9s .b9-msg--err { background: rgba(227, 38, 38, 0.12); border: 1px solid var(--b9-red); color: #fff; }
.b9s.b9s .b9-msg > :last-child { margin-bottom: 0; }
.b9s.b9s .b9-msg p { color: inherit; }
.b9s.b9s .b9-fine { font-size: 0.8rem; color: var(--b9-dim); margin: 0.9rem 0 0; }

/* ---------- Scorecard checklist ---------- */
.b9-progress { height: 6px; background: var(--b9-border); border-radius: 3px; overflow: hidden; margin-bottom: 1.5rem; }
.b9-progress span { display: block; height: 100%; width: 0; background: var(--b9-red); transition: width 0.3s ease; }
.b9-qcard { background: var(--b9-card); border: 1px solid var(--b9-border); border-radius: var(--b9-r); padding: 1.4rem; margin: 0 0 1rem; min-width: 0; }
.b9s.b9s fieldset.b9-qcard { margin-inline: 0; }
.b9s.b9s .b9-qcard legend { padding: 0; float: left; width: 100%; margin-bottom: 0.4rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.b9s.b9s .b9-qcard legend + * { clear: both; }
.b9s.b9s .b9-qnum { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b9-red-t); margin-bottom: 0.25rem; }
.b9s.b9s .b9-qhint { font-size: 0.88rem; color: var(--b9-dim); margin: 0 0 0.9rem; clear: both; }
.b9-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.b9s.b9s .b9-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--b9-elev);
  border: 1px solid var(--b9-border);
  border-radius: var(--b9-rs);
  cursor: pointer;
  color: #e6e6e6;
  font-size: 0.97rem;
}
.b9s.b9s .b9-opt:hover { border-color: #555; }
.b9s.b9s .b9-opt input { width: 1.1rem; height: 1.1rem; margin: 0; flex-shrink: 0; accent-color: var(--b9-red); }
.b9s.b9s .b9-opt:has(input:checked) { border-color: var(--b9-red); background: rgba(227, 38, 38, 0.1); }
.b9-range { padding: 0.25rem 0; }
.b9s.b9s .b9-range input[type="range"] { width: 100%; accent-color: var(--b9-red); height: 6px; padding: 0; border: 0; background: transparent; }
.b9s.b9s .b9-rangeval { text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--b9-red-t); margin-bottom: 0.4rem; }
.b9-rangelab { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: var(--b9-dim); margin-top: 0.5rem; }
.b9-results[hidden] { display: none; }
.b9-lanes { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); margin: 1.25rem 0; }
@media (min-width: 640px) { .b9-lanes { grid-template-columns: repeat(4, 1fr); } }
.b9-lane { background: var(--b9-elev); border: 1px solid var(--b9-border); border-radius: var(--b9-rs); padding: 1rem; text-align: center; }
.b9s.b9s .b9-lane__l { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--b9-dim); }
.b9-lane__s { font-size: 1.9rem; font-weight: 800; color: var(--b9-red); line-height: 1.2; }
.b9-lane__bar { height: 4px; background: var(--b9-border); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.b9-lane__bar span { display: block; height: 100%; background: var(--b9-red); }
.b9-prio { margin: 1rem 0; }
.b9-prio li { display: flex; gap: 0.9rem; padding: 0.9rem 1rem; margin-bottom: 0.6rem; background: var(--b9-card); border: 1px solid var(--b9-border); border-radius: var(--b9-rs); color: var(--b9-muted); }
.b9-prio li::before { content: none; }
.b9-prio .b9-prio__n { flex-shrink: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--b9-red); color: #fff; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Site header / footer (custom chrome) ---------- */
body.b9s-chrome #masthead,
body.b9s-chrome #colophon,
body.b9s-chrome .pagelayer-header,
body.b9s-chrome .pagelayer-footer { display: none !important; }

.b9-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--b9-border);
  font-family: var(--b9-font);
}
.admin-bar .b9-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .b9-header { top: 46px; } }
.b9-header__in {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  min-height: var(--b9-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.b9-brand, .b9-brand:visited { display: flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.b9-brand img { height: 46px; width: auto; display: block; }
.b9-brand__t { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; color: #fff; }
.b9-brand__t em { font-style: normal; color: var(--b9-red); display: block; }
.b9-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: var(--b9-rs);
  cursor: pointer;
}
.b9-toggle span, .b9-toggle span::before, .b9-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.b9-toggle span::before { position: absolute; top: -6px; left: 0; }
.b9-toggle span::after { position: absolute; top: 6px; left: 0; }
.b9-header > .b9-header__in > .b9-cta { display: none; }
.b9-nav .b9-cta--m { display: inline-flex; }
.b9-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a0a0a;
  border-bottom: 1px solid var(--b9-border);
  padding: 0.75rem 1rem 1.25rem;
}
.b9-nav.is-open { display: block; }
.b9-nav ul { list-style: none; margin: 0; padding: 0; }
.b9-nav li { margin: 0; padding: 0; display: block; }
.b9-nav a, .b9-nav a:visited {
  display: block;
  padding: 0.85rem 0.75rem;
  color: #d9d9d9;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid #1d1d1d;
  border-radius: 0;
}
.b9-nav a:hover, .b9-nav .current-menu-item > a, .b9-nav .current_page_item > a { color: #fff; }
.b9-nav .current-menu-item > a { border-bottom-color: var(--b9-red); color: #fff; }
.b9-nav a.b9-cta--m { margin-top: 0.9rem; width: 100%; padding: 0.95rem 1.25rem; }
@media (min-width: 1000px) {
  .b9-toggle { display: none; }
  .b9-nav { display: block; position: static; background: transparent; border: 0; padding: 0; margin-left: auto; }
  .b9-nav ul { display: flex; align-items: center; gap: 0.1rem; }
  .b9-nav a, .b9-nav a:visited { border: 0; padding: 0.55rem 0.8rem; font-size: 0.8rem; border-radius: 6px; position: relative; }
  .b9-nav a:hover { background: rgba(255, 255, 255, 0.06); }
  .b9-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--b9-red);
  }
  .b9-nav a.b9-cta--m { display: none; }
  .b9-header > .b9-header__in > .b9-cta { display: inline-flex; }
}
.b9-header a.b9-cta, .b9-header a.b9-cta:visited, .b9-nav a.b9-cta, .b9-nav a.b9-cta:visited {
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  background: var(--b9-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px var(--b9-glow);
  text-align: center;
}
.b9-header a.b9-cta:hover, .b9-nav a.b9-cta:hover { background: var(--b9-red-h); color: #fff; }

.b9-footer {
  background: #000;
  color: var(--b9-muted);
  border-top: 3px solid var(--b9-red);
  padding: 3rem 0 1.5rem;
  font-family: var(--b9-font);
  font-size: 0.95rem;
  line-height: 1.6;
  clear: both;
}
.b9-footer__in { width: min(100% - 2rem, var(--b9-max)); margin-inline: auto; }
.b9-footer__grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 760px) { .b9-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.b9-footer .b9-flogo { height: 72px; width: auto; margin-bottom: 0.8rem; }
.b9-footer .b9-fp { margin: 0 0 0.6rem; color: var(--b9-dim); font-size: 0.9rem; max-width: 24rem; }
.b9-footer .b9-fh { margin: 0 0 0.9rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.b9-footer ul { list-style: none; margin: 0; padding: 0; }
.b9-footer li { margin: 0 0 0.45rem; padding: 0; }
.b9-footer a, .b9-footer a:visited { color: var(--b9-muted); text-decoration: none; }
.b9-footer a:hover { color: var(--b9-red-h); }
.b9-footer__bot { border-top: 1px solid var(--b9-border); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.82rem; color: var(--b9-dim); }

/* ---------- Dark styling when custom chrome is switched off ---------- */
body.b9s-site:not(.b9s-chrome) #masthead { background: #000; border-bottom: 1px solid var(--b9-border); }
body.b9s-site:not(.b9s-chrome) #masthead .site-title a,
body.b9s-site:not(.b9s-chrome) #masthead .site-description,
body.b9s-site:not(.b9s-chrome) .main-navigation a { color: #fff; }
body.b9s-site:not(.b9s-chrome) .main-navigation a:hover,
body.b9s-site:not(.b9s-chrome) .main-navigation .current-menu-item > a { color: var(--b9-red); }
body.b9s-site:not(.b9s-chrome) .main-navigation .sub-menu { background: #000; }
body.b9s-site:not(.b9s-chrome) .site-footer { background: #000; border-top: 3px solid var(--b9-red); }
body.b9s-site:not(.b9s-chrome) .site-info a:hover { color: var(--b9-red); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.b9s.b9s [id] { scroll-margin-top: 90px; }

/* skip link */
.b9-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--b9-red); color: #fff; padding: 0.75rem 1rem; font: 700 0.9rem var(--b9-font); }
.b9-skip:focus { left: 0; color: #fff; }

/* Fallback skin: theme chrome must win over theme's inline !important customizer colours */
body.b9s-site:not(.b9s-chrome) #masthead.site-header,
body.b9s-site:not(.b9s-chrome) .site-header { background-color: #000 !important; border-bottom: 1px solid var(--b9-border) !important; }
body.b9s-site:not(.b9s-chrome) .site-title a,
body.b9s-site:not(.b9s-chrome) .site-description { color: #fff !important; }
body.b9s-site:not(.b9s-chrome) .site-footer { background-color: #000 !important; border-top: 3px solid var(--b9-red); }
body.b9s-site:not(.b9s-chrome) .menu-toggle { color: #fff; background: transparent; border: 1px solid #3a3a3a; }
body.b9s-site:not(.b9s-chrome) .main-navigation { background-color: #000; }

/* Specificity guards: component text sizes must beat ".b9s p" / ".b9-card p" defaults */
.b9s.b9s p.b9-bignum, .b9s.b9s .b9-card p.b9-bignum { font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--b9-red); margin: 0 0 0.6rem; }
.b9s.b9s p.b9-kicker, .b9s.b9s .b9-card p.b9-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b9-red-t) !important; margin: 0 0 0.5rem; }
.b9s.b9s p.b9-eyebrow, .b9s.b9s .b9-box p.b9-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.b9s.b9s p.b9-tagline { font-size: 1.05rem; }
.b9s.b9s p.b9-price-flag { font-size: 0.8rem; }
.b9s.b9s .b9-topic p.b9-more { font-size: 0.88rem; }
.b9s.b9s p.b9-fine { font-size: 0.8rem; }
.b9s.b9s p.b9-note { font-size: 0.88rem; }
.b9s.b9s p.b9-qhint { font-size: 0.88rem; }
.b9s.b9s .b9-lead, .b9s.b9s p.b9-lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); }
.b9s.b9s p.b9-dim { font-size: 0.9rem !important; }
