/*
Theme Name: Silastron Galactic Next
Theme URI: https://silastron.com/
Description: Silastron — Apastron · Gravity of Silence. A WordPress theme with deep-space aesthetics, glowing nebulae, and twinkling stars. From the apastron of thought and being, I write — where gravity is silence, and silence holds meaning. Installable beside Silastron Galactic 1.4.9 without overwriting it.
Version: 1.6.1-rc10
Author: Silastron Team
Author URI: https://silastron.com/
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silastron-galactic-next
Tags: blog, business, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, full-width-template, one-column, responsive-design, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS Custom Properties - Galactic Color System
   ========================================================================== */

:root {
  color-scheme: dark;

  /* WordPress Preset Colors - Deep Space Palette */
  --galaxy-deep: #0A0B1A;
  --galaxy-dark: #1A1B3A;
  --galaxy-medium: #2A2B5A;
  --galaxy-light: #3A3B7A;
  
  /* WordPress Preset Colors - Nebula Colors */
  --nebula-purple: var(--wp--preset--color--nebula-purple);
  --nebula-pink: var(--wp--preset--color--nebula-pink);
  --nebula-blue: var(--wp--preset--color--nebula-blue);
  --nebula-cyan: var(--wp--preset--color--nebula-cyan);
  
  /* WordPress Preset Colors - Star Colors */
  --star-gold: var(--wp--preset--color--star-gold);
  --star-silver: #E5E7EB;
  --star-white: #FFFFFF;
  
  /* WordPress Preset Colors - Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  
  /* WordPress Preset Colors - Accent Colors */
  --accent-primary: var(--wp--preset--color--accent-primary);
  --accent-secondary: var(--wp--preset--color--accent-secondary);
  --accent-tertiary: var(--nebula-cyan);

  /* Semantic theme surfaces */
  --color-background: linear-gradient(135deg, #0A0B1A 0%, #1A1B3A 50%, #2A2B5A 100%);
  --color-stars: radial-gradient(circle at 20% 80%, #F59E0B 0%, transparent 50%), radial-gradient(circle at 80% 20%, #06B6D4 0%, transparent 50%);
  --surface-primary: rgba(26, 27, 58, 0.8);
  --surface-secondary: rgba(10, 11, 26, 0.9);
  --surface-elevated: rgba(26, 27, 58, 0.72);
  --surface-header: rgba(10, 11, 26, 0.95);
  --surface-form: rgba(10, 11, 26, 0.82);
  --surface-code: rgba(10, 11, 26, 0.9);
  --surface-code-inline: rgba(107, 70, 193, 0.1);
  --surface-comment: rgba(26, 27, 58, 0.72);
  --border-subtle: rgba(107, 70, 193, 0.2);
  --border-strong: rgba(107, 70, 193, 0.32);
  --link-color: var(--accent-primary);
  --link-hover-color: var(--accent-secondary);
  --focus-ring: var(--accent-tertiary);
  --button-text: #FFFFFF;
  --button-fill: #9D174D;
  --button-fill-hover: #1D4ED8;
  --ambient-purple: rgba(107, 70, 193, 0.1);
  --ambient-pink: rgba(236, 72, 153, 0.1);
  --ambient-cyan: rgba(6, 182, 212, 0.05);
  
  /* WordPress Preset Gradients */
  --bg-primary: var(--color-background);
  --bg-nebula: var(--wp--preset--gradient--nebula-gradient);
  --bg-stars: var(--color-stars);
  
  /* Shadows and Glows */
  --glow-primary: 0 0 20px rgba(107, 70, 193, 0.3);
  --glow-secondary: 0 0 30px rgba(236, 72, 153, 0.2);
  --glow-tertiary: 0 0 40px rgba(6, 182, 212, 0.1);
  
  /* System fonts only. No webfonts and no display face. */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Content width system — full-bleed backgrounds, constrained content */
  --content-max: 1280px;
  --content-gutter: clamp(1rem, 2.5vw, 1.75rem);
  --article-sidebar-gap: clamp(24px, 3vw, 48px);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

:root[data-theme="light"] {
  color-scheme: light;
  --galaxy-deep: #F8FAFC;
  --galaxy-dark: #EEF2FF;
  --galaxy-medium: #E0E7FF;
  --galaxy-light: #CBD5E1;
  --text-primary: #111827;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --accent-primary: #6B46C1;
  --accent-secondary: #BE185D;
  --accent-tertiary: #0E7490;
  --color-background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 52%, #E0F2FE 100%);
  --color-stars: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.22) 0%, transparent 42%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 44%);
  --surface-primary: rgba(255, 255, 255, 0.78);
  --surface-secondary: rgba(248, 250, 252, 0.92);
  --surface-elevated: rgba(255, 255, 255, 0.82);
  --surface-header: rgba(248, 250, 252, 0.94);
  --surface-form: rgba(255, 255, 255, 0.9);
  --surface-code: rgba(15, 23, 42, 0.92);
  --surface-code-inline: rgba(107, 70, 193, 0.1);
  --surface-comment: rgba(255, 255, 255, 0.78);
  --border-subtle: rgba(107, 70, 193, 0.22);
  --border-strong: rgba(107, 70, 193, 0.36);
  --link-color: #6B46C1;
  --link-hover-color: #BE185D;
  --button-text: #FFFFFF;
  --button-fill: #6B46C1;
  --button-fill-hover: #1D4ED8;
  --ambient-purple: rgba(107, 70, 193, 0.08);
  --ambient-pink: rgba(236, 72, 153, 0.06);
  --ambient-cyan: rgba(6, 182, 212, 0.08);
  --glow-primary: 0 0 16px rgba(107, 70, 193, 0.18);
  --glow-secondary: 0 0 22px rgba(190, 24, 93, 0.14);
  --glow-tertiary: 0 0 28px rgba(14, 116, 144, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --galaxy-deep: #F8FAFC;
    --galaxy-dark: #EEF2FF;
    --galaxy-medium: #E0E7FF;
    --galaxy-light: #CBD5E1;
    --text-primary: #111827;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --accent-primary: #6B46C1;
    --accent-secondary: #BE185D;
    --accent-tertiary: #0E7490;
    --color-background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 52%, #E0F2FE 100%);
    --color-stars: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.22) 0%, transparent 42%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 44%);
    --surface-primary: rgba(255, 255, 255, 0.78);
    --surface-secondary: rgba(248, 250, 252, 0.92);
    --surface-elevated: rgba(255, 255, 255, 0.82);
    --surface-header: rgba(248, 250, 252, 0.94);
    --surface-form: rgba(255, 255, 255, 0.9);
    --surface-code: rgba(15, 23, 42, 0.92);
    --surface-code-inline: rgba(107, 70, 193, 0.1);
    --surface-comment: rgba(255, 255, 255, 0.78);
    --border-subtle: rgba(107, 70, 193, 0.22);
    --border-strong: rgba(107, 70, 193, 0.36);
    --link-color: #6B46C1;
    --link-hover-color: #BE185D;
    --button-text: #FFFFFF;
    --button-fill: #6B46C1;
    --button-fill-hover: #1D4ED8;
    --ambient-purple: rgba(107, 70, 193, 0.08);
    --ambient-pink: rgba(236, 72, 153, 0.06);
    --ambient-cyan: rgba(6, 182, 212, 0.08);
    --glow-primary: 0 0 16px rgba(107, 70, 193, 0.18);
    --glow-secondary: 0 0 22px rgba(190, 24, 93, 0.14);
    --glow-tertiary: 0 0 28px rgba(14, 116, 144, 0.12);
  }
}

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
	background-attachment: fixed;
}

