/* ============================================================
   STC Redesign — Main Stylesheet
   Editorial dark aerospace theme for SpaceTech Chronicles
   ============================================================ */

/* ─── CSS Custom Properties ─── */
:root {
  --stc-void:     #08090D;
  --stc-gunmetal: #14161E;
  --stc-hull:     #1F2230;
  --stc-wire:     #2E3247;
  --stc-graphite: #6B7194;
  --stc-chalk:    #C8CDD9;
  --stc-signal:   #ECEEF3;
  --stc-blue:     #4A7BF7;
  --stc-teal:     #2BB5A0;
  --stc-amber:    #E5993E;
  --stc-coral:    #E05A5A;
  --stc-radius:   3px;
  --stc-max-w:    1120px;
}

/* ─── Base Overrides ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--stc-void) !important;
  color: var(--stc-signal);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

::selection {
  background: rgba(74, 123, 247, 0.25);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--stc-void); }
::-webkit-scrollbar-thumb { background: var(--stc-wire); border-radius: 3px; }

/* ─── Utility: Mono Label ─── */
.stc-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Utility: Category Badge ─── */
.stc-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 2px;
  border: 1px solid;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.stc-cat-badge--blue {
  background: rgba(74, 123, 247, 0.1);
  color: var(--stc-blue);
  border-color: rgba(74, 123, 247, 0.2);
}
.stc-cat-badge--teal {
  background: rgba(43, 181, 160, 0.1);
  color: var(--stc-teal);
  border-color: rgba(43, 181, 160, 0.2);
}
.stc-cat-badge--amber {
  background: rgba(229, 153, 62, 0.1);
  color: var(--stc-amber);
  border-color: rgba(229, 153, 62, 0.2);
}
.stc-cat-badge--coral {
  background: rgba(224, 90, 90, 0.1);
  color: var(--stc-coral);
  border-color: rgba(224, 90, 90, 0.2);
}

/* ─── Accent Rule ─── */
.stc-accent-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--stc-blue) 0%, var(--stc-teal) 50%, transparent 100%);
}

/* ─── Container ─── */
.stc-wrap {
  max-width: var(--stc-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ============================================================
   HEADER — Fixed, transparent → dark on scroll
   ============================================================ */
.stc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.2s, border-color 0.2s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.stc-header.is-scrolled {
  background: rgba(8, 9, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--stc-wire);
}

.stc-header.is-scrolled .stc-header__accent {
  display: block;
}

.stc-header__accent {
  display: none;
  height: 1px;
  background: linear-gradient(90deg, var(--stc-blue) 0%, var(--stc-teal) 50%, transparent 100%);
}

.stc-header__inner {
  max-width: var(--stc-max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.stc-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.stc-header__logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--stc-radius);
  object-fit: cover;
}

.stc-header__logo-abbr {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--stc-signal);
}

.stc-header__logo-full {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--stc-graphite);
}

@media (max-width: 639px) {
  .stc-header__logo-full { display: none; }
}

/* Desktop nav */
.stc-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stc-header__nav a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--stc-graphite);
  transition: color 0.15s;
}

.stc-header__nav a:hover {
  color: var(--stc-signal);
}

.stc-header__nav-divider {
  width: 1px;
  height: 16px;
  background: var(--stc-wire);
  margin: 0 8px;
}

.stc-header__subscribe {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--stc-wire);
  color: var(--stc-graphite);
  border-radius: var(--stc-radius);
  transition: color 0.15s, border-color 0.15s;
}

.stc-header__subscribe:hover {
  color: var(--stc-signal);
  border-color: rgba(74, 123, 247, 0.4);
}

/* Mobile toggle */
.stc-header__toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--stc-graphite);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.stc-header__toggle:hover { color: var(--stc-signal); }

@media (max-width: 767px) {
  .stc-header__nav { display: none; }
  .stc-header__toggle { display: block; }
}


/* ============================================================
   HERO — Editorial, left-aligned
   ============================================================ */
/* Hide parent hero/starfield */
.stcai-theme .hero-banner,
.stcai-theme #stc-jwst-starfield,
.stcai-theme .hero-banner + style {
  display: none !important;
}

