/* ==========================================================================
   The Fowler Group, LLC — Cybersecurity Analysis & Insight — Ghost Theme v2.0
   Multi-Vertical: Healthcare | Legal | Transportation & Logistics
   Brand Colors: Navy #1C2E3F / Teal #22B0B8
   Aesthetic: Clean/Professional — Corporate Trust
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Navy */
  --navy-900: #0D1B26;
  --navy-800: #142433;
  --navy-700: #1C2E3F;
  --navy-600: #2A4558;
  --navy-500: #3A5A70;
  --navy-400: #5A7A8F;
  --navy-300: #8BA3B5;
  --navy-200: #B8CAD6;
  --navy-100: #DDE6EC;
  --navy-50: #EFF3F6;

  /* Brand Teal */
  --teal-700: #178589;
  --teal-600: #1C9CA1;
  --teal-500: #22B0B8;
  --teal-400: #3DC4CB;
  --teal-300: #6DD6DB;
  --teal-200: #A3E5E8;
  --teal-100: #D4F3F4;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FB;
  --gray-100: #F1F3F6;
  --gray-200: #E2E6EB;
  --gray-300: #CDD3DA;
  --gray-400: #9BA5B1;
  --gray-500: #6B7684;
  --gray-600: #4A5463;
  --gray-700: #343D49;

  /* Status colors */
  --red-600: #B91C1C;
  --red-500: #C53030;
  --red-100: #FEE2E2;
  --amber-600: #B45309;
  --amber-500: #D97706;
  --amber-100: #FEF3C7;
  --green-600: #047857;
  --green-500: #059669;
  --green-100: #D1FAE5;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --purple-600: #7C3AED;
  --purple-100: #EDE9FE;
  --indigo-600: #4F46E5;
  --indigo-100: #E0E7FF;

  /* Typography */
  --font-heading: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --font-ui: 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --wide-width: 960px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13,27,38,0.06);
  --shadow-md: 0 4px 12px rgba(13,27,38,0.08);
  --shadow-lg: 0 8px 30px rgba(13,27,38,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;

  /* ========== THEME SEMANTIC VARIABLES (Light Mode) ========== */
  --theme-bg-primary: var(--white);
  --theme-bg-secondary: var(--gray-50);
  --theme-bg-tertiary: var(--gray-100);
  --theme-bg-header: rgba(255,255,255,0.95);
  --theme-bg-card: var(--white);
  --theme-bg-code: var(--gray-100);
  
  --theme-text-primary: var(--navy-800);
  --theme-text-secondary: var(--navy-600);
  --theme-text-tertiary: var(--navy-500);
  --theme-text-muted: var(--gray-500);
  --theme-text-inverse: var(--white);
  
  --theme-border-primary: var(--gray-200);
  --theme-border-secondary: var(--gray-300);
  
  --theme-link: var(--teal-600);
  --theme-link-hover: var(--teal-700);
  
  --theme-shadow: rgba(13,27,38,0.08);
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --theme-bg-primary: var(--navy-900);
  --theme-bg-secondary: var(--navy-800);
  --theme-bg-tertiary: var(--navy-700);
  --theme-bg-header: rgba(13,27,38,0.95);
  --theme-bg-card: var(--navy-800);
  --theme-bg-code: var(--navy-700);
  
  --theme-text-primary: var(--gray-100);
  --theme-text-secondary: var(--gray-200);
  --theme-text-tertiary: var(--gray-300);
  --theme-text-muted: var(--gray-400);
  --theme-text-inverse: var(--navy-900);
  
  --theme-border-primary: var(--navy-700);
  --theme-border-secondary: var(--navy-600);
  
  --theme-link: var(--teal-400);
  --theme-link-hover: var(--teal-300);
  
  --theme-shadow: rgba(0,0,0,0.3);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--theme-text-primary); background: var(--theme-bg-primary); line-height: 1.7; transition: background-color 0.3s ease, color 0.3s ease; }
a { color: var(--theme-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--theme-link-hover); }
img { max-width: 100%; height: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--theme-text-primary); line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
p { margin-bottom: 1.5rem; }

blockquote {
  border-left: 3px solid var(--teal-500);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--theme-text-secondary);
  font-size: 1.125rem;
}

code { font-family: var(--font-mono); font-size: 0.875em; background: var(--theme-bg-code); padding: 0.15em 0.4em; border-radius: var(--radius-sm); }
pre { background: var(--navy-900); color: var(--gray-200); padding: 1.5rem; border-radius: var(--radius-md); overflow-x: auto; margin: 2rem 0; font-size: 0.875rem; line-height: 1.6; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: none; height: 1px; background: var(--theme-border-primary); margin: 3rem 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.content-width { max-width: var(--content-width); margin: 0 auto; }

/* ================================================================
   SITE HEADER
   ================================================================ */
.site-header {
  background: var(--theme-bg-header);
  border-bottom: 1px solid var(--theme-border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__logo img {
  height: 48px;
  width: auto;
}

.site-header__wordmark {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.site-header__wordmark span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--theme-link);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--theme-text-secondary);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.site-nav a:hover { color: var(--theme-text-primary); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--teal-500);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.site-nav__cta:hover {
  background: var(--teal-700);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.site-nav__signin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--theme-text-primary) !important;
  border: 1.5px solid var(--theme-border-secondary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.site-nav__signin:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-text-muted);
  color: var(--theme-text-primary) !important;
  transform: translateY(-1px);
}

.site-nav__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: var(--theme-text-secondary);
  border: 1.5px solid var(--theme-border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.site-nav__search:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-text-muted);
  color: var(--theme-text-primary);
}