/* ==========================================================================
   Galactic Background Animation
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
	top: 0;
	left: 0;
	width: 100%;
  height: 100%;
  background: var(--bg-stars);
  background-size: 400% 400%;
  animation: galacticFlow 30s ease-in-out infinite;
  z-index: -2;
  opacity: 0.3;
}

body::after {
  content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, var(--ambient-purple) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--ambient-pink) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, var(--ambient-cyan) 0%, transparent 50%);
  animation: nebulaDrift 40s ease-in-out infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes galacticFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nebulaDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  body::before,
  body::after {
    animation: none;
  }

  body::before {
    opacity: 0.18;
  }

  body::after {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-lg) 0;
  color: var(--text-primary);
  letter-spacing: normal;
  text-shadow: none;
}

h1 {
  font-size: 2.5rem;
	font-weight: 700;
  letter-spacing: normal;
}

h2 {
	font-size: 2rem;
  letter-spacing: normal;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
}

a {
  color: var(--link-color);
	text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--link-hover-color);
  text-shadow: var(--glow-secondary);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  position: sticky;
	top: 0;
  z-index: 100;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-gutter);
	display: flex;
  align-items: center;
	justify-content: space-between;
  gap: var(--space-md);
  position: relative;
  flex-wrap: nowrap;
}

.site-branding {
	display: flex;
	align-items: center;
  gap: var(--space-md);
  min-width: 0;
  flex: 0 1 auto;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.header-tools {
  margin-left: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
	font-weight: 700;
  color: var(--text-primary);
	margin: 0;
  text-shadow: var(--glow-primary);
}

.site-description {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-main {
  flex: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--content-gutter);
	width: 100%;
	display: block;
}

/* Nested .container already owns max-width + gutters — avoid double padding. */
.site-main:has(> .container) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--article-sidebar-gap);
  align-items: start;
  width: 100%;
}

@media (min-width: 1024px) {
  .content-wrapper:has(> .sidebar) {
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  }
}

.content-area {
  min-width: 0;
  width: 100%;
}

.sidebar {
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .sidebar {
    max-width: 300px;
    justify-self: stretch;
  }
}

.site-content {
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-primary);
}

.site-footer {
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
}

.site-footer-inner {
  max-width: var(--content-max);
	margin: 0 auto;
  padding: 0 var(--content-gutter);
	text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
  list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
  min-height: 44px;
  padding: var(--space-sm) 0.55rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
  box-shadow: var(--glow-primary);
}

.main-navigation .menu-item-has-children {
  position: relative;
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 12rem;
  padding: 0.4rem;
  background: var(--surface-header);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-primary);
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

.menu-toggle,
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-primary);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.search-toggle {
  width: 44px;
  padding: 0;
}

