/**
 * Ghosthound main styles — brand kit: blood red + charcoal noir
 */

body.gh-theme {
  background: var(--gh-ink) !important;
  color: var(--gh-bone) !important;
  font-family: var(--gh-font-body);
  font-size: var(--gh-fs-body);
  line-height: var(--gh-lh-body);
  /* Override GeneratePress light palette vars */
  --base: #0c0c0c !important;
  --base-2: #0c0c0c !important;
  --base-3: #171717 !important;
  --contrast: #f2eeeb !important;
  --contrast-2: #8a8580 !important;
  --contrast-3: #282828 !important;
  /* Accent used by GP `a{color:var(--accent)}` — must stay light on black */
  --accent: var(--gh-link) !important;
  /* Kill WP block “vivid purple” and similar presets on dark shell */
  --wp--preset--color--vivid-purple: var(--gh-link) !important;
  --wp--preset--color--vivid-cyan-blue: #8ec8f0 !important;
  --wp--preset--color--pale-pink: #f0c4d0 !important;
  --wp--preset--color--vivid-red: #e8a0a0 !important;
  --wp--preset--color--accent: var(--gh-link) !important;
  --wp--preset--color--contrast: var(--gh-bone) !important;
  --wp--preset--color--contrast-2: var(--gh-muted) !important;
  --wp--preset--color--base: var(--gh-ink) !important;
  --wp--preset--color--base-2: var(--gh-ink) !important;
  --wp--preset--color--base-3: var(--gh-charcoal) !important;
}

/* Full-bleed home: hide GP sidebars and stretch content */
body.gh-theme.home .sidebar,
body.gh-theme.home #right-sidebar,
body.gh-theme.home #left-sidebar,
body.gh-theme.home .is-right-sidebar,
body.gh-theme.home .is-left-sidebar {
  display: none !important;
}

body.gh-theme.home .site-content,
body.gh-theme.home .content-area,
body.gh-theme.home .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.gh-theme.home .site-content {
  display: block !important;
}

body.gh-theme .site-content {
  background: transparent !important;
}

