/* ==========================================================================
   CrystalRelics.com — Museum Mineralogy & Sotheby's Natural History System
   Dark Obsidian Vitrine · Brushed Champagne Brass · GIA Monograph Clarity
   ========================================================================== */

:root {
  /* Deep Velvet Obsidian & Architectural Slate Surfaces (Zero purple blotches) */
  --bg-obsidian: #090B10;
  --bg-deep: #0D1017;
  --bg-card: #121620;
  --bg-card-hover: #171C28;
  --bg-elevated: #1A202E;

  /* Brushed Champagne Brass & Vitrine Hairline Borders */
  --gold-primary: #C8A96E;
  --gold-light: #E5CFA3;
  --gold-dark: #8E723E;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(200, 169, 110, 0.45);
  --gold-border: rgba(200, 169, 110, 0.18);
  --gold-border-strong: rgba(200, 169, 110, 0.36);

  /* High-Legibility Museum Placard Typography */
  --text-primary: #F4F5F7;
  --text-secondary: #A7B0C0;
  --text-muted: #7A8496;
  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Balanced Gallery Container & Tactile Radii */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 6px 22px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(200, 169, 110, 0.06), transparent 62%),
    var(--bg-obsidian);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

img {
  max-width: 100%;
  display: block;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* ==========================================================================
   Top Accent Line & Sticky Gallery Navigation Header
   ========================================================================== */
.spectrum-top-bar {
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(200, 169, 110, 0.08) 0%,
    rgba(229, 207, 163, 0.72) 50%,
    rgba(200, 169, 110, 0.08) 100%
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.72rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  flex-shrink: 0;
}

.brand-logo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200, 169, 110, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.brand-text-stack {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline-sub {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  color: var(--gold-primary);
  margin-top: 0.14rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  flex-wrap: nowrap;
}

/* Override styles.css @media (max-width: 1300px) hiding nav prematurely */
@media (min-width: 1081px) {
  .main-nav {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Compact search label & nav spacing on laptop widths (1081px-1250px) so all header actions fit cleanly */
@media (max-width: 1250px) and (min-width: 1081px) {
  .main-nav {
    gap: 0.6rem;
  }
  .main-nav a {
    font-size: 0.74rem;
  }
}

@media (max-width: 1250px) and (min-width: 681px) {
  .search-placeholder-text {
    display: none;
  }
  .search-bar-trigger::before {
    content: "Search";
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
}

.main-nav a {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.015em;
  padding: 0.28rem 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.search-bar-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.68rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.search-bar-trigger:hover {
  border-color: rgba(200, 169, 110, 0.38);
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  box-shadow: none;
}

.search-bar-trigger .search-icon-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.1rem 0.36rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.66rem;
}

.quiz-btn {
  background: rgba(200, 169, 110, 0.08);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
  padding: 0.4rem 0.78rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.quiz-btn:hover {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  color: #090B10;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.05rem;
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border-strong);
  color: var(--gold-light);
}

/* ==========================================================================
   Core Containers, Breadcrumbs & Editorial Section Headers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  padding-top: 1.25rem;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* Purge muddy olive pill border/background inherited from styles.css */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold-primary);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.42rem;
  line-height: 1.4;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
  max-width: 680px;
  line-height: 1.62;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  padding-bottom: 0.15rem;
}

.section-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Buttons (Brushed Champagne Brass — Zero Neon Yellow Glow)
   ========================================================================== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #E2CA9B 0%, #C8A96E 100%);
  color: #090B10;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 0.56rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E8D5AD;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 2px 8px rgba(0, 0, 0, 0.32);
  filter: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ECDAB4 0%, #D5B77E 100%);
  color: #090B10;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.56rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 169, 110, 0.34);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.btn-outline-gold:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(200, 169, 110, 0.09);
}

/* ==========================================================================
   Homepage Split Hero (Museum Vitrine Showcase)
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  margin-top: 1.35rem;
  overflow: hidden;
  background: linear-gradient(135deg, #141925 0%, #0E121B 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-left {
  padding: 2.6rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}

.hero-title span,
.hero-title span.gold-accent {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 500;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
  max-width: 520px;
  line-height: 1.66;
}

.hero-spectrum-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.spectrum-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.spectrum-chip:hover {
  border-color: var(--border-hover);
  background: rgba(200, 169, 110, 0.08);
  color: var(--text-primary);
}

.spectrum-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-right {
  position: relative;
  min-height: 360px;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #07090D;
}

.hero-right img.hero-specimen-img,
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 0.94;
}

.hero-right-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 11, 16, 0.85) 55%, rgba(9, 11, 16, 0.96) 100%);
  padding: 2.5rem 1.35rem 1.15rem;
}

.hero-specimen-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.7rem;
}

.hero-specimen-caption-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-specimen-caption-sub {
  font-size: 0.69rem;
  color: var(--text-secondary);
}

.hero-specimen-badge {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(9, 11, 16, 0.72);
  border: 1px solid var(--gold-border-strong);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   4-Column Video Documentary Strip
   ========================================================================== */
.video-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.video-compact-card {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-compact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.video-compact-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07090D;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.video-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-compact-card:hover .video-compact-thumb img {
  transform: scale(1.035);
}

.video-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(9, 11, 16, 0.86);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.video-compact-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-compact-meta {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 0.3rem;
}

.video-compact-body h3,
.video-compact-body h2.catalog-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.28;
  margin-bottom: 0.4rem;
}

.video-compact-body p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.54;
  margin-bottom: 0.75rem;
  flex: 1;
}

.video-compact-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Encyclopedia Filter Bar & Custom Select Controls
   ========================================================================== */
.encyclopedia-filter-bar {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.95rem 1.1rem !important;
  margin-bottom: 1.65rem !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem !important;
  align-items: center !important;
  box-shadow: var(--shadow-card);
}

.encyclopedia-filter-bar > * {
  min-width: 0;
  max-width: 100%;
}

.encyclopedia-filter-bar input[type="text"],
.encyclopedia-filter-bar input[type="search"],
.encyclopedia-filter-bar select,
#waterToolSelect,
#mohsTableSearch,
main select {
  background-color: #0B0E15 !important;
  border: 1px solid rgba(200, 169, 110, 0.28) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.58rem 0.85rem !important;
  color: var(--text-primary) !important;
  font-size: 0.84rem !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.encyclopedia-filter-bar select,
#waterToolSelect,
main select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A96E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  padding-right: 2.1rem !important;
}

.encyclopedia-filter-bar input:focus,
.encyclopedia-filter-bar select:focus,
#waterToolSelect:focus,
#mohsTableSearch:focus,
main select:focus {
  outline: none;
  border-color: var(--gold-light) !important;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

/* ==========================================================================
   Museum Specimen Cards (.crystal-grid & .crystal-card)
   ========================================================================== */
.crystal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

/* On sidebar layouts (Chakra & Zodiac pages), use 3 columns so cards aren't crushed */
.gemstone-page-layout .crystal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.crystal-card {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.crystal-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* Preserve full 320x185 specimen frame & subtle mineral glow without cropping */
.crystal-card-visual {
  aspect-ratio: 320 / 185;
  height: auto;
  position: relative;
  background-color: #080A0F;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.crystal-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 11, 16, 0.45) 100%);
  pointer-events: none;
}

.crystal-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.35s ease;
}

.crystal-card:hover .crystal-card-visual img {
  transform: scale(1.035);
}

/* Harmonize inline neon Mohs badges into frosted gemological pills */
.crystal-card-visual > div[style*="position:absolute"] {
  background: rgba(9, 11, 16, 0.84) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 207, 163, 0.32) !important;
  color: var(--gold-light) !important;
  font-size: 0.66rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.52rem !important;
  z-index: 2;
}

.crystal-card-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.crystal-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.28rem;
  min-height: 3.65rem;
  margin-bottom: 0.45rem;
}