.search-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.menu-toggle-bars {
  display: none;
  width: 1rem;
  flex-direction: column;
  gap: 3px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}

.header-search {
  position: relative;
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0.75rem;
  right: 0.75rem;
  z-index: 40;
  width: auto;
  max-width: none;
  padding: 0.75rem;
  background: var(--surface-header);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-primary);
}

/* Collapsed by default in HTML (hidden attribute) — do not wait for JS. */
.header-search-panel[hidden] {
  display: none !important;
}

.menu-toggle[hidden],
.search-toggle[hidden] {
  display: none !important;
}

.header-search-panel .search-form {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.header-search-panel .search-form label {
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.search-form .search-field {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-form);
  color: var(--text-primary);
  font: inherit;
}

.btn,
a.btn,
button.btn,
.search-form .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
input.btn-primary,
.search-form .search-submit {
  background: var(--button-fill);
  color: var(--button-text);
  box-shadow: var(--glow-secondary);
}

.btn-secondary,
a.btn-secondary {
  background: color-mix(in srgb, var(--surface-elevated) 72%, transparent);
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--text-primary) 55%, var(--accent-primary));
  border-width: 2px;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
input.btn-primary:hover,
.search-form .search-submit:hover,
.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--button-fill-hover);
  color: var(--button-text);
  border-color: transparent;
}

.menu-toggle:focus-visible,
.search-toggle:focus-visible,
.theme-mode-toggle:focus-visible,
.btn:focus-visible,
.search-form .search-field:focus-visible,
.search-form .search-submit:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  margin-left: var(--space-md);
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  background: color-mix(in srgb, var(--surface-primary) 82%, var(--accent-primary) 18%);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.theme-mode-toggle:hover,
.theme-mode-toggle:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

.theme-mode-toggle:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-mode-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.4rem;
  height: 1.4rem;
  padding: 0.15rem;
  background: color-mix(in srgb, var(--galaxy-deep) 78%, var(--accent-primary) 22%);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 45%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--galaxy-deep) 65%, transparent);
}

.theme-mode-toggle-knob {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--star-gold);
  color: #111827;
  font-size: 0.7rem;
  line-height: 1;
  transform: translateX(0);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.theme-mode-toggle-label {
  color: var(--text-primary);
  white-space: nowrap;
}

:root[data-theme="light"] .theme-mode-toggle {
  background: color-mix(in srgb, var(--surface-primary) 82%, var(--accent-secondary) 18%);
}

:root[data-theme="light"] .theme-mode-toggle-knob {
  background: var(--galaxy-dark);
  color: var(--accent-primary);
  transform: translateX(0.95rem);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-primary) 38%, transparent);
}

@media (max-width: 640px) {
  .theme-mode-toggle {
    min-width: auto;
    padding-right: 0.3rem;
  }

  .theme-mode-toggle-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.entry-header {
	text-align: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.entry-title {
  font-size: 2.5rem;
	font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-shadow: var(--glow-primary);
  overflow-wrap: break-word;
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: center;
  line-height: 1.5;
}

.entry-meta a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-primary) 42%, transparent);
  text-underline-offset: 0.18em;
}

.entry-content {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.85;
}

.entry-content > * {
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .wp-block-table,
.entry-content > .wp-block-image.size-full,
.entry-content > figure {
  max-width: min(100%, 960px);
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--accent-primary);
  line-height: 1.25;
  margin-top: calc(var(--space-2xl) * 1.15);
  margin-bottom: var(--space-lg);
  scroll-margin-top: 7rem;
}

.entry-content h2 {
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2rem);
}

.entry-content h3 {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem);
}

.entry-content p {
  margin-bottom: var(--space-lg);
}

.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  padding-left: 1.35em;
  color: var(--text-secondary);
}

.entry-content li {
  margin-bottom: var(--space-sm);
  padding-left: 0.15em;
}

.entry-content li::marker {
  color: var(--accent-primary);
}

.entry-content a {
  color: var(--accent-secondary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-secondary) 42%, transparent);
  text-underline-offset: 0.18em;
}

.entry-content a:hover {
  color: var(--accent-tertiary);
  text-shadow: var(--glow-tertiary);
}

.entry-content input,
.entry-content select,
.entry-content textarea,
.entry-content button {
  color: var(--text-primary);
}

.entry-content input:not([type="submit"]):not([type="button"]),
.entry-content select,
.entry-content textarea {
  background: var(--surface-form);
  border: 1px solid var(--border-strong);
}

.entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  table-layout: fixed;
}

.entry-content th,
.entry-content td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  hyphens: auto;
}

.entry-content th {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-primary) 64%, transparent);
}

/* Contain tables in the article column; wrap cells instead of horizontal scroll. */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table,
.silastron-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

.silastron-table-scroll > table,
.entry-content .wp-block-table table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}