.site-nav__search svg {
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: var(--theme-text-secondary);
  border: 1.5px solid var(--theme-border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-text-muted);
  color: var(--theme-text-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

/* Light mode: show moon icon (to switch to dark) */
:root:not([data-theme="dark"]) .theme-toggle__moon,
html:not([data-theme="dark"]) .theme-toggle__moon {
  display: block;
}

/* Dark mode: show sun icon (to switch to light) */
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--theme-bg-secondary) 0%, var(--theme-bg-primary) 100%);
  border-bottom: 1px solid var(--theme-border-primary);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--teal-100);
  color: var(--teal-700);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.75rem;
  color: var(--theme-text-primary);
  margin-bottom: 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--theme-text-tertiary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  font-family: var(--font-body);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Vertical pills */
.hero__verticals {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__vertical-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--theme-border-primary);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--theme-text-secondary);
  background: var(--theme-bg-card);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.hero__vertical-pill:hover {
  border-color: var(--teal-400);
  color: var(--theme-link);
}

.hero__vertical-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero__vertical-pill--healthcare::before { background: var(--teal-500); }
.hero__vertical-pill--legal::before { background: var(--purple-600); }
.hero__vertical-pill--transportation::before { background: var(--amber-500); }
.hero__vertical-pill--ai-governance::before { background: var(--blue-500); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--teal-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--teal-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,176,184,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--theme-bg-card);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--theme-text-muted);
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
}

/* ================================================================
   POST FEED
   ================================================================ */
.post-feed {
  padding: 4rem 0;
}

.post-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--theme-text-primary);
}

.post-feed__header h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-text-primary);
  font-weight: 700;
}

.post-feed__header span {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
}

/* Tag description on tag pages */
.post-feed__description {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--theme-text-tertiary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ================================================================
   POST CARDS
   ================================================================ */
.post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--theme-border-primary);
}

.post-card:first-child { padding-top: 0; }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.post-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

/* Content type tags */
.tag--flash-advisory { background: var(--red-100); color: var(--red-500); }
.tag--quarterly-report { background: var(--navy-100); color: var(--navy-700); }
.tag--threat-tracker { background: var(--amber-100); color: var(--amber-500); }
.tag--compliance { background: var(--green-100); color: var(--green-500); }
.tag--free { background: var(--teal-100); color: var(--teal-700); }
.tag--predictive { background: var(--indigo-100); color: var(--indigo-600); }

/* Vertical tags */
.tag--healthcare { background: #D4F3F4; color: #178589; }
.tag--legal { background: var(--purple-100); color: var(--purple-600); }
.tag--transportation { background: #FEF3C7; color: #92400E; }
.tag--ai-governance { background: var(--blue-100); color: var(--blue-500); }

.post-card__date {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
}

.post-card__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--theme-link); }

.post-card__excerpt {
  font-size: 1rem;
  color: var(--theme-text-tertiary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 0;
}

.post-card__access {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  margin-top: 0.75rem;
}

.post-card__access svg { width: 12px; height: 12px; }

/* ================================================================
   POST CONTENT (Single post view)
   ================================================================ */
.post-template .post-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--theme-border-primary);
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-header h1 {
  font-size: 2.25rem;
  max-width: var(--content-width);
  margin-bottom: 1rem;
}

.post-header__excerpt {
  font-size: 1.2rem;
  color: var(--theme-text-tertiary);
  max-width: var(--content-width);
  line-height: 1.6;
}

/* Feature Image */
.post-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.post-feature-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-feature-image figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  font-style: italic;
}

.post-content {
  padding: 3rem 0 4rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Post content typography */
.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.post-content a {
  color: var(--theme-link);
  text-decoration: underline;
  text-decoration-color: var(--teal-300);
  text-underline-offset: 2px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.post-content a:hover {
  color: var(--theme-link-hover);
  text-decoration-color: var(--teal-500);
}

.post-content strong {
  font-weight: 600;
  color: var(--theme-text-primary);
}

.post-content em {
  font-style: italic;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--teal-500);
  background: var(--theme-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid var(--theme-border-primary);
}

.post-content pre {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--gray-100);
}

.post-content code {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.875em;
  background: var(--theme-bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--theme-text-primary);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.post-content h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border-primary);
}

.post-content h3 { margin: 2rem 0 0.75rem; }
.post-content h4 { margin: 1.5rem 0 0.5rem; }
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.post-content th {
  font-family: var(--font-ui);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--navy-700);
  color: var(--white);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-content th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.post-content th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--theme-border-primary);
  vertical-align: top;
}

.post-content tr:nth-child(even) td { background: var(--theme-bg-secondary); }

/* Koenig editor width classes */
.post-content .kg-width-wide {
  max-width: var(--wide-width);
  margin-left: calc(50% - var(--wide-width) / 2);
  margin-right: calc(50% - var(--wide-width) / 2);
}

.post-content .kg-width-full {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
  width: 100%;
}

/* Koenig card styles */
.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card {
  margin: 2rem 0;
}

.kg-image-card img {
  border-radius: var(--radius-md);
}

.kg-image-card figcaption,
.kg-gallery-card figcaption,
.kg-embed-card figcaption {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--theme-text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.kg-bookmark-card {
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 1.25rem;
}

.kg-bookmark-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  line-height: 1.3;
}

.kg-bookmark-description {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--theme-text-tertiary);
  margin-top: 0.5rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
}

.kg-bookmark-thumbnail {
  width: 200px;
  min-height: 160px;
  object-fit: cover;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   SUBSCRIPTION BOX
   ================================================================ */
.subscribe-box {
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem auto;
  text-align: center;
  max-width: 1000px;
  transition: background var(--transition), border-color var(--transition);
}

.subscribe-box h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.subscribe-box p { color: var(--theme-text-tertiary); margin-bottom: 1.5rem; font-size: 1rem; }

.subscribe-box .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 0.25rem;
}

.subscribe-box .price-period {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  margin-bottom: 1.5rem;
}

/* Tier cards grid */
.tier-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.tier-grid .tier-card {
  flex: 0 1 260px;
  max-width: 280px;
}

