/*
Theme Name: LTE450
Theme URI: https://lte450.co.uk
Author: Peter Green
Author URI: https://ptergreen.xyz
Description: Professional technical authority theme for LTE450.co.uk - the definitive resource for 450 MHz LTE technology.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: lte450
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:       #0d1f3c;
  --primary-dark:  #071526;
  --primary-mid:   #132840;
  --orange:        #e8621a;
  --orange-light:  #f07535;
  --orange-dark:   #c9531a;
  --orange-pale:   #fff3ed;
  --white:         #ffffff;
  --light:         #f5f7fa;
  --light-mid:     #eef1f6;
  --text:          #1e2d3d;
  --text-muted:    #5a6a7e;
  --teal:          #00a896;
  --teal-light:    #00c4af;
  --border:        #dde3ec;
  --shadow-sm:     0 2px 8px rgba(13,31,60,.08);
  --shadow:        0 4px 20px rgba(13,31,60,.12);
  --shadow-lg:     0 8px 40px rgba(13,31,60,.16);
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     24px;
  --nav-h:         72px;
  --font-head:     'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }

ul, ol { padding-left: 1.5rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: .875rem;
  background: var(--light);
  border-radius: 4px;
}
code { padding: .2em .4em; }
pre { padding: 1.25rem; overflow-x: auto; border: 1px solid var(--border); margin: 1.5rem 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 2rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25rem; }

.article-body h2 { border-left: 4px solid var(--orange); padding-left: 1rem; }
.article-body h3 { color: var(--primary-mid); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(7,21,38,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  padding: .35rem .75rem;
  border-radius: 6px;
  letter-spacing: .02em;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }

.primary-nav > li { position: relative; }

.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .88rem;
  padding: .5rem .85rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a {
  background: rgba(255,255,255,.1);
  color: var(--orange-light);
}

.primary-nav > li > a .arrow {
  width: 14px; height: 14px;
  transition: transform .2s;
  opacity: .6;
}

.primary-nav > li:hover > a .arrow { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.primary-nav > li:hover .dropdown,
.primary-nav > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: .55rem 1rem;
  color: var(--text);
  font-size: .875rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.dropdown a:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

.dropdown li + li { margin-top: 2px; }

/* CTA button in nav */
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: .5rem 1.1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .5rem;
  border-radius: 6px;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle svg { display: block; }

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

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--primary-dark);
    padding: 1.5rem;
    gap: .25rem;
    overflow-y: auto;
  }

  .primary-nav.is-open > li > a { font-size: 1rem; padding: .75rem 1rem; }
  .primary-nav.is-open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,.05);
    box-shadow: none;
    border: none;
    border-radius: 8px;
    margin-top: .25rem;
    padding: .25rem .5rem;
  }
  .primary-nav.is-open .dropdown a { color: rgba(255,255,255,.75); font-size: .9rem; }
  .primary-nav.is-open .dropdown a:hover { background: rgba(255,255,255,.08); color: var(--orange-light); }
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,98,26,.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0,168,150,.12) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(232,98,26,.2);
  border: 1px solid rgba(232,98,26,.4);
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (smaller) */
.page-hero {
  background: var(--primary);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(232,98,26,.12) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .75rem; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 1rem; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.65); }
.page-hero .breadcrumbs a:hover { color: var(--orange-light); }
.page-hero .reading-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  margin-top: .5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .925rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,98,26,.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--orange-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--orange);
}

.card h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.card p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.card .card-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; }

/* ============================================================
   SPECIAL CONTENT BOXES
   ============================================================ */