/* Links: light rose on noir — dark purple/blood-red fails contrast on black */
body.gh-theme a,
body.gh-theme .entry-content a,
body.gh-theme .site-main a,
body.gh-theme .site-content a,
body.gh-theme .wp-block-post-content a,
body.gh-theme .inside-article a {
  color: var(--gh-link) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

body.gh-theme a:hover,
body.gh-theme a:focus-visible,
body.gh-theme .entry-content a:hover,
body.gh-theme .entry-content a:focus-visible,
body.gh-theme .site-main a:hover,
body.gh-theme .site-main a:focus-visible {
  color: var(--gh-link-hover) !important;
}

/* Block / classic “has-*” text colors that go muddy on black */
body.gh-theme .has-vivid-purple-color,
body.gh-theme .has-vivid-purple-color a,
body.gh-theme .has-text-color.has-vivid-purple-color,
body.gh-theme .has-pale-pink-color,
body.gh-theme .has-vivid-cyan-blue-color {
  color: var(--gh-link) !important;
}

body.gh-theme .has-black-color,
body.gh-theme .has-contrast-3-color {
  color: var(--gh-muted) !important;
}

body.gh-theme :focus-visible {
  outline: 2px solid var(--gh-focus);
  outline-offset: 2px;
}

/* —— Header (mockup) —— */
.gh-header,
body.gh-theme .site-header.gh-header {
  background: rgba(10, 14, 18, 0.92);
  border-bottom: 1px solid color-mix(in srgb, var(--gh-copper) 18%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gh-header__inner {
  max-width: var(--gh-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
}

.gh-brand__mark {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
}

.gh-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gh-brand__name {
  font-family: var(--gh-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.gh-brand__ghost {
  color: var(--gh-bone);
}

.gh-brand__hound {
  color: var(--gh-blood, var(--gh-copper));
}

.gh-brand__tag {
  font-family: var(--gh-font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-sage);
}

.gh-primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.gh-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin: 0;
  padding: 0;
  font-family: var(--gh-font-ui);
}

.gh-nav a {
  color: var(--gh-bone) !important;
  text-decoration: none !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gh-nav a:hover {
  color: var(--gh-copper) !important;
}

/* Resources dropdown */
.gh-nav__item--has-children {
  position: relative;
}

.gh-nav__parent {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gh-nav__caret {
  font-size: 0.65rem;
  opacity: 0.75;
}

.gh-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 14rem;
  background: var(--gh-charcoal);
  border: 1px solid color-mix(in srgb, var(--gh-copper) 25%, var(--gh-slate));
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  display: none;
}

.gh-nav__item--has-children:hover > .gh-nav__sub,
.gh-nav__item--has-children:focus-within > .gh-nav__sub,
.gh-nav__item--has-children.is-open > .gh-nav__sub {
  display: block;
}

.gh-nav__sub a {
  display: block;
  padding: 0.55rem 1rem;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  text-transform: none;
  color: var(--gh-bone) !important;
}

.gh-nav__sub a:hover {
  background: color-mix(in srgb, var(--gh-copper) 12%, transparent);
  color: var(--gh-link) !important;
}

/* Featured field guides (homepage + resources) */
.gh-featured-resources {
  padding-top: var(--gh-space-6);
}

.gh-featured-resources__grid {
  display: grid;
  gap: var(--gh-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .gh-featured-resources__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .gh-featured-resources__grid--resources {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gh-featured-resources__grid--resources {
  margin: 0 0 var(--gh-space-7);
}

.gh-featured-card {
  display: flex;
  flex-direction: column;
  gap: var(--gh-space-3);
  padding: var(--gh-space-6);
  min-height: 12rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--gh-copper) 18%, transparent), transparent 55%),
    linear-gradient(155deg, #121820 0%, #1a222c 55%, #1c1814 100%);
  border: 1px solid color-mix(in srgb, var(--gh-copper) 35%, var(--gh-slate));
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.gh-featured-card:hover {
  border-color: var(--gh-copper);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.gh-featured-card__eyebrow {
  font-family: var(--gh-font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-sage);
}

.gh-featured-card__title {
  margin: 0;
  font-family: var(--gh-font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--gh-link);
}

.gh-featured-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gh-muted);
}

.gh-featured-card__cta {
  font-family: var(--gh-font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gh-copper) !important;
  letter-spacing: 0.04em;
}

.gh-section__title--sub {
  margin-top: var(--gh-space-6);
  font-size: 1.35rem;
}

/* Long-form resource pages */
.gh-resource-page .entry-content,
.page-slug-field-investigators-handbook .entry-content,
.page-slug-fifteen-haunted-places-connecticut .entry-content,
body.page .gh-prose {
  max-width: 48rem;
}

/* Resource hub cards */
.gh-resource-grid {
  display: grid;
  gap: var(--gh-space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gh-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gh-resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gh-resource-card {
  display: block;
  padding: var(--gh-space-5);
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.gh-resource-card h2 {
  margin: 0 0 var(--gh-space-2);
  font-size: 1.15rem;
  color: var(--gh-link);
}

.gh-resource-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gh-muted);
}

.gh-header__cta {
  font-size: 0.7rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem !important;
  white-space: nowrap;
}

.gh-header__cta-icon {
  margin-right: 0.35rem;
  opacity: 0.85;
}

.gh-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  color: var(--gh-bone);
  padding: 0;
  align-items: center;
  justify-content: center;
}

.gh-nav-toggle__bars,
.gh-nav-toggle__bars::before,
.gh-nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--gh-copper);
  position: relative;
}

.gh-nav-toggle__bars::before,
.gh-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.gh-nav-toggle__bars::before {
  top: -6px;
}

.gh-nav-toggle__bars::after {
  top: 6px;
}

@media (max-width: 900px) {
  .gh-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .gh-primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gh-slate);
  }

  .gh-primary-nav.is-open {
    display: flex;
  }

  .gh-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }

  .gh-nav__item--has-children {
    width: 100%;
  }

  .gh-nav__sub {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .gh-nav__item--has-children.is-open > .gh-nav__sub {
    display: block;
  }

  .gh-header__cta {
    align-self: flex-start;
  }
}

/* GeneratePress leftovers */
body.gh-theme .site-footer {
  background: var(--gh-charcoal);
  border-color: var(--gh-slate);
}

body.gh-theme .site-content,
body.gh-theme .inside-article {
  background: transparent;
}

body.gh-theme .entry-title,
body.gh-theme h1,
body.gh-theme h2,
body.gh-theme h3 {
  font-family: var(--gh-font-display);
  font-weight: 600;
  line-height: var(--gh-lh-tight);
  color: var(--gh-bone);
}

body.gh-theme h1,
body.gh-theme .entry-title {
  font-size: var(--gh-fs-h1);
}

body.gh-theme h2 {
  font-size: var(--gh-fs-h2);
}

body.gh-theme h3 {
  font-size: var(--gh-fs-h3);
}

/* —— Content-first homepage masthead (no giant graphic) —— */
.gh-home--content-first {
  padding-bottom: var(--gh-space-6);
}

.gh-masthead {
  border-bottom: 1px solid color-mix(in srgb, var(--gh-copper) 20%, transparent);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, color-mix(in srgb, var(--gh-copper) 14%, transparent), transparent 55%),
    var(--gh-charcoal);
  padding: var(--gh-space-6) var(--gh-space-5) var(--gh-space-5);
}

.gh-masthead__inner {
  max-width: var(--gh-max);
  margin: 0 auto;
}

.gh-masthead__kicker {
  margin: 0 0 var(--gh-space-3);
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gh-muted);
}

.gh-masthead__title {
  margin: 0 0 var(--gh-space-3);
  font-family: var(--gh-font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gh-bone);
  max-width: 22ch;
}

.gh-masthead__lede {
  margin: 0 0 var(--gh-space-5);
  max-width: 48ch;
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.gh-masthead__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Quick links — above the fold on most screens */
.gh-quick-links {
  max-width: var(--gh-max);
  margin: 0 auto;
  padding: var(--gh-space-5);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .gh-quick-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gh-quick-links {
    grid-template-columns: repeat(6, 1fr);
  }
}

.gh-quick-links__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-height: 4.5rem;
}

.gh-quick-links__card:hover {
  border-color: var(--gh-copper);
  transform: translateY(-2px);
}

.gh-quick-links__label {
  font-family: var(--gh-font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gh-bone);
}

.gh-quick-links__desc {
  font-size: 0.78rem;
  color: var(--gh-muted);
  line-height: 1.35;
}

.gh-section--tight {
  padding-top: var(--gh-space-5);
  padding-bottom: var(--gh-space-5);
}

.gh-section__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 var(--gh-space-4);
  max-width: var(--gh-max);
}

