/* Cal Gun Roster SEO Boost */
:root {
  --cgrsb-bg: #0d0f12;
  --cgrsb-panel: #161a1f;
  --cgrsb-line: #2a313a;
  --cgrsb-text: #e8ecf0;
  --cgrsb-muted: #9fb3c0;
  --cgrsb-gold: #c8972a;
  --cgrsb-gold-hi: #e0b04a;
  --cgrsb-red: #e25b4f;
  --cgrsb-amber: #f0b429;
}

/* Gun cards are now real links: keep them looking like cards */
a.cgr-gun-card,
a.cgr-gun-card:hover,
a.cgr-gun-card:focus,
a.cgr-gun-card:visited {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.cgr-gun-card:focus-visible {
  outline: 2px solid var(--cgrsb-gold);
  outline-offset: -2px;
}

/* Homepage wordmark is an H1 now: neutralize heading defaults */
h1.cgr-logo-wordmark {
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}
.cgr-logo-wordmark .cgr-logo-line1,
.cgr-logo-wordmark .cgr-logo-line2 { display: block; }

/* Single-gun section titles are H2s now */
h2.cgr-section-title {
  margin-top: 0;
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: inherit;
  text-transform: inherit;
  clear: none;
}

/* Homepage: app fills the first screen, directory content scrolls below it */
html.cgr-has-roster,
html.cgr-has-roster body.cgr-has-roster {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
}

html.cgr-has-roster body.cgr-fullpage .cgr-slim-header,
html.cgr-has-roster body.cgr-fullpage #cgr-sitenav,
html.cgr-has-roster body.cgr-fullpage .cgr-roster-wrap { position: absolute !important; }

/* ---------- Hubs (homepage + archives) ---------- */
.cgrsb-hub {
  background: var(--cgrsb-bg);
  color: var(--cgrsb-text);
  border-top: 1px solid var(--cgrsb-line);
  padding: 40px 16px 32px;
  font-size: 16px;
  line-height: 1.6;
}
.cgrsb-inner { max-width: 1180px; margin: 0 auto; }
.cgrsb-hub h2,
.cgrsb-related h2 {
  color: var(--cgrsb-text);
  font-size: 20px;
  line-height: 1.3;
  margin: 28px 0 12px;
  font-weight: 700;
}
.cgrsb-hub h2:first-child { margin-top: 0; font-size: 24px; }
.cgrsb-lede { color: var(--cgrsb-muted); max-width: 860px; margin: 0 0 8px; }
.cgrsb-lede strong { color: var(--cgrsb-text); }
.cgrsb-sync { display: block; margin-top: 6px; font-size: 14px; color: var(--cgrsb-muted); }
.cgrsb-links { list-style: none; margin: 0; padding: 0; }
.cgrsb-links li { padding: 4px 0; break-inside: avoid; color: var(--cgrsb-muted); }
.cgrsb-links a,
.cgrsb-more,
.cgrsb-trust a,
.cgrsb-notice a {
  color: var(--cgrsb-gold-hi);
  text-decoration: none;
}
.cgrsb-links a:hover,
.cgrsb-more:hover,
.cgrsb-trust a:hover,
.cgrsb-notice a:hover { text-decoration: underline; }
.cgrsb-count { font-size: 13px; color: var(--cgrsb-muted); }
.cgrsb-cols { column-width: 220px; column-gap: 24px; }
.cgrsb-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 32px;
}

/* ---------- Single gun ---------- */
.cgrsb-related {
  margin: 32px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--cgrsb-line);
  color: var(--cgrsb-text);
}
.cgrsb-notice {
  margin: 12px 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cgrsb-text);
  background: var(--cgrsb-panel);
  border: 1px solid var(--cgrsb-line);
  border-left: 4px solid var(--cgrsb-amber);
}
.cgrsb-notice-removed { border-left-color: var(--cgrsb-red); }

/* ---------- Trust bar (sitewide footer) ---------- */
.cgrsb-trust {
  background: #0a0c0f;
  color: var(--cgrsb-muted);
  border-top: 1px solid var(--cgrsb-line);
  padding: 24px 16px;
  font-size: 13px;
  line-height: 1.6;
}
.cgrsb-trust p { margin: 0 0 10px; max-width: 980px; }
.cgrsb-trust ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.cgrsb-trust .cgrsb-copy { margin: 0; opacity: .8; }