@media (max-width: 640px) {
  .tier-grid .tier-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.tier-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.tier-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

.tier-card__label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.tier-card__label--healthcare { color: var(--teal-700); }
.tier-card__label--legal { color: var(--purple-600); }
.tier-card__label--transportation { color: var(--amber-600); }
.tier-card__label--ai-governance { color: var(--blue-500); }
.tier-card__label--bundle { color: var(--navy-600); }
.tier-card__label--individual { color: var(--teal-700); }
.tier-card__label--org { color: var(--navy-600); }
.tier-card__label--free { color: var(--gray-600); }

.tier-card--free {
  border-style: dashed;
}

.tier-card__cta--free {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
}

.tier-card__cta--free:hover {
  background: var(--theme-border-secondary);
  color: var(--theme-text-primary);
}

.tier-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin-bottom: 0.25rem;
}

.tier-card__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin-bottom: 0.75rem;
}

.tier-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--theme-text-muted);
}

.tier-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tier-card__features li {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--theme-text-tertiary);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.tier-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-500);
  font-weight: 700;
}

.tier-card__cta {
  display: block;
  text-align: center;
  padding: 0.625rem 1rem;
  margin-top: 1rem;
  background: var(--teal-500);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition);
}

.tier-card__cta:hover { background: var(--teal-700); color: var(--white); }

.tier-card__note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.tier-card--bundle { border-color: var(--navy-200); background: var(--navy-50); }
.tier-card--bundle:hover { border-color: var(--navy-400); }

.tier-card--featured {
  border-color: var(--teal-300);
  background: linear-gradient(to bottom, var(--white), var(--teal-50));
}

.tier-card--featured:hover {
  border-color: var(--teal-500);
}

/* ================================================================
   SEVERITY INDICATORS (for threat tracker content)
   ================================================================ */
.severity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.severity--critical { background: #FEE2E2; color: #C53030; }
.severity--high { background: #FEF3C7; color: #D97706; }
.severity--elevated { background: #DBEAFE; color: #2563EB; }
.severity--watch { background: var(--gray-100); color: var(--gray-600); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy-800);
  color: var(--navy-200);
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.site-footer__brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.3);
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-100);
  margin-bottom: 0.75rem;
}

.site-footer__brand p {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--navy-300);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 0;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-400);
  margin-bottom: 1rem;
}

.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: 0.5rem; }
.site-footer__links a { font-family: var(--font-ui); font-size: 0.875rem; color: var(--navy-300); }
.site-footer__links a:hover { color: var(--white); }

.site-footer__bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--navy-600);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--navy-400);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0;
  font-family: var(--font-ui);
}

.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.pagination a:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
}

/* ================================================================
   PRODUCT NAVIGATION (for vertical landing pages)
   ================================================================ */
.product-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.product-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.product-nav__item:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-nav__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.product-nav__label {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-700);
}

.product-nav__badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  padding: 0.15rem 0.5rem;
  background: var(--teal-500);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
}

.product-nav__badge--subscriber {
  background: #4F46E5;
}

.product-nav__item--predictive:hover {
  border-color: #4F46E5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* ================================================================
   GHOST PORTAL OVERRIDES
   ================================================================ */
.gh-portal-btn { background: var(--teal-500) !important; }
.gh-portal-btn:hover { background: var(--teal-700) !important; }

/* ================================================================
   GUIDED TOUR
   ================================================================ */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  pointer-events: none;
}

.tour-overlay__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.tour-highlight {
  position: relative;
  z-index: 9999;
  box-shadow: 0 0 0 4px var(--teal-500), 0 0 0 8px rgba(34, 176, 184, 0.3);
  border-radius: var(--radius-sm);
}

.tour-tooltip {
  position: absolute;
  z-index: 10000;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.tour-tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tooltip arrows */
.tour-tooltip--arrow-top::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: var(--white);
  border-top: 0;
}

.tour-tooltip--arrow-bottom::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
}

.tour-tooltip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0;
}

.tour-tooltip__progress {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tour-tooltip__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tour-tooltip__close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.tour-tooltip__title {
  margin: 0;
  padding: 0.5rem 1rem 0.25rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
}

.tour-tooltip__content {
  margin: 0;
  padding: 0 1rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.tour-tooltip__content kbd {
  display: inline-block;
  padding: 0.15em 0.4em;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8em;
}

.tour-tooltip__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.tour-tooltip__btn {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--navy-700);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.tour-tooltip__btn:hover {
  background: var(--gray-200);
}

.tour-tooltip__btn--primary {
  background: var(--teal-500);
  color: var(--white);
}

.tour-tooltip__btn--primary:hover {
  background: var(--teal-600);
}

/* ================================================================
   HELP PAGE
   ================================================================ */
.help-page {
  padding: 3rem 0 5rem;
}

.help-page__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.help-page__header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.75rem;
}

.help-page__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.help-page__tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--teal-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.help-page__tour-btn:hover {
  background: var(--teal-600);
  transform: translateY(-1px);
}

.help-page__content {
  max-width: 800px;
  margin: 0 auto;
}

.help-section {
  margin-bottom: 3rem;
}

.help-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

.help-section h2 svg {
  color: var(--teal-500);
}

.help-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.help-card h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  margin: 0 0 0.75rem;
}

.help-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0 0 0.75rem;
}

.help-card p:last-child {
  margin-bottom: 0;
}

.help-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.help-card li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.help-card li:last-child {
  margin-bottom: 0;
}

.help-card kbd {
  display: inline-block;
  padding: 0.15em 0.5em;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--navy-700);
}

.help-card__tip {
  background: var(--teal-100);
  border-left: 3px solid var(--teal-500);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--navy-700);
}

.help-card a {
  color: var(--teal-600);
  font-weight: 500;
}

.help-card a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.help-table th,
.help-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.help-table th {
  font-weight: 600;
  color: var(--navy-700);
  background: var(--gray-50);
}