.gh-section__head-row .gh-section__title {
  margin: 0;
}

.gh-section__link {
  font-family: var(--gh-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gh-link) !important;
  text-decoration: none !important;
}

.gh-section__link:hover {
  text-decoration: underline !important;
}

/* Legacy cinematic hero (unused on front page; keep for other templates if needed) */
.gh-hero--cinematic {
  display: none;
}

/* Buttons */
.gh-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--gh-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: var(--gh-radius);
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gh-btn--copper,
.gh-btn--primary {
  background: var(--gh-copper);
  color: var(--gh-ink) !important;
  border-color: var(--gh-copper);
}

.gh-btn--copper:hover,
.gh-btn--primary:hover {
  background: var(--gh-copper-bright);
  border-color: var(--gh-link);
  color: var(--gh-ink) !important;
}

.gh-btn--outline,
.gh-btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--gh-copper) 55%, transparent);
  color: var(--gh-link) !important;
}

.gh-btn--outline:hover,
.gh-btn--ghost:hover {
  border-color: var(--gh-copper);
  color: var(--gh-link) !important;
  background: color-mix(in srgb, var(--gh-copper) 10%, transparent);
}

/* Case grid / cards */
.gh-case-grid {
  display: grid;
  gap: var(--gh-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gh-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gh-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gh-case-card {
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  box-shadow: var(--gh-shadow);
  display: flex;
  flex-direction: column;
}

.gh-case-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gh-case-card__body {
  padding: var(--gh-space-4);
}

.gh-case-card__title {
  margin: var(--gh-space-2) 0;
  font-size: var(--gh-fs-h3);
}

.gh-case-card__title a {
  color: var(--gh-bone);
  text-decoration: none;
}

.gh-case-card__title a:hover {
  color: var(--gh-copper);
}

.gh-case-card__meta,
.gh-case-card__excerpt {
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  color: var(--gh-muted);
  margin: 0 0 var(--gh-space-2);
}

.gh-case-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Chips */
.gh-chip {
  display: inline-block;
  font-family: var(--gh-font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.gh-chip--muted {
  background: var(--gh-slate);
  color: var(--gh-muted);
}

.gh-chip--status-open {
  background: var(--gh-status-open-bg);
  color: var(--gh-status-open-fg);
}

.gh-chip--status-closed {
  background: var(--gh-status-closed-bg);
  color: var(--gh-status-closed-fg);
}

.gh-chip--status-inconclusive {
  background: var(--gh-status-inconclusive-bg);
  color: var(--gh-status-inconclusive-fg);
}

/* EVP player */
.gh-evp-player {
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  padding: var(--gh-space-5);
  margin: var(--gh-space-5) 0;
}

.gh-evp-player__audio {
  width: 100%;
  margin: var(--gh-space-3) 0;
}

.gh-evp-player__meta {
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  color: var(--gh-muted);
}

.gh-evp-player__transcript {
  margin-top: var(--gh-space-3);
  font-size: 0.9375rem;
  color: var(--gh-muted);
}

/* Social follow */
.gh-social-follow ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-3);
  margin: 0;
  padding: 0;
}

/* Sections */
.gh-section {
  max-width: var(--gh-max);
  margin: 0 auto;
  padding: var(--gh-space-7) var(--gh-space-5);
}

.gh-section__title {
  margin: 0 0 var(--gh-space-5);
  display: flex;
  align-items: baseline;
  gap: var(--gh-space-3);
  color: var(--gh-link);
}

.gh-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--gh-copper) 25%, var(--gh-slate));
}