.entry-content figure {
  margin: var(--space-xl) auto;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

/* ==========================================================================
   Code and Preformatted Text
   ========================================================================== */

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

code {
  background: var(--surface-code-inline);
  color: var(--accent-primary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow-wrap: break-word;
}

pre {
  background: var(--surface-code);
  color: var(--text-primary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  max-width: min(100%, 960px);
  line-height: 1.7;
  tab-size: 2;
  box-shadow: var(--glow-primary);
}

pre code {
  background: none;
  border: none;
	padding: 0;
	color: inherit;
  overflow-wrap: normal;
  white-space: pre;
}

/* ==========================================================================
   Blockquotes
   ========================================================================== */

blockquote {
  border-left: 4px solid var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 7%, transparent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
	position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-primary);
	position: absolute;
  top: -0.5rem;
  left: var(--space-md);
  opacity: 0.3;
}

blockquote p {
	margin: 0;
  font-size: 1.125rem;
}

.post-thumbnail {
  max-width: min(100%, 960px);
  margin: 0 auto var(--space-2xl);
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.entry-footer {
  max-width: none;
  margin: var(--space-2xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.tag-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--accent-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Buttons and Interactive Elements
   ========================================================================== */

.button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
  background: var(--bg-nebula);
  color: var(--text-primary);
	border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
	font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--glow-primary);
	text-decoration: none;
	display: inline-block;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-secondary);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  z-index: 100000;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-header);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  clip: auto !important;
  box-shadow: var(--glow-primary);
}

/* ==========================================================================
   Sidebar and Widgets
   ========================================================================== */

.sidebar {
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-primary);
  margin-top: 0;
}

.widget {
  margin-bottom: var(--space-lg);
}

.sidebar .widget {
  margin-bottom: var(--space-lg);
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  text-shadow: var(--glow-primary);
}

.sidebar .widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--accent-secondary);
  text-shadow: none;
  letter-spacing: 0.02em;
  text-transform: none;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li,
.sidebar .widget a {
  font-size: 0.875rem;
  line-height: 1.45;
}

.sidebar .widget a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar .search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.sidebar .search-form label {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}

.sidebar .search-form .search-field {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
}

.sidebar .search-form .search-submit {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.sidebar .widget li {
  padding: 0.35rem 0;
}

:root[data-theme="light"] .sidebar {
  background: color-mix(in srgb, var(--surface-primary) 86%, var(--galaxy-dark) 14%);
}

:root[data-theme="light"] .sidebar .widget-title {
  color: var(--accent-primary);
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent-primary) 16%, transparent);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(107, 70, 193, 0.1);
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.widget a:hover {
  color: var(--accent-secondary);
  text-shadow: var(--glow-secondary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1180px) {
  .site-header-inner {
    flex-wrap: nowrap;
    gap: var(--space-sm);
  }

  .site-description {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }

  .menu-toggle-bars {
    display: flex;
  }

  .menu-toggle-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }

  /* Compact header before and after JS: hide closed nav; no second-row wrap. */
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation:not(.is-open) {
    display: none;
  }

  .main-navigation.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    flex: none;
    order: 4;
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
    background: var(--galaxy-deep);
    border-bottom: 1px solid var(--border-subtle);
  }

  .main-navigation.is-open > ul,
  .main-navigation.is-open .sub-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: 0;
    gap: 0.15rem;
  }

  .main-navigation.is-open .sub-menu {
    position: static;
    display: flex;
    padding: 0 0 0.25rem 0.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-navigation.is-open a {
    width: 100%;
    white-space: normal;
  }

  .content-wrapper,
  .content-wrapper:has(> .sidebar) {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .content-area,
  .sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar {
    margin-top: 0;
  }

  .sidebar .widget-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .site-content {
    padding: var(--space-lg);
  }
  
  .entry-title {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
		font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    gap: var(--space-xs);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .site-title {
    font-size: 1.2rem;
  }

  .main-navigation {
    max-height: none;
    overflow: visible;
  }
  
  .site-main {
    padding: var(--space-md);
  }
  
  .site-content {
    padding: var(--space-md);
  }
  
  .entry-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: var(--galaxy-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--glow-primary);
  clip: auto !important;
  color: var(--text-primary);
	display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
	text-decoration: none;
  top: 5px;
	width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

.home-page {
  overflow-x: visible;
}

body.home .site-main {
  max-width: none;
  padding: 0;
  display: block;
}

body.home .site-content {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.newsletter-unavailable {
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
}

/* Hero Section */
.hero-section {
	position: relative;
  min-height: 0;
  padding: 3.5rem 0 2.5rem;
	display: flex;
  align-items: center;
	justify-content: center;
	overflow: hidden;
}

@media (min-width: 769px) {
  .hero-section {
    min-height: calc(100svh - 5.5rem);
    padding: 2rem 0;
  }
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
  height: 100%;
  z-index: -1;
}

.starfield {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, var(--star-gold) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--nebula-cyan) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, var(--nebula-purple) 0%, transparent 50%);
  background-size: 400% 400%;
  animation: galacticFlow 30s ease-in-out infinite;
}

.galaxy-ring {
	position: absolute;
	top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(107, 70, 193, 0.3);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
}

.galaxy-ring::before {
  content: '';
	position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 50%;
  animation: rotate 40s linear infinite reverse;
}

.hero-content {
  text-align: center;
  max-width: 70ch;
  padding: 0 var(--space-lg);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-shadow: none;
  letter-spacing: normal;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  letter-spacing: normal;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-cta {
	display: flex;
  gap: var(--space-lg);
	justify-content: center;
	flex-wrap: wrap;
}

/* Feature Cards */
.features-section {
  padding: var(--space-2xl) 0;
  background: var(--surface-secondary);
}

.container {
  max-width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 0 var(--content-gutter);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-primary);
  text-align: center;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-secondary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-lg);
  color: var(--accent-primary);
}

.feature-icon svg {
	width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-heading);
	font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.feature-link {
  color: var(--accent-secondary);
	text-decoration: none;
	font-weight: 600;
  transition: var(--transition-normal);
}

.feature-link:hover {
  color: var(--accent-tertiary);
  text-shadow: var(--glow-tertiary);
}

/* Quote Section */
.quote-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.signature-quote {
	text-align: center;
	font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  max-width: 60ch;
	margin: 0 auto;
	position: relative;
  padding: var(--space-xl);
}

.signature-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-primary);
	position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
}