.stc-hero {
  padding: 96px 0 40px;
}

.stc-hero__rule {
  margin-bottom: 32px;
  max-width: 200px;
}

.stc-hero__content {
  max-width: 640px;
}

.stc-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--stc-signal);
  margin: 0;
}

@media (max-width: 639px) {
  .stc-hero h1 { font-size: 32px; }
}

.stc-hero__desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--stc-chalk);
  line-height: 1.6;
  max-width: 520px;
}

.stc-hero__status {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--stc-graphite);
}

.stc-hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stc-teal);
  animation: stcPulse 2s infinite;
}

@keyframes stcPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.stc-hero__status-sep {
  color: var(--stc-wire);
}


/* ============================================================
   SECTION LABEL
   ============================================================ */
.stc-section-label {
  margin-bottom: 20px;
  color: var(--stc-blue);
  scroll-margin-top: 80px;
}


/* ============================================================
   FEATURED ARTICLES — Dual layout
   ============================================================ */
.stc-featured {
  padding-bottom: 48px;
}

.stc-featured__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1px;
  background: var(--stc-wire);
  border-radius: var(--stc-radius);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .stc-featured__grid {
    grid-template-columns: 1fr;
  }
}

/* Primary featured (left, wide) */
.stc-featured__primary {
  background: var(--stc-gunmetal);
}

.stc-featured__primary article {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: background-color 0.15s;
}

.stc-featured__primary article:hover {
  background: #1a1d2b;
}

.stc-featured__primary-img {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--stc-hull);
}

@media (min-width: 1024px) {
  .stc-featured__primary-img {
    min-height: 320px;
  }
}

.stc-featured__primary-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.stc-featured__primary article:hover .stc-featured__primary-img img {
  transform: scale(1.02);
}

.stc-featured__primary-img .stc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,9,13,0.8) 0%, rgba(8,9,13,0.2) 40%, transparent 100%);
}

.stc-featured__primary-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.stc-featured__primary-text .stc-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stc-featured__primary-text .stc-issue-tag {
  color: rgba(200, 205, 217, 0.7);
}

.stc-featured__primary-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--stc-signal);
  margin: 0;
  transition: color 0.15s;
}

@media (max-width: 639px) {
  .stc-featured__primary-text h2 { font-size: 20px; }
}

.stc-featured__primary article:hover .stc-featured__primary-text h2 {
  color: var(--stc-blue);
}

.stc-featured__primary-text .stc-excerpt {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(200, 205, 217, 0.8);
  line-height: 1.5;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stc-featured__primary-text .stc-post-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(200, 205, 217, 0.6);
}

/* Secondary featured (right, stacked) */
.stc-featured__secondary {
  background: var(--stc-gunmetal);
}

.stc-featured__secondary article {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: background-color 0.15s;
}

.stc-featured__secondary article:hover {
  background: #1a1d2b;
}

.stc-featured__secondary-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--stc-hull);
}

.stc-featured__secondary-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.stc-featured__secondary article:hover .stc-featured__secondary-img img {
  transform: scale(1.02);
}

.stc-featured__secondary-img .stc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,22,30,0.7) 0%, transparent 60%);
}

.stc-featured__secondary-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stc-featured__secondary-body .stc-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stc-featured__secondary-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--stc-signal);
  margin: 0;
  transition: color 0.15s;
}

.stc-featured__secondary article:hover .stc-featured__secondary-body h3 {
  color: var(--stc-blue);
}

.stc-featured__secondary-body .stc-excerpt {
  margin-top: 8px;
  font-size: 13px;
  color: var(--stc-graphite);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stc-featured__secondary-body .stc-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stc-featured__secondary-body .stc-card-footer .stc-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--stc-graphite);
}


/* ============================================================
   ARTICLE GRID — Non-featured
   ============================================================ */
.stc-articles {
  padding-bottom: 56px;
}

.stc-articles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--stc-wire);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  overflow: hidden;
}

@media (max-width: 767px) {
  .stc-articles__grid {
    grid-template-columns: 1fr;
  }
}