.crystal-pill {
  font-size: 0.59rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.11rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Neutralize loud inline green/pink pill borders inside specimen grids */
.crystal-pill-row .crystal-pill {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary) !important;
}

.crystal-card h3,
.crystal-card h2.catalog-heading {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.14rem;
  line-height: 1.22;
}

.crystal-card .crystal-sub {
  font-size: 0.74rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.35;
}

.crystal-card p {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  flex: 1;
}

.crystal-card .btn-outline-gold,
.crystal-card .btn-gold {
  width: 100%;
  padding: 0.48rem 0.75rem;
  font-size: 0.76rem;
}

.card-subtle-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.crystal-card:hover .card-subtle-link {
  color: #FFFFFF;
}

/* ==========================================================================
   Product & Category Showcase Cards (Uncropped 320x195 Corner-Bracket Thumbs)
   ========================================================================== */
.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* Match 320x195 asset aspect ratio so baked gold corner brackets are 100% intact */
.product-thumb {
  aspect-ratio: 320 / 195;
  height: auto;
  border-radius: var(--radius-sm);
  background: #080A0F;
  border: 1px solid rgba(200, 169, 110, 0.18);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.025);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.28;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.editor-badge {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid rgba(200, 169, 110, 0.28);
  background: rgba(200, 169, 110, 0.08);
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
}