/* Posts Section */
.posts-section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
	text-align: center;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  text-shadow: var(--glow-primary);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: stretch;
}

@media (min-width: 768px) {
  .posts-grid,
  .blog-page .posts-grid,
  .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .posts-grid,
  .blog-page .posts-grid,
  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-primary);
  transition: var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-secondary);
}

.post-image {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
}

.post-image > img,
.post-image > .post-placeholder,
.post-image > .image-halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.post-image img,
.post-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-placeholder {
  background: var(--bg-nebula);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 3rem;
}

.post-halo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(107, 70, 193, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.post-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.4rem;
  padding: 0.75rem 1rem 1rem;
  min-height: 0;
}

.post-content h2,
.post-content h3 {
  margin: 0;
}

.post-content h3 a,
.post-content .post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.post-content h3 a:hover,
.post-content .post-title a:hover,
.post-content .post-title a:focus-visible {
  color: var(--accent-primary);
  text-shadow: var(--glow-primary);
}

.post-content .post-title a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.post-content p {
  color: var(--text-secondary);
  margin: 0;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  background: rgba(107, 70, 193, 0.2);
  color: var(--accent-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.posts-cta {
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-style: italic;
}

/* About Section */
.about-section {
  padding: var(--space-2xl) 0;
  background: var(--surface-secondary);
}

.about-content {
  max-width: 60ch;
	margin: 0 auto;
	text-align: center;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.about-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
	text-align: center;
}

.newsletter-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.newsletter-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
	margin-left: auto;
	margin-right: auto;
}

.newsletter-form {
	display: flex;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-form);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: var(--space-md) var(--space-xl);
	white-space: nowrap;
}

/* Social Section */
.social-section {
  padding: var(--space-2xl) 0;
  background: var(--surface-secondary);
}

.social-links {
	display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.social-link {
	display: flex;
  align-items: center;
	justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--surface-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  border: 1px solid var(--border-subtle);
}

.social-link:hover {
  color: var(--accent-primary);
  background: rgba(107, 70, 193, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.contact-link {
	display: block;
	text-align: center;
  color: var(--accent-secondary);
	text-decoration: none;
	font-weight: 600;
  transition: var(--transition-normal);
}

.contact-link:hover {
  color: var(--accent-tertiary);
  text-shadow: var(--glow-tertiary);
}

/* Animations */
@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Responsive Design for Home Page */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
		align-items: center;
  }

  .hero-cta .btn {
    width: min(100%, 20rem);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .social-links {
	flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-title {
		font-size: 2rem;
	}

  .galaxy-ring {
    width: 300px;
    height: 300px;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
}

/* ==========================================================================
   Blue Team Alerts Styles
   ========================================================================== */

.blue-team-alerts-page {
  padding: var(--space-xl) 0;
}

.page-header {
	text-align: center;
  margin-bottom: var(--space-2xl);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-shadow: var(--glow-primary);
}

.page-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.subscribe-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.rss-link,
.newsletter-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
	text-decoration: none;
  transition: var(--transition-normal);
}

.rss-link:hover,
.newsletter-link:hover {
  background: rgba(107, 70, 193, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.rss-link svg,
.newsletter-link svg {
  width: 20px;
  height: 20px;
}

/* Filter Bar */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-group label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
  padding: var(--space-md);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-form);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

/* Alerts Grid */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.alert-card {
  background: var(--surface-primary);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glow-primary);
  transition: var(--transition-normal);
  overflow: hidden;
}

.alert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-secondary);
}

/* Alert Image Styles */
.alert-image {
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg) calc(var(--space-xl) * -1);
	position: relative;
}

.alert-image .image-halo {
	position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.alert-image .image-halo::before {
  content: '';
	position: absolute;
	top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(236, 72, 153, 0.3));
  z-index: 1;
  pointer-events: none;
}

.alert-image img {
	width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: var(--transition-normal);
}

.alert-card:hover .alert-image img {
  transform: scale(1.05);
}

.alert-header {
  margin-bottom: var(--space-lg);
}

.alert-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.alert-title a {
  color: var(--text-primary);
	text-decoration: none;
  transition: var(--transition-normal);
}

.alert-title a:hover {
  color: var(--accent-primary);
  text-shadow: var(--glow-primary);
}