.stc-articles__card {
  background: var(--stc-gunmetal);
  cursor: pointer;
  transition: background-color 0.15s;
}

.stc-articles__card:hover {
  background: #1a1d2b;
}

.stc-articles__card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.stc-articles__card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.stc-articles__card:hover .stc-articles__card-img img {
  transform: scale(1.03);
}

.stc-articles__card-img .stc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--stc-gunmetal), transparent);
  opacity: 0.4;
}

.stc-articles__card-body {
  padding: 20px;
}

.stc-articles__card-body .stc-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stc-articles__card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--stc-signal);
  margin: 0;
  transition: color 0.15s;
}

.stc-articles__card:hover .stc-articles__card-body h3 {
  color: var(--stc-blue);
}

.stc-articles__card-body .stc-excerpt {
  margin-top: 8px;
  font-size: 13px;
  color: var(--stc-graphite);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stc-articles__card-body .stc-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stc-articles__card-body .stc-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--stc-graphite);
}

.stc-arrow-icon {
  width: 14px;
  height: 14px;
  color: var(--stc-graphite);
  transition: color 0.15s, transform 0.15s;
}

.stc-articles__card:hover .stc-arrow-icon,
.stc-featured__secondary article:hover .stc-arrow-icon {
  color: var(--stc-blue);
  transform: translateX(2px);
}

.stc-clock-icon {
  width: 12px;
  height: 12px;
}


/* ============================================================
   RESOURCES — Student Tools
   ============================================================ */
.stc-resources {
  padding: 56px 0;
  border-top: 1px solid var(--stc-wire);
  border-bottom: 1px solid var(--stc-wire);
  background: var(--stc-gunmetal);
}

.stc-resources h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stc-signal);
  margin: 0 0 6px 0;
}

.stc-resources__desc {
  font-size: 14px;
  color: var(--stc-graphite);
  margin-bottom: 24px;
  max-width: 480px;
}

.stc-resources__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stc-wire);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .stc-resources__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .stc-resources__grid { grid-template-columns: 1fr; }
}

.stc-resources__card {
  background: var(--stc-gunmetal);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.15s;
}

.stc-resources__card:hover {
  background: #1a1d2b;
}

.stc-resources__card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stc-resources__card-header .stc-icon {
  color: var(--stc-blue);
}

.stc-resources__card-header .stc-tag {
  color: var(--stc-teal);
}

.stc-resources__card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--stc-signal);
  margin: 0;
  line-height: 1.35;
  transition: color 0.15s;
}

.stc-resources__card:hover h4 {
  color: var(--stc-blue);
}

.stc-resources__card p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--stc-graphite);
  line-height: 1.5;
  flex: 1;
}

.stc-resources__card .stc-arrow-icon {
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.stc-resources__card:hover .stc-arrow-icon {
  opacity: 1;
  color: var(--stc-blue);
}


/* ============================================================
   ARCHIVE LIST
   ============================================================ */
.stc-archive {
  padding-bottom: 56px;
}

.stc-archive__list {
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  overflow: hidden;
}

.stc-archive__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--stc-gunmetal);
  transition: background-color 0.15s;
  border-bottom: 1px solid var(--stc-wire);
}

.stc-archive__item:last-child {
  border-bottom: none;
}

.stc-archive__item:hover {
  background: #1a1d2b;
}

.stc-archive__item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--stc-chalk);
  line-height: 1.35;
  transition: color 0.15s;
}

.stc-archive__item:hover .stc-archive__item-title {
  color: var(--stc-signal);
}

.stc-archive__item-date {
  margin-top: 4px;
  color: var(--stc-graphite);
}

.stc-archive__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--stc-wire);
  color: var(--stc-graphite);
  border-radius: var(--stc-radius);
  transition: color 0.15s, border-color 0.15s;
}

.stc-archive__more:hover {
  color: var(--stc-signal);
  border-color: rgba(74, 123, 247, 0.4);
}


/* ============================================================
   SUBSCRIBE
   ============================================================ */
.stc-subscribe {
  padding: 56px 0;
}

