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

:root {
  --sidebar-width: 272px;
  --sidebar-bg: #0f1117;
  --sidebar-surface: rgba(255,255,255,.05);
  --sidebar-border: rgba(255,255,255,.08);
  --sidebar-text: #e8eaf0;
  --sidebar-muted: #6b7280;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Lora', Georgia, serif;

  --body-bg: #faf9f7;
  --surface: #ffffff;
  --text: #111218;
  --text-muted: #6b7280;
  --border: #e8e6e1;
  --border-strong: #d1cec8;
  --link: #1d4ed8;
  --link-hover: #1e40af;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===========================
   LAYOUT
=========================== */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sidebar-inner {
  padding: 0 0 48px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--sidebar-border);
  transition: opacity 0.15s;
}

.site-brand:hover { opacity: 0.85; text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4a90d9 0%, #7b5ea7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74,144,217,.4);
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.6875rem;
  color: var(--sidebar-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Nav */
.sidebar-nav { padding: 16px 12px 0; flex: 1; }

.sidebar-nav-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  padding: 0 8px 8px;
}

/* Category items */
.sidebar-category { margin-bottom: 1px; }

.sidebar-category details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.sidebar-category details > summary::-webkit-details-marker { display: none; }

.sidebar-category-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: background 0.15s;
  position: relative;
}

.sidebar-category-title:hover { background: var(--sidebar-surface); }

.cat-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-color, #555);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--cat-color, transparent);
}

.cat-chevron {
  margin-left: auto;
  color: var(--sidebar-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sidebar-category details[open] .cat-chevron { transform: rotate(90deg); }
.sidebar-category details[open] > .sidebar-category-title { background: var(--sidebar-surface); }

/* Post list inside category */
.sidebar-post-list {
  list-style: none;
  padding: 4px 0 8px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-post-list li a {
  display: block;
  padding: 5px 10px 5px 8px;
  font-size: 0.8rem;
  color: #9ca3af;
  border-radius: 5px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
}

.sidebar-post-list li a:hover {
  color: #e2e8f0;
  border-left-color: var(--cat-color, #555);
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

.sidebar-post-list li a.active {
  color: #f1f5f9;
  border-left-color: var(--cat-color, #555);
  background: rgba(255,255,255,.06);
  font-weight: 500;
}

.view-all-item { margin-top: 4px; }

.view-all-link {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--cat-color, #9ca3af) !important;
  opacity: 0.85;
}
.view-all-link:hover { opacity: 1; text-decoration: none; }

/* Sidebar bottom */
.sidebar-bottom {
  padding: 20px 20px 0;
  margin-top: auto;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-disclosure-link {
  font-size: 0.75rem;
  color: var(--sidebar-muted);
}
.sidebar-disclosure-link:hover { color: #9ca3af; text-decoration: none; }

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* ===========================
   MOBILE NAV
=========================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--sidebar-bg);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--sidebar-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ===========================
   HOME PAGE
=========================== */
.home-page { }

/* Featured hero post */
.featured-hero {
  background: linear-gradient(150deg, #0f1117 0%, #1a1a2e 45%, #111827 100%);
  padding: 56px 52px 52px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.featured-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-color, #4a90d9) 30%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.featured-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(123,94,167,.15) 0%, transparent 70%);
  pointer-events: none;
}

.featured-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.featured-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.featured-hero-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cat-color, #4a90d9) 20%, transparent);
  color: var(--cat-color, #4a90d9);
  border: 1px solid color-mix(in srgb, var(--cat-color, #4a90d9) 40%, transparent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.featured-hero-badge:hover { opacity: 0.8; text-decoration: none; }

.featured-hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.featured-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.featured-hero-title a {
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.15s;
}
.featured-hero-title a:hover { color: var(--cat-color, #7fb3e8); text-decoration: none; }

.featured-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 28px;
}

.featured-hero-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.featured-hero-date {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.35);
  font-weight: 500;
}

.featured-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--cat-color, #4a90d9);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat-color, #4a90d9) 40%, transparent);
}
.featured-hero-cta:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: #fff; }

/* Recent posts section */
.recent-posts-section {
  padding: 40px 52px 48px;
}

.recent-posts-header {
  margin-bottom: 24px;
}

.recent-posts-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-card-cat-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cat-color, #999);
  margin-bottom: 6px;
}

/* Home sections (kept for category pages) */
.home-section {
  padding: 40px 52px;
  border-bottom: 1px solid var(--border);
}

.home-section:last-child { border-bottom: none; }

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.home-section-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-cat-bar {
  width: 4px;
  height: 20px;
  background: var(--cat-color, #999);
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--cat-color, transparent);
  opacity: 0.85;
}

.home-section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.home-section-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.home-section-link:hover { color: var(--text); text-decoration: none; }

/* ===========================
   POST CARDS
=========================== */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: var(--shadow-sm);
}

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

.post-card-accent {
  height: 4px;
  background: linear-gradient(to right, var(--cat-color, #ccc), color-mix(in srgb, var(--cat-color, #ccc) 40%, white));
}

.post-card-image-wrap { display: block; overflow: hidden; }
.post-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s;
}
.post-card:hover .post-card-img { transform: scale(1.03); }

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

.post-card-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--link); text-decoration: none; }

.post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card-read {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cat-color, var(--link));
  transition: opacity 0.15s;
}
.post-card-read:hover { opacity: 0.7; text-decoration: none; }

.empty-category {
  padding: 64px 52px;
  text-align: center;
  color: var(--text-muted);
}

/* ===========================
   CATEGORY PAGE
=========================== */
.category-page { }

.category-hero {
  padding: 44px 52px 36px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--cat-color, #4a90d9) 5%, var(--body-bg)), var(--body-bg));
}

.category-hero-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, #4a90d9);
}

.category-breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.category-breadcrumb:hover { color: var(--text); text-decoration: none; }

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border-strong);
}

.category-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.15;
}

.category-hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 520px;
  line-height: 1.6;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 20px 52px 0;
  margin-bottom: 16px;
}

.category-page .post-card-grid {
  padding: 0 52px 48px;
}

/* ===========================
   POST ARTICLE
=========================== */
.post-article {
  max-width: 100%;
  padding: 0;
}

.disclosure-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 14px 52px;
  font-size: 0.8125rem;
  color: #78350f;
  line-height: 1.5;
}

