/*
Theme Name: 5G RedCap Authority
Theme URI: https://5gredcap.co.uk
Author: Millbeck Communications
Author URI: https://millbeck.co.uk
Description: The authority theme for 5gredcap.co.uk - covering 5G Reduced Capability technology for Industrial IoT. Built for evergreen technical content, blog/news, hardware guides, antenna specs, SIM/eSIM content, and UK network rollout coverage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: redcap
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colours */
  --navy:       #0A1628;
  --navy-mid:   #122038;
  --navy-light: #1c3052;
  --teal:       #00B4A6;
  --teal-dark:  #008f84;
  --teal-light: #e6f9f7;
  --teal-glow:  rgba(0,180,166,0.15);

  /* Neutrals */
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;

  /* Semantic */
  --text-primary:   #1a2535;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --border:         #e2e8f0;
  --border-dark:    #cbd5e1;

  /* Status colours */
  --green:  #10b981;
  --amber:  #f59e0b;
  --red:    #ef4444;
  --purple: #8b5cf6;
  --blue:   #3b82f6;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-heading: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Layout */
  --content-width: 820px;
  --wide-width:    1200px;
  --full-width:    100%;

  /* Effects */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--text-primary); }
em, i { font-style: italic; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.4rem; }

blockquote {
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--navy);
}

pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container--full {
  max-width: 100%;
  padding: 0 var(--space-xl);
}

/* Section spacing */
.section { padding: var(--space-4xl) 0; }
.section--sm { padding: var(--space-2xl) 0; }
.section--lg { padding: 5rem 0; }

/* Content area with sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}
.content-layout--full { grid-template-columns: 1fr; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.site-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-logo__text strong { color: var(--teal); }
.site-logo__text span { color: rgba(255,255,255,0.75); font-size: 0.65rem; display: block; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

/* Primary Navigation */
.primary-nav { display: flex; align-items: center; gap: var(--space-xs); }

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.primary-nav .current-menu-item > a { color: var(--teal); }

/* Dropdown */
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu a {
  display: block;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}
.primary-nav .sub-menu a:hover { background: var(--teal-light); color: var(--teal-dark); }

/* Header CTA button */
.header-cta {
  background: var(--teal);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md) !important;
}
.header-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}
.nav-toggle svg { display: block; }

/* ============================================================
   HERO - HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/AdobeStock_1239202588.jpeg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: brightness(0.9) saturate(0.8);
}

/* Gradient overlays */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,22,40,0.97) 0%,
    rgba(10,22,40,0.88) 45%,
    rgba(10,22,40,0.4) 100%
  );
}
.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--navy));
}

/* Teal accent grid lines */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,166,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,166,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,180,166,0.12);
  border: 1px solid rgba(0,180,166,0.3);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease both;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero__title em {
  font-style: normal;
  color: var(--teal);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,180,166,0.35);
}

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}
.btn--ghost:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.825rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ============================================================
   HERO STATS STRIP
   ============================================================ */
.hero-stats {
  position: relative;
  z-index: 3;
  background: rgba(10,22,40,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.hero-stats__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.08);
}
.hero-stat {
  padding: 1.5rem var(--space-xl);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }
.hero-stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================================
   NETWORK STATUS BAR
   ============================================================ */
.network-bar {
  background: var(--gray-900);
  padding: 0.875rem 0;
  overflow: hidden;
}
.network-bar__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.network-bar__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.network-bar__operators {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.network-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}
.network-chip:hover { color: var(--white); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.network-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.network-chip__dot--green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.network-chip__dot--amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.network-chip__dot--red { background: var(--red); }
.network-bar__link {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-3xl);
}
.section-header--center { text-align: center; }
.section-header--center .section-header__body { max-width: 560px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: var(--teal-light);
  border-radius: 100px;
  border: 1px solid rgba(0,180,166,0.2);
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__image img { transform: scale(1.04); }

.card__body {
  padding: var(--space-lg) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  line-height: 1;
}
.tag--hardware  { background: rgba(10,22,40,0.08); color: var(--navy); }
.tag--antenna   { background: var(--teal-light); color: var(--teal-dark); }
.tag--sim       { background: rgba(245,158,11,0.12); color: #92400e; }
.tag--network   { background: rgba(16,185,129,0.1); color: #065f46; }
.tag--standards { background: rgba(139,92,246,0.1); color: #4c1d95; }
.tag--news      { background: var(--gray-100); color: var(--gray-600); }
.tag--guide     { background: rgba(59,130,246,0.1); color: #1e40af; }

.card__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.35;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--teal-dark); }

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.card__meta svg { flex-shrink: 0; }

/* Card variants */
.card--featured {
  border-color: var(--teal);
  border-width: 2px;
}
.card--featured .card__body { border-top: 3px solid var(--teal); }

.card--horizontal {
  flex-direction: row;
}
.card--horizontal .card__image {
  width: 200px;
  min-width: 200px;
  aspect-ratio: auto;
}
.card--horizontal .card__body { padding: var(--space-lg); }

/* ============================================================
   GRIDS
   ============================================================ */
.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ============================================================
   FEATURE BLOCKS (Homepage intro boxes)
   ============================================================ */
.feature-block {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--teal);
  transition: all var(--transition);
}
.feature-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-block__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--teal-dark);
}
.feature-block__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.feature-block__body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CORNERSTONE CONTENT SECTION (Big featured cards)
   ============================================================ */