.help-table td {
  color: var(--gray-700);
}

.help-table--shortcuts td:first-child {
  font-weight: 500;
  color: var(--navy-700);
}

.help-table--shortcuts kbd {
  display: inline-block;
  padding: 0.2em 0.5em;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8em;
}

/* Help page responsive */
@media (max-width: 640px) {
  .help-page__header h1 {
    font-size: 1.875rem;
  }
  
  .help-card {
    padding: 1.25rem;
  }
  
  .help-table th,
  .help-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .site-header .container { height: 60px; }
  .site-header__logo img { height: 36px; }
  .site-header__wordmark { display: none; }
  .site-nav { gap: 0.75rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav a:not(.site-nav__cta):not(.site-nav__signin):not(.site-nav__search) { display: none; }
  .site-nav__signin { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
  .site-nav__search { width: 36px; height: 36px; }
  .site-nav__search svg { width: 18px; height: 18px; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.875rem; }
  .hero__subtitle { font-size: 1.05rem; }
  .post-card__title { font-size: 1.2rem; }
  .post-header h1 { font-size: 1.75rem; }
  .post-feature-image { padding: 1.5rem 1rem; }
  .post-content { padding: 2rem 0 3rem; }
  .post-content blockquote { padding: 1rem 1.25rem; margin: 1.5rem 0; }
  .site-footer .container { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .subscribe-box { padding: 1.75rem; }
  .subscribe-box .price { font-size: 2rem; }
  .tier-grid { grid-template-columns: 1fr; }
  .product-nav { grid-template-columns: repeat(2, 1fr); padding: 1rem; gap: 0.5rem; }
  .product-nav__item { padding: 0.75rem 0.5rem; }
  .product-nav__icon { font-size: 1.25rem; }
  .product-nav__label { font-size: 0.75rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero__verticals { flex-direction: column; align-items: center; }
}

/* ==========================================================================
   News Ticker
   ========================================================================== */

.news-ticker {
  display: flex;
  align-items: stretch;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-700);
  border-bottom: 1px solid var(--navy-700);
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  min-height: 42px;
}

.news-ticker__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--red-500);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
}

.news-ticker__label svg {
  animation: pulse 1.5s ease-in-out infinite;
}

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

.news-ticker__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.news-ticker__content {
  display: inline-flex;
  gap: 3rem;
  padding: 0.65rem 0;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
}

.news-ticker__content:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-300);
  transition: color var(--transition);
}

.news-ticker__item:hover {
  color: var(--teal-400);
}

.news-ticker__source {
  color: var(--teal-500);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-ticker__headline {
  color: inherit;
}

.news-ticker__separator {
  color: var(--navy-600);
}

.news-ticker__loading {
  color: var(--gray-500);
  font-style: italic;
}

.news-ticker--hidden {
  display: none;
}

/* ==========================================================================
   Content Ticker - Latest Analysis
   ========================================================================== */

.content-ticker {
  display: flex;
  align-items: stretch;
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-700);
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  min-height: 42px;
}

.content-ticker__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--teal-600);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
}

.content-ticker__label svg {
  opacity: 0.9;
}

.content-ticker__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.content-ticker__content {
  display: inline-flex;
  gap: 2rem;
  padding: 0.65rem 0;
  animation: content-ticker-scroll 80s linear infinite;
  white-space: nowrap;
}

.content-ticker__content:hover {
  animation-play-state: paused;
}

@keyframes content-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.content-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray-300);
  transition: color var(--transition);
}

.content-ticker__item:hover {
  color: var(--white);
}

.content-ticker__item:hover .content-ticker__pill {
  filter: brightness(1.15);
}

.content-ticker__pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: filter var(--transition);
}

.content-ticker__pill--healthcare {
  background: var(--teal-600);
  color: var(--white);
}

.content-ticker__pill--legal {
  background: #7C3AED;
  color: var(--white);
}

.content-ticker__pill--ai {
  background: #4F46E5;
  color: var(--white);
}

.content-ticker__pill--transportation {
  background: #D97706;
  color: var(--white);
}

.content-ticker__title {
  color: inherit;
}

.content-ticker__separator {
  color: var(--navy-600);
}

/* Responsive content ticker */
@media (max-width: 768px) {
  .content-ticker__label {
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
  }
  
  .content-ticker__content {
    font-size: 0.8rem;
  }
  
  .content-ticker__pill {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .content-ticker__label span {
    display: none;
  }
  
  .content-ticker__label {
    padding: 0.5rem;
  }
}

/* Responsive ticker */
@media (max-width: 768px) {
  .news-ticker__label {
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
  }
  
  .news-ticker__content {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .news-ticker__label span {
    display: none;
  }
  
  .news-ticker__label {
    padding: 0.5rem;
  }
}

/* ================================================================
   POST ACTIONS (Print button, etc.)
   ================================================================ */
.post-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.post-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--navy-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.post-actions__btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  color: var(--navy-800);
}

.post-actions__btn svg {
  flex-shrink: 0;
}

.post-actions__btn--pdf {
  background: var(--teal-50);
  border-color: var(--teal-200);
  color: var(--teal-700);
}

.post-actions__btn--pdf:hover {
  background: var(--teal-100);
  border-color: var(--teal-400);
  color: var(--teal-800);
}

.post-actions__btn--pdf:disabled {
  cursor: wait;
}

@media (max-width: 480px) {
  .post-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-actions__btn {
    justify-content: center;
  }
}

/* ================================================================
   ARTICLE SEARCH (Find in Article)
   ================================================================ */
.article-search {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.article-search__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-search__input-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.article-search__icon {
  position: absolute;
  left: 0.75rem;
  color: var(--gray-400);
  pointer-events: none;
}

.article-search__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--navy-800);
  transition: all var(--transition);
}

.article-search__input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(34, 176, 184, 0.15);
}

.article-search__input::placeholder {
  color: var(--gray-400);
}

