/* ==========================================================================
   DEVV.IN — The Architectural & Scientific Dispatch
   Engineered for Durgesh Sharma (Dev) • Est. 2024
   Crafted with 20-Year Veteran Software Architecture & Editorial Typography Standards
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Editorial Light Palette (Default — Crisp, Authoritative, High-Contrast) */
  --bg-page: #fcfcfd;
  --bg-paper: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  
  --border-hairline: #edf2f7;
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  
  --text-ink: #090d16;          /* Deepest contrast headline ink */
  --text-primary: #1e293b;      /* Primary body text */
  --text-secondary: #475569;    /* Subheadings, captions */
  --text-muted: #64748b;        /* Metadata, timestamps */
  --text-faint: #94a3b8;        /* Subtle placeholders */
  
  /* Authoritative Editorial Accents */
  --accent-ink: #0f172a;
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-blue-subtle: #eff6ff;
  --accent-indigo: #4338ca;
  --accent-emerald: #065f46;
  --accent-emerald-subtle: #ecfdf5;
  --accent-amber: #92400e;
  --accent-amber-subtle: #fffbeb;
  --accent-purple: #5b21b6;
  --accent-purple-subtle: #f5f3ff;
  --accent-rose: #9f1239;
  --accent-rose-subtle: #fff1f2;

  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 16px 32px -8px rgba(15, 23, 42, 0.12);

  --container-max: 1320px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optional Dark Theme for users who click the toggle */
[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-paper: #111827;
  --bg-subtle: #182234;
  --bg-card: #111827;
  --bg-hover: #1f293d;
  
  --border-hairline: #1e293b;
  --border-subtle: #27354a;
  --border-medium: #334155;
  --border-strong: #475569;
  
  --text-ink: #f8fafc;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  
  --accent-ink: #e2e8f0;
  --accent-blue: #60a5fa;
  --accent-blue-hover: #93c5fd;
  --accent-blue-subtle: rgba(59, 130, 246, 0.12);
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
  --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-subtle: rgba(245, 158, 11, 0.12);
  --accent-purple: #c084fc;
  --accent-purple-subtle: rgba(168, 85, 247, 0.12);
  --accent-rose: #f43f5e;
  --accent-rose-subtle: rgba(244, 63, 94, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 16px 32px -8px rgba(0, 0, 0, 0.7);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   Editorial Masthead & Header
   ========================================================================== */
.top-notice-bar {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 8px 0;
  letter-spacing: 0.02em;
}

.top-notice-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-notice-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-issn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-weight: 600;
}

.live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-notice-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-ink);
  border-color: var(--border-medium);
}

/* Main Masthead Banner */
.masthead {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
  padding: 28px 0 22px 0;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead-brand {
  display: flex;
  flex-direction: column;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-ink);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.masthead-title .domain-tld {
  color: var(--accent-blue);
  font-weight: 700;
}

.masthead-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.masthead-meta-box {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
}

.masthead-curator {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.masthead-curator strong {
  color: var(--text-ink);
  display: block;
}

/* Primary Navigation Strip */
.nav-strip {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(252, 252, 253, 0.94);
}

[data-theme="dark"] .nav-strip {
  background-color: rgba(11, 15, 23, 0.94);
}

.nav-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-quick-search:hover {
  background: var(--bg-paper);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-subscribe {
  background: var(--accent-ink);
  color: #ffffff;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-subscribe:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Lead Feature & Editorial Hero (Stripe Press / Quanta / The Verge Style)
   ========================================================================== */
.editorial-hero {
  padding: 36px 0 40px 0;
  border-bottom: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-page) 100%);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
}

/* Main Lead Story (Left Column) */
.lead-story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.lead-story-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.lead-banner-frame {
  height: 290px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.lead-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lead-story-card:hover .lead-banner-img {
  transform: scale(1.02);
}

.lead-story-content {
  padding: 28px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lead-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kicker-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-ai {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.tag-web {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.tag-cloud {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
  border: 1px solid rgba(146, 64, 14, 0.2);
}

.tag-space {
  background: var(--accent-purple-subtle);
  color: var(--accent-purple);
  border: 1px solid rgba(91, 33, 182, 0.2);
}

.lead-timestamp {
  font-size: 13px;
  color: var(--text-muted);
}

.lead-headline {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-ink);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.lead-headline a:hover {
  color: var(--accent-blue);
}

.lead-deck {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.lead-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 18px;
}

.byline-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.byline-info {
  display: flex;
  flex-direction: column;
}

.byline-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-ink);
}

.byline-role {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-read-lead {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.btn-read-lead:hover {
  transform: translateX(4px);
  color: var(--accent-blue-hover);
}

/* Companion Column: Editor's Desk / Top Field Notes (Right Column) */
.lead-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.sidebar-kicker-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 12px;
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bulletin-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.bulletin-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bulletin-number {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--border-strong);
  line-height: 1.2;
}

.bulletin-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bulletin-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bulletin-headline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text-ink);
}

.bulletin-headline a:hover {
  color: var(--accent-blue);
}

.bulletin-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Trust & Peer-Review Bar
   ========================================================================== */
.journal-standards-bar {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.standard-col {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.standard-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--accent-blue);
  flex-shrink: 0;
  padding-top: 2px;
}

.standard-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 2px;
}

.standard-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.toolbar-section {
  padding: 32px 0 20px 0;
}

.toolbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.category-tabs-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab-btn {
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.cat-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-ink);
  border-color: var(--border-medium);
}

.cat-tab-btn.active {
  background: var(--text-ink);
  color: #ffffff;
  border-color: var(--text-ink);
}

.cat-tab-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.8;
}

.search-field-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  width: 320px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.search-field-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-ink);
  font-size: 13.5px;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-faint);
}

/* ==========================================================================
   Editorial Layout: Articles Grid + Sidebar
   ========================================================================== */
.editorial-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px 0 64px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

/* Individual Editorial Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.article-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card-visual-wrapper {
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img {
  transform: scale(1.03);
}

/* Visual Fallback / Abstract Header */
.card-fallback-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
  padding: 22px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-ink);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-title a:hover {
  color: var(--accent-blue);
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 14px;
  font-size: 13px;
}

.read-link {
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-link:hover {
  text-decoration: underline;
  color: var(--accent-blue-hover);
}

/* ==========================================================================
   Editorial Sidebar (Author, Digest, AdSense Slot, Archive)
   ========================================================================== */
.editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

/* Author Profile Box */
.author-profile-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.author-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.author-bio-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-ink);
}

.author-bio-role {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.author-bio-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.author-social-links {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Curated Topic Tag Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-chip:hover {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* Clean AdSense / Sponsor Slot Placeholder (Compliance Standard) */
.sponsor-slot {
  background: var(--bg-paper);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
}

.sponsor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.sponsor-inner-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Newsletter Subscription Banner
   ========================================================================== */
.newsletter-banner {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 56px 0;
  margin-top: 32px;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.newsletter-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 12px auto;
}

.newsletter-input {
  flex-grow: 1;
  padding: 10px 16px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-ink);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.newsletter-btn {
  background: var(--accent-ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.newsletter-privacy-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.journal-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px 0;
  margin-top: auto;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-ink);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom-row {
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Publication Features 3-Column Section */
.features-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-trio-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .masthead-meta-box {
    text-align: left;
  }
  .nav-strip-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .nav-menu {
    flex-wrap: wrap;
    gap: 16px;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .toolbar-container {
    flex-direction: column;
    align-items: stretch;
  }
  .search-field-box {
    width: 100%;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
  .lead-banner-frame {
    height: 220px;
  }
  .lead-headline {
    font-size: 24px;
  }
}