.alert-meta {
	display: flex;
	flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.alert-date {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Severity Chips */
.severity-chip {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: normal;
}

.severity-critical {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.severity-high {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.severity-medium {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.severity-low {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.vendor-chip,
.cve-chip {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(107, 70, 193, 0.2);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
	font-weight: 500;
}

.alert-content {
  margin-bottom: var(--space-lg);
}

.alert-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.alert-tags {
	display: flex;
	flex-wrap: wrap;
  gap: var(--space-xs);
}

.alert-tag {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(236, 72, 153, 0.2);
  color: var(--accent-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.alert-footer {
	text-align: right;
}

.read-alert-btn {
	display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-primary);
  color: var(--text-primary);
	text-decoration: none;
  border-radius: var(--radius-lg);
	font-weight: 600;
  transition: var(--transition-normal);
}

.read-alert-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--glow-secondary);
}

.no-alerts {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-style: italic;
}

.pagination-wrapper {
	text-align: center;
  margin-top: var(--space-2xl);
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  gap: var(--space-sm);
	list-style: none;
  padding: 0;
	margin: 0;
}

.pagination-wrapper .page-numbers li {
  margin: 0;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
	text-decoration: none;
  transition: var(--transition-normal);
}

.pagination-wrapper .page-numbers a:hover,
.pagination-wrapper .page-numbers .current {
  background: rgba(107, 70, 193, 0.2);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Responsive Design for Blue Team Alerts */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .filter-bar {
    grid-template-columns: 1fr;
  }
  
  .alerts-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-row {
    flex-direction: column;
    align-items: center;
  }
  
  .alert-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
  background: var(--surface-header);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-2xl);
  /* Ensure footer is never fixed or sticky - always static */
  position: static !important;
  z-index: 1;
}

.footer-content {
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-shadow: var(--glow-primary);
}

.footer-tagline {
  color: var(--accent-primary);
  font-size: 0.875rem;
  margin: 0;
  font-weight: 300;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-nav-section h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-shadow: var(--glow-primary);
}

.footer-nav {
  list-style: none;
  padding: 0;
	margin: 0;
}

.footer-nav li {
  margin: 0 0 var(--space-sm) 0;
}

.footer-nav a {
  color: var(--text-secondary);
	text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-normal);
		display: block;
  padding: var(--space-xs) 0;
}

.footer-nav a:hover {
  color: var(--accent-primary);
  text-shadow: var(--glow-primary);
  transform: translateX(5px);
}

.footer-social {
  text-align: center;
}

.footer-social .social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer-social .social-link {
		display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  border: 1px solid var(--border-subtle);
}

.footer-social .social-link:hover {
  color: var(--accent-primary);
  background: rgba(107, 70, 193, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.footer-social .social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
		position: relative;
  padding-top: var(--space-lg);
}

.constellation-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 70, 193, 0.3), transparent);
  margin-bottom: var(--space-md);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.pulsing-star {
		position: absolute;
  top: var(--space-lg);
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateX(50%) scale(1); }
  50% { opacity: 1; transform: translateX(50%) scale(1.5); }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .site-footer {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  
  .footer-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .footer-social .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-footer {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
	.footer-menu {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-nav-section {
    text-align: center;
  }
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */

.blog-page {
  padding: var(--space-2xl) 0;
}

.blog-page .page-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.blog-page .page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-shadow: var(--glow-primary);
}

.blog-page .page-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.blog-page .posts-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: stretch;
}

.blog-page .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  padding: 0;
  border: 1px solid var(--border-strong);
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.blog-page .post-card:hover {
  transform: translateY(-5px);
  border-color: var(--nebula-purple);
  box-shadow: var(--shadow-glow);
}

.blog-page .post-image {
  margin-bottom: 0;
}

.blog-page .image-halo {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
}

.blog-page .image-halo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page .image-halo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nebula-gradient);
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.blog-page .post-placeholder {
  background: linear-gradient(135deg, var(--galaxy-dark), var(--galaxy-medium));
  border-radius: 8px;
		display: flex;
		align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
}

.blog-page .placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.blog-page .post-meta,
.post-card .post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-page .post-date,
.post-card .post-date,
.post-card .post-author {
  white-space: nowrap;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.blog-page .category-tag,
.post-tax .category-tag {
  background: rgba(107, 70, 193, 0.16);
  color: var(--text-secondary);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  margin: 0;
  min-height: 0;
  white-space: nowrap;
}

.blog-page .post-title {
  font-family: var(--font-primary);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  margin: 0;
  text-shadow: none;
}

.blog-page .post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.blog-page .post-title a:hover {
  color: var(--accent-primary);
  text-shadow: var(--glow-primary);
}

.blog-page .post-excerpt {
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.blog-page .post-tags {
  margin-bottom: var(--space-md);
}

.blog-page .tag {
  background: rgba(236, 72, 153, 0.2);
  color: var(--nebula-pink);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: var(--space-xs);
}

.blog-page .read-more-btn,
.post-card .read-more-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  background: var(--nebula-gradient);
  color: var(--text-primary);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  transition: var(--transition-normal);
}

.blog-page .read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.blog-page .categories-section {
  margin-top: var(--space-2xl);
  text-align: center;
}

.blog-page .categories-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-shadow: var(--glow-primary);
}

.blog-page .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.blog-page .category-card {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: var(--space-lg);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.blog-page .category-card:hover {
  transform: translateY(-5px);
  border-color: var(--nebula-purple);
  box-shadow: var(--shadow-glow);
}

.blog-page .category-icon {
		font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.blog-page .category-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.blog-page .category-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.blog-page .no-posts {
  text-align: center;
  padding: var(--space-2xl);
}

.blog-page .no-posts-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.blog-page .no-posts h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.blog-page .no-posts p {
  color: var(--text-secondary);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-header,
  .site-footer {
    background: white;
    border: 1px solid #ccc;
  }
  
  a {
    color: black;
    text-decoration: underline;
	}
}

/* ==========================================================================
   Native Comments
   ========================================================================== */

.comments-area {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
  margin: 0 0 var(--space-2xl);
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: var(--space-lg) 0 0 var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border-subtle);
}

.comment,
.pingback,
.trackback {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-comment);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.comment-body {
  position: relative;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-secondary) 38%, transparent);
}

.comment-author .says {
  color: var(--text-muted);
  font-weight: 400;
}

.comment-metadata,
.comment-awaiting-moderation {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.comment-metadata a {
  color: var(--text-muted);
}

.comment-metadata a:hover,
.comment-metadata a:focus {
  color: var(--accent-secondary);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.75;
}

.comment-content > *:last-child {
  margin-bottom: 0;
}

.comment-awaiting-moderation {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-sm);
  color: #fbbf24;
}

.reply {
  margin-top: var(--space-md);
}

.comment-reply-link,
.comment-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--accent-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.comment-reply-link:hover,
.comment-reply-link:focus,
.comment-edit-link:hover,
.comment-edit-link:focus {
  border-color: var(--accent-primary);
  color: var(--accent-tertiary);
  box-shadow: var(--glow-primary);
}

.comment-respond {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.comment-list .comment-respond {
  margin-top: var(--space-lg);
}

.comment-form {
  display: grid;
  gap: var(--space-md);
}

.comment-form p {
  margin: 0;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comment-form label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--surface-form);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
}

.comment-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form button:focus,
.comment-form .submit:focus,
.comment-reply-link:focus,
.comment-edit-link:focus {
  outline: 2px solid var(--accent-tertiary);
  outline-offset: 2px;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.comment-form-cookies-consent input {
  margin-top: 0.25rem;
}

.form-submit {
  margin-top: var(--space-sm);
}

.comment-form .submit {
  border: 0;
  cursor: pointer;
}

.no-comments {
  padding: var(--space-md);
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.related-posts,
.post-navigation {
  max-width: 960px;
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.related-posts-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-lg);
}

.related-posts-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.related-post-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.related-post-title a {
  color: var(--text-primary);
}

.related-post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: block;
  min-height: 100%;
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
}

.post-navigation a:hover,
.post-navigation a:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.post-navigation .nav-subtitle {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-primary);
  letter-spacing: normal;
}