.article-search__results {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: nowrap;
  min-width: 70px;
  text-align: center;
}

.article-search__results--none {
  color: var(--red-500);
}

.article-search__nav {
  display: flex;
  gap: 0.25rem;
}

.article-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--white);
  color: var(--navy-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.article-search__btn:hover:not(:disabled) {
  background: var(--gray-100);
  border-color: var(--navy-400);
  color: var(--navy-800);
}

.article-search__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.article-search__btn--close {
  background: transparent;
  border-color: transparent;
  color: var(--gray-500);
}

.article-search__btn--close:hover {
  background: var(--gray-200);
  color: var(--navy-700);
}

/* Highlight styles */
.article-search__highlight {
  background: #FEFCBF;
  color: inherit;
  padding: 0.1em 0.15em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(214, 158, 46, 0.3);
}

.article-search__highlight--current {
  background: #F6E05E;
  box-shadow: 0 0 0 2px var(--teal-500);
}

/* Responsive */
@media (max-width: 480px) {
  .article-search__inner {
    gap: 0.5rem;
  }
  
  .article-search__input-wrap {
    min-width: 100%;
    order: 1;
  }
  
  .article-search__results {
    order: 2;
    min-width: auto;
  }
  
  .article-search__nav {
    order: 3;
  }
  
  .article-search__btn--close {
    order: 4;
  }
}

/* Hide in print */
@media print {
  .article-search {
    display: none !important;
  }
  
  .article-search__highlight {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ================================================================
   POST NAVIGATION (Previous / Menu / Next)
   ================================================================ */
.post-nav {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
}

.post-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.post-nav__item {
  flex: 1;
  min-width: 0;
}

.post-nav__item--prev {
  text-align: left;
}

.post-nav__item--menu {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy-700);
  transition: all 0.2s ease;
  height: 100%;
}

.post-nav__link:hover {
  background: var(--gray-50);
  color: var(--teal-600);
}

.post-nav__direction {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.post-nav__link:hover .post-nav__direction {
  color: var(--teal-600);
}

.post-nav__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav__link:hover .post-nav__title {
  color: var(--teal-700);
}

.post-nav__item--next .post-nav__link {
  align-items: flex-end;
}

.post-nav__item--next .post-nav__direction {
  justify-content: flex-end;
}

.post-nav__menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  background: var(--navy-700);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.post-nav__menu-btn:hover {
  background: var(--teal-600);
  transform: translateY(-1px);
}

.post-nav__menu-btn svg {
  opacity: 0.9;
}

/* Responsive: Stack on mobile */
@media (max-width: 640px) {
  .post-nav__inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .post-nav__item--prev,
  .post-nav__item--next {
    text-align: left;
  }
  
  .post-nav__item--next .post-nav__link {
    align-items: flex-start;
  }
  
  .post-nav__item--next .post-nav__direction {
    justify-content: flex-start;
  }
  
  .post-nav__item--menu {
    order: -1;
    margin-bottom: 0.5rem;
  }
  
  .post-nav__menu-btn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}

/* Hide in print */
@media print {
  .post-nav {
    display: none !important;
  }
}

/* ================================================================
   CALENDAR EVENTS (Add to Calendar functionality)
   ================================================================ */
.calendar-event {
  background: linear-gradient(to right, var(--teal-50), var(--white));
  border: 1px solid var(--teal-200);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.calendar-event--action {
  border-left-color: var(--red-500);
  background: linear-gradient(to right, #FEF2F2, var(--white));
  border-color: #FECACA;
}

.calendar-event__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.calendar-event__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-700);
}

.calendar-event--action .calendar-event__date {
  color: var(--red-600);
}

.calendar-event__date svg {
  flex-shrink: 0;
}

.calendar-event__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-800);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.calendar-event__description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy-600);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.calendar-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calendar-event__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--white);
  color: var(--navy-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.calendar-event__btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.calendar-event__btn svg {
  width: 14px;
  height: 14px;
}

/* Roles affected badge */
.calendar-event__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--gray-300);
}

