@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

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

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e321e;
  --dark3: #0d180d;
  --green-dim: rgba(105,255,105,0.12);
  --cyan-dim: rgba(0,255,255,0.10);
  --green-glow: rgba(105,255,105,0.4);
  --cyan-glow: rgba(0,255,255,0.35);
  --text: #e8ffe8;
  --text-muted: #9bbf9b;
  --border: rgba(105,255,105,0.18);
  --card-bg: rgba(23,38,23,0.92);
  --sidenav-w: 260px;
  --radius: 4px;
  --radius-pill: 9999px;
  --transition: 0.22s ease;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--dark3);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green); }

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

/* ===== PAGE SHELL ===== */
.page-shell {
  display: flex;
  min-height: 100vh;
}

.page-body {
  flex: 1;
  margin-left: var(--sidenav-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== SIDENAV ===== */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidenav-w);
  height: 100vh;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding: 0 0 24px;
}

.sidenav-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--green-glow);
}
.brand-link:hover { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }

.site-logo, .site-logomark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.85rem;
  line-height: 1.2;
}

/* nav details/summary */
.nav-details {
  flex: 1;
  padding: 16px 0;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 10px 20px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  list-style: none;
  user-select: none;
}
.nav-toggle::-webkit-details-marker { display: none; }

.nav-details menu {
  list-style: none;
  padding: 8px 0;
}

.nav-details menu li {
  padding: 2px 16px;
}

.nav-details menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-details menu li a:hover,
.nav-details menu li a[aria-current="page"] {
  background: var(--green-dim);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--border), 0 0 8px var(--green-glow);
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  display: flex;
  position: relative;
}

.wrap {
  flex: 1;
  max-width: 820px;
  padding: 40px 40px 60px;
  min-width: 0;
}

/* ===== ASIDE ===== */
.content-aside {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 20px 40px 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}

.aside-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.content-aside h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-aside ul {
  list-style: none;
}

.content-aside ul li {
  margin-bottom: 6px;
}

.content-aside ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--green-dim);
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.content-aside ul li a:hover {
  color: var(--green);
  background: rgba(105,255,105,0.18);
}

/* ===== EYEBROW / SMALL before h2 ===== */
.section-eyebrow, .hero-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

/* ===== HERO (home) ===== */
.hero-section {
  margin-bottom: 0;
}

.hero-article {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 48px;
  background: var(--dark2);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 48px 100px;
  position: relative;
  z-index: 2;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 16px var(--green-glow));
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* chrome orb */
.hero-chrome-orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 50%, #fff 100%);
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px var(--green-glow), inset 0 4px 16px rgba(255,255,255,0.3);
  animation: orbPulse 4s ease-in-out infinite;
}

.orb-inner {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 60px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  filter: blur(6px);
  transform: rotate(-20deg);
}

.orb-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite reverse;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* hero slash decoration */
.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--dark3);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
  z-index: 1;
}

.hero-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(105,255,105,0.06) 0%, rgba(0,255,255,0.04) 100%);
  z-index: 0;
}

.hero-article::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -10%;
  right: -10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
  transform: rotate(-2deg);
  z-index: 1;
  opacity: 0.5;
}

/* ===== PILL BUTTONS ===== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  min-height: 44px;
  cursor: pointer;
}

.pill-btn--primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--dark);
  box-shadow: 0 4px 20px var(--green-glow);
}
.pill-btn--primary:hover {
  color: var(--dark);
  box-shadow: 0 6px 28px var(--cyan-glow), 0 0 0 2px var(--cyan);
  transform: translateY(-2px);
}

.pill-btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}
.pill-btn--outline:hover {
  background: var(--green-dim);
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-2px);
}

/* ===== CARDS ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cat-card {
  perspective: 800px;
}

.cat-card-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 0 var(--green-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.cat-card-inner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 36px rgba(0,0,0,0.5), 0 0 20px var(--green-glow);
}

.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.cat-card-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.cat-card-inner h3 a {
  color: var(--text);
}
.cat-card-inner h3 a:hover { color: var(--green); }

.cat-card-inner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cat-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-link:hover { color: var(--green); }

/* articles grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.article-card-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.article-card-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 12px var(--cyan-glow);
}

.article-cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.article-cat-tag a { color: var(--cyan); }
.article-cat-tag a:hover { color: var(--green); }

.article-card-inner h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.article-card-inner h3 a { color: var(--text); }
.article-card-inner h3 a:hover { color: var(--green); }

.article-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== STAGGER ANIMATION ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.12s; }
.stagger-item:nth-child(3) { animation-delay: 0.19s; }
.stagger-item:nth-child(4) { animation-delay: 0.26s; }
.stagger-item:nth-child(5) { animation-delay: 0.33s; }
.stagger-item:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HOME ASIDE ===== */
.home-aside {
  width: 200px;
  flex-shrink: 0;
  padding: 48px 16px 40px 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
}

.home-aside small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.home-aside h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.home-aside ul { list-style: none; }
.home-aside ul li { margin-bottom: 6px; }
.home-aside ul li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--green-dim);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  line-height: 1.3;
}
.home-aside ul li a:hover { color: var(--green); background: rgba(105,255,105,0.18); }

/* ===== PROSE ===== */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2em 0 0.7em;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 4px solid var(--cyan);
  padding-left: 14px;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: var(--cyan);
  letter-spacing: 0.03em;
}

.prose p { margin-bottom: 1.2em; }

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.prose li { margin-bottom: 0.4em; }

.prose strong { color: var(--green); font-weight: 700; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0,255,255,0.3);
}
.prose a:hover { color: var(--green); border-color: var(--green); }