.gh-empty {
  font-family: var(--gh-font-ui);
  color: var(--gh-muted);
  font-style: italic;
}

.gh-section__intro {
  color: var(--gh-muted);
  max-width: 48ch;
  margin: calc(var(--gh-space-4) * -1) 0 var(--gh-space-5);
  font-size: 0.95rem;
}

.gh-section__more {
  margin: var(--gh-space-5) 0 0;
}

/* RSS news list */
.gh-news-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gh-space-4);
}

.gh-news-feed__item {
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-left: 3px solid var(--gh-copper);
  border-radius: var(--gh-radius);
  padding: var(--gh-space-4);
}

.gh-news-feed__title {
  font-family: var(--gh-font-display);
  font-size: 1.15rem;
  color: var(--gh-link) !important;
  text-decoration: none !important;
}

.gh-news-feed__title:hover {
  color: var(--gh-bone) !important;
}

.gh-news-feed__meta {
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  color: var(--gh-muted);
  margin: var(--gh-space-2) 0 0;
  letter-spacing: 0.04em;
}

.gh-news-feed__out {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.gh-news-feed__excerpt {
  margin: var(--gh-space-2) 0 0;
  color: var(--gh-muted);
  font-size: 0.9rem;
}

.gh-news-feed__note {
  margin-top: var(--gh-space-4);
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  color: var(--gh-muted);
  font-style: italic;
}

/* Photo captions */
.gh-photo-caption {
  font-family: var(--gh-font-body);
  font-size: 0.95rem;
  color: var(--gh-muted);
  line-height: 1.5;
}

.gh-photo-caption--empty {
  opacity: 0.55;
  font-size: 0.8rem;
}

.gh-photo-single__figure {
  margin: 0 0 var(--gh-space-5);
}

.gh-photo-single__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-slate);
}

.gh-photo-single__figure figcaption {
  margin-top: var(--gh-space-3);
  padding: var(--gh-space-3) var(--gh-space-4);
  background: var(--gh-charcoal);
  border-left: 3px solid var(--gh-copper);
  border-radius: 0 var(--gh-radius) var(--gh-radius) 0;
  color: var(--gh-bone);
}

