/**
 * GC Collection Stats — plugin stylesheet
 * Covers only elements dynamically rendered by collection.js.
 * Static page layout (hero, era cards, section cards, header nav) lives in the theme custom CSS.
 *
 * Version: 1.1.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --gc-primary:       #1a1a1a;
  --gc-secondary:     #4a4a4a;
  --gc-accent:        #8b7355;
  --gc-accent-light:  #b8956a;
  --gc-gold:          #d4af37;
  --gc-border:        #e5e5e5;
  --gc-bg-light:      #fafafa;
  --gc-bg-white:      #ffffff;

  /* Text shades */
  --gc-text-primary:   #1a1a1a;   /* alias for --gc-primary */
  --gc-text-secondary: #4a4a4a;   /* alias for --gc-secondary */
  --gc-text-muted:     #666;
  --gc-text-light:     #888;
  --gc-muted:          #666;      /* alias for --gc-text-muted */

  /* Shadows */
  --gc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --gc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --gc-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --gc-transition:      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gc-transition-fast: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.gc-muted {
  color: var(--gc-text-muted);
  font-style: italic;
}

.gc-loading {
  color: var(--gc-text-light);
  font-style: italic;
  text-align: center;
}

/* Scroll-reveal: base state (JS adds gc-fade-in when element enters viewport) */
.gc-block {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--gc-transition);
}

.gc-fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .gc-fade-in {
    animation: scrollFadeIn 0.6s ease forwards;
  }
}

@keyframes scrollFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TAB NAVIGATION STATES (JS toggles gc-nav-active / gc-tab-active)
   ============================================================ */
.gc-tab-panel {
  display: none;
}

.gc-tab-active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gc-nav-active,
.gc-nav-active:hover,
.gc-nav-active:focus,
.gc-nav-active:active {
  background: linear-gradient(135deg, var(--gc-accent) 0%, var(--gc-accent-light) 100%) !important;
  border-color: transparent !important;
  box-shadow: var(--gc-shadow-md) !important;
}

/* ============================================================
   RARITY PYRAMID  (.gc-tier-*)
   ============================================================ */
.gc-rarity-pyramid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.gc-tier-row {
  display: flex;
  justify-content: center;
}

.gc-tier-block {
  background: var(--gc-bg-white);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: var(--gc-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--gc-transition);
  border-left: 4px solid;
  cursor: pointer;
}

.gc-tier-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--gc-shadow-lg);
}