.product-card .btn-gold {
  width: 100%;
  padding: 0.52rem 0.85rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   5-Column Intention / Collection Medallion Strip
   ========================================================================== */
.intention-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.intention-card {
  position: relative;
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Remove double inner gold border inherited from styles.css */
.intention-card::before {
  display: none;
}

.intention-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.intention-circle {
  width: 78px;
  height: 78px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-border-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: #080A0F;
}

.intention-circle img,
.intention-circle svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.intention-card h3,
.intention-card h2.catalog-heading {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.intention-card p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gemstone, Chakra, Zodiac & Article Detail Monograph Layout
   ========================================================================== */
.gemstone-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 2.25rem;
  padding: 1.15rem 0 3.5rem;
  align-items: start;
}

.gemstone-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 1.85rem;
  margin-bottom: 1.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.gemstone-hero-visual {
  position: relative;
  aspect-ratio: 380 / 320;
  height: auto;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border-strong);
  background-color: #080A0F;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.gemstone-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gemstone-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 0.95rem;
  letter-spacing: -0.01em;
}

/* Quick Relic Specs & Mineralogy Table (Zero Empty Void Cells) */
.relic-specs-box {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.relic-specs-header {
  text-align: left;
  padding: 0.52rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(200, 169, 110, 0.05);
}

/* Default 4-column grid (used by Chakra & Zodiac correspondence boxes) */
.relic-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.relic-spec-cell {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-right: 1px solid var(--border-subtle);
  border-bottom: none;
}

.relic-spec-cell:last-child {
  border-right: none;
}

/* 5-cell layout on all 50 Gemstone pages: Row 1 has 3 equal cells, Row 2 has 2 equal cells */
.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(1),
.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(2),
.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(3) {
  grid-column: span 2;
  border-bottom: 1px solid var(--border-subtle);
}

.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(3) {
  border-right: none;
}

.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(4),
.relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(5) {
  grid-column: span 3;
  border-bottom: none;
}

.relic-spec-label {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.22rem;
  padding-bottom: 0;
  border-bottom: none;
}

.relic-spec-value {
  font-size: 0.81rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.38;
}

/* Refine affirmation / quote block on Gemstone heroes */
.gemstone-hero div[style*="border-left"] {
  background: linear-gradient(90deg, rgba(200, 169, 110, 0.1), rgba(200, 169, 110, 0.02)) !important;
  border: 1px solid rgba(200, 169, 110, 0.16);
  border-left: 3px solid var(--gold-primary) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  padding: 0.8rem 1.1rem !important;
  color: var(--gold-light) !important;
  font-size: 1.06rem !important;
  line-height: 1.45;
}

/* Single-column monograph flow inside main column (eliminates cramped 3-column squeeze) */
.gemstone-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
  align-items: start;
}

.lore-block {
  margin-bottom: 1.5rem;
}

.lore-block:last-child {
  margin-bottom: 0;
}

.lore-block h2 {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.25;
}

.lore-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.safety-badge {
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  font-weight: 600;
}

.safety-badge.safe {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6EE7B7;
}

.safety-badge.warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #FCD34D;
}