.post-navigation .nav-title {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .comment,
  .pingback,
  .trackback,
  .comment-respond {
    padding: var(--space-md);
  }

  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .comment-list .children {
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .entry-content table {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   1.6.1 layout, reading, and navigation corrections
   ========================================================================== */

.site,
.site-content,
.content-wrapper,
.content-area,
.entry-content,
.post-card,
.posts-grid,
.site-main,
.sidebar,
.cover-template,
.cover-article {
  min-width: 0;
  max-width: 100%;
}

.site-content,
.site-main,
.content-wrapper {
  overflow-wrap: break-word;
}

/* Sidebar width is owned by .content-wrapper grid (3fr / 1fr). Do not let flex grow compete. */
.sidebar {
  flex: none;
}

.entry-content table,
.entry-content pre,
.entry-content img,
.entry-content figure {
  max-width: 100%;
}

.silastron-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

.silastron-table-scroll table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
}

.entry-content a,
.entry-content code {
  overflow-wrap: break-word;
}

/* Do not force nowrap on cells — that was overflowing the article column. */
.entry-content td,
.entry-content th {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

pre {
  max-width: 100%;
}

@media (min-width: 1181px) {
  .menu-toggle {
    display: none !important;
  }

  .main-navigation,
  .main-navigation:not(.is-open),
  .main-navigation.is-open {
    display: flex;
    position: static;
    order: 0;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    max-height: none;
  }

  .header-search-panel {
    left: auto;
    right: 0.75rem;
    width: min(22rem, calc(100% - 1.5rem));
  }

  .main-navigation ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

/*
 * Pre-JS fallback that forced a wrapped two-row header + open search was removed.
 * Correct compact header is the CSS default; JS only toggles open state.
 */

.hero-positioning {
  max-width: 46rem;
  margin: 0 auto var(--space-lg);
  color: var(--text-primary);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
}

.hero-description {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.topics-section {
  padding: var(--space-2xl) 0;
}

.topics-intro {
  max-width: 42rem;
  margin: calc(var(--space-md) * -1) auto var(--space-xl);
  text-align: center;
  color: var(--text-secondary);
}

.topics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-card a {
  display: block;
  min-height: 44px;
  padding: var(--space-lg);
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
}

.topic-card a:hover,
.topic-card a:focus-visible {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.topic-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
}

.topic-description {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.post-tax {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.post-meta .post-tax {
  margin: 0;
}

.post-tax .category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(107, 70, 193, 0.16);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
}

.footer-main,
.footer-menu,
.footer-social .social-links {
  min-width: 0;
}

.footer-social .social-links {
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-menu {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  }
}

.cover-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 36rem);
  padding: var(--space-2xl) var(--space-lg);
  background-color: var(--galaxy-dark);
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
}

.cover-header.bg-image {
  position: relative;
}

.cover-header.bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--galaxy-deep) 58%, transparent);
}

.cover-header .entry-header {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.cover-scroll {
  display: inline-flex;
  color: inherit;
}

.cover-article .entry-content {
  padding: var(--space-xl) var(--space-lg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* Reading titles use the same system sans as the body. */
.entry-title,
.page-title,
.section-title,
.post-content h2,
.post-content h3,
.post-title,
.topic-title,
.related-post-title,
.feature-card h3,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-primary);
  letter-spacing: 0;
  text-shadow: none;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.entry-title,
.page-title {
  font-size: clamp(1.65rem, 1.2rem + 1.1vw, 2.25rem);
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.5rem, 1.15rem + 0.8vw, 2rem);
}

.post-content h2,
.post-content h3,
.post-card .post-title,
.related-post-title {
  font-family: var(--font-primary);
  font-size: 1.1875rem; /* 19px */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
  margin: 0;
  text-shadow: none;
}

.post-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.4rem;
  min-height: 0;
}

.post-content p,
.post-excerpt,
.post-excerpt p {
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Full title text remains in the DOM for assistive tech; clamp is visual only. */
.post-card .post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-family: var(--font-primary);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}

.post-card .post-excerpt,
.post-card .post-content > p.post-excerpt,
.post-card .post-excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex: 1 1 auto;
}