.stc-subscribe__box {
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  background: var(--stc-gunmetal);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.stc-subscribe__box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stc-signal);
  margin: 12px 0 0 0;
}

.stc-subscribe__box p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--stc-graphite);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.stc-subscribe__form {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 20px auto 0;
}

.stc-subscribe__form input[type="email"] {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  background: var(--stc-hull);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  color: var(--stc-signal);
  outline: none;
  transition: border-color 0.15s;
}

.stc-subscribe__form input[type="email"]::placeholder {
  color: var(--stc-graphite);
}

.stc-subscribe__form input[type="email"]:focus {
  border-color: rgba(74, 123, 247, 0.5);
}

.stc-subscribe__form button {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  background: var(--stc-blue);
  color: white;
  border: none;
  border-radius: var(--stc-radius);
  cursor: pointer;
  transition: background-color 0.15s;
}

.stc-subscribe__form button:hover {
  background: #3d6be0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.stc-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--stc-wire);
  background: var(--stc-gunmetal);
}

.stc-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
}

@media (max-width: 639px) {
  .stc-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stc-footer__brand {
  max-width: 260px;
}

.stc-footer__brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stc-footer__brand-line img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  object-fit: cover;
}

.stc-footer__brand-line span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--stc-signal);
  letter-spacing: -0.02em;
}

.stc-footer__brand p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--stc-graphite);
  line-height: 1.5;
}

.stc-footer__brand .stc-pub-line {
  margin-top: 12px;
  color: var(--stc-graphite);
}

.stc-footer__col-heading {
  color: var(--stc-graphite);
  margin-bottom: 12px;
}

.stc-footer__col a {
  display: block;
  font-size: 13px;
  color: var(--stc-chalk);
  margin-bottom: 6px;
  transition: color 0.15s;
}

.stc-footer__col a:hover {
  color: var(--stc-signal);
}

.stc-footer__divider {
  margin: 24px 0;
  height: 1px;
  background: var(--stc-wire);
}

.stc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--stc-graphite);
}


/* ============================================================
   HIDE PARENT THEME ELEMENTS
   ============================================================ */
/* Hide the parent theme's default header, hero, and footer
   so our child theme versions take precedence.
   These are surgical — only on pages where front-page.php loads. */
body.stc-redesign-active .site-header { display: none !important; }
body.stc-redesign-active .hero-banner { display: none !important; }
body.stc-redesign-active #stc-jwst-starfield { display: none !important; }
body.stc-redesign-active .site-footer { display: none !important; }
body.stc-redesign-active .site-main.stc-container { max-width: none; padding: 0; }


/* ============================================================
   MOBILE NAVIGATION DRAWER
   ============================================================ */
.stc-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.stc-mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.stc-mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
}

.stc-mobile-nav.is-open .stc-mobile-nav__overlay {
  opacity: 1;
}

.stc-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--stc-gunmetal);
  border-left: 1px solid var(--stc-wire);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.stc-mobile-nav.is-open .stc-mobile-nav__panel {
  transform: translateX(0);
}

.stc-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stc-wire);
}

.stc-mobile-nav__close {
  background: none;
  border: none;
  color: var(--stc-graphite);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.stc-mobile-nav__close:hover {
  color: var(--stc-signal);
}

.stc-mobile-nav__links {
  padding: 16px 0;
  flex: 1;
}

.stc-mobile-nav__links a,
.stc-mobile-nav__links li a {
  display: block;
  padding: 12px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--stc-chalk);
  transition: color 0.15s, background-color 0.15s;
}

.stc-mobile-nav__links a:hover,
.stc-mobile-nav__links li a:hover {
  color: var(--stc-signal);
  background: rgba(74, 123, 247, 0.05);
}

/* Override WP nav menu list styling inside mobile drawer */
.stc-mobile-nav__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stc-mobile-nav__links li {
  margin: 0;
  padding: 0;
}

.stc-mobile-nav__footer {
  padding: 20px;
  border-top: 1px solid var(--stc-wire);
}


/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.stc-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
}

.stc-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--stc-blue), var(--stc-teal));
  transition: width 0.1s linear;
}


/* ============================================================
   SINGLE POST TEMPLATE
   ============================================================ */