.disclosure-banner a { color: #92400e; text-decoration: underline; }

.post-header {
  padding: 40px 52px 32px;
  border-bottom: 1px solid var(--border);
}

.post-header-rule {
  height: 3px;
  border-radius: 2px;
  margin-top: 28px;
  max-width: 120px;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cat-color, #999) 12%, white);
  color: var(--cat-color, #555);
  border: 1px solid color-mix(in srgb, var(--cat-color, #999) 25%, white);
  margin-bottom: 16px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.post-category-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-color, #999);
  flex-shrink: 0;
}

.post-category-badge:hover { opacity: 0.8; text-decoration: none; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.post-description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-style: italic;
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.post-featured-image {
  overflow: hidden;
  margin-bottom: 0;
  max-height: 440px;
}
.post-featured-image img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

/* Post body */
.post-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  padding: 36px 52px 24px;
  max-width: 760px;
}

.post-body h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.25em 0 0.75em;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2em 0 0.5em;
  color: var(--text);
  line-height: 1.35;
}

.post-body p { margin-bottom: 1.35em; }

.post-body ul, .post-body ol {
  margin: 0 0 1.35em 1.5em;
}
.post-body li { margin-bottom: 0.45em; }

.post-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover { color: var(--link-hover); }

.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }

.post-body blockquote {
  border-left: 3px solid var(--border-strong);
  padding: 14px 22px;
  margin: 1.75em 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--body-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.post-body th, .post-body td {
  padding: 11px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.post-body th {
  background: var(--body-bg);
  font-weight: 600;
  color: var(--text);
}

.post-body tr:nth-child(even) td { background: #fdfcfb; }

/* Post footer */
.post-footer {
  padding: 32px 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disclosure-footer-box {
  background: var(--body-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.disclosure-footer-box strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.disclosure-footer-box p { color: var(--text-muted); }
.disclosure-footer-box a { color: var(--link); }

.back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ===========================
   STATIC PAGES
=========================== */
.page-article {
  max-width: 680px;
  padding: 48px 52px;
}

.page-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.2;
  color: var(--text);
}

.page-content h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2em 0 0.75em;
  color: var(--text);
}

.page-content p { margin-bottom: 1em; line-height: 1.7; color: var(--text); }
.page-content ul { margin: 0 0 1em 1.5em; }
.page-content li { margin-bottom: 0.4em; line-height: 1.65; }

/* ===========================
   SITE FOOTER
=========================== */
.site-footer {
  background: #0f1117;
  color: #9ca3af;
}

.site-footer-inner {
  max-width: 100%;
  padding: 0;
}

.footer-top {
  display: flex;
  gap: 48px;
  padding: 48px 52px 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand { flex: 1; max-width: 300px; }

.footer-brand-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 4px;
}

.footer-nav-group a {
  font-size: 0.8125rem;
  color: #6b7280;
  transition: color 0.15s;
}
.footer-nav-group a:hover { color: #d1d5db; text-decoration: none; }

.footer-bottom {
  padding: 24px 52px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclosure {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 620px;
}

.footer-disclosure strong { color: #6b7280; }
.footer-disclosure a { color: #6b7280; text-decoration: underline; }
.footer-disclosure a:hover { color: #9ca3af; }

.footer-copy {
  font-size: 0.75rem;
  color: #374151;
}

/* ===========================
   NEWSLETTER
=========================== */
.newsletter-section {
  background: linear-gradient(150deg, #0f1117 0%, #1a1a2e 50%, #111827 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(123,94,167,.2) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 52px;
  position: relative;
  z-index: 1;
}

.newsletter-text { flex: 1; min-width: 0; }

.newsletter-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

.newsletter-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: #f8fafc;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.newsletter-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  max-width: 380px;
}

.newsletter-placeholder-form,
.ml-embedded { flex: 1; max-width: 400px; }

.newsletter-field-row {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  color: #f1f5f9;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.newsletter-input:not(:disabled):focus {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
}

.newsletter-input::placeholder { color: rgba(255,255,255,.3); }

.newsletter-btn {
  padding: 11px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a90d9, #7b5ea7);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-btn:not(:disabled):hover { opacity: 0.88; }
.newsletter-btn:disabled,
.newsletter-input:disabled { cursor: default; opacity: 0.6; }

.newsletter-msg {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.newsletter-success {
  color: #6ee7b7;
  font-weight: 500;
}

.newsletter-error {
  color: #fca5a5;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .post-card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }

  .layout-wrapper { display: block; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.visible { display: block; }

  .main-content { padding-top: 0; }

  .featured-hero { padding: 64px 24px 40px; }
  .recent-posts-section { padding: 32px 24px 40px; }
  .home-section { padding: 32px 24px; }
  .category-hero { padding: 64px 24px 28px; }
  .category-count { padding: 16px 24px 0; }
  .category-page .post-card-grid { padding: 0 24px 40px; }
  .disclosure-banner { padding: 12px 24px; }
  .post-header { padding: 28px 24px 24px; }
  .post-body { padding: 28px 24px 20px; }
  .post-footer { padding: 24px 24px 40px; }
  .page-article { padding: 40px 24px; }

  .post-card-grid { grid-template-columns: 1fr; gap: 12px; }

  .footer-top { flex-direction: column; gap: 32px; padding: 40px 24px 32px; }
  .footer-nav { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { padding: 20px 24px; }

  .newsletter-inner { flex-direction: column; gap: 28px; padding: 40px 24px; }
  .newsletter-placeholder-form, .ml-embedded { max-width: 100%; width: 100%; }
  .newsletter-sub { max-width: 100%; }
}