/* Custom Museum Accordion Styling for FAQ <details> */
main details:not(.video-sources) {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.9rem 1.1rem !important;
  margin-bottom: 0.65rem !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

main details:not(.video-sources):hover,
main details:not(.video-sources)[open] {
  border-color: var(--gold-border-strong) !important;
  background: var(--bg-card-hover) !important;
}

main details:not(.video-sources) summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  font-size: 0.92rem !important;
  cursor: pointer;
}

main details:not(.video-sources) summary::-webkit-details-marker {
  display: none;
}

main details:not(.video-sources) summary::after {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

main details:not(.video-sources)[open] summary::after {
  transform: rotate(45deg);
  background: rgba(200, 169, 110, 0.14);
}

main details:not(.video-sources) p {
  margin-top: 0.7rem !important;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.68;
}

/* ==========================================================================
   Companion Right Sidebar & Pairing Cards
   ========================================================================== */
.companion-sidebar {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  position: sticky;
  top: 74px;
  height: fit-content;
  box-shadow: var(--shadow-card);
}

.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pair-card {
  display: block;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: left;
  margin-bottom: 0.65rem;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.pair-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-deep);
  transform: translateY(-2px);
}

.pair-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pair-card span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Harmonize sidebar tool links & override hardcoded #120D20 purple Amazon box */
.companion-sidebar a[style*="color:#6EE7B7"] {
  color: var(--gold-light) !important;
}

.companion-sidebar div[style*="#120D20"] {
  background: var(--bg-elevated) !important;
  border-color: var(--gold-border-strong) !important;
}

/* ==========================================================================
   Buying Guides & Comparison Roundups Layout
   ========================================================================== */
.roundup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 2.25rem;
  padding: 1.15rem 0 3.5rem;
  align-items: start;
}

.roundup-layout h1 {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.95rem 0 2rem;
}

.top3-card {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.05rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.top3-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.top3-rank-pill {
  display: inline-block;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.top3-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.top3-card-top img {
  width: 66px;
  height: 66px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(200, 169, 110, 0.22);
  flex-shrink: 0;
}

.top3-specs {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.top3-specs div {
  margin-bottom: 0.28rem;
}

.top3-specs span {
  color: var(--gold-primary);
  font-weight: 600;
}

.review-breakdown-card {
  background: linear-gradient(180deg, #141925 0%, #10141D 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-card);
}

.review-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-header-row h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem !important;
  font-weight: 600 !important;
}

.rank-square {
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.26rem 0.6rem;
  border-radius: 5px;
}

.review-body-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.review-body-grid img {
  width: 100%;
  aspect-ratio: 270 / 230;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 169, 110, 0.2);
}

.authenticity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--gold-border);
  background: rgba(200, 169, 110, 0.06);
  color: var(--gold-light);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.85rem 0 1rem;
}

.pros-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 6px;
  padding: 0.85rem;
}

.cons-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 6px;
  padding: 0.85rem;
}

.pros-box h3,
.pros-box h4,
.cons-box h3,
.cons-box h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.pros-box ul,
.cons-box ul {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pros-box li,
.cons-box li {
  margin-bottom: 0.3rem;
}

.review-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Reference Tools & Master Mohs Table
   ========================================================================== */
.tool-result-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
}

div:has(> #mohsMasterTable) {
  background: var(--bg-card) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card);
}

#mohsMasterTable thead tr {
  background: rgba(200, 169, 110, 0.08) !important;
  border-bottom: 1px solid var(--gold-border-strong) !important;
}