.calendar-event__role {
  padding: 0.2rem 0.5rem;
  background: var(--navy-100);
  color: var(--navy-600);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Mobile calendar events */
@media (max-width: 640px) {
  .calendar-event__header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .calendar-event__actions {
    width: 100%;
  }
  
  .calendar-event__btn {
    flex: 1;
    justify-content: center;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  /* Reset page */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  @page {
    margin: 0.6in 0.75in;
    size: letter;
  }
  
  body {
    font-size: 10.5pt;
    line-height: 1.5;
    color: #000 !important;
    background: #fff !important;
  }
  
  /* Hide non-essential elements */
  .site-header,
  .site-footer,
  .site-nav,
  .news-ticker,
  .hero,
  .subscribe-box,
  .post-actions,
  .calendar-event__actions,
  .pagination,
  .gh-portal-triggerable-element,
  [data-portal],
  .btn-primary,
  .btn-secondary,
  #ghost-portal-root,
  .post-feature-image {
    display: none !important;
  }
  
  /* Article container */
  .post-template {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Remove pseudo-elements that cause duplication */
  .post-template::before,
  .post-template::after {
    display: none !important;
    content: none !important;
  }
  
  .container,
  .content-width {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Post header - clean and professional */
  .post-header {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
    border-bottom: none !important;
  }
  
  .post-header__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .post-header h1 {
    font-size: 18pt !important;
    color: #000 !important;
    margin: 0 0 0.5rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #1C2E3F !important;
    line-height: 1.25;
  }
  
  .post-card__tag {
    background: #e8e8e8 !important;
    color: #333 !important;
    border: none !important;
    font-size: 7.5pt !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 2px !important;
  }
  
  .post-card__date {
    font-size: 8.5pt !important;
    color: #555 !important;
  }
  
  /* Post content */
  .post-content {
    padding: 0 !important;
  }
  
  .post-content h2 {
    font-size: 14pt !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 1.25rem 0 0.6rem 0 !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 1px solid #ccc !important;
    page-break-after: avoid;
  }
  
  .post-content h3 {
    font-size: 12pt !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 1rem 0 0.5rem 0 !important;
    page-break-after: avoid;
  }
  
  .post-content h4 {
    font-size: 10.5pt !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0.75rem 0 0.35rem 0 !important;
    page-break-after: avoid;
  }
  
  .post-content p {
    font-size: 10.5pt !important;
    line-height: 1.55 !important;
    margin-bottom: 0.6rem !important;
    orphans: 3;
    widows: 3;
  }
  
  .post-content a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  
  /* Don't show URLs - too cluttered for most use cases */
  .post-content a[href^="http"]:after {
    content: none !important;
  }
  
  /* Tables - critical for threat tracker content */
  .post-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt !important;
    margin: 0.75rem 0 !important;
    page-break-inside: avoid;
  }
  
  .post-content th,
  .post-content td {
    border: 0.5pt solid #666 !important;
    padding: 0.25rem 0.4rem !important;
    text-align: left !important;
    vertical-align: top !important;
  }
  
  .post-content th {
    background: #e8e8e8 !important;
    font-weight: 600 !important;
    font-size: 8pt !important;
  }
  
  .post-content tr:nth-child(even) td {
    background: #f8f8f8 !important;
  }
  
  /* Make first column (usually attribute name) slightly bolder */
  .post-content td:first-child {
    font-weight: 500 !important;
  }
  
  /* Lists */
  .post-content ul,
  .post-content ol {
    margin: 0.5rem 0 !important;
    padding-left: 1.25rem !important;
  }
  
  .post-content li {
    margin-bottom: 0.25rem !important;
    font-size: 10.5pt !important;
  }
  
  /* Blockquotes */
  .post-content blockquote {
    border-left: 3pt solid #999 !important;
    background: #f5f5f5 !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0.75rem 0 !important;
    font-style: italic;
    page-break-inside: avoid;
  }
  
  /* Code blocks */
  .post-content pre {
    background: #f0f0f0 !important;
    border: 0.5pt solid #ccc !important;
    padding: 0.5rem !important;
    font-size: 8pt !important;
    overflow-x: visible !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    page-break-inside: avoid;
  }
  
  .post-content code {
    background: #eee !important;
    color: #000 !important;
    font-size: 8.5pt !important;
    padding: 0.05rem 0.2rem !important;
  }
  
  /* Calendar events for print */
  .calendar-event {
    background: #f5f5f5 !important;
    border: 0.5pt solid #bbb !important;
    border-left: 3pt solid #666 !important;
    page-break-inside: avoid;
    margin: 0.75rem 0 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0 !important;
  }
  
  .calendar-event--action {
    border-left-color: #c00 !important;
  }
  
  .calendar-event__date {
    font-size: 9pt !important;
  }
  
  .calendar-event__title {
    font-size: 10.5pt !important;
    margin-bottom: 0.25rem !important;
  }
  
  .calendar-event__description {
    font-size: 9.5pt !important;
    margin-bottom: 0.35rem !important;
  }
  
  .calendar-event__roles {
    border-top: 0.5pt dashed #bbb !important;
    padding-top: 0.35rem !important;
    margin-top: 0.35rem !important;
  }
  
  .calendar-event__role {
    font-size: 7.5pt !important;
    background: #e0e0e0 !important;
    padding: 0.1rem 0.35rem !important;
  }
  
  /* Severity indicators */
  .severity {
    border: 0.5pt solid #999 !important;
    background: #eee !important;
    color: #333 !important;
    font-size: 7pt !important;
    padding: 0.1rem 0.35rem !important;
  }
  
  /* Horizontal rules */
  .post-content hr {
    border: none !important;
    border-top: 0.5pt solid #aaa !important;
    margin: 1rem 0 !important;
  }
  
  /* Images in content */
  .post-content img {
    max-width: 100% !important;
    max-height: 3in !important;
    height: auto !important;
    page-break-inside: avoid;
  }
  
  /* Figure captions */
  .post-content figcaption {
    font-size: 8pt !important;
    color: #666 !important;
    font-style: italic !important;
  }
}

/* ================================================================
   AI CHAT ASSISTANT WIDGET
   ================================================================ */
#ai-assistant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  font-family: var(--font-ui);
}

/* Toggle Button */
.ai-chat__toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 176, 184, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat__toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(34, 176, 184, 0.5), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ai-chat__toggle-icon--close {
  display: none;
}

.ai-chat--open .ai-chat__toggle-icon--chat {
  display: none;
}

.ai-chat--open .ai-chat__toggle-icon--close {
  display: block;
}

.ai-chat__toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 6px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* Chat Panel */
.ai-chat__panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.25s ease;
  overflow: hidden;
}

.ai-chat--open .ai-chat__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--navy-800);
  color: var(--white);
}

.ai-chat__header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ai-chat__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--white);
  opacity: 0.7;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.ai-chat__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Sector Filter */
.ai-chat__sector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.ai-chat__sector-select {
  flex: 1;
  padding: 0.35rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--navy-700);
  cursor: pointer;
}

.ai-chat__sector-select:focus {
  outline: none;
  border-color: var(--teal-500);
}

/* Messages */
.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-chat__message {
  display: flex;
  gap: 0.5rem;
  max-width: 90%;
}

.ai-chat__message--user {
  align-self: flex-end;
}

.ai-chat__message--assistant {
  align-self: flex-start;
}

