/* Twin Cities Pawn & Gun — Stitch "Sovereign Vault / Aura Vault" design system
   Pure CSS complementing compiled Tailwind. Dark obsidian + gold neo-brutalist. */

/* ---------- Size-adjusted fallback fonts (reduce CLS on webfont swap) ---------- */
/* These metric-matched fallbacks occupy nearly the same space as the real
   webfonts, so text does not reflow when Google Fonts finish loading. */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('Arial');
  ascent-override: 85.32%;
  descent-override: 22.12%;
  line-gap-override: 0%;
  size-adjust: 113.05%;
}
@font-face {
  font-family: 'Barlow Condensed Fallback';
  src: local('Arial Narrow'), local('Arial');
  ascent-override: 100%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 80%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas'), local('Menlo'), local('monospace');
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { background-color: #131316; color: #e5e1e6; }

::selection { background: #facc15; color: #131316; }

/* ---------- Blueprint grid background ---------- */
.blueprint-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
}

/* ---------- Gold glow effects ---------- */
.gold-glow { box-shadow: 0 0 0 1px #facc15, 0 8px 32px -4px rgba(250,204,21,0.22); }
.gold-hover { transition: box-shadow .25s ease, transform .15s ease; }
.gold-hover:hover { box-shadow: 0 0 24px rgba(250,204,21,0.35); transform: translateY(-1px); }
.gold-aura-hover { transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease; }
.gold-aura-hover:hover { box-shadow: 0 0 0 1px #facc15, 0 8px 32px -4px rgba(250,204,21,0.25); border-color: #facc15 !important; transform: translateY(-3px); }

/* ---------- Corner crosshairs ---------- */
.crosshair-card { position: relative; }
.crosshair-card .xh {
  position: absolute;
  color: #facc15;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1;
  z-index: 5;
  pointer-events: none;
}
.crosshair-card .xh.tl { top: -6px; left: -6px; }
.crosshair-card .xh.tr { top: -6px; right: -6px; }
.crosshair-card .xh.bl { bottom: -6px; left: -6px; }
.crosshair-card .xh.br { bottom: -6px; right: -6px; }

/* ---------- Dropdown nav (CSS hover) ---------- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  z-index: 100;
}
/* keep a hover bridge so the menu doesn't close in the gap */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  height: 12px;
  width: 100%;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }

/* ========== MEGA MENU ========== */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 760px;
  background: #0e0e11;
  border: 1px solid rgba(77,70,50,0.5);
  border-top: 3px solid #facc15;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(250,204,21,0.08);
  z-index: 200;
}

/* hover bridge so menu doesn't close in the gap */
#inv-dropdown::after,
#res-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  height: 12px;
  width: 100%;
}
#inv-dropdown:hover .mega-menu,
#res-dropdown:hover .mega-menu,
.mega-menu:hover { display: block; }

/* -- Column Headers -- */
.mega-headers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(77,70,50,0.4);
}
.mega-col-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid rgba(77,70,50,0.3);
  text-decoration: none;
  transition: background .2s ease;
}
.mega-col-hd:last-child { border-right: none; }
.mega-col-hd:hover { background: rgba(250,204,21,0.06); }
.mega-col-icon {
  font-size: 24px;
  color: #facc15;
  margin-top: 2px;
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.mega-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #e5e1e6;
  transition: color .2s ease;
}
.mega-col-hd:hover .mega-col-title { color: #facc15; }
.mega-col-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9a9078;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -- Sub-items -- */
.mega-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(77,70,50,0.4);
}
.mega-col {
  padding: 16px 24px 20px;
  border-right: 1px solid rgba(77,70,50,0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-col:last-child { border-right: none; }
.mega-item {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px;
  color: #d1c6ab;
  text-decoration: none;
  padding: 5px 0;
  transition: color .15s ease, padding-left .15s ease;
  display: block;
}
.mega-item:hover {
  color: #facc15;
  padding-left: 6px;
}

/* -- Footer Action Bar -- */
.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #1a1a1d;
}
.mega-footer-all {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #facc15;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.mega-footer-all:hover { color: #ffe083; }
.mega-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mega-footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9078;
  text-decoration: none;
  transition: color .2s ease;
}
.mega-footer-link:hover { color: #facc15; }
.mega-footer-sep { color: rgba(77,70,50,0.6); font-size: 12px; }
.mega-footer-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #facc15;
  color: #131316;
  padding: 7px 16px;
  text-decoration: none;
  transition: background .2s ease;
}
.mega-footer-cta:hover { background: #ffe083; }

/* ---------- Nav links ---------- */
.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #e5e1e6;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.nav-link:hover { color: #facc15; }
.nav-link.active { color: #facc15; border-bottom: 2px solid #facc15; }

/* ---------- Mobile menu ---------- */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ---------- Custom scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: #facc15 #0e0e11; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0e0e11; }
::-webkit-scrollbar-thumb { background: #facc15; border-radius: 3px; }

/* ---------- Range slider ---------- */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 12px;
  background: #facc15;
  cursor: pointer;
  border: 1px solid #0e0e11;
  border-radius: 1px;
}

/* ---------- Ticker marquee ---------- */
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-wrap:hover .ticker-inner { animation-play-state: paused; }

/* ---------- Filter chips ---------- */
.filter-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid #4d4632;
  color: #d1c6ab;
  background: #1b1b1e;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.filter-chip:hover { border-color: #facc15; color: #facc15; }
.filter-chip.active { background: #facc15; color: #131316; border-color: #facc15; font-weight: 700; }

/* ---------- Inventory cards ---------- */
.inv-card {
  background: #1b1b1e;
  border: 1px solid rgba(77,70,50,0.4);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.inv-card:hover {
  border-color: #facc15;
  box-shadow: 0 0 24px rgba(250,204,21,0.18);
  transform: translateY(-3px);
}
.inv-card img { transition: transform .5s ease; }
.inv-card:hover img { transform: scale(1.05); }

/* ---------- Brand chips ---------- */
.brand-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid #4d4632;
  color: #ffffff;
  background: #1b1b1e;
  border-radius: 2px;
  transition: all .2s ease;
}
.brand-chip:hover { border-color: #facc15; color: #facc15; }

/* ---------- Archery sideways frame ---------- */
.archery-frame { position: relative; height: 280px; overflow: hidden; border-radius: 2px; }
.archery-frame img { width: 100%; height: 280px; object-fit: cover; object-position: center; }

/* ---------- FAQ accordion ---------- */
.faq-item .faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-body { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; }

/* ---------- Utility ---------- */
img { max-width: 100%; height: auto; }
.section-line { height: 3px; width: 56px; background: #facc15; }


/* ---------- SEO semantic keyword/entity table ---------- */
.seo-table-wrap { overflow-x: auto; background: #1b1b1e; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seo-table thead th {
  text-align: left;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #131316;
  background: #facc15;
  font-weight: 700;
}
.seo-table tbody th[scope="row"] {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  width: 30%;
  min-width: 180px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #facc15;
  border-bottom: 1px solid rgba(77,70,50,0.4);
  border-right: 1px solid rgba(77,70,50,0.4);
}
.seo-table tbody td {
  padding: 16px 20px;
  color: #d1c6ab;
  line-height: 1.7;
  border-bottom: 1px solid rgba(77,70,50,0.4);
}
.seo-table tbody tr:last-child th,
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-table tbody tr:nth-child(even) td,
.seo-table tbody tr:nth-child(even) th[scope="row"] { background: rgba(255,255,255,0.015); }
.seo-table tbody tr:hover td,
.seo-table tbody tr:hover th[scope="row"] { background: rgba(250,204,21,0.05); }
.seo-table a { color: #d1c6ab; text-decoration: underline; text-decoration-color: rgba(250,204,21,0.35); text-underline-offset: 2px; transition: color .2s ease; }
.seo-table a:hover { color: #facc15; }
.seo-table tbody th[scope="row"] a { color: #facc15; text-decoration: none; }
@media (max-width: 640px) {
  .seo-table tbody th[scope="row"] { width: 40%; min-width: 130px; padding: 12px 14px; }
  .seo-table tbody td { padding: 12px 14px; }
  .seo-table thead th { padding: 12px 14px; }
}

/* ---------- Related pages contextual module ---------- */
.related-card { transition: transform .2s ease, border-color .2s ease; }



/* ---------- Light inv-card variant (for white-bg sections) ---------- */
.inv-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.inv-card-light:hover {
  border-color: #facc15;
  box-shadow: 0 0 24px rgba(250,204,21,0.18);
  transform: translateY(-3px);
}
.inv-card-light img { transition: transform .5s ease; }
.inv-card-light:hover img { transform: scale(1.05); }

/* ---------- Light brand chip variant ---------- */
.brand-chip-light {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 10px 18px;
  border: 1.5px solid #6b7280;
  color: #111827;
  background: #ffffff;
  border-radius: 2px;
  transition: all .2s ease;
}
.brand-chip-light:hover { border-color: #facc15; color: #131316; background: #fffbeb; }

/* ========================================
   Guide / Info Page Layout
   ======================================== */

/* Sticky TOC link hover */
.toc-link { transition: border-color 0.2s ease, color 0.2s ease; }
.toc-link:hover { border-color: #facc15 !important; color: #facc15 !important; }

/* Guide article: paragraph base */
.guide-article p {
  color: #374151;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 0.875rem;
}

/* Guide section wrapper */
.guide-section {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
  scroll-margin-top: 100px;
}
.guide-section:first-child { margin-top: 0; }

/* Number + rule row above each heading */
.guide-h2-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.guide-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #facc15;
  flex-shrink: 0;
}
.guide-rule {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Section heading */
.guide-h2 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #111827;
  border-left: 3px solid #facc15;
  padding-left: 10px;
  margin-bottom: 0.625rem;
}

/* Disclaimer text at end */
.guide-article .text-outline {
  color: #4b5563;
  font-size: 13px;
}

/* Dark variant for info pages (resource articles on #131316 bg) */
.guide-article-dark p {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 0.875rem;
}
.guide-article-dark strong { color: #e5e1e6; }
.guide-article-dark a { color: #facc15; }
.guide-article-dark a:hover { text-decoration: underline; }
.guide-article-dark ul, .guide-article-dark ol {
  color: #d1d5db;
  padding-left: 1.25rem;
  margin-bottom: 0.875rem;
}
.guide-article-dark li { margin-bottom: 0.4rem; line-height: 1.7; font-size: 15px; }
.guide-article-dark .guide-h2 { color: #facc15; }
.guide-article-dark .guide-rule { background: #2e2c28; }
.guide-article-dark .text-outline { color: #d1d5db; font-size: 13px; }