.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--green-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose code {
  background: var(--dark2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--green);
}

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

/* ===== SECTIONS ===== */
.categories-section,
.recent-section,
.home-content-section {
  margin-bottom: 60px;
}

.categories-section h2,
.recent-section h2,
.cat-list-section h2,
.about-nav-section h2,
.tag-other-section h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0;
}

/* ===== CONTENT HEADER ===== */
.content-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

.pub-date, .mod-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 20px;
}

/* ===== CATEGORY HERO ===== */
.cat-hero-section { margin-bottom: 0; }

.cat-hero-article {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.cat-hero-band {
  background: linear-gradient(135deg, var(--dark2) 60%, rgba(105,255,105,0.08) 100%);
  border: 1px solid var(--border);
  border-bottom: 4px solid var(--cyan);
  padding: 48px 40px 44px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 96% 100%, 0 100%);
}

.cat-hero-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--green), var(--cyan));
}

.cat-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 14px;
  text-shadow: 0 0 18px var(--green-glow);
}

.cat-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.child-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.child-table thead {
  background: var(--dark2);
}

.child-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 2px solid var(--border);
}

.child-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

.child-table tbody tr:last-child td { border-bottom: none; }

.child-table tbody tr:hover td {
  background: var(--green-dim);
}

.child-link {
  font-weight: 700;
  color: var(--text);
  display: block;
}
.child-link:hover { color: var(--green); }

.child-desc-cell { max-width: 320px; }
.child-date-cell {
  white-space: nowrap;
  font-size: 0.78rem;
}
.child-date-cell time { color: var(--text-muted); }

.empty-note {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
}

/* ===== ARTICLE ===== */
.article-breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--cyan); }

.article-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--green);
  text-shadow: 0 0 16px var(--green-glow);
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-hero-wrap {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero-img {
  width: 100%;
  height: auto;
}

.article-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* related */
.related-list { list-style: none; margin-top: 20px; }

.related-item {
  border-bottom: 1px solid var(--border);
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 44px;
}
.related-link:hover { color: var(--green); }

.related-title {
  font-size: 0.88rem;
  font-weight: 500;
  flex: 1;
}

.related-link time {
  font-size: 0.72rem;
  flex-shrink: 0;
  color: inherit;
}

/* ===== ABOUT ===== */
.about-hero-article {
  margin-bottom: 40px;
}

.about-hero-band {
  background: linear-gradient(135deg, rgba(0,255,255,0.07) 0%, var(--dark2) 100%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--cyan);
  padding: 56px 40px 48px;
  border-radius: var(--radius);
  position: relative;
}

.about-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--cyan-glow);
}

.about-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.about-nav-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.about-nav-list li a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 48px;
}
.about-nav-list li a:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

/* ===== PRIVACY ===== */
.privacy-header {
  margin-bottom: 36px;
}

.privacy-h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ===== TAG ===== */
.tag-hero-band {
  background: linear-gradient(135deg, rgba(0,255,255,0.07) 0%, var(--dark2) 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  padding: 48px 36px 44px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 40px;
}

.tag-h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-shadow: 0 0 14px var(--green-glow);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-cta {
  background: linear-gradient(135deg, var(--dark2) 0%, rgba(105,255,105,0.08) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--dark);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px var(--green-glow);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 48px;
}
.cta-btn:hover {
  color: var(--dark);
  box-shadow: 0 6px 28px var(--cyan-glow);
  transform: translateY(-2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 40px 40px 32px;
}

.footer-col {
  padding: 0 20px 0 0;
}

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-address strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 6px;
}

.footer-links-col ul li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 40px;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links-col ul li a:hover { color: var(--green); }

.footer-bottom {
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ===== SECTION SPACING ===== */
.cat-content-section,
.cat-list-section,
.about-content-section,
.about-nav-section,
.tag-content-section,
.tag-list-section,
.tag-other-section,
.related-section {
  margin-bottom: 48px;
}

.tag-other-section { margin-top: 24px; }

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-body {
    margin-left: var(--sidenav-w);
  }
  .content-aside {
    width: 180px;
  }
  .home-aside { width: 170px; }
}

@media (max-width: 768px) {
  :root { --sidenav-w: 0px; }

  .page-shell {
    flex-direction: column;
  }

  .sidenav {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
  }

  .sidenav-brand {
    padding: 14px 16px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }

  .nav-details {
    flex: 1;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .nav-details:not([open]) menu {
    display: none;
  }

  .nav-details menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 8px 0;
    display: block;
  }

  .page-body {
    margin-left: 0;
  }

  main {
    flex-direction: column;
  }

  .wrap {
    padding: 24px 20px 40px;
    max-width: 100%;
  }

  .content-aside,
  .home-aside {
    width: 100%;
    position: static;
    padding: 0 20px 24px;
    max-height: none;
  }

  .hero-inner {
    flex-direction: column-reverse;
    padding: 40px 24px 80px;
    min-height: 70vh;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-visual {
    width: 150px;
    height: 150px;
  }
  .hero-chrome-orb {
    width: 130px;
    height: 130px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .footer-cta {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
  }

  .footer-col { padding: 0 0 20px; }

  .cat-hero-band {
    padding: 36px 20px 32px;
  }

  .about-hero-band {
    padding: 36px 20px 32px;
  }

  .cat-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .about-nav-list {
    grid-template-columns: 1fr;
  }

  .child-table th:nth-child(2),
  .child-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .pill-btn { width: 100%; justify-content: center; }

  .footer-bottom { padding: 16px 20px; }
}