/* YouTube latest grid */
.gh-youtube-grid {
  display: grid;
  gap: var(--gh-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .gh-youtube-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gh-youtube-card {
  margin: 0;
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
}

.gh-youtube-card__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gh-youtube-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gh-youtube-card__title {
  padding: var(--gh-space-3) var(--gh-space-4);
  font-family: var(--gh-font-ui);
  font-size: 0.9rem;
  margin: 0;
}

.gh-youtube-card__title a {
  color: var(--gh-link) !important;
  text-decoration: none !important;
}

.gh-youtube-card__title a:hover {
  color: var(--gh-bone) !important;
}

/* Articles pagination */
.gh-pagination {
  margin-top: var(--gh-space-6);
  font-family: var(--gh-font-ui);
}

.gh-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gh-space-2);
  margin: 0;
  padding: 0;
}

.gh-pagination a.page-numbers,
.gh-pagination span.page-numbers {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius);
  color: var(--gh-copper) !important;
  text-decoration: none !important;
}

.gh-pagination .page-numbers.current {
  background: var(--gh-copper);
  border-color: var(--gh-copper);
  color: var(--gh-ink) !important;
}

/* Forms */
body.gh-theme .ff-el-form-control,
body.gh-theme input[type="text"],
body.gh-theme input[type="email"],
body.gh-theme input[type="tel"],
body.gh-theme textarea,
body.gh-theme select {
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  color: var(--gh-bone);
  border-radius: var(--gh-radius);
}

body.gh-theme input:focus,
body.gh-theme textarea:focus,
body.gh-theme select:focus {
  border-color: var(--gh-copper);
}

body.gh-theme .fluentform .ff-btn-submit,
body.gh-theme .ff-btn-submit {
  background: var(--gh-copper) !important;
  color: var(--gh-ink) !important;
  border-color: var(--gh-copper) !important;
}

/* Footer */
.gh-footer-note {
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  color: var(--gh-muted);
  text-align: center;
  padding: var(--gh-space-5);
}

.gh-footer-note a {
  color: var(--gh-copper);
}

/* Space weather (NOAA SWPC) resource page */
.gh-space-weather img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gh-border, #3a3a3a);
  border-radius: var(--gh-radius, 4px);
  background: #0a0a0a;
}

.gh-space-weather-live {
  margin: var(--gh-space-5, 1.5rem) 0;
  padding: var(--gh-space-4, 1rem) var(--gh-space-5, 1.25rem);
  border: 1px solid var(--gh-copper, #b87333);
  border-radius: var(--gh-radius, 4px);
  background: rgba(184, 115, 51, 0.08);
}

.gh-space-weather-live__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.gh-space-weather-live__list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.gh-space-weather-live__list li {
  margin: 0.25rem 0;
}

.gh-space-weather-live__meta {
  margin: 0 0 0.5rem;
  color: var(--gh-muted, #9a9a9a);
}

.gh-space-weather-live__links a {
  color: var(--gh-copper, #b87333);
}

.gh-space-weather-live--error {
  border-color: var(--gh-muted, #666);
  background: transparent;
}

/* —— Merch store —— */
.gh-merch__hero {
  margin-bottom: var(--gh-space-6);
}

.gh-merch__eyebrow {
  font-family: var(--gh-font-ui);
  font-size: var(--gh-fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-muted);
  margin: 0 0 var(--gh-space-2);
}

.gh-merch__intro {
  max-width: 42rem;
}

.gh-merch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--gh-space-5) 0 0;
}

.gh-merch__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gh-space-5);
  margin: 0 0 var(--gh-space-7);
}