#mohsMasterTable th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

#mohsMasterTable tbody tr {
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background-color 0.15s ease;
}

#mohsMasterTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* ==========================================================================
   Search & Quiz Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 9, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 1.5rem;
  max-height: 84vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
}

.search-input-large {
  width: 100%;
  background: #090B10;
  border: 1px solid rgba(200, 169, 110, 0.34);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.search-input-large:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.search-result-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Site Footer & Affiliate Disclosures
   ========================================================================== */
.site-footer {
  background: #06080C;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2.25rem;
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-col h3,
.footer-col h4,
.footer-col h2.catalog-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.42rem;
}

.footer-col a {
  font-size: 0.81rem;
  color: var(--text-secondary);
}

/* Harmonize inline #6EE7B7 neon mint links inside footer into calm museum palette */
.site-footer a[style*="#6EE7B7"] {
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

.footer-col a:hover,
.site-footer a[style*="#6EE7B7"]:hover {
  color: var(--gold-light) !important;
}

.affiliate-disclosure,
.affiliate-disclosure-compact {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0 0 0.8rem;
}

.affiliate-disclosure a,
.affiliate-disclosure-compact a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(9, 11, 16, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-border-strong);
  padding: 0.75rem 1rem;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Responsive Breakpoints (Desktop -> Tablet -> Mobile)
   ========================================================================== */
@media (max-width: 1080px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .main-nav.mobile-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-border-strong);
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.75);
    z-index: 150;
  }

  .main-nav.mobile-open a {
    padding: 0.65rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .main-nav.mobile-open a.active,
  .main-nav.mobile-open a:hover {
    border-color: var(--gold-primary);
    background: rgba(200, 169, 110, 0.12);
    color: var(--gold-light);
  }

  .main-nav.mobile-open a::after {
    display: none;
  }

  .gemstone-page-layout,
  .roundup-layout {
    grid-template-columns: 1fr;
  }

  .companion-sidebar {
    position: static;
  }

  .video-grid-4,
  .crystal-grid,
  .gemstone-page-layout .crystal-grid,
  .product-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intention-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero-split,
  .gemstone-hero,
  .review-body-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.85rem 1.5rem;
  }

  .hero-right {
    min-height: 260px;
  }

  .encyclopedia-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .top3-grid,
  .product-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0.6rem 0.9rem;
    gap: 0.45rem;
  }

  .brand-logo {
    gap: 0.45rem;
    min-width: 0;
  }

  .brand-logo-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .brand-title-main {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .brand-tagline-sub {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .search-bar-trigger {
    padding: 0.38rem 0.58rem;
  }

  .quiz-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.74rem;
  }

  .main-nav.mobile-open {
    grid-template-columns: 1fr;
    padding: 0.85rem 1rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .encyclopedia-filter-bar {
    grid-template-columns: 1fr !important;
  }

  .relic-specs-grid,
  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relic-specs-grid > .relic-spec-cell,
  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(1),
  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(2),
  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(3),
  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(4) {
    grid-column: span 1;
    border-bottom: 1px solid var(--border-subtle);
  }

  .relic-specs-grid:has(> .relic-spec-cell:nth-child(5):last-child) > .relic-spec-cell:nth-child(5) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
  }

  .relic-specs-grid > .relic-spec-cell:nth-child(2n) {
    border-right: none;
  }

  .video-grid-4,
  .crystal-grid,
  .gemstone-page-layout .crystal-grid,
  .product-grid-3,
  .product-grid-4,
  .top3-grid,
  .intention-grid,
  .pros-cons-grid,
  .tool-result-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .crystal-pill-row {
    min-height: 0;
  }

  .mobile-sticky-bar {
    display: block;
  }

  body.has-mobile-affiliate {
    padding-bottom: 165px;
  }
}

/* Focus & Reduced Motion */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Prevent wide tables inside CSS Grid columns from overflowing mobile viewports */
.gemstone-page-layout > *, .gemstone-two-col > * { min-width: 0; }