.gc-tier-x .gc-tier-block { width: 35%; border-color: #d4af37; }
.gc-tier-s .gc-tier-block { width: 45%; border-color: #c0c0c0; }
.gc-tier-a .gc-tier-block { width: 55%; border-color: #cd7f32; }
.gc-tier-b .gc-tier-block { width: 65%; border-color: #8b7355; }
.gc-tier-c .gc-tier-block { width: 80%; border-color: var(--gc-accent); }
.gc-tier-d .gc-tier-block { width: 95%; border-color: #b5a896; }

.gc-tier-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gc-tier-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.gc-tier-x .gc-tier-badge { background: linear-gradient(135deg, #d4af37, #f4e4a6); }
.gc-tier-s .gc-tier-badge { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); }
.gc-tier-a .gc-tier-badge { background: linear-gradient(135deg, #cd7f32, #e8b89a); }
.gc-tier-b .gc-tier-badge { background: linear-gradient(135deg, #8b7355, #b5a285); }
.gc-tier-c .gc-tier-badge { background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-light)); }
.gc-tier-d .gc-tier-badge { background: linear-gradient(135deg, #b5a896, #d4c9ba); }

.gc-tier-info {
  display: flex;
  flex-direction: column;
}

.gc-tier-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gc-text-primary);
  margin-bottom: 4px;
}

.gc-tier-label {
  font-size: 13px;
  color: var(--gc-text-secondary);
}

.gc-tier-stats {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.gc-tier-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--gc-text-primary);
}

.gc-tier-percentage {
  font-size: 16px;
  color: var(--gc-text-secondary);
  font-weight: 500;
}

@media (max-width: 849px) {
  .gc-tier-x .gc-tier-block,
  .gc-tier-s .gc-tier-block,
  .gc-tier-a .gc-tier-block,
  .gc-tier-b .gc-tier-block,
  .gc-tier-c .gc-tier-block,
  .gc-tier-d .gc-tier-block {
    width: 100%;
  }

  .gc-tier-block {
    padding: 20px 24px;
  }

  .gc-tier-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .gc-tier-count {
    font-size: 24px;
  }
}

/* ============================================================
   BRAND GROUP ACCORDION  (.gc-brand-group-*)
   ============================================================ */
.gc-brand-group {
  border: 1px solid rgba(139, 115, 85, 0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gc-brand-group:hover {
  border-color: rgba(139, 115, 85, 0.3);
}

.gc-brand-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(139, 115, 85, 0.03);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gc-brand-group-header:hover {
  background: rgba(139, 115, 85, 0.06);
}

.gc-brand-group-header.gc-collapsed {
  border-bottom: none;
}

.gc-brand-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gc-brand-group-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gc-primary);
}

.gc-brand-group-count {
  font-size: 13px;
  color: var(--gc-muted);
  font-weight: 400;
}

.gc-brand-group-icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.gc-brand-group-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gc-accent);
}

.gc-brand-group-header.gc-collapsed .gc-brand-group-icon svg {
  transform: rotate(-90deg);
}

/* Content panel: max-height collapse/expand */
.gc-brand-group-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.gc-brand-group-content.gc-collapsed {
  max-height: 0;
}

.gc-brand-group-list {
  padding: 12px 20px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.gc-brand-group-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(139, 115, 85, 0.02);
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
}

.gc-brand-group-item-name {
  color: var(--gc-secondary);
  line-height: 1.6;
}

@media (max-width: 849px) {
  .gc-brand-group-list {
    grid-template-columns: 1fr;
  }

  .gc-brand-group-header {
    padding: 14px 16px;
  }

  .gc-brand-group-name {
    font-size: 16px;
  }
}

/* Brand summary row (shown inside accordion for origin/made-in groups) */
.gc-brand-summary {
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.gc-brand-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.gc-brand-summary-label {
  color: var(--gc-muted);
  font-weight: 400;
}

.gc-brand-summary-value {
  color: var(--gc-primary);
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 849px) {
  .gc-brand-summary {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================================
   DEVICE LIST  (.gc-device-*)
   ============================================================ */
.gc-device-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}

.gc-device-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-device-item:nth-child(odd) {
  background: rgba(139, 115, 85, 0.08);
  margin: 0 -16px;
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid rgba(139, 115, 85, 0.2);
}

.gc-device-item:last-child {
  border-bottom: none;
}

.gc-device-item:hover {
  background: rgba(139, 115, 85, 0.15);
  margin: 0 -16px;
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gc-accent);
}

.gc-device-marker {
  width: 6px;
  height: 6px;
  background: var(--gc-accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.gc-device-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.gc-device-name {
  font-size: 15px;
  color: var(--gc-secondary);
  line-height: 1.6;
}

.gc-device-link {
  color: var(--gc-accent);
  text-decoration: none;
}

.gc-device-link:hover {
  text-decoration: underline;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.gc-load-more-container {
  margin-top: 20px;
  text-align: center;
}

.gc-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--gc-accent);
  border-radius: 4px;
  color: var(--gc-accent);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gc-load-more-btn:hover {
  background: var(--gc-accent);
  color: var(--gc-bg-white);
  transform: translateY(-1px);
}

.gc-load-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.gc-load-more-btn.gc-expanded svg {
  transform: rotate(180deg);
}

@media (max-width: 849px) {
  .gc-load-more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ORIGIN LINK  (inside made-in / sourced-from accordion)
   ============================================================ */
.gc-origin-link {
  color: var(--gc-accent);
  text-decoration: none;
  font-weight: 700;
}

.gc-origin-link:hover {
  text-decoration: underline;
}

/* ============================================================
   ORIGINS — PREMIUM COUNTRY CARDS
   ============================================================ */
.gc-origin-groups[data-gc="made_in_groups"],
.gc-origin-groups[data-gc="sourced_from_groups"] {
  width: 100%;
}

.gc-origin-premium {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gc-origin-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 28px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(250,247,242,0.25) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.gc-origin-summary-kicker {
  color: rgba(139, 115, 85, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gc-origin-summary-copy {
  color: var(--gc-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.gc-origin-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gc-origin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.gc-origin-country-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(139, 115, 85, 0.1);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.92), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.99) 0%, rgba(247,243,237,0.98) 100%);
  box-shadow:
    0 8px 24px rgba(32, 24, 15, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.75);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gc-origin-country-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 28px rgba(32, 24, 15, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.78);
  border-color: rgba(139, 115, 85, 0.18);
}

.gc-origin-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(139, 115, 85, 0.14);
  background:
    radial-gradient(circle at top right, rgba(184, 149, 106, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 247, 1) 0%, rgba(246, 238, 226, 0.98) 100%);
  box-shadow:
    0 12px 28px rgba(32, 24, 15, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.75);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gc-origin-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.gc-origin-card-inner-feature {
  padding: 24px 32px 20px;
}

.gc-origin-card-inner-regular {
  padding: 22px 30px 20px;
}

.gc-origin-feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 34px rgba(32, 24, 15, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.78);
  border-color: rgba(139, 115, 85, 0.24);
}

.gc-origin-feature-topline {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(72px, auto);
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.gc-origin-feature-rank {
  color: rgba(139, 115, 85, 0.76);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.gc-origin-feature-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--gc-text-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 0.95;
  min-width: 74px;
  text-align: right;
}

.gc-origin-feature-count span {
  margin-top: 6px;
  color: var(--gc-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gc-origin-feature-country {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.gc-origin-feature-name {
  color: var(--gc-text-primary);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.gc-origin-feature-pct {
  color: var(--gc-text-secondary);
  font-size: 12px;
  line-height: 1.5;
  padding-right: 6px;
}

.gc-origin-feature-meta {
  color: var(--gc-text-secondary);
  font-size: 12px;
  line-height: 1.6;
  padding-right: 6px;
}

.gc-origin-card-rank {
  color: rgba(139, 115, 85, 0.72);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.gc-origin-card-mainline {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(68px, auto);
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.gc-origin-card-country {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 230px;
}

.gc-origin-card-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(239,233,224,0.9) 100%);
  color: #7a6345;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.gc-origin-card-name {
  color: var(--gc-text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-width: 0;
}

.gc-origin-card-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gc-text-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 72px;
  justify-content: flex-end;
  text-align: right;
}

.gc-origin-card-count span {
  color: var(--gc-text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gc-origin-card-share {
  color: rgba(139, 115, 85, 0.84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.gc-origin-card-meta {
  display: flex;
  align-items: center;
  padding-right: 6px;
}

.gc-origin-card-meta span {
  color: var(--gc-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.gc-origin-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(139, 115, 85, 0.08);
  color: var(--gc-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  padding-right: 6px;
}

@media (max-width: 1024px) {
  .gc-origin-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-origin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 849px) {
  .gc-origin-summary {
    padding: 18px 20px 16px;
  }

  .gc-origin-feature-strip,
  .gc-origin-grid {
    grid-template-columns: 1fr;
  }

  .gc-origin-card-inner-feature,
  .gc-origin-card-inner-regular {
    padding-left: 24px;
    padding-right: 24px;
  }

  .gc-origin-feature-name {
    font-size: 20px;
  }

  .gc-origin-card-count {
    font-size: 24px;
  }
}

@media (max-width: 540px) {
  .gc-origin-premium {
    gap: 18px;
  }

  .gc-origin-feature-topline,
  .gc-origin-card-mainline {
    flex-direction: column;
    align-items: flex-start;
  }

  .gc-origin-card-name {
    font-size: 18px;
  }

  .gc-origin-card-meta {
    gap: 10px 14px;
  }
}

/* ============================================================
   TIMELINE SVG CHART  (.gc-chart-*)
   ============================================================ */
.gc-timeline-chart {
  width: 100%;
}

.gc-chart-svg {
  width: 100%;
  height: 260px;
  display: block;
}

.gc-chart-line  { stroke: currentColor; stroke-width: 2; opacity: .9; fill: none; }
.gc-chart-dot   { fill: currentColor; opacity: .95; }
.gc-chart-xlabel { fill: currentColor; opacity: .75; font-size: 12px; }
.gc-chart-grid  { stroke: currentColor; opacity: .12; }

@media (max-width: 600px) {
  .gc-chart-svg { height: 220px; }
  .gc-chart-xlabel { font-size: 14px; }
}

/* ============================================================
   DATA-GC-DETAILS DEVICE LINK COLOURS
   ============================================================ */
[data-gc-details="special_list"]   .gc-brand-group-item-name,
[data-gc-details="special_list"]   .gc-brand-group-item-name a.gc-device-link,
[data-gc-details="prototype_list"] .gc-brand-group-item-name,
[data-gc-details="prototype_list"] .gc-brand-group-item-name a.gc-device-link,
[data-gc-details="boxed_list"]     .gc-brand-group-item-name,
[data-gc-details="os_list"]        .gc-brand-group-item-name {
  color: #8b6b3f !important;
}

[data-gc-details="special_list"]   .gc-brand-group-item-name a.gc-device-link,
[data-gc-details="prototype_list"] .gc-brand-group-item-name a.gc-device-link,
[data-gc-details="boxed_list"]     .gc-brand-group-item-name a.gc-device-link,
[data-gc-details="os_list"]        .gc-brand-group-item-name a.gc-device-link {
  color: #8b6b3f !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(139, 107, 63, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

[data-gc-details="special_list"]   .gc-brand-group-item-name a.gc-device-link:hover,
[data-gc-details="prototype_list"] .gc-brand-group-item-name a.gc-device-link:hover,
[data-gc-details="boxed_list"]     .gc-brand-group-item-name a.gc-device-link:hover,
[data-gc-details="os_list"]        .gc-brand-group-item-name a.gc-device-link:hover {
  color: #5f4727 !important;
  border-bottom-color: rgba(139, 107, 63, 0.6);
}

[data-gc-details="special_list"]   .gc-brand-group-item:hover .gc-brand-group-item-name,
[data-gc-details="prototype_list"] .gc-brand-group-item:hover .gc-brand-group-item-name,
[data-gc-details="boxed_list"]     .gc-brand-group-item:hover .gc-brand-group-item-name {
  color: #5f4727 !important;
}

/* ============================================================
   SCROLL REVEAL — ERA TIMELINE  (JS adds is-inview)
   ============================================================ */
html.gc-reveal-ready .gc-timeline .gc-era-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

html.gc-reveal-ready .gc-timeline .gc-era-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

html.gc-reveal-ready .gc-timeline .gc-era-card .gc-era-marker {
  transform: scale(0.86);
  opacity: 0.6;
  transition: transform 0.55s ease, opacity 0.55s ease;
  will-change: transform, opacity;
}

html.gc-reveal-ready .gc-timeline .gc-era-card.is-inview .gc-era-marker {
  transform: scale(1);
  opacity: 1;
}

html.gc-reveal-ready .gc-timeline .gc-era-card.is-inview .gc-era-marker::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0;
  transform: scale(0.92);
  animation: gcMarkerPing 1.05s ease-out 1;
}

@keyframes gcMarkerPing {
  0%   { opacity: .16; transform: scale(0.92); }
  100% { opacity: 0;   transform: scale(1.22); }
}

@media (prefers-reduced-motion: reduce) {
  html.gc-reveal-ready .gc-timeline .gc-era-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.gc-reveal-ready .gc-timeline .gc-era-card .gc-era-marker {
    transform: none;
    opacity: 1;
    transition: none;
  }

  html.gc-reveal-ready .gc-timeline .gc-era-card .gc-era-marker::after {
    animation: none;
  }
}

/* ============================================================
   ARCHIVE (NOKIA / CONNECT) — MOBILE-ONLY ADJUSTMENTS
   Scoped here so archive tweaks live with the plugin.
   ============================================================ */
@media (max-width: 768px) {
  .gc-archive-page .gc-archive-gallery {
    padding-left: 10px;
    padding-right: 10px;
  }
  .gc-archive-page #nokiagallery .grid,
  .gc-archive-page #mgallery .grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 14px !important;
  }
  .gc-archive-page #nokiagallery .cover,
  .gc-archive-page #mgallery .cover {
    height: auto;
  }
}

/* ============================================================
   ARCHIVE (NOKIA / CONNECT) — COVER RATIO & MOBILE FULL WIDTH
   Prevent top cropping by matching cover ratio; widen on small phones.
   ============================================================ */
.gc-archive-page #mgallery .cover,
.gc-archive-page #nokiagallery .cover {
  aspect-ratio: 3 / 4 !important;
  height: 320px;
}
.gc-archive-page #mgallery .cover img,
.gc-archive-page #nokiagallery .cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

@media (max-width: 540px) {
  .gc-archive-page #mgallery .grid,
  .gc-archive-page #nokiagallery .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .gc-archive-page #mgallery .cover,
  .gc-archive-page #nokiagallery .cover {
    aspect-ratio: auto !important;
    height: 620px !important;
  }
  .gc-archive-page #mgallery .cover img,
  .gc-archive-page #nokiagallery .cover img {
    object-fit: cover !important;
    object-position: center top !important;
  }
}