.cornerstone-card {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: all var(--transition);
}
.cornerstone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.cornerstone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  opacity: 0.9;
}
.cornerstone-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0,180,166,0.25) 0%, transparent 70%);
}
.cornerstone-card__icon {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  background: rgba(0,180,166,0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  border: 1px solid rgba(0,180,166,0.2);
}
.cornerstone-card__content { position: relative; z-index: 1; }
.cornerstone-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.cornerstone-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.cornerstone-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.cornerstone-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.cornerstone-card__link:hover { color: var(--white); }
.cornerstone-card__link svg { transition: transform var(--transition); }
.cornerstone-card:hover .cornerstone-card__link svg { transform: translateX(4px); }

/* ============================================================
   INFO BOXES
   ============================================================ */
.info-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
}
.info-box__icon { flex-shrink: 0; margin-top: 2px; }
.info-box__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.info-box__body { font-size: 0.9rem; line-height: 1.65; margin-bottom: 0; }

.info-box--note    { background: var(--teal-light); border-left: 4px solid var(--teal); }
.info-box--note .info-box__title { color: var(--teal-dark); }
.info-box--warning { background: rgba(245,158,11,0.08); border-left: 4px solid var(--amber); }
.info-box--warning .info-box__title { color: #92400e; }
.info-box--definition { background: var(--gray-50); border-left: 4px solid var(--navy); }
.info-box--definition .info-box__title { color: var(--navy); }

/* ============================================================
   SPEC TABLE
   ============================================================ */
.spec-table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
}
.spec-table thead th:first-child { border-radius: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--gray-50); }
.spec-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; width: 30%; }
.spec-table .highlight { color: var(--teal-dark); font-weight: 700; }

/* ============================================================
   RESOURCES / GLOSSARY
   ============================================================ */
.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-2xl);
}
.glossary-index a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}
.glossary-index a:hover,
.glossary-index a.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.glossary-group { margin-bottom: var(--space-3xl); }
.glossary-group__letter {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--teal-light);
}

.glossary-term { padding: var(--space-md) 0; border-bottom: 1px solid var(--border); }
.glossary-term:last-child { border-bottom: none; }
.glossary-term__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.glossary-term__abbr {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.glossary-term__def {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   RSS / NEWS FEED CARDS
   ============================================================ */
.rss-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.rss-card:last-child { border-bottom: none; }
.rss-card__source {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 80px;
  padding-top: 2px;
}
.rss-card__content {}
.rss-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.rss-card__title a { color: inherit; }
.rss-card__title a:hover { color: var(--teal-dark); }
.rss-card__meta { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}
.sidebar-widget__header {
  background: var(--navy);
  padding: 0.875rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.sidebar-widget__body { padding: var(--space-lg); }

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--teal-dark);
  font-weight: 700;
  padding-left: 0.5rem;
  border-left: 3px solid var(--teal);
  margin-left: -3px;
}
.toc-list .toc-h3 { padding-left: 1rem; font-size: 0.82rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.65);
  padding: var(--space-4xl) 0 var(--space-2xl);
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand__logo {
  margin-bottom: var(--space-md);
}
.footer-brand__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-fade-up { animation: fadeInUp 0.6s ease both; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ============================================================
   POST SINGLE
   ============================================================ */
.post-hero {
  background: var(--navy);
  padding: var(--space-3xl) 0;
}
.post-hero .container--narrow { position: relative; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
}
.post-breadcrumb a { color: rgba(255,255,255,0.55); }
.post-breadcrumb a:hover { color: var(--teal); }
.post-breadcrumb span { color: rgba(255,255,255,0.25); }
.post-hero h1 { color: var(--white); margin-bottom: var(--space-md); }
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
}
.post-meta a { color: var(--teal); }

/* Entry content */
.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--teal-light);
}
.entry-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--teal);
  border-radius: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.entry-content p { margin-bottom: 1.35rem; }
.entry-content > *:first-child { margin-top: 0; }

/* Author bio */
.author-bio {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: var(--space-3xl);
}
.author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}
.author-bio__name { font-weight: 700; margin-bottom: 0.3rem; }
.author-bio__bio { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-teal    { color: var(--teal); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--text-muted); }
.font-display { font-family: var(--font-display); }

.bg-navy      { background: var(--navy); }
.bg-gray      { background: var(--gray-50); }
.bg-teal-lt   { background: var(--teal-light); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ============================================================
   PAGE: 404 / ERROR
   ============================================================ */
.error-page {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}
.error-page__code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--navy);
    z-index: 999;
    padding: var(--space-xl);
    gap: var(--space-xs);
    overflow-y: auto;
  }
  .primary-nav.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: none;
    margin-left: 1rem;
  }
  .primary-nav.is-open a { font-size: 1.1rem; padding: 0.75rem; }

  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .hero-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-3xl) 0; }

  body { font-size: 17px; }
  .entry-content { font-size: 17px; line-height: 1.8; }

  .hero { min-height: 70vh; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .hero-stat__value { font-size: 1.5rem; }
  .hero-stat { padding: 1rem; }

  .network-bar__link { display: none; }
  .network-chip { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .network-bar__inner { gap: var(--space-md); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero-stats__inner { grid-template-columns: 1fr 1fr; }
  .authority-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .card--horizontal { flex-direction: column; }
  .card--horizontal .card__image { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 380px) {
  .site-logo__text span { display: none; }
  .site-logo__text strong { font-size: 1rem; }
}



/* ======================================================
   ADDITIONAL FIXES - Applied via audit
   ====================================================== */

/* 2.2 Entry content max-width on large screens */
.entry-content { max-width: 720px; }

/* 4.2 Pull quote / blockquote styling (entry-content specific) */
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  border-top: none;
  border-bottom: none;
  border-right: none;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.6;
}
.entry-content blockquote p { margin-bottom: 0; color: var(--navy); font-weight: 600; }
.entry-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}