.ai-chat__message-content {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ai-chat__message--user .ai-chat__message-content {
  background: var(--teal-500);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.ai-chat__message--assistant .ai-chat__message-content {
  background: var(--gray-100);
  color: var(--navy-800);
  border-bottom-left-radius: 4px;
}

.ai-chat__message-content p {
  margin: 0 0 0.5rem;
}

.ai-chat__message-content p:last-child {
  margin-bottom: 0;
}

.ai-chat__message-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Loading animation */
.ai-chat__typing {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0;
}

.ai-chat__typing span {
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.ai-chat__typing span:nth-child(1) { animation-delay: 0s; }
.ai-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Input Area */
.ai-chat__input-area {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.ai-chat__input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.ai-chat__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.4;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color var(--transition);
}

.ai-chat__input:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}

.ai-chat__input::placeholder {
  color: var(--gray-400);
}

.ai-chat__send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.ai-chat__send:hover:not(:disabled) {
  background: var(--teal-600);
}

.ai-chat__send:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

.ai-chat__disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-align: center;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #ai-assistant-widget {
    bottom: 16px;
    right: 16px;
  }

  .ai-chat__toggle {
    width: 52px;
    height: 52px;
  }

  .ai-chat__panel {
    bottom: 64px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
  }
}

/* Hide in print */
@media print {
  #ai-assistant-widget {
    display: none !important;
  }
}

/* ==========================================================================
   NEWS PAGE
   ========================================================================== */
.news-page {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.news-page__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-page__header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.news-page__description {
  font-size: 1.1rem;
  color: var(--theme-text-tertiary);
  max-width: 600px;
  margin: 0 auto;
}

.news-page__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--theme-border-primary);
}

.news-page__search-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.news-page__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.news-page__search svg {
  position: absolute;
  left: 0.875rem;
  color: var(--theme-text-muted);
  pointer-events: none;
}

.news-page__search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.75rem;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--theme-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.news-page__search input::placeholder {
  color: var(--theme-text-muted);
}

.news-page__search input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(34, 176, 184, 0.15);
}

.news-search-clear {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--theme-text-muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}

.news-search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.news-search-clear:hover {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
}

.news-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  flex: 1 1 100%;
}

.news-filter {
  padding: 0.4rem 0.875rem;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.news-filter:hover {
  border-color: var(--theme-link);
  color: var(--theme-link);
}

.news-filter.active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.news-page__refresh {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-page__refresh .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-page__last-updated {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

.news-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.news-page__loading,
.news-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--theme-text-muted);
}

.news-page__spinner {
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* News Cards */
.news-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

.news-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.news-card__source {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  border-radius: 3px;
}

.news-card__time {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

.news-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.news-card__title a {
  color: var(--theme-text-primary);
  transition: color var(--transition);
}

.news-card__title a:hover {
  color: var(--theme-link);
}

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--theme-text-tertiary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--theme-link);
  margin-top: auto;
}

.news-card__link:hover {
  color: var(--theme-link-hover);
}

/* News Sources Section */
.news-page__sources {
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.news-page__sources h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.news-page__sources > p {
  color: var(--theme-text-tertiary);
  margin-bottom: 1.25rem;
}

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

.news-page__sources li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--theme-text-secondary);
  border-bottom: 1px solid var(--theme-border-primary);
}

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

.news-page__sources li strong {
  color: var(--theme-text-primary);
}

/* News Page Gate (non-members) */
.news-page__gate {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 3rem 1.5rem;
}

.news-page__gate-content {
  text-align: center;
  max-width: 480px;
}

.news-page__gate-content svg {
  color: var(--teal-500);
  margin-bottom: 1.5rem;
}

.news-page__gate-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin: 0 0 1rem 0;
}

.news-page__gate-content > p {
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.news-page__gate-content .btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--teal-500);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.news-page__gate-content .btn-primary:hover {
  background: var(--teal-600);
}

.news-page__gate-signin {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}

.news-page__gate-signin a {
  color: var(--teal-500);
  text-decoration: none;
}

.news-page__gate-signin a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .news-page__controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .news-page__filters {
    justify-content: center;
  }
  
  .news-page__refresh {
    justify-content: center;
  }
  
  .news-page__search {
    max-width: none;
  }
  
  .news-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-filter {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
}

/* ==========================================================================
   VULNERABILITY TRACKING PAGE
   ========================================================================== */

.vuln-page {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.vuln-page__header {
  text-align: center;
  margin-bottom: 2rem;
}

.vuln-page__header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.vuln-page__description {
  font-size: 1.1rem;
  color: var(--theme-text-tertiary);
  max-width: 700px;
  margin: 0 auto;
}

/* Stats Banner */
.vuln-page__stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-lg);
}

.vuln-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--theme-border-primary);
}

.vuln-stat:last-child {
  border-right: none;
}

.vuln-stat__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  line-height: 1.2;
}

.vuln-stat--critical .vuln-stat__value {
  color: #DC2626;
}

.vuln-stat--high .vuln-stat__value {
  color: #F97316;
}

.vuln-stat--kev .vuln-stat__value {
  color: #C53030;
}

.vuln-stat__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

/* Controls Area */
.vuln-page__controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--theme-border-primary);
}

.vuln-page__severity-filters,
.vuln-page__source-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Severity Filters */
.severity-filter {
  padding: 0.4rem 0.875rem;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.severity-filter:hover {
  border-color: var(--theme-link);
  color: var(--theme-link);
}

.severity-filter.active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.severity-filter--critical.active {
  background: #DC2626;
  border-color: #DC2626;
}

.severity-filter--high.active {
  background: #F97316;
  border-color: #F97316;
}

.severity-filter--medium.active {
  background: #EAB308;
  border-color: #EAB308;
  color: #1a1a1a;
}

.severity-filter--low.active {
  background: #22C55E;
  border-color: #22C55E;
}

/* Source Filters */
.source-filter {
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: var(--theme-text-tertiary);
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.source-filter:hover {
  color: var(--theme-text-primary);
  background: var(--theme-bg-secondary);
}

.source-filter.active {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
  border-color: var(--theme-border-primary);
}

/* Toolbar */
.vuln-page__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vuln-page__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 450px;
}

.vuln-page__search svg {
  position: absolute;
  left: 0.875rem;
  color: var(--theme-text-muted);
  pointer-events: none;
}

.vuln-page__search input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.75rem;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--theme-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vuln-page__search input::placeholder {
  color: var(--theme-text-muted);
}

.vuln-page__search input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(34, 176, 184, 0.15);
}