/* Quick Answer Box */
.quick-answer {
  background: linear-gradient(135deg, #f0faf8 0%, #e8f7f4 100%);
  border: 1px solid rgba(0,168,150,.25);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2rem;
}

.quick-answer-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .75rem;
  color: var(--teal);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.quick-answer p { font-size: 1rem; color: var(--text); margin: 0; line-height: 1.65; }

/* Definition Box */
.definition-box {
  background: var(--orange-pale);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.definition-box .def-term {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange-dark);
  font-size: .875rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.definition-box p { font-size: .925rem; margin: 0; color: var(--text); }
.definition-box a { color: var(--orange); font-weight: 600; }

/* Info callout */
.callout {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-primary { background: linear-gradient(135deg, #fff3ed, #ffe8d6); border-color: rgba(232,98,26,.2); }

/* ============================================================
   DATA TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.data-table thead th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: .9rem 1.1rem;
  text-align: left;
  white-space: nowrap;
  font-size: .825rem;
  letter-spacing: .04em;
}

.data-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--light); }
.data-table tbody tr:hover { background: var(--orange-pale); }

.data-table td {
  padding: .8rem 1.1rem;
  color: var(--text);
  vertical-align: top;
}

.data-table td.highlight { color: var(--orange); font-weight: 600; font-family: var(--font-mono); }
.data-table td.badge { white-space: nowrap; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { margin: 3rem 0; }
.faq-section > h2 { margin-bottom: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow .2s;
}

.faq-item.is-open { box-shadow: var(--shadow); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  background: var(--white);
  transition: background .15s;
  user-select: none;
  list-style: none;
}

.faq-question:hover { background: var(--light); }
.faq-item.is-open .faq-question { background: var(--orange-pale); border-bottom: 1px solid rgba(232,98,26,.2); }

.faq-q-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary);
  flex: 1;
}

.faq-icon {
  width: 24px; height: 24px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .25s, background .2s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.is-open .faq-answer { max-height: 800px; }

.faq-answer-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
}

.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-wrap { padding: 3rem 0; }

.article-body { font-size: 1rem; line-height: 1.8; }
.article-body > * + * { margin-top: .25rem; }
.article-body ul, .article-body ol { margin: .75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--primary); }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--light);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 3rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
}

.author-info h4 { font-size: 1rem; margin: 0 0 .25rem; }
.author-info .author-role { font-size: .8rem; color: var(--orange); font-weight: 600; display: block; margin-bottom: .5rem; }
.author-info p { font-size: .875rem; color: var(--text-muted); margin: 0; }
.author-info a { font-weight: 600; }

/* ============================================================
   CROSS-LINKS BOX
   ============================================================ */
.cross-links-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  color: #fff;
}

.cross-links-box h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; opacity: .75; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }

.cross-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }

.cross-link-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s, border-color .2s;
  text-decoration: none;
}

.cross-link-item:hover {
  background: rgba(232,98,26,.25);
  border-color: rgba(232,98,26,.4);
  color: var(--orange-light);
}

.cross-link-item .cl-icon { width: 18px; height: 18px; opacity: .6; flex-shrink: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.widget-title {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 1.25rem;
}

.widget-body { padding: 1.25rem; }

.widget-author-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 auto 1rem;
}

.widget-author-name {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  display: block;
  margin-bottom: .2rem;
}

.widget-author-role {
  text-align: center;
  font-size: .78rem;
  color: var(--orange);
  font-weight: 600;
  display: block;
  margin-bottom: .75rem;
}

.widget-author-bio { font-size: .82rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

.related-sites-list { list-style: none; padding: 0; margin: 0; }
.related-sites-list li { border-bottom: 1px solid var(--border); }
.related-sites-list li:last-child { border-bottom: none; }
.related-sites-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.related-sites-list a:hover { color: var(--orange); }
.related-sites-list .site-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.quick-nav-list { list-style: none; padding: 0; margin: 0; }
.quick-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .25rem;
  font-size: .875rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .15s, padding-left .15s;
}
.quick-nav-list li:last-child a { border-bottom: none; }
.quick-nav-list a:hover { color: var(--orange); padding-left: .5rem; }

/* ============================================================
   HOME PAGE SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p  { color: rgba(255,255,255,.75); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-header h2 { border: none !important; padding: 0 !important; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin: .5rem 0 0; }

/* Stats bar */
.stats-bar { background: var(--orange); padding: 2.5rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.25rem;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 500; letter-spacing: .05em; }

/* Topic cluster nav */
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  text-decoration: none;
}

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

.topic-card .tc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange);
  font-size: 1.5rem;
}

.topic-card h3 { font-size: 1.05rem; color: var(--primary); margin: 0 0 .5rem; }
.topic-card p  { font-size: .875rem; color: var(--text-muted); flex: 1; margin: 0 0 1rem; }
.topic-card .tc-link { font-size: .825rem; font-weight: 700; color: var(--orange); display: flex; align-items: center; gap: .35rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand .logo-badge { background: var(--orange); }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .15s; }
.footer-nav a:hover { color: var(--orange-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--orange-light); }

.footer-sites { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs .sep { opacity: .4; }

/* Tags / badges */
.badge {
  display: inline-block;
  padding: .2em .7em;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: .04em;
}
.badge-orange { background: var(--orange-pale); color: var(--orange-dark); }
.badge-teal   { background: #e6f7f5; color: #007d70; }
.badge-navy   { background: #e8ecf2; color: var(--primary); }

/* Page sections */
.section-divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin-top: 1.5rem;
}
.search-bar input {
  flex: 1;
  padding: .8rem 1.25rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.search-bar input::placeholder { color: rgba(255,255,255,.35); }
.search-bar input:focus { border-color: var(--orange); }
.search-bar button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .8rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.search-bar button:hover { background: var(--orange-dark); }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2.5rem;
  position: sticky;
  top: calc(var(--nav-h) + .5rem);
  background: var(--white);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all .15s;
}
.alpha-link:hover, .alpha-link.has-entries { background: var(--orange-pale); color: var(--orange); border-color: var(--orange); }
.alpha-link.empty { opacity: .3; pointer-events: none; }

.glossary-letter { margin: 2.5rem 0 1rem; }
.glossary-letter h2 {
  font-size: 1.75rem;
  color: var(--orange);
  border-left: 4px solid var(--orange) !important;
  padding-left: .75rem !important;
  margin: 0 0 1.25rem;
}

.glossary-entry {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.glossary-entry:last-child { border-bottom: none; }
.glossary-entry dt {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: .4rem;
}
.glossary-entry dd { color: var(--text); font-size: .9rem; line-height: 1.65; margin: 0; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
  margin-bottom: .4rem;
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--orange); }

textarea.form-control { min-height: 140px; resize: vertical; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-orange { color: var(--orange); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-actions { flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 1.5rem; }
  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  h2 { margin-top: 1.75rem; }
  .data-table { font-size: .8rem; }
  .data-table td, .data-table th { padding: .65rem .75rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