.stc-single {
  padding-top: 72px; /* account for fixed header */
}

.stc-single__header {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--stc-wire);
}

.stc-single__header-inner {
  max-width: 740px;
}

.stc-single__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stc-single__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--stc-signal);
  margin: 0;
}

@media (max-width: 639px) {
  .stc-single__title { font-size: 28px; }
}

.stc-single__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--stc-graphite);
}

.stc-single__meta-sep {
  color: var(--stc-wire);
}

/* Featured image */
.stc-single__hero-img {
  padding: 32px 0 0;
}

.stc-single__hero-img-wrap {
  border-radius: var(--stc-radius);
  overflow: hidden;
  max-width: 900px;
}

.stc-single__hero-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.stc-single__img-caption {
  margin-top: 8px;
  color: var(--stc-graphite);
}

/* Article body */
.stc-single__body {
  padding: 40px 0 48px;
}

.stc-single__content {
  max-width: 740px;
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--stc-chalk);
}

.stc-single__content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--stc-signal);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.stc-single__content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--stc-signal);
  margin: 36px 0 12px;
}

.stc-single__content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--stc-signal);
  margin: 28px 0 8px;
}

.stc-single__content p {
  margin: 0 0 20px;
}

.stc-single__content a {
  color: var(--stc-blue);
  text-decoration: underline;
  text-decoration-color: rgba(74, 123, 247, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.stc-single__content a:hover {
  text-decoration-color: var(--stc-blue);
}

.stc-single__content blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--stc-blue);
  background: var(--stc-gunmetal);
  border-radius: 0 var(--stc-radius) var(--stc-radius) 0;
  font-style: italic;
  color: var(--stc-chalk);
}

.stc-single__content blockquote p:last-child {
  margin-bottom: 0;
}

.stc-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--stc-radius);
  margin: 24px 0;
}

.stc-single__content figure {
  margin: 32px 0;
}

.stc-single__content figcaption {
  font-size: 13px;
  color: var(--stc-graphite);
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
}

.stc-single__content ul,
.stc-single__content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.stc-single__content li {
  margin-bottom: 8px;
}

.stc-single__content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: var(--stc-hull);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--stc-teal);
}

.stc-single__content pre {
  background: var(--stc-gunmetal);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.stc-single__content pre code {
  background: none;
  padding: 0;
}

.stc-single__content hr {
  border: none;
  height: 1px;
  background: var(--stc-wire);
  margin: 40px 0;
}

.stc-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.stc-single__content th,
.stc-single__content td {
  padding: 10px 14px;
  border: 1px solid var(--stc-wire);
  text-align: left;
}

.stc-single__content th {
  background: var(--stc-hull);
  font-weight: 600;
  color: var(--stc-signal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* WP-specific content blocks */
.stc-single__content .wp-block-image {
  margin: 32px 0;
}

.stc-single__content .wp-block-pullquote {
  border-top: 3px solid var(--stc-blue);
  border-bottom: 3px solid var(--stc-blue);
  border-left: none;
  padding: 24px 0;
  margin: 40px 0;
  text-align: center;
}

.stc-single__content .wp-block-pullquote blockquote {
  border-left: none;
  background: transparent;
}

/* Tags */
.stc-single__tags {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stc-wire);
}

.stc-single__tags-inner {
  max-width: 740px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stc-tag-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--stc-chalk);
  background: var(--stc-hull);
  border: 1px solid var(--stc-wire);
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.stc-tag-pill:hover {
  color: var(--stc-signal);
  border-color: rgba(74, 123, 247, 0.4);
}

/* Post navigation */
.stc-single__nav {
  padding: 32px 0;
  border-bottom: 1px solid var(--stc-wire);
}

.stc-single__nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 639px) {
  .stc-single__nav-inner {
    grid-template-columns: 1fr;
  }
}

.stc-single__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  background: var(--stc-gunmetal);
  transition: background-color 0.15s, border-color 0.15s;
}

.stc-single__nav-link:hover {
  background: #1a1d2b;
  border-color: rgba(74, 123, 247, 0.3);
}