/* Hide the theme credit line; the trust bar replaces it */
.site-footer .site-info { display: none !important; }

/* Content pages with the dark Cal Gun Roster nav: hide the duplicate theme header */
body:has(.cgr-inner-nav) #masthead,
body:has(.cgr-inner-nav) .drawer-navigation { display: none !important; }

@media (max-width: 700px) {
  /* Header stats and badge overflowed the screen on phones */
  .cgr-slim-header .cgr-header-stats-row,
  .cgr-slim-header .cgr-slim-badge { display: none !important; }
}

@media (max-width: 640px) {
  .cgrsb-hub { padding: 28px 16px; }
  .cgrsb-hub h2:first-child { font-size: 21px; }
  .cgrsb-cols { column-width: 150px; }
}

/* ================= Compare tool ================= */
.cgrsb-cmp-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid var(--cgrsb-line);
  border-radius: 999px;
  background: var(--cgrsb-panel);
  color: var(--cgrsb-muted);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
a.cgr-gun-card { position: relative; }
.cgrsb-cmp-btn:hover,
.cgrsb-cmp-btn:focus-visible { color: var(--cgrsb-gold-hi); border-color: var(--cgrsb-gold); outline: none; }
.cgrsb-cmp-btn.is-on { background: var(--cgrsb-gold); border-color: var(--cgrsb-gold); color: #111; }
.cgrsb-cmp-bar { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; flex-wrap: wrap; }
.cgrsb-cmp-btn-lg { position: static; font-size: 13px; padding: 6px 14px; }
.cgrsb-cmp-link { color: var(--cgrsb-gold-hi); font-size: 13px; text-decoration: none; }
.cgrsb-cmp-link:hover { text-decoration: underline; }

.cgrsb-tray {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(150%);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  background: #11161c;
  border: 1px solid var(--cgrsb-gold);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  color: var(--cgrsb-text);
  font-size: 13px;
  transition: transform .2s ease;
}
.cgrsb-tray.is-on { transform: translateX(-50%) translateY(0); }
.cgrsb-tray-chips { display: flex; gap: 6px; overflow-x: auto; min-width: 0; }
.cgrsb-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px 4px 10px; border-radius: 999px;
  background: var(--cgrsb-panel); border: 1px solid var(--cgrsb-line);
  white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
.cgrsb-chip-x { background: none; border: 0; color: var(--cgrsb-muted); cursor: pointer; font-size: 12px; padding: 0 4px; }
.cgrsb-chip-x:hover { color: var(--cgrsb-red); }
.cgrsb-tray-go {
  flex: none; padding: 7px 14px; border-radius: 8px;
  background: var(--cgrsb-gold); color: #111 !important; font-weight: 700; text-decoration: none !important;
}
.cgrsb-tray-go.is-disabled { background: var(--cgrsb-line); color: var(--cgrsb-muted) !important; pointer-events: none; }
.cgrsb-tray-clear { flex: none; background: none; border: 0; color: var(--cgrsb-muted); cursor: pointer; font-size: 12px; }
.cgrsb-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  z-index: 100001; padding: 8px 14px; border-radius: 8px;
  background: #222; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cgrsb-toast.is-on { opacity: 1; }

/* Compare page */
.cgrsb-compare { color: var(--cgrsb-text); margin: 8px 0 32px; }
.cgrsb-compare-intro { color: var(--cgrsb-muted); }
.cgrsb-compare-add { position: relative; max-width: 520px; margin: 16px 0 20px; }
.cgrsb-compare-add label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--cgrsb-muted); }
#cgrsbCompareSearch {
  width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 16px;
  border-radius: 8px; border: 1px solid var(--cgrsb-line); background: #fff; color: #111;
}
.cgrsb-compare-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px;
  background: var(--cgrsb-panel); border: 1px solid var(--cgrsb-line); border-radius: 8px; max-height: 320px; overflow: auto;
}
.cgrsb-res, .cgrsb-res-empty { padding: 8px 10px; border-radius: 6px; display: flex; justify-content: space-between; gap: 12px; }
.cgrsb-res { cursor: pointer; }
.cgrsb-res:hover, .cgrsb-res.is-active { background: #222a33; }
.cgrsb-res-meta, .cgrsb-res-empty { color: var(--cgrsb-muted); font-size: 13px; }
.cgrsb-diff-toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--cgrsb-muted); margin-bottom: 10px; cursor: pointer; }
.cgrsb-compare-scroll { overflow-x: auto; border: 1px solid var(--cgrsb-line); border-radius: 10px; }
.cgrsb-compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.cgrsb-compare-table th,
.cgrsb-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--cgrsb-line); text-align: left; vertical-align: top; }
.cgrsb-compare-table tbody th { color: var(--cgrsb-muted); font-weight: 600; white-space: nowrap; width: 150px; position: sticky; left: 0; background: var(--cgrsb-bg); }
.cgrsb-compare-table thead th { background: var(--cgrsb-panel); vertical-align: bottom; }
.cgrsb-compare-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.cgrsb-compare-table tr.cgrsb-diff td { background: rgba(200,151,42,.08); }
.cgrsb-diff-only tr.cgrsb-same { display: none; }
.cgrsb-cmp-head { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.cgrsb-cmp-head img { width: 100%; max-width: 180px; height: auto; border-radius: 6px; background: #fff; }
.cgrsb-cmp-make { color: var(--cgrsb-gold); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cgrsb-cmp-model { color: var(--cgrsb-text); font-size: 17px; font-weight: 700; text-decoration: none; }
.cgrsb-cmp-model:hover { text-decoration: underline; }
.cgrsb-cmp-remove { color: var(--cgrsb-muted); font-size: 12px; text-decoration: none; }
.cgrsb-cmp-remove:hover { color: var(--cgrsb-red); }
.cgrsb-btn { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--cgrsb-gold); color: var(--cgrsb-gold-hi); text-decoration: none; font-size: 13px; }
.cgrsb-btn:hover { background: var(--cgrsb-gold); color: #111; }
.cgrsb-compare-note { color: var(--cgrsb-muted); font-size: 13px; margin-top: 12px; }
.cgrsb-compare-note a, .cgrsb-compare a { color: var(--cgrsb-gold-hi); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
@media (max-width: 640px) {
  .cgrsb-tray { left: 8px; right: 8px; transform: translateY(150%); max-width: none; flex-wrap: wrap; }
  .cgrsb-tray.is-on { transform: translateY(0); }
  .cgrsb-compare-table tbody th { width: 96px; white-space: normal; }
}
/* Neutralize theme/Customizer table striping inside the compare table */
html body .cgrsb-compare .cgrsb-compare-table tr,
html body .cgrsb-compare .cgrsb-compare-table tr td,
html body .cgrsb-compare .cgrsb-compare-table tr th { background: transparent !important; color: var(--cgrsb-text) !important; }
html body .cgrsb-compare .cgrsb-compare-table tbody th { background: var(--cgrsb-bg) !important; color: var(--cgrsb-muted) !important; }
html body .cgrsb-compare .cgrsb-compare-table thead th { background: var(--cgrsb-panel) !important; }
html body .cgrsb-compare .cgrsb-compare-table tr.cgrsb-diff td { background: rgba(200,151,42,.10) !important; }
html body .cgrsb-compare .cgrsb-cmp-model { color: var(--cgrsb-text) !important; }
html body .cgrsb-compare .cgrsb-cmp-remove { color: var(--cgrsb-muted) !important; }
html body .cgrsb-compare .cgrsb-btn { color: var(--cgrsb-gold-hi) !important; }
html body .cgrsb-compare .cgrsb-btn:hover { color: #111 !important; }
/* Server-rendered "where to buy" intro on gun pages */
html body .cgr-single-gun .cgr-buy-intro { font-size: 14px !important; line-height: 1.6 !important; color: var(--cgrsb-text) !important; opacity: .85; margin: 0 0 12px !important; font-weight: 400 !important; }
html body .cgr-single-gun .cgr-buy-intro a { color: var(--cgrsb-gold-hi) !important; font-size: 14px !important; text-decoration: none; }
html body .cgr-single-gun .cgr-buy-intro a:hover { text-decoration: underline; }

/* ================= Shared site layout (all pages except the homepage app) ================= */
body.cgrsb-site { background: var(--cgrsb-bg) !important; color: var(--cgrsb-text); }
body.cgrsb-site #page,
body.cgrsb-site .site-content,
body.cgrsb-site .site-main,
body.cgrsb-site article,
body.cgrsb-site .post,
body.cgrsb-site .page { background: transparent !important; }

/* Retire the theme header/footer and the per-page nav blocks */
body.cgrsb-site #masthead,
body.cgrsb-site .drawer-navigation,
body.cgrsb-site #colophon,
body.cgrsb-site .cgr-inner-nav { display: none !important; }
/* Pages that carry their own H1 in the content: hide the duplicate theme title */
body.cgrsb-site .post-content:has(.entry-content h1) > .entry-header { display: none !important; }

/* Header */
.cgrsb-header {
  position: sticky; top: 0; z-index: 9990;
  background: linear-gradient(180deg, #121a22 0%, #0f151c 100%);
  border-bottom: 1px solid rgba(200,151,42,.35);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
body.admin-bar .cgrsb-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cgrsb-header { top: 46px; } }
.cgrsb-header-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px;
}
.cgrsb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex: none; }
.cgrsb-logo-shield { width: 30px; height: 36px; flex: none; }
.cgrsb-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.cgrsb-logo-l1 { font-family: "Arial Black", Arial, sans-serif; font-size: 19px; letter-spacing: .04em; color: #fff; }
.cgrsb-logo-l1 span { color: var(--cgrsb-gold); }
.cgrsb-logo-l2 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cgrsb-muted); margin-top: 3px; }
.cgrsb-search { flex: 1 1 220px; max-width: 340px; margin: 0; }
.cgrsb-search input {
  width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px;
  border-radius: 8px; border: 1px solid var(--cgrsb-line); background: #0b0f14; color: var(--cgrsb-text);
}
.cgrsb-search input::placeholder { color: #7f8f9b; }
.cgrsb-search input:focus { outline: none; border-color: var(--cgrsb-gold); }
.cgrsb-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.cgrsb-nav a {
  padding: 7px 11px; border-radius: 7px; font-size: 14px; font-weight: 600;
  color: var(--cgrsb-text) !important; text-decoration: none !important; white-space: nowrap;
}
.cgrsb-nav a:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.cgrsb-nav a.is-active { color: var(--cgrsb-gold-hi) !important; background: rgba(200,151,42,.12); }
.cgrsb-menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--cgrsb-line);
  color: var(--cgrsb-text); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer;
}
@media (max-width: 900px) {
  .cgrsb-header-inner { flex-wrap: wrap; gap: 10px; }
  .cgrsb-menu-btn { display: block; }
  .cgrsb-search { order: 3; flex-basis: 100%; max-width: none; }
  .cgrsb-nav { order: 4; flex-basis: 100%; flex-direction: column; display: none; margin: 0; }
  .cgrsb-nav.is-open { display: flex; }
  .cgrsb-nav a { padding: 10px 8px; border-bottom: 1px solid var(--cgrsb-line); border-radius: 0; }
}

/* Archive page heading (brand / caliber / type) */
.cgrsb-page-head { background: #0f141a; border-bottom: 1px solid var(--cgrsb-line); padding: 22px 16px 18px; }
.cgrsb-page-head .cgrsb-inner { max-width: 1240px; }
.cgrsb-page-head h1 { margin: 6px 0 6px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: #fff; font-weight: 800; }
.cgrsb-page-head p { margin: 0; color: var(--cgrsb-muted); font-size: 15px; max-width: 820px; }
.cgrsb-crumbs { font-size: 13px; color: var(--cgrsb-muted); }
.cgrsb-crumbs a { color: var(--cgrsb-gold-hi) !important; text-decoration: none; }

/* Archive pages: give the roster app the full width, dark */
body.cgrsb-site.archive .site-content,
body.cgrsb-site.archive .site-main,
body.cgrsb-site.archive #primary,
body.cgrsb-site.archive .content-area,
body.cgrsb-site.archive .container { max-width: 1240px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; padding-top: 0 !important; }
body.cgrsb-site.archive .cgr-archive { margin: 18px 0 0; }

/* Generic content pages / posts (anything not already dark-styled by the Customizer) */
body.cgrsb-site .entry-content,
body.cgrsb-site .entry-content p,
body.cgrsb-site .entry-content li { color: var(--cgrsb-text); }
body.cgrsb-site .entry-content h1,
body.cgrsb-site .entry-content h2,
body.cgrsb-site .entry-content h3,
body.cgrsb-site .entry-content h4,
body.cgrsb-site .entry-title { color: #fff; }
body.cgrsb-site .entry-content a { color: var(--cgrsb-gold-hi); }
body.cgrsb-site .entry-meta, body.cgrsb-site .entry-meta a { color: var(--cgrsb-muted); }
/* The roster shortcode's own app header is only for the homepage */
body.cgrsb-site .cgr-slim-header,
body.cgrsb-site #cgr-sitenav { display: none !important; }
body.cgrsb-site .site-content { padding-left: 0 !important; padding-right: 0 !important; width: 100% !important; }
/* Let the page (not <body>) scroll so the sticky header pins to the viewport */
html:has(body.cgrsb-site) { overflow-x: hidden !important; overflow-y: auto !important; height: auto !important; }
html body.cgrsb-site, html body.cgrsb-site.cgr-has-roster { overflow: visible !important; height: auto !important; }
/* Resources page: keep the resource grid in a centered column under the shared header */
html body.cgrsb-site .cgr-resources-wrap { width: auto !important; max-width: 1100px !important; box-sizing: border-box !important; padding-left: 16px !important; padding-right: 16px !important; }
html body.cgrsb-site #page .entry-content .cgr-resources-wrap { margin-left: auto !important; margin-right: auto !important; }
/* Always show the page title (H1) unless the content supplies its own */
html body.cgrsb-site #page .post-content:not(:has(.entry-content h1)) > .entry-header,
html body.cgrsb-site #page .post-content:not(:has(.entry-content h1)) > .entry-header .entry-title { display: block !important; visibility: visible !important; height: auto !important; }
html body.cgrsb-site #page .entry-header .entry-title { color: #fff !important; font-size: clamp(28px, 3.4vw, 40px) !important; line-height: 1.15 !important; margin: 32px 0 18px !important; }
/* Content typography (pages and posts) */
body.cgrsb-site .entry-content { font-size: 17px; line-height: 1.7; }
body.cgrsb-site .entry-content > h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--cgrsb-line); }
body.cgrsb-site .entry-content > h3 { font-size: 19px; line-height: 1.35; margin: 26px 0 8px; color: var(--cgrsb-gold-hi); }
body.cgrsb-site .entry-content > ul, body.cgrsb-site .entry-content > ol { padding-left: 1.3em; }

/* ---------- Buy links (server-rendered) ---------- */
.cgr-dealers a.cgrsb-featured { border-color: var(--cgrsb-gold); box-shadow: inset 3px 0 0 var(--cgrsb-gold); }
.cgr-dealers a.cgrsb-exact .cgr-dealer-arrow { color: var(--cgrsb-gold-hi); font-weight: 600; white-space: nowrap; }
.cgrsb-buy-query { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--cgrsb-muted); }
.cgrsb-buy-query strong { color: var(--cgrsb-text); font-weight: 600; }

/* ---------- Roster alert forms ---------- */
.cgrsb-alert {
  margin: 18px 0 0;
  padding: 16px;
  background: #11161c;
  border: 1px solid var(--cgrsb-line);
  border-radius: 10px;
  color: var(--cgrsb-text);
  font-size: 14px;
}
.cgrsb-alert-wide { max-width: 1100px; margin: 24px auto; padding: 20px; }
.cgrsb-alert-head { display: flex; gap: 12px; align-items: flex-start; }
.cgrsb-alert-icon { font-size: 20px; line-height: 1.2; }
.cgrsb-alert-title { margin: 0; font-weight: 700; font-size: 15px; color: var(--cgrsb-text); }
.cgrsb-alert-text { margin: 4px 0 0; color: var(--cgrsb-muted); line-height: 1.45; }
.cgrsb-alert-row { display: flex; gap: 8px; margin-top: 12px; }
.cgrsb-alert-row input[type=email] {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px;
  background: #0d0f12; color: var(--cgrsb-text);
  border: 1px solid var(--cgrsb-line); border-radius: 8px;
  font-size: 15px;
}
.cgrsb-alert-row input[type=email]:focus { outline: 2px solid var(--cgrsb-gold); outline-offset: 0; border-color: var(--cgrsb-gold); }
.cgrsb-alert-row button {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: var(--cgrsb-gold); color: #111;
  border: 0; border-radius: 8px;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.cgrsb-alert-row button:hover { background: var(--cgrsb-gold-hi); }
.cgrsb-alert-row button:disabled { opacity: .6; cursor: default; }
.cgrsb-alert-extra { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--cgrsb-muted); font-size: 13px; cursor: pointer; }
.cgrsb-alert-fine { margin: 10px 0 0; font-size: 12px; color: #7f8f9b; line-height: 1.45; }
.cgrsb-alert-fine a { color: var(--cgrsb-muted); }
.cgrsb-alert-msg { margin: 8px 0 0; font-size: 13px; color: #6fcf97; min-height: 0; }
.cgrsb-alert-msg:empty { display: none; }
.cgrsb-alert-msg.is-error { color: var(--cgrsb-red); }
.cgrsb-alert.is-done .cgrsb-alert-row,
.cgrsb-alert.is-done .cgrsb-alert-extra { display: none; }
.cgrsb-alert-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .cgrsb-alert-row { flex-direction: column; }
  .cgrsb-alert-row button { width: 100%; }
}

/* Confirm / unsubscribe page */
.cgrsb-alert-page { max-width: 640px; margin: 48px auto; padding: 0 16px; color: var(--cgrsb-text); line-height: 1.6; }
.cgrsb-alert-page h1 { font-size: 28px; margin: 0 0 12px; }
.cgrsb-alert-page a { color: var(--cgrsb-gold-hi); }
.cgrsb-unsub { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cgrsb-unsub button { padding: 10px 16px; border-radius: 8px; border: 0; background: var(--cgrsb-gold); color: #111; font-weight: 700; cursor: pointer; }
.cgrsb-unsub button.cgrsb-secondary { background: transparent; color: var(--cgrsb-text); border: 1px solid var(--cgrsb-line); }
.cgrsb-alert-band { background: var(--cgrsb-bg); padding: 24px 16px 8px; border-top: 1px solid var(--cgrsb-line); }
.cgrsb-alert-band .cgrsb-alert-wide { margin: 0 auto; }
.cgrsb-alert { display: block !important; box-sizing: border-box; width: auto; }

/* ---------- Gun page layout (v1.5) ---------- */
body.cgrsb-site .hfeed.site.container { padding-top: 0 !important; }
body.single-ca_gun .cgr-single-gun { max-width: 1180px !important; margin: 0 auto !important; padding: 18px 16px 40px !important; box-sizing: border-box; }
body.single-ca_gun .cgr-hero { grid-template-columns: minmax(0, 440px) minmax(0, 1fr) !important; gap: 0 !important; align-items: stretch; }
body.single-ca_gun .cgr-hero-image { display: flex; align-items: center; justify-content: center; min-height: 300px; }
body.single-ca_gun .cgr-hero-image img { width: 100% !important; height: auto !important; max-height: 360px; object-fit: contain; }
body.single-ca_gun .cgr-hero-info .cgr-gun-model { font-size: clamp(24px, 3vw, 32px) !important; line-height: 1.15 !important; margin: 2px 0 10px !important; }
.cgr-hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin: 14px 0 16px; }
.cgr-hero-price span { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cgrsb-muted); }
.cgr-hero-price strong { display: block; font-size: 28px; line-height: 1.1; color: #fff; }
a.cgr-hero-buy {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  background: var(--cgrsb-gold); color: #111 !important; font-weight: 800; font-size: 15px; text-decoration: none !important;
}
a.cgr-hero-buy:hover { background: var(--cgrsb-gold-hi); }
.cgr-doj-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--cgrsb-gold-hi) !important; }
#where-to-buy { scroll-margin-top: 90px; }
body.single-ca_gun .cgr-body-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
body.single-ca_gun h2.cgr-section-title {
  font-size: 18px !important; font-weight: 700 !important; color: #fff !important;
  text-transform: none !important; letter-spacing: 0 !important; margin-bottom: 12px !important;
}
@media (max-width: 860px) {
  body.single-ca_gun .cgr-hero { grid-template-columns: 1fr !important; }
  body.single-ca_gun .cgr-hero-image { min-height: 0; padding: 12px !important; }
  body.single-ca_gun .cgr-hero-image img { max-height: 240px; }
  body.single-ca_gun .cgr-body-grid { display: flex !important; flex-direction: column; }
  body.single-ca_gun .cgr-dealers-section { order: -1; }
  body.single-ca_gun .cgr-specs-grid { grid-template-columns: 1fr 1fr !important; }
  a.cgr-hero-buy { flex: 1 1 auto; text-align: center; }
}

/* ---------- Roster changes page ---------- */
.cgrsb-changes-sum { font-size: 17px; }
.cgrsb-changes .cgrsb-alert { margin: 16px 0 24px; }
.cgrsb-changes-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.cgrsb-changes h2 { margin-top: 0 !important; }
.cgrsb-changes h3 { font-size: 15px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--cgrsb-muted) !important; margin: 18px 0 6px !important; }
.cgrsb-changes .cgrh-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.cgrsb-changes .cgrh-list li { padding: 8px 0; margin: 0; border-bottom: 1px solid var(--cgrsb-line); display: flex; justify-content: space-between; gap: 12px; }
.cgrsb-changes .cgrh-list a { font-weight: 600; text-decoration: none; }
.cgrsb-changes .cgrh-list span { color: var(--cgrsb-muted); font-size: 13px; white-space: nowrap; }

/* ---------- Mobile polish ---------- */
@media (max-width: 900px) {
  /* Two-row header takes too much screen when sticky on phones */
  .cgrsb-header { position: relative !important; top: 0 !important; }
}
@media (max-width: 640px) {
  /* Compare tray collapses to a compact pill */
  .cgrsb-tray { left: auto !important; right: 10px !important; bottom: 10px !important; max-width: calc(100vw - 20px); padding: 6px !important; gap: 6px !important; flex-wrap: nowrap !important; border-radius: 999px !important; }
  .cgrsb-tray-chips, .cgrsb-tray-clear { display: none !important; }
  .cgrsb-tray-go { padding: 9px 14px !important; border-radius: 999px !important; font-size: 13px !important; white-space: nowrap; }
  body.cgrsb-tray-on { padding-bottom: 64px; }
  .cgrsb-alert-row input[type=email], .cgrsb-alert-row button { min-height: 46px; }
  .cgr-breadcrumb { font-size: 13px; line-height: 1.6; }
}

.cgr-img-credit { margin: 8px 0 0; padding: 0 4px; font-size: 11.5px; line-height: 1.45; color: var(--cgrsb-muted); text-align: center; }
.cgr-img-credit a { color: var(--cgrsb-muted); text-decoration: underline; }
body.single-ca_gun .cgr-hero-image { flex-direction: column; height: auto !important; overflow: visible !important; }
body.single-ca_gun .cgr-hero-image img { object-fit: contain !important; }

/* ---------- Model hubs (v1.7) ---------- */
.cgrm { padding-bottom: 40px; }
.cgrm h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.cgrm-top { padding-top: 22px; }
.cgrm-hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 22px; background: var(--cgrsb-panel); border: 1px solid var(--cgrsb-line); border-radius: 14px; padding: 18px; }
.cgrm-hero-img { background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 220px; overflow: hidden; }
.cgrm-hero-img img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.cgrm-hero-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cgrm-answer h2 { font-size: 19px; }
.cgrm-answer p { margin: 0 0 10px; color: #cfd8e0; line-height: 1.6; font-size: 15px; }
.cgrm-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cgrm-cta a { color: var(--cgrsb-gold-hi); }
.cgrm .cgrm-btn { display: inline-block; background: var(--cgrsb-gold); color: #111 !important; font-weight: 700; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.cgrm-versions, .cgrm-guide, .cgrm-alert, .cgrm-makefam { margin-top: 30px; }
.cgrm-table-wrap { overflow-x: auto; border: 1px solid var(--cgrsb-line); border-radius: 12px; background: var(--cgrsb-panel); }
.cgrm-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #dbe3ea; }
.cgrm-table th, .cgrm-table td { padding: 10px 12px; border-bottom: 1px solid var(--cgrsb-line); text-align: left; vertical-align: middle; }
.cgrm-table thead, .cgrm-table thead tr, .cgrm-table tbody tr, .cgrm-table th, .cgrm-table td { background: transparent !important; }
.cgrm-table thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cgrsb-muted); font-weight: 600; }
.cgrm-table tbody tr:last-child > * { border-bottom: 0; }
.cgrm-table tbody th a { color: #fff; font-weight: 600; text-decoration: none; }
.cgrm-table tbody th a:hover { color: var(--cgrsb-gold-hi); text-decoration: underline; }
.cgrm-t-img { width: 76px; }
.cgrm-t-img img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; display: block; }
.cgrm-note { color: var(--cgrsb-muted); font-size: 13px; margin: 8px 0 0; }
.cgrm-removed p { color: #cfd8e0; }
.cgrm-guide { color: #cfd8e0; line-height: 1.65; font-size: 15.5px; max-width: 860px; }
.cgrm-guide h2 { margin-top: 22px; }
.cgrm-guide ul { padding-left: 20px; }
.cgrm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cgrm-chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--cgrsb-line); border-radius: 999px; color: #dbe3ea; text-decoration: none; font-size: 14px; background: var(--cgrsb-panel); }
.cgrm-chips a:hover { border-color: var(--cgrsb-gold); color: #fff; }
.cgrm-chips small { color: var(--cgrsb-muted); margin-left: 4px; }
.cgrm-makefam.cgrh-wrap { margin-top: 28px; margin-bottom: 8px; }
.cgrm-index { padding-top: 18px; }
.cgrm-jump { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; font-size: 13.5px; }
.cgrm-jump a { color: var(--cgrsb-muted); text-decoration: none; }
.cgrm-jump a:hover { color: var(--cgrsb-gold-hi); }
.cgrm-make { margin-top: 26px; scroll-margin-top: 90px; }
.cgrm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cgrm-tile { display: flex; flex-direction: column; height: 100%; background: var(--cgrsb-panel); border: 1px solid var(--cgrsb-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.cgrm-tile:hover { border-color: var(--cgrsb-gold); }
.cgrm-tile-img { background: #fff; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cgrm-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.cgrm-tile-name { padding: 10px 12px 2px; font-weight: 700; color: #fff; font-size: 15px; }
.cgrm-tile-meta { padding: 0 12px 12px; color: var(--cgrsb-muted); font-size: 12.5px; }
.cgrsb-family-link { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--cgrsb-line); border-radius: 10px; background: var(--cgrsb-panel); color: #cfd8e0; font-size: 14px; }
.cgrsb-family-link a { color: var(--cgrsb-gold-hi); font-weight: 600; text-decoration: none; }
.cgrsb-family-link a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .cgrm-hero { grid-template-columns: 1fr; padding: 12px; }
  .cgrm-hero-img { min-height: 160px; }
  .cgrm-table thead { display: none; }
  .cgrm-table, .cgrm-table tbody, .cgrm-table tr { display: block; }
  .cgrm-table tr { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--cgrsb-line); }
  .cgrm-table th, .cgrm-table td { border: 0; padding: 2px 0; }
  .cgrm-table .cgrm-t-img { grid-row: span 3; width: auto; }
  .cgrm-table tbody th { grid-column: 2 / -1; }
  .cgrm-table td[data-l]::before { content: attr(data-l) ": "; color: var(--cgrsb-muted); font-size: 12px; }
  .cgrm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Guns.com buy links (1.9) */
.cgrm .cgrm-btn.cgrm-btn-gc { background: transparent; color: var(--cgrsb-gold-hi) !important; border: 1px solid var(--cgrsb-gold); }
.cgrm .cgrm-btn.cgrm-btn-gc:hover { background: rgba(200,151,42,.12); }
.cgrm-t-buy { white-space: nowrap; }
.cgrsb-gc-link { color: var(--cgrsb-gold-hi); font-weight: 600; text-decoration: none; font-size: 14px; }
.cgrsb-gc-link.is-exact { display: inline-block; background: var(--cgrsb-gold); color: #111 !important; padding: 5px 10px; border-radius: 6px; }
.cgrsb-gc-link:hover { text-decoration: underline; }