.post-tax,
.category-tag {
  max-width: 100%;
}

.topics-list {
  align-items: stretch;
}

.topic-card {
  min-width: 0;
}

.topic-card a {
  height: 100%;
}

.hero-title,
.site-title,
.footer-logo {
  font-family: var(--font-heading);
}

/* ==========================================================================
   1.6.1-rc6 layout proportions and contrast
   ========================================================================== */

.hero-content {
  max-width: min(52rem, 100%);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--content-gutter);
}

.hero-section .btn-secondary,
.hero-section a.btn-secondary {
  background: color-mix(in srgb, var(--surface-elevated) 78%, transparent);
  color: var(--text-primary);
  border: 2px solid color-mix(in srgb, var(--text-primary) 62%, transparent);
  text-shadow: none;
}

:root[data-theme="light"] .hero-section .btn-secondary,
:root[data-theme="light"] .hero-section a.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #1F2937;
  border-color: #1F2937;
}

:root[data-theme="light"] .hero-section .btn-secondary:hover,
:root[data-theme="light"] .hero-section a.btn-secondary:hover,
:root[data-theme="light"] .hero-section .btn-secondary:focus-visible,
:root[data-theme="light"] .hero-section a.btn-secondary:focus-visible {
  background: #1F2937;
  color: #FFFFFF;
  border-color: #1F2937;
}

.post-thumbnail {
  max-width: 100%;
}

.entry-content > .alignwide,
.entry-content > .wp-block-table,
.entry-content > .wp-block-image.size-full,
.entry-content > figure {
  max-width: 100%;
}

.entry-header .entry-title {
  max-width: none;
}

.about-content,
.newsletter-content,
.signature-quote {
  max-width: min(48rem, 100%);
}

.home-page .container,
.blog-page .container {
  max-width: min(var(--content-max), 100%);
}

@media (min-width: 1024px) {
  .content-wrapper:has(> .sidebar) {
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  }

  .sidebar {
    width: auto;
    max-width: 300px;
  }
}

@media (max-width: 1023px) {
  .content-wrapper,
  .content-wrapper:has(> .sidebar) {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    max-width: none;
    order: 2;
  }

  .content-area {
    order: 1;
  }
}

/* ==========================================================================
   1.6.1-rc8 header first-paint stability
   ========================================================================== */

.site-header-inner {
  flex-wrap: nowrap;
}

.header-tools {
  flex: 0 0 auto;
}

/* ==========================================================================
   1.6.1-rc7 equal-height article card grid
   ========================================================================== */

.posts-grid,
.blog-page .posts-grid {
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card .post-image {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}

.post-card .post-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.75rem;
}

.post-card .post-meta {
  flex: 0 0 auto;
  min-height: 1.25rem;
}

.post-card .post-title {
  flex: 0 0 auto;
}

.post-card .post-excerpt {
  margin-bottom: 0;
}

.post-card .read-more-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* 1.6.1-rc10: force table wrap inside article column (no horizontal scroll bleed) */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table,
.entry-content .silastron-table-scroll,
.silastron-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: auto;
}

.entry-content table,
.entry-content .wp-block-table table,
.silastron-table-scroll > table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.entry-content th,
.entry-content td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
}