.stc-single__nav-next {
  text-align: right;
}

.stc-single__nav-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--stc-chalk);
  line-height: 1.35;
  transition: color 0.15s;
}

.stc-single__nav-link:hover .stc-single__nav-title {
  color: var(--stc-signal);
}


/* ============================================================
   RELATED POSTS
   ============================================================ */
.stc-related {
  padding: 48px 0;
}

.stc-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stc-wire);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  overflow: hidden;
}

@media (max-width: 767px) {
  .stc-related__grid {
    grid-template-columns: 1fr;
  }
}

.stc-related__card {
  background: var(--stc-gunmetal);
  transition: background-color 0.15s;
}

.stc-related__card:hover {
  background: #1a1d2b;
}

.stc-related__card a {
  display: block;
}

.stc-related__card-img {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.stc-related__card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.stc-related__card:hover .stc-related__card-img img {
  transform: scale(1.03);
}

.stc-related__card-body {
  padding: 16px;
}

.stc-related__card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--stc-signal);
  margin: 0;
  transition: color 0.15s;
}

.stc-related__card:hover .stc-related__card-body h3 {
  color: var(--stc-blue);
}

.stc-related__card-body .stc-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stc-related__card-body .stc-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--stc-graphite);
}

.stc-related__card:hover .stc-arrow-icon {
  color: var(--stc-blue);
  transform: translateX(2px);
}


/* ============================================================
   COMMENTS
   ============================================================ */
.stc-comments {
  padding: 48px 0;
  border-top: 1px solid var(--stc-wire);
}

.stc-comments .comments-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--stc-signal);
  margin-bottom: 24px;
}

.stc-comments .comment-list {
  list-style: none;
  padding: 0;
}

.stc-comments .comment-body {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--stc-gunmetal);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
}

.stc-comments .comment-author {
  font-weight: 600;
  color: var(--stc-signal);
}

.stc-comments .comment-metadata {
  font-size: 12px;
  color: var(--stc-graphite);
  margin-top: 4px;
}

.stc-comments .comment-content {
  margin-top: 12px;
  color: var(--stc-chalk);
}

.stc-comments .comment-respond {
  margin-top: 32px;
}

.stc-comments .comment-form-comment textarea,
.stc-comments .comment-form input[type="text"],
.stc-comments .comment-form input[type="email"],
.stc-comments .comment-form input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--stc-hull);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  color: var(--stc-signal);
  outline: none;
  transition: border-color 0.15s;
}

.stc-comments .comment-form textarea:focus,
.stc-comments .comment-form input:focus {
  border-color: rgba(74, 123, 247, 0.5);
}

.stc-comments .form-submit .submit {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--stc-blue);
  color: white;
  border: none;
  border-radius: var(--stc-radius);
  cursor: pointer;
  transition: background-color 0.15s;
}

.stc-comments .form-submit .submit:hover {
  background: #3d6be0;
}


/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.stc-archive-page {
  padding: 96px 0 56px;
}

.stc-archive-page__header {
  margin-bottom: 32px;
}

.stc-archive-page__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--stc-signal);
  margin: 0;
}

@media (max-width: 639px) {
  .stc-archive-page__title { font-size: 28px; }
}

.stc-archive-page__desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--stc-chalk);
  max-width: 600px;
  line-height: 1.6;
}

.stc-archive-page__empty {
  padding: 60px 0;
  text-align: center;
  color: var(--stc-graphite);
  font-size: 16px;
}

.stc-archive-page__empty .stc-archive__more {
  margin-top: 20px;
}


/* ============================================================
   PAGINATION
   ============================================================ */
.stc-pagination {
  margin-top: 32px;
}

.stc-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--stc-chalk);
  background: var(--stc-gunmetal);
  border: 1px solid var(--stc-wire);
  border-radius: var(--stc-radius);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.stc-pagination .page-numbers:hover {
  color: var(--stc-signal);
  border-color: rgba(74, 123, 247, 0.4);
}

.stc-pagination .page-numbers.current {
  background: var(--stc-blue);
  border-color: var(--stc-blue);
  color: white;
}

.stc-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--stc-graphite);
}