@media (min-width: 640px) {
  .gh-merch__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gh-merch__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gh-merch-card {
  display: flex;
  flex-direction: column;
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gh-merch-card:hover {
  border-color: color-mix(in srgb, var(--gh-link) 45%, var(--gh-slate));
  transform: translateY(-2px);
}

.gh-merch-card__media {
  display: block;
  background: #0a0a0a;
  aspect-ratio: 1;
  overflow: hidden;
}

.gh-merch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
  display: block;
}

.gh-merch-card__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.gh-merch-card__tag {
  font-family: var(--gh-font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-muted);
}

.gh-merch-card__title {
  font-family: var(--gh-font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.gh-merch-card__title a {
  text-decoration: none !important;
  color: var(--gh-bone) !important;
}

.gh-merch-card__title a:hover {
  color: var(--gh-link) !important;
}

.gh-merch-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gh-muted);
  line-height: 1.45;
  flex: 1;
}

.gh-merch-card__cta {
  font-family: var(--gh-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-decoration: none !important;
  color: var(--gh-link) !important;
}

.gh-merch__notes {
  max-width: 40rem;
  padding-top: var(--gh-space-4);
  border-top: 1px solid var(--gh-slate);
}

.gh-merch__list {
  color: var(--gh-muted);
  margin: 0 0 var(--gh-space-5);
  padding-left: 1.25rem;
}

.gh-merch__list li {
  margin: 0.4rem 0;
}

/* —— WooCommerce (dark shell) —— */
body.gh-theme.woocommerce-page .site-main,
body.gh-theme.woocommerce .site-main {
  color: var(--gh-bone);
}

body.gh-theme .woocommerce ul.products,
body.gh-theme ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gh-space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

body.gh-theme .woocommerce ul.products li.product,
body.gh-theme ul.products li.product {
  background: var(--gh-charcoal);
  border: 1px solid var(--gh-slate);
  border-radius: var(--gh-radius-lg);
  padding: 1rem;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

body.gh-theme .woocommerce ul.products li.product a img,
body.gh-theme ul.products li.product a img {
  width: 100%;
  height: auto;
  background: #0a0a0a;
  border-radius: var(--gh-radius);
  object-fit: contain;
  aspect-ratio: 1;
  padding: 10%;
}

body.gh-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.gh-theme ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--gh-font-ui);
  font-size: 1rem;
  color: var(--gh-bone) !important;
  padding: 0.5rem 0 0.25rem !important;
}

body.gh-theme .woocommerce ul.products li.product .price,
body.gh-theme ul.products li.product .price {
  color: var(--gh-link) !important;
  font-weight: 600;
}

body.gh-theme .woocommerce a.button,
body.gh-theme .woocommerce button.button,
body.gh-theme .woocommerce input.button,
body.gh-theme .woocommerce #respond input#submit,
body.gh-theme .woocommerce span.onsale {
  background: var(--gh-blood) !important;
  color: var(--gh-bone) !important;
  border-radius: var(--gh-radius) !important;
  border: none !important;
  font-family: var(--gh-font-ui);
  font-weight: 600;
}

body.gh-theme .woocommerce a.button:hover,
body.gh-theme .woocommerce button.button:hover {
  background: var(--gh-blood-bright) !important;
  color: var(--gh-bone) !important;
}

body.gh-theme .woocommerce div.product .product_title {
  color: var(--gh-bone);
}

body.gh-theme .woocommerce div.product p.price,
body.gh-theme .woocommerce div.product span.price {
  color: var(--gh-link) !important;
}

body.gh-theme .woocommerce-message,
body.gh-theme .woocommerce-info,
body.gh-theme .woocommerce-error {
  background: var(--gh-charcoal);
  border-top-color: var(--gh-blood);
  color: var(--gh-bone);
}

body.gh-theme .woocommerce-message::before,
body.gh-theme .woocommerce-info::before {
  color: var(--gh-link);
}

body.gh-theme .woocommerce form .form-row input.input-text,
body.gh-theme .woocommerce form .form-row textarea,
body.gh-theme .woocommerce form .form-row select,
body.gh-theme .woocommerce-cart table.cart td.actions .coupon .input-text {
  background: var(--gh-ink);
  border: 1px solid var(--gh-slate);
  color: var(--gh-bone);
}

body.gh-theme .woocommerce table.shop_table {
  border-color: var(--gh-slate);
  color: var(--gh-bone);
}

body.gh-theme .woocommerce table.shop_table th,
body.gh-theme .woocommerce table.shop_table td {
  border-color: var(--gh-slate);
}

body.gh-theme .woocommerce-checkout #payment {
  background: var(--gh-charcoal);
  border-radius: var(--gh-radius-lg);
}

body.gh-theme .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gh-space-5);
}

body.gh-theme .woocommerce-MyAccount-navigation li a {
  color: var(--gh-link) !important;
}

/* Banner notice on products pending Printful */
.gh-printful-pending {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gh-amber) 50%, var(--gh-slate));
  background: color-mix(in srgb, var(--gh-amber) 12%, var(--gh-charcoal));
  color: var(--gh-bone);
  font-size: 0.9rem;
  border-radius: var(--gh-radius);
}