.vuln-search-clear {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--theme-text-muted);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}

.vuln-search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.vuln-search-clear:hover {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
}

.vuln-page__refresh {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vuln-page__refresh .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vuln-page__last-updated {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--theme-text-muted);
}

/* Vulnerability Grid */
.vuln-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.vuln-page__loading,
.vuln-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--theme-text-muted);
}

.vuln-page__spinner {
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

/* Vulnerability Cards */
.vuln-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.vuln-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

.vuln-card--healthcare {
  border-left: 3px solid #178589;
}

.vuln-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.vuln-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.vuln-card__severity {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  border-radius: 3px;
}

.vuln-card__severity--critical {
  background: #DC2626;
}

.vuln-card__severity--high {
  background: #F97316;
}

.vuln-card__severity--medium {
  background: #EAB308;
  color: #1a1a1a;
}

.vuln-card__severity--low {
  background: #22C55E;
}

.vuln-card__severity--unknown {
  background: #6B7280;
}

.vuln-card__source {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  border-radius: 3px;
}

.vuln-card__time {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--theme-text-muted);
  white-space: nowrap;
}

/* CVE Badges */
.vuln-card__cves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.vuln-card__cve {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--theme-bg-tertiary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--teal-500);
  text-decoration: none;
  transition: all var(--transition);
}

.vuln-card__cve:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.vuln-card__cve-more {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--theme-text-muted);
}

.vuln-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.vuln-card__title a {
  color: var(--theme-text-primary);
  transition: color var(--transition);
}

.vuln-card__title a:hover {
  color: var(--theme-link);
}

.vuln-card__excerpt {
  font-size: 0.8125rem;
  color: var(--theme-text-tertiary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.vuln-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-border-primary);
}

.vuln-card__flags {
  display: flex;
  gap: 0.5rem;
}

.vuln-card__healthcare,
.vuln-card__kev {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--theme-bg-tertiary);
}

.vuln-card__healthcare {
  color: #178589;
}

.vuln-card__kev {
  color: #C53030;
}

.vuln-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--theme-link);
}

.vuln-card__link:hover {
  color: var(--theme-link-hover);
}

/* Sources Section */
.vuln-page__sources {
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.vuln-page__sources h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.vuln-page__sources > p {
  color: var(--theme-text-tertiary);
  margin-bottom: 1.25rem;
}

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

.vuln-page__sources li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--theme-text-secondary);
  border-bottom: 1px solid var(--theme-border-primary);
}

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

.vuln-page__sources li strong {
  color: var(--theme-text-primary);
}

/* Healthcare Note */
.vuln-page__note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(23, 133, 137, 0.1);
  border: 1px solid rgba(23, 133, 137, 0.3);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.vuln-page__note svg {
  flex-shrink: 0;
  color: #178589;
  margin-top: 0.1rem;
}

.vuln-page__note p {
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.vuln-page__note strong {
  color: #178589;
}

/* Gate (non-members) */
.vuln-page__gate {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 3rem 1.5rem;
}

.vuln-page__gate-content {
  text-align: center;
  max-width: 480px;
}

.vuln-page__gate-content svg {
  color: var(--teal-500);
  margin-bottom: 1.5rem;
}

.vuln-page__gate-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--theme-text-primary);
  margin: 0 0 1rem 0;
}

.vuln-page__gate-content > p {
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.vuln-page__gate-content .btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--teal-500);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.vuln-page__gate-content .btn-primary:hover {
  background: var(--teal-600);
}

.vuln-page__gate-signin {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}

.vuln-page__gate-signin a {
  color: var(--teal-500);
  text-decoration: none;
}

.vuln-page__gate-signin a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .vuln-page__stats {
    gap: 1rem;
    padding: 1rem;
  }
  
  .vuln-stat {
    padding: 0 1rem;
  }
  
  .vuln-stat__value {
    font-size: 1.5rem;
  }
  
  .vuln-page__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .vuln-page__search {
    max-width: none;
  }
  
  .vuln-page__refresh {
    justify-content: center;
  }
  
  .vuln-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vuln-page__stats {
    flex-direction: column;
    gap: 0;
  }
  
  .vuln-stat {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    border-right: none;
    border-bottom: 1px solid var(--theme-border-primary);
  }
  
  .vuln-stat:last-child {
    border-bottom: none;
  }
  
  .vuln-stat__value {
    order: 2;
    font-size: 1.25rem;
  }
  
  .vuln-stat__label {
    order: 1;
    margin-top: 0;
  }
  
  .severity-filter,
  .source-filter {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .vuln-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Sort Dropdown Styles - News and Vulnerabilities Pages
   ========================================================================== */

.news-page__actions,
.vuln-page__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Center the actions on news page specifically */
.news-page__actions {
  justify-content: center;
  flex: 1 1 100%;
}

.news-page__sort,
.vuln-page__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.sort-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--theme-bg-secondary);
  color: var(--theme-text-primary);
  border: 1px solid var(--theme-border-primary);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sort-select:hover {
  border-color: var(--theme-link);
}

.sort-select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 2px rgba(34, 176, 184, 0.2);
}

.sort-select option {
  background: var(--theme-bg-primary);
  color: var(--theme-text-primary);
}

/* Dark mode adjustments for sort select arrow */
[data-theme="dark"] .sort-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-page__actions,
  .vuln-page__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .news-page__sort,
  .vuln-page__sort {
    justify-content: center;
  }
  
  .sort-select {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .sort-label {
    font-size: 0.8rem;
  }
  
  .sort-select {
    font-size: 0.8rem;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
  }
}
