/* ==========================================================================
   Panicmodeon H5 static site stylesheet
   Fresh green + warm apricot palette, Nunito Sans + Playfair Display fonts,
   bright airy theme, warm rounded card design.
   ========================================================================== */

:root {
  --background: #faf8f5;
  --foreground: #1e1b4b;
  --card: #ffffff;
  --card-hover: #f5f3ff;
  --muted: #64648b;
  --border: #e0e0ee;
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --accent: #e11d48;
  --font-sans: "Nunito Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
}

.dark {
  --background: #0f0e1a;
  --foreground: #e8e5f0;
  --card: #1a1830;
  --card-hover: #252244;
  --muted: #9896b0;
  --border: #2d2a4a;
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --primary-50: rgba(129, 140, 248, 0.10);
  --primary-100: rgba(129, 140, 248, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #2d2a4a; }

/* ===== Layout helpers ===== */
.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 896px; margin: 0 auto; padding: 0 16px; }
.container-contact { max-width: 768px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) {
  .container, .container-narrow, .container-contact { padding: 0 24px; }
}

.main { flex: 1; }

.font-serif { font-family: var(--font-serif); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-foreground { color: var(--foreground); }

.section-pad { padding: 48px 0; }
@media (min-width: 640px) { .section-pad { padding: 64px 0; } }
.section-alt { background: #f0eeff; }
.dark .section-alt { background: rgba(15, 14, 26, 0.6); }

.section-heading { margin-bottom: 32px; }
.section-heading .eyebrow {
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}
@media (min-width: 640px) { .section-heading h2 { font-size: 24px; } }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sm-only { display: none; }
@media (min-width: 640px) { .sm-only { display: inline; } }

.ad-slot {
  display: none;
  width: calc(100% - 32px);
  max-width: 1152px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.ad-slot[data-ad-active="true"],
.ad-slot:has(> ins, > iframe, > div) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 50px;
}
.ad-slot-label {
  display: none;
}
.ad-slot > ins,
.ad-slot > iframe,
.ad-slot > div:not(.ad-slot-label) { max-width: 100%; }
@media (min-width: 640px) {
  .ad-slot { width: calc(100% - 48px); }
}

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 30;
  background: rgba(250, 248, 245, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.dark .site-header {
  background: rgba(15, 14, 26, 0.92);
  border-bottom-color: var(--border);
}
.header-inner { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; }
@media (min-width: 640px) { .header-inner { padding: 0 24px; } .header-row { height: 64px; } }

.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; transition: transform 0.2s ease; }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-logo img { width: 100%; height: 100%; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .brand-logo { width: 32px; height: 32px; } .brand-name { font-size: 18px; } }

.desktop-nav { display: none; align-items: center; gap: 2px; }
.desktop-nav a {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: rgba(79, 70, 229, 0.08); color: var(--primary); }
.dark .desktop-nav a:hover, .dark .desktop-nav a[aria-current="page"] { background: rgba(129, 140, 248, 0.12); }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { padding: 8px; border-radius: 9999px; transition: background-color 0.2s ease; display: inline-flex; }
.theme-toggle:hover { background: rgba(79, 70, 229, 0.1); }
.dark .theme-toggle:hover { background: rgba(129, 140, 248, 0.12); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; color: var(--primary-light); }
.theme-toggle .icon-moon { display: block; color: #7c3aed; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

.menu-button { display: inline-flex; padding: 8px; border-radius: 8px; transition: background-color 0.2s ease; }
.menu-button:hover { background: rgba(79, 70, 229, 0.08); }
.dark .menu-button:hover { background: rgba(129, 140, 248, 0.12); }
.menu-button svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .menu-button { display: none; } }

/* ===== Mobile navigation ===== */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: 280px; max-width: 85vw; height: 100vh;
  background: var(--card);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
body.menu-open .mobile-nav-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .mobile-nav-panel { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-nav-close { padding: 8px; border-radius: 8px; transition: background-color 0.2s ease; display: inline-flex; }
.mobile-nav-close:hover { background: rgba(107, 114, 128, 0.12); }
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current="page"] { background: rgba(79, 70, 229, 0.08); color: var(--primary); }
.dark .mobile-nav-links a:hover, .dark .mobile-nav-links a[aria-current="page"] { background: rgba(129, 140, 248, 0.12); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  word-break: break-all;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Home hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
@media (min-width: 640px) { .hero { min-height: 600px; } }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85), rgba(79, 70, 229, 0.55) 50%, rgba(225, 29, 72, 0.28));
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 128px;
  background: linear-gradient(to top, var(--background), transparent);
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 1152px; margin: 0 auto; padding: 64px 16px;
}
@media (min-width: 640px) { .hero-content { padding: 96px 24px; } }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: repeat(12, 1fr); } }
.hero-left { grid-column: span 1; }
.hero-right { grid-column: span 1; }
@media (min-width: 1024px) { .hero-left { grid-column: span 7; } .hero-right { grid-column: span 5; } }

.hero-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.5s ease, transform 0.3s ease;
}
.hero-card:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.30); }
.hero-card-media { position: relative; aspect-ratio: 16 / 10; }
.hero-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 27, 75, 0.70), transparent 50%); pointer-events: none; }
.hero-card-title {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 24px;
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 400; color: #fff; line-height: 1.25;
  transition: color 0.3s ease;
}
@media (min-width: 640px) { .hero-card-title { font-size: 30px; } }
@media (min-width: 768px) { .hero-card-title { font-size: 36px; } }
.hero-card:hover .hero-card-title { color: #fda4af; }

.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero-eyebrow svg { width: 16px; height: 16px; color: var(--accent); }
.hero-eyebrow span {
  color: var(--accent);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-right .hero-right-inner > * + * { margin-top: 0; }
.hero-excerpt { color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
@media (min-width: 640px) { .hero-excerpt { font-size: 16px; } }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-bottom: 24px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, 0.35); }
.hero-meta svg { width: 12px; height: 12px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--primary); color: #fff;
  font-weight: 700; border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.30);
}
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hero-cta svg { width: 16px; height: 16px; }

/* ===== Featured reads ===== */
.editors-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) { .editors-grid { grid-template-columns: repeat(12, 1fr); } }
.editors-main { grid-column: span 1; display: block; }
.editors-side { grid-column: span 1; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .editors-main { grid-column: span 7; } .editors-side { grid-column: span 5; } }

.editors-main-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.editors-main-card:hover { border-color: rgba(79, 70, 229, 0.3); box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.08); transform: translateY(-2px); }
.editors-main-media { position: relative; aspect-ratio: 16 / 7; }
.editors-main-media img { width: 100%; height: 100%; object-fit: cover; }
.editors-main-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 27, 75, 0.70), transparent); pointer-events: none; }
.editors-main-title {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 20px;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 400; color: #fff; line-height: 1.375;
}
@media (min-width: 640px) { .editors-main-title { font-size: 20px; } }
.editors-main-card:hover .editors-main-title { color: #c4b5fd; }
.editors-main-body { padding: 16px; }
.editors-main-body p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
@media (min-width: 640px) { .editors-main-body p { font-size: 14px; } }
.editors-main-body .card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.editors-main-body .card-meta svg { width: 12px; height: 12px; }

.mini-card {
  display: flex; gap: 12px; padding: 12px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
  flex: 1;
}
.mini-card:hover { border-color: rgba(79, 70, 229, 0.3); transform: translateX(2px); }
.mini-thumb { flex-shrink: 0; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .cover-fallback { width: 100%; height: 100%; }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mini-body h3 {
  font-family: var(--font-serif);
  font-size: 12px; font-weight: 400; line-height: 1.375;
}
@media (min-width: 640px) { .mini-body h3 { font-size: 14px; } }
.mini-card:hover .mini-body h3 { color: var(--primary); }
.mini-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); margin-top: 4px; }
.mini-meta svg { width: 10px; height: 10px; }

/* ===== Article cards (grid) ===== */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12); }
.article-card-inner {
  position: relative; height: 100%;
  border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover .article-card-inner {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.08);
}
.card-image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .card-image-wrap img { transform: scale(1.04); }
.card-hover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.40), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.article-card:hover .card-hover-shade { opacity: 1; }
.card-hover-arrow {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.article-card:hover .card-hover-arrow { opacity: 1; }
.card-hover-arrow svg { width: 14px; height: 14px; color: #1e1b4b; }
.card-body { padding: 14px; }
@media (min-width: 640px) { .card-body { padding: 16px; } }
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 400; line-height: 1.375;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}
@media (min-width: 640px) { .card-body h3 { font-size: 16px; } }
.article-card:hover .card-body h3 { color: var(--primary); }
.card-body .card-excerpt { color: var(--muted); font-size: 11px; line-height: 1.7; margin-bottom: 10px; }
@media (min-width: 640px) { .card-body .card-excerpt { font-size: 12px; } }
.card-body .card-footer { display: flex; align-items: center; justify-content: flex-end; padding-top: 8px; border-top: 1px solid rgba(224, 224, 238, 0.6); }
.dark .card-body .card-footer { border-top-color: rgba(45, 42, 74, 0.6); }
.card-footer .card-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.card-footer .card-meta .dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(100, 100, 139, 0.3); }
.card-footer .card-meta svg { width: 10px; height: 10px; }

/* Simple card (Reader Favorites) */
.simple-card {
  display: block; height: 100%;
  border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.simple-card:hover { border-color: rgba(79, 70, 229, 0.3); box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.10); transform: translateY(-2px); }
.simple-card-media { position: relative; aspect-ratio: 16 / 10; }
.simple-card-media img { width: 100%; height: 100%; object-fit: cover; }
.simple-card-body { padding: 14px; }
@media (min-width: 640px) { .simple-card-body { padding: 16px; } }
.simple-card-body h3 {
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 400; line-height: 1.375;
  margin-bottom: 6px; transition: color 0.2s ease;
}
@media (min-width: 640px) { .simple-card-body h3 { font-size: 16px; } }
.simple-card:hover .simple-card-body h3 { color: var(--primary); }
.simple-card-body .mini-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.simple-card-body .mini-meta svg { width: 10px; height: 10px; }

/* Cover fallback */
.cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  position: relative;
}
.cover-fallback svg { width: 80px; height: 80px; color: rgba(79, 70, 229, 0.25); position: relative; z-index: 1; }
.cover-fallback .blur-icon { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; color: rgba(79, 70, 229, 0.10); filter: blur(24px); z-index: 0; }

/* ===== Category page ===== */
.category-banner {
  position: relative; overflow: hidden;
  padding: 48px 0;
}
@media (min-width: 640px) { .category-banner { padding: 64px 0; } }
.category-banner-blur { position: absolute; inset: 0; opacity: 0.3; pointer-events: none; }
.category-banner .blur-circle { position: absolute; border-radius: 9999px; filter: blur(64px); }
.category-banner .blur-circle-top { top: 0; right: 25%; width: 384px; height: 384px; }
.category-banner .blur-circle-bottom { bottom: 0; left: 25%; width: 320px; height: 320px; }
.category-banner-inner { position: relative; z-index: 10; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .category-banner-inner { padding: 0 24px; } }

.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 24px; overflow-x: auto; white-space: nowrap; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs svg { width: 12px; height: 12px; flex-shrink: 0; }
.breadcrumbs .current { color: var(--foreground); font-weight: 600; }
.breadcrumbs-light { color: rgba(255, 255, 255, 0.6); }
.breadcrumbs-light a:hover { color: #fff; }
.breadcrumbs-light .current { color: rgba(255, 255, 255, 0.9); }

.category-title-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.category-icon-box {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.category-icon-box svg { width: 32px; height: 32px; color: #fff; }
.category-title-row h1 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 400; line-height: 1.15; margin-bottom: 8px;
}
@media (min-width: 640px) { .category-title-row h1 { font-size: 36px; } }
@media (min-width: 768px) { .category-title-row h1 { font-size: 48px; } }
.category-title-row p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 672px; }
@media (min-width: 640px) { .category-title-row p { font-size: 16px; } }
@media (min-width: 768px) { .category-title-row p { font-size: 18px; } }
.category-count { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.category-count span {
  padding: 4px 12px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}
.dark .category-count span { background: rgba(255, 255, 255, 0.1); }

.featured-article { margin-bottom: 32px; }
.featured-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.featured-card:hover { border-color: rgba(79, 70, 229, 0.3); box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.08); transform: translateY(-2px); }
@media (min-width: 1024px) { .featured-card { grid-template-columns: repeat(12, 1fr); } }
.featured-media { grid-column: span 1; position: relative; aspect-ratio: 16 / 10; background: #f5f3ff; }
@media (min-width: 1024px) { .featured-media { grid-column: span 7; aspect-ratio: auto; min-height: 300px; } }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-media .cover-fallback { position: absolute; inset: 0; }
.featured-media-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 27, 75, 0.50), transparent); pointer-events: none; }
@media (min-width: 1024px) { .featured-media-shade { background: linear-gradient(to right, rgba(30, 27, 75, 0.50), transparent); } }
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-block; padding: 4px 12px;
  font-size: 12px; font-weight: 800; color: #fff;
  border-radius: 9999px; background: var(--accent);
}
.featured-body { grid-column: span 1; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .featured-body { grid-column: span 5; } }
.featured-body h2 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 400; line-height: 1.375;
  margin-bottom: 12px; transition: color 0.2s ease;
}
@media (min-width: 640px) { .featured-body h2 { font-size: 24px; } }
.featured-card:hover .featured-body h2 { color: var(--primary); }
.featured-body p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.featured-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.featured-meta span { display: inline-flex; align-items: center; gap: 6px; }
.featured-meta svg { width: 14px; height: 14px; }
.featured-meta .dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(100, 100, 139, 0.3); }

/* Pagination */
.pagination { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) { .pagination { margin-top: 56px; } }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 40px; height: 40px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pagination a:hover { border-color: rgba(79, 70, 229, 0.4); background: rgba(79, 70, 229, 0.05); }
.pagination a.current { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.pagination .disabled { color: rgba(100, 100, 139, 0.5); cursor: not-allowed; }
.pagination svg { width: 16px; height: 16px; }

/* Category empty state */
.empty-state { text-align: center; padding: 64px 0; }
.empty-state .empty-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(79, 70, 229, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.empty-state .empty-icon svg { width: 40px; height: 40px; color: rgba(79, 70, 229, 0.4); }
.empty-state p { color: var(--muted); font-size: 14px; }
@media (min-width: 640px) { .empty-state p { font-size: 18px; } }

/* ===== Article page ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #4f46e5, #e11d48);
  z-index: 9999;
  transition: width 0.1s linear;
}

.article-hero { position: relative; overflow: hidden; min-height: 380px; }
@media (min-width: 640px) { .article-hero { min-height: 420px; } }
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.article-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 27, 75, 0.88), rgba(79, 70, 229, 0.50) 50%, rgba(30, 27, 75, 0.45)); }
.article-hero-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, #1e1b4b, #4338ca 50%, #4f46e5);
}
.article-hero-content { position: relative; z-index: 10; max-width: 896px; margin: 0 auto; padding: 48px 16px; }
@media (min-width: 640px) { .article-hero-content { padding: 64px 24px; } }
.article-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 400; color: #fff; line-height: 1.25;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .article-hero-content h1 { font-size: 36px; } }
@media (min-width: 768px) { .article-hero-content h1 { font-size: 48px; } }
.article-lead { color: rgba(255, 255, 255, 0.80); font-size: 14px; line-height: 1.7; margin-bottom: 24px; max-width: 768px; }
@media (min-width: 640px) { .article-lead { font-size: 16px; } }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, 0.35); }

.article-body-wrap { max-width: 896px; margin: 0 auto; padding: 40px 16px 56px; }
@media (min-width: 640px) { .article-body-wrap { padding: 56px 24px 64px; } }

.disclaimer {
  margin-top: 40px; padding: 20px;
  border-radius: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.dark .disclaimer { background: rgba(69, 10, 10, 0.3); border-color: rgba(153, 27, 27, 0.5); }
.disclaimer p { font-size: 12px; color: #991b1b; line-height: 1.7; }
.dark .disclaimer p { color: #fca5a5; }

/* ===== Prose ===== */
.prose { max-width: none; }
.prose h1 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; margin: 2rem 0 1rem; color: var(--foreground); line-height: 1.3; }
.prose h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; margin: 2rem 0 1rem; color: var(--foreground); line-height: 1.3; }
.prose h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; margin: 1.5rem 0 0.75rem; color: var(--foreground); }
.prose h4 { font-weight: 700; margin: 1.25rem 0 0.5rem; color: var(--foreground); }
.prose p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--muted); }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; color: var(--muted); }
.prose strong { color: var(--foreground); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px; margin: 24px 0;
  font-style: italic; color: var(--muted);
  background: var(--primary-50);
  border-radius: 0 12px 12px 0;
}
.dark .prose blockquote { background: rgba(129, 140, 248, 0.10); color: #c4b5fd; }
.prose img { border-radius: 16px; margin: 24px 0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration-thickness: 2px; }
.dark .prose a:hover { color: #c4b5fd; }
.article-inline-figure { margin: 36px 0; }
.article-inline-figure img { width: 100%; max-height: 520px; object-fit: cover; aspect-ratio: 16 / 9; margin: 0; }
.article-inline-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.editorial-note { margin: 36px 0; padding: 18px 20px; border: 1px solid rgba(79, 70, 229, 0.2); border-left: 4px solid var(--primary); border-radius: 12px; background: var(--primary-50); color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.dark .editorial-note { background: rgba(79, 70, 229, 0.12); border-color: rgba(129, 140, 248, 0.35); }
.article-sources { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-sources h2 { margin-top: 0; }
.article-sources li { font-size: 0.92rem; }
.article-sources li span, .article-sources > p { color: var(--muted); }
.article-sources > p { font-size: 0.78rem; margin-top: 14px; }
.prose code {
  background: var(--primary-50); color: var(--primary-dark);
  padding: 0.15em 0.4em; border-radius: 6px;
  font-size: 0.875em; font-weight: 600;
}
.dark .prose code { background: rgba(129, 140, 248, 0.12); color: #a5b4fc; }
@media (max-width: 640px) {
  .prose h2 { font-size: 1.35rem; }
  .prose h3 { font-size: 1.1rem; }
  .prose p { font-size: 0.95rem; line-height: 1.75; }
  .prose li { font-size: 0.95rem; }
}

/* ===== Content pages ===== */
.content-section { margin-bottom: 40px; }
@media (min-width: 640px) { .content-section { margin-bottom: 56px; } }
.content-page { max-width: 896px; margin: 0 auto; padding: 40px 16px 56px; }
.content-page-contact { max-width: 768px; }
@media (min-width: 640px) { .content-page { padding: 56px 24px 64px; } }

.content-hero { text-align: center; margin-bottom: 48px; }
@media (min-width: 640px) { .content-hero { margin-bottom: 64px; } }
.content-hero .hero-icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(to bottom right, #4f46e5, #e11d48);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.25);
  margin-bottom: 24px;
}
@media (min-width: 640px) { .content-hero .hero-icon-box { width: 80px; height: 80px; } }
.content-hero .hero-icon-box svg { width: 32px; height: 32px; color: #fff; }
@media (min-width: 640px) { .content-hero .hero-icon-box svg { width: 40px; height: 40px; } }
.content-hero h1 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 400; margin-bottom: 16px;
}
@media (min-width: 640px) { .content-hero h1 { font-size: 36px; } }
@media (min-width: 768px) { .content-hero h1 { font-size: 48px; } }
.content-hero .hero-sub { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 672px; margin: 0 auto; }
@media (min-width: 640px) { .content-hero .hero-sub { font-size: 18px; } }

.info-card { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
@media (min-width: 640px) { .info-card { padding: 32px; } }
.info-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.info-card-head .icon-chip {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.dark .info-card-head .icon-chip { background: rgba(129, 140, 248, 0.12); }
.info-card-head .icon-chip svg { width: 20px; height: 20px; color: var(--primary); }
.info-card-head h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
@media (min-width: 640px) { .info-card-head h2 { font-size: 24px; } }
.info-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (min-width: 640px) { .info-card p { font-size: 16px; } }
.info-card p + p { margin-top: 16px; }

.value-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value-card { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
@media (min-width: 640px) { .value-card { padding: 24px; } }
.value-card .icon-chip {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.dark .value-card .icon-chip { background: rgba(129, 140, 248, 0.12); }
.value-card .icon-chip svg { width: 20px; height: 20px; color: var(--primary); }
.value-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 16px; margin-bottom: 8px; }
@media (min-width: 640px) { .value-card h3 { font-size: 18px; } }
.value-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (min-width: 640px) { .value-card p { font-size: 14px; } }

.cover-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cover-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.cover-card { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); transition: border-color 0.2s ease, transform 0.2s ease; }
@media (min-width: 640px) { .cover-card { padding: 24px; } }
.cover-card:hover { border-color: rgba(79, 70, 229, 0.35); transform: translateY(-2px); }
.cover-card > svg { width: 28px; height: 28px; color: var(--primary); margin-bottom: 10px; }
@media (min-width: 640px) { .cover-card > svg { width: 32px; height: 32px; margin-bottom: 12px; } }
.cover-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 16px; margin-bottom: 6px; }
@media (min-width: 640px) { .cover-card h3 { font-size: 18px; margin-bottom: 8px; } }
.cover-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (min-width: 640px) { .cover-card p { font-size: 14px; } }

.section-title-center {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 400;
  text-align: center; margin-bottom: 24px;
}
@media (min-width: 640px) { .section-title-center { font-size: 24px; margin-bottom: 32px; } }

.contact-card { border-radius: 20px; background: var(--card); border: 1px solid var(--border); padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
@media (min-width: 640px) { .contact-card { padding: 40px; } }
.contact-card h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; margin-bottom: 12px; }
@media (min-width: 640px) { .contact-card h2 { font-size: 24px; } }
.contact-card .contact-desc { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 512px; margin: 0 auto 24px; }
@media (min-width: 640px) { .contact-card .contact-desc { font-size: 16px; } }
.content-updated { text-align: center; color: var(--muted); font-size: 12px; }
@media (min-width: 640px) { .content-updated { font-size: 14px; } }

.terms-intro { margin-bottom: 40px; padding: 20px; border-radius: 20px; background: var(--primary-50); border: 1px solid rgba(79, 70, 229, 0.12); }
@media (min-width: 640px) { .terms-intro { padding: 24px; } }
.terms-intro p { font-size: 14px; line-height: 1.7; }
@media (min-width: 640px) { .terms-intro p { font-size: 16px; } }

.terms-important { padding: 16px; border-radius: 16px; background: #fef2f2; border: 1px solid #fecaca; margin-bottom: 16px; }
.dark .terms-important { background: rgba(69, 10, 10, 0.3); border-color: rgba(153, 27, 27, 0.5); }
.terms-important .important-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.terms-important p { font-size: 14px; line-height: 1.7; }
@media (min-width: 640px) { .terms-important p { font-size: 16px; } }

.contact-box { padding: 20px; border-radius: 16px; background: var(--primary-50); border: 1px solid rgba(79, 70, 229, 0.12); }
.contact-box p { font-size: 14px; line-height: 1.7; }

/* ===== Footer ===== */
.site-footer { background: #1e1b4b; color: #a5a3c4; }
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 48px 16px; }
@media (min-width: 640px) { .footer-inner { padding: 64px 24px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px 16px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }
.footer-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.footer-brand .brand-logo { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; }
.footer-brand .brand-logo img { width: 100%; height: 100%; }
.footer-brand span { font-weight: 800; font-size: 18px; color: #fff; }
.footer-brand .wise { color: #818cf8; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #b8b6d4; max-width: 320px; margin-bottom: 16px; }
.footer-title { font-weight: 800; font-size: 12px; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: #b8b6d4;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #818cf8; }
.footer-links a svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.2s ease; }
.footer-links a:hover svg { opacity: 1; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(45, 42, 74, 0.8);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 12px; color: #8e8cb0; }
.footer-bottom .tagline { display: inline-flex; align-items: center; gap: 4px; }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 40;
  width: 44px; height: 44px; padding: 0;
  border-radius: 9999px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.30);
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.35); }
.scroll-top svg { width: 20px; height: 20px; }

/* ===== 404 ===== */
.notfound-card {
  border-radius: 20px; background: var(--card); border: 1px solid var(--border);
  text-align: center; padding: 48px 24px;
}
.notfound-card .code { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; margin-bottom: 8px; }
.notfound-card h1 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.notfound-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ===== Print-safe & misc ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* ===== Bright Panicmodeon theme ===== */
:root,
.dark {
  color-scheme: light;
  --background: #f8fcff;
  --foreground: #24415a;
  --card: #ffffff;
  --card-hover: #f0fbf6;
  --muted: #5f7182;
  --border: #dbe9ec;
  --primary: #2f9e73;
  --primary-light: #52b788;
  --primary-dark: #237a59;
  --primary-50: #effaf4;
  --primary-100: #ddf4e8;
  --accent: #e58a2f;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(220, 244, 255, 0.72), transparent 26rem),
    radial-gradient(circle at 92% 18%, rgba(255, 238, 204, 0.58), transparent 24rem),
    var(--background);
}

.section-alt,
.dark .section-alt { background: #eef9ff; }

.site-header,
.dark .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(177, 211, 217, 0.72);
  box-shadow: 0 8px 30px rgba(61, 108, 122, 0.05);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav-links a:hover,
.mobile-nav-links a[aria-current="page"] {
  background: rgba(47, 158, 115, 0.10);
  color: var(--primary-dark);
}

.hero { min-height: 560px; }
.hero-overlay {
  background: linear-gradient(135deg, rgba(248, 253, 255, 0.96), rgba(233, 249, 245, 0.90) 52%, rgba(255, 243, 219, 0.76));
}
.hero-right-inner {
  padding: 28px;
  border: 1px solid rgba(193, 222, 218, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 24px 60px rgba(66, 118, 123, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-excerpt { color: #405b6e; }
.hero-meta { color: #687e8d; }
.hero-meta .dot { background: rgba(47, 98, 112, 0.35); }
.hero-card { box-shadow: 0 24px 60px rgba(61, 108, 122, 0.18); }
.hero-card:hover { box-shadow: 0 28px 64px rgba(47, 158, 115, 0.20); }
.hero-card:hover .hero-card-title { color: #fff2d6; }
.hero-cta { box-shadow: 0 12px 24px rgba(47, 158, 115, 0.22); }

.editors-main-card,
.mini-card,
.article-card-inner,
.simple-card,
.featured-card,
.info-card,
.value-card,
.cover-card,
.contact-card,
.notfound-card {
  border-color: var(--border);
  box-shadow: 0 12px 34px rgba(77, 117, 126, 0.07);
}

.article-card:hover,
.simple-card:hover,
.editors-main-card:hover,
.featured-card:hover {
  box-shadow: 0 18px 42px rgba(47, 158, 115, 0.13);
}

.reading-progress { background: linear-gradient(90deg, var(--primary), #f0b45f); }
.article-hero-shade {
  background: linear-gradient(to top, rgba(248, 252, 255, 0.98), rgba(235, 249, 245, 0.84) 54%, rgba(255, 255, 255, 0.56));
}
.article-hero-fallback { background: linear-gradient(135deg, #eefaff, #e7f8ef 52%, #fff1d5); }
.article-hero-content h1 { color: var(--foreground); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65); }
.article-lead { color: #496476; }
.article-meta { color: #647b8b; }
.article-meta .dot { background: rgba(47, 98, 112, 0.32); }
.article-hero .breadcrumbs-light { color: #647b8b; }
.article-hero .breadcrumbs-light a:hover { color: var(--primary-dark); }
.article-hero .breadcrumbs-light .current { color: var(--foreground); }

.content-hero .hero-icon-box {
  background: linear-gradient(135deg, #42ad82, #f0ad55);
  box-shadow: 0 14px 30px rgba(47, 158, 115, 0.20);
}

.disclaimer,
.dark .disclaimer,
.terms-important,
.dark .terms-important {
  background: #fff9e9;
  border-color: #f1d9a8;
}
.disclaimer p,
.dark .disclaimer p { color: #72551e; }

.site-footer {
  background: linear-gradient(135deg, #edf8f3, #eef8fc 58%, #fff6e6);
  color: var(--muted);
  border-top: 1px solid #d6e8e3;
}
.footer-brand span,
.footer-title { color: var(--foreground); }
.footer-brand .wise,
.footer-links a:hover { color: var(--primary); }
.footer-desc,
.footer-links a,
.footer-bottom p { color: var(--muted); }
.footer-bottom { border-top-color: rgba(154, 194, 187, 0.48); }

.scroll-top { box-shadow: 0 12px 26px rgba(47, 158, 115, 0.26); }
.scroll-top:hover { box-shadow: 0 16px 34px rgba(47, 158, 115, 0.32); }

@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-right-inner { padding: 22px; }
}

/* ===== Panicmodeon editorial magazine refactor ===== */
:root,
.dark {
  --background: #f7f3ea;
  --foreground: #26332e;
  --card: #fffdf8;
  --card-hover: #f4f0e7;
  --muted: #66726d;
  --border: #d9d2c5;
  --primary: #3f6b5b;
  --primary-light: #668d7e;
  --primary-dark: #294d40;
  --primary-50: #edf2ed;
  --primary-100: #dce7df;
  --accent: #b96845;
}

body {
  background: var(--background);
  color: var(--foreground);
}

.container { max-width: 1240px; }
.site-header,
.dark .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.header-inner { max-width: 1240px; }
.masthead-row { height: 88px; }
.brand { gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.brand-kicker {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.masthead-tagline {
  max-width: 390px;
  color: #6b746f;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  text-align: right;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border-top: 1px solid #e8e1d6;
}
.desktop-nav a {
  padding: 12px 15px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.menu-button { border: 1px solid var(--border); border-radius: 50%; }

.ad-slot {
  border-radius: 0;
  border-color: transparent;
  background: transparent;
}
.ad-slot-label { display: none; }

.department-rail {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ece7dc;
}
.department-rail-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.department-label {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.department-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.department-links a { font-family: var(--font-serif); font-size: 14px; }
.department-links a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

.hero {
  min-height: auto;
  padding: 56px 0 48px;
  background: #f7f3ea;
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 1240px; padding: 0 24px; }
.hero-grid { gap: 54px; }
.hero-left { grid-column: span 7; }
.hero-right { grid-column: span 5; align-self: center; }
.hero-card {
  border-radius: 3px;
  box-shadow: none;
}
.hero-card:hover { transform: none; box-shadow: none; }
.hero-card-media { aspect-ratio: 4 / 3; }
.hero-card-media img { transition: transform 0.6s ease; }
.hero-card:hover img { transform: scale(1.015); }
.hero-eyebrow { margin-bottom: 18px; }
.hero-eyebrow span { color: var(--accent); font-size: 10px; letter-spacing: 0.16em; }
.hero-editorial-title {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.1vw, 62px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero-editorial-title a:hover { color: var(--primary); }
.hero-excerpt { max-width: 540px; color: #596761; font-size: 16px; line-height: 1.8; }
.hero-meta { color: #77807c; }
.hero-cta {
  border-radius: 2px;
  background: var(--foreground);
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.hero-cta:hover { background: var(--primary-dark); }

.section-pad { padding-top: 70px; padding-bottom: 70px; }
.section-alt,
.dark .section-alt { background: #ece7dc; }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--foreground);
}
.section-heading .eyebrow { order: 2; color: var(--accent); font-size: 9px; }
.section-heading h2 { font-size: 34px; letter-spacing: -0.025em; }

.editors-main-card,
.mini-card,
.article-card-inner,
.simple-card,
.featured-card,
.info-card,
.value-card,
.cover-card,
.contact-card,
.notfound-card {
  border-radius: 4px;
  border-color: var(--border);
  box-shadow: none;
  background: var(--card);
}
.editors-main-card:hover,
.article-card:hover,
.simple-card:hover,
.featured-card:hover { box-shadow: none; }
.editors-main-media { aspect-ratio: 16 / 8.5; }
.editors-main-shade { background: linear-gradient(to top, rgba(24, 35, 31, 0.72), transparent 64%); }
.editors-main-title { padding: 26px; font-size: 26px; }
.editors-main-body { padding: 22px 24px; }
.editors-main-card:hover .editors-main-title { color: #fff; }
.editors-side { gap: 0; border-top: 1px solid var(--border); }
.mini-card {
  padding: 15px 0;
  border-width: 0 0 1px;
  background: transparent;
  border-radius: 0;
}
.mini-card:hover { transform: none; }
.mini-thumb { width: 110px; height: 82px; border-radius: 2px; }
.mini-body h3 { font-size: 17px; }

.card-grid { gap: 28px 24px; }
.article-card:hover { transform: translateY(-2px); }
.article-card-inner { border-width: 0 0 1px; background: transparent; }
.card-image-wrap { aspect-ratio: 4 / 3; }
.card-body { padding: 18px 0 20px; }
.card-body h3 { font-size: 20px; line-height: 1.28; }
.card-body .card-excerpt { font-size: 13px; }
.simple-card { border-width: 0 0 1px; background: transparent; }
.simple-card-media { aspect-ratio: 4 / 3; }
.simple-card-body { padding: 18px 0 20px; }
.simple-card-body h3 { font-size: 19px; }

.category-banner {
  padding: 58px 0 50px;
  background: #ece7dc;
  border-bottom: 1px solid var(--border);
}
.category-banner-inner { max-width: 1240px; }
.category-editorial-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: end;
  gap: 72px;
}
.category-kicker,
.article-department {
  margin-bottom: 12px;
  color: var(--accent) !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.category-editorial-copy h1 { margin-bottom: 14px; font-size: clamp(44px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.045em; }
.category-editorial-copy > p:last-child { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.category-edition {
  padding: 18px 0 4px 22px;
  border-left: 3px solid var(--category-accent);
}
.category-edition .category-icon-box {
  width: 38px; height: 38px; margin-bottom: 20px;
  background: var(--category-accent); border-radius: 50%; box-shadow: none;
}
.category-edition .category-icon-box svg { width: 18px; height: 18px; }
.category-edition-label { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; }
.category-edition strong { display: block; margin: 3px 0 -3px; font-family: var(--font-serif); font-size: 44px; font-weight: 400; }
.category-edition > span:last-child { color: var(--muted); font-size: 12px; }
.featured-article { margin-bottom: 52px; }
.featured-card { grid-template-columns: 1.25fr 0.75fr; }
.featured-media { aspect-ratio: 4 / 3; }
.featured-badge { border-radius: 2px; background: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.featured-body { padding: 38px; }
.featured-body h2 { font-size: 34px; letter-spacing: -0.025em; }

.article-hero {
  min-height: auto;
  padding: 54px 0;
  background: #ece7dc;
  border-bottom: 1px solid var(--border);
}
.article-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-hero-content { max-width: none; margin: 0; padding: 0; }
.article-hero-content h1 {
  color: var(--foreground);
  font-size: clamp(40px, 5.3vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: none;
}
.article-lead { color: #596761; font-size: 17px; line-height: 1.8; }
.article-meta { color: #737d78; }
.article-meta .dot { background: #a6aaa6; }
.article-hero-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--card);
}
.article-hero-media img,
.article-hero-media .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.article-body-wrap { max-width: 790px; padding-top: 64px; }
.article-opening-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.article-opening-rule::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.prose p,
.prose li { color: #4f5e58; font-size: 17px; line-height: 1.86; }
.prose h2 { margin-top: 2.6rem; font-size: 2rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.45rem; }
.prose img { border-radius: 3px; box-shadow: none; }
.editorial-note { border-radius: 3px; background: #edf2ed; }
.disclaimer { border-radius: 3px; }

.site-footer {
  background: #e5e1d6;
  border-top: 1px solid #cbc4b6;
}
.footer-grid { grid-template-columns: 1.35fr 0.65fr; }
.footer-brand .brand-logo { border-radius: 50%; }
.footer-brand span { font-family: var(--font-serif); font-size: 24px; font-weight: 400; }

@media (max-width: 1023px) {
  .masthead-row { height: 68px; }
  .masthead-tagline { display: none; }
  .desktop-nav { display: none; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 23px; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-left, .hero-right { grid-column: span 1; }
  .hero-editorial-title { font-size: clamp(35px, 8vw, 48px); }
  .category-editorial-head { grid-template-columns: 1fr; gap: 30px; }
  .category-edition { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; }
  .category-edition .category-icon-box { grid-row: span 3; margin: 0; }
  .category-edition strong { font-size: 30px; }
  .article-hero-shell { grid-template-columns: 1fr; gap: 34px; }
  .article-hero-media { order: -1; }
}

@media (max-width: 639px) {
  .department-rail-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .department-links { gap: 8px 18px; }
  .hero-content { padding: 0 16px; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 8px; }
  .section-heading h2 { font-size: 28px; }
  .category-banner { padding: 38px 0; }
  .category-editorial-copy h1 { font-size: 48px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { padding: 24px; }
  .article-hero { padding: 34px 0; }
  .article-hero-shell { padding: 0 16px; }
  .article-hero-content h1 { font-size: 38px; }
  .article-lead { font-size: 15px; }
  .prose p, .prose li { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Panicmodeon calm-modern redesign ===== */
:root,
.dark {
  --background: #f4f5ef;
  --foreground: #10241e;
  --card: #ffffff;
  --card-hover: #f8faf7;
  --muted: #5f6f69;
  --border: #cfd9d4;
  --primary: #0f5c49;
  --primary-light: #2f7c67;
  --primary-dark: #093f32;
  --primary-50: #e8f2ee;
  --primary-100: #d4e7df;
  --accent: #f05a43;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

body { background: var(--background); }
.container { max-width: 1280px; }

.site-header,
.dark .site-header {
  position: relative;
  top: auto;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

/* Keep every rendered ad fully outside the navigation stacking context. */
.ad-slot[data-ad-active="true"],
.ad-slot:has(> ins, > iframe, > div) {
  position: relative;
  z-index: 1;
  isolation: isolate;
  clear: both;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: 1280px;
}
.masthead-row { flex: 0 0 auto; height: 76px; }
.brand { gap: 0; }
.brand-logo,
.footer-brand .brand-logo {
  width: 202px;
  height: 58px;
  overflow: visible;
  border-radius: 0;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy,
.masthead-tagline { display: none; }
.desktop-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 2px;
  min-height: 76px;
  border: 0;
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  height: 76px;
  padding: 0 11px;
  border: 0;
  font-size: 11px;
  letter-spacing: .045em;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-50);
  box-shadow: inset 0 -4px 0 var(--accent);
}
.menu-button { width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; }
.mobile-nav-panel { background: #fff; }
.mobile-nav-head .brand-logo { width: 182px; height: 54px; }

.department-rail { border: 0; background: var(--primary); color: #fff; }
.department-rail-inner { gap: 32px; padding-top: 12px; padding-bottom: 12px; }
.department-label { color: #ffab9d; }
.department-links a { font-family: var(--font-sans); font-size: 12px; font-weight: 600; opacity: .9; }
.department-links a:hover { color: #fff; text-decoration-color: var(--accent); }

.hero {
  padding: 0;
  background: var(--primary-dark);
  border: 0;
  color: #fff;
}
.hero-content { max-width: none; margin: 0; padding: 0; }
.hero-grid { grid-template-columns: minmax(0, 45%) minmax(0, 55%); gap: 0; }
.hero-left { grid-column: 2; order: 2; }
.hero-right {
  grid-column: 1;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: clamp(42px, 6vw, 92px) clamp(28px, 5vw, 78px);
}
.hero-card { height: 100%; min-height: 610px; border-radius: 0; }
.hero-card-media { height: 100%; aspect-ratio: auto; }
.hero-card-media img { filter: saturate(.88) contrast(1.03); }
.hero-eyebrow span { color: #ff9d8f; }
.hero-editorial-title { font-size: clamp(43px, 4.9vw, 76px); line-height: .98; letter-spacing: -.045em; }
.hero-editorial-title a:hover { color: #ffb2a7; }
.hero-excerpt { color: #d6e6df; font-size: 16px; line-height: 1.75; }
.hero-meta { color: #abc8bd; }
.hero-cta { align-self: flex-start; color: #10241e; background: #fff; border-radius: 999px; }
.hero-cta:hover { color: #fff; background: var(--accent); }

.section-pad { padding-top: 84px; padding-bottom: 84px; }
.section-alt,
.dark .section-alt { background: #dfe9e4; }
.section-heading { align-items: flex-end; padding: 0 0 20px; border-bottom: 4px solid var(--foreground); }
.section-heading .eyebrow { order: 0; color: var(--accent); }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.editors-grid { grid-template-columns: minmax(0, 1.5fr) minmax(330px, .5fr); gap: 40px; }
.editors-main-card { border: 0; border-radius: 0; }
.editors-main-media { aspect-ratio: 16 / 9; }
.editors-main-title { padding: 32px; font-size: clamp(25px, 3vw, 39px); }
.editors-main-body { padding: 24px 0 0; background: var(--background); }
.editors-main-body p { font-size: 15px; }
.editors-side { border-top: 4px solid var(--accent); }
.mini-card { padding: 20px 0; }
.mini-thumb { width: 132px; height: 94px; border-radius: 0; }
.mini-body h3 { font-size: 19px; line-height: 1.25; }

.card-grid { gap: 34px 26px; }
.article-card-inner,
.simple-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}
.article-card:hover { transform: translateY(-5px); }
.article-card:hover .article-card-inner,
.simple-card:hover { border-color: var(--primary); box-shadow: 9px 9px 0 var(--primary-100); }
.card-image-wrap,
.simple-card-media { aspect-ratio: 16 / 10; }
.card-body,
.simple-card-body { padding: 23px 24px 25px; }
.card-body h3,
.simple-card-body h3 { font-size: 22px; }

.category-banner { padding: 72px 0 62px; background: var(--primary-dark); color: #fff; border: 0; }
.category-banner .breadcrumbs,
.category-banner .breadcrumbs a,
.category-editorial-copy > p:last-child { color: #c9ded6; }
.category-editorial-copy h1 { color: #fff; font-size: clamp(54px, 8vw, 96px); }
.category-kicker { color: #ff9d8f !important; }
.category-edition { border-color: var(--accent); }
.category-edition-label,
.category-edition > span:last-child { color: #bdd4cb; }
.featured-card { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); border-radius: 0; }
.featured-media { aspect-ratio: 16 / 10; }
.featured-body { padding: 46px; }
.featured-badge { background: var(--accent); border-radius: 999px; }

.article-hero { padding: 68px 0; background: #dfe9e4; border: 0; }
.article-hero-shell { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(38px, 6vw, 88px); max-width: 1280px; }
.article-hero-content h1 { font-size: clamp(44px, 5.7vw, 78px); line-height: .98; }
.article-hero-media { border-radius: 0; box-shadow: 18px 18px 0 var(--primary); }
.article-body-wrap { max-width: 820px; padding: 78px 24px 84px; }
.article-opening-rule { color: var(--accent); }
.prose h2 { padding-top: .35rem; font-size: clamp(1.8rem, 4vw, 2.35rem); }
.prose p,
.prose li { color: #3d514a; font-size: 18px; line-height: 1.9; }
.prose img { width: 100%; border-radius: 0; }
.prose a { color: var(--primary); }
.editorial-note { border-left: 4px solid var(--accent); background: #edf4f1; }

.content-page { max-width: 980px; padding-top: 64px; }
.content-hero { text-align: left; padding-bottom: 28px; border-bottom: 4px solid var(--foreground); }
.content-hero .hero-icon-box { margin: 0 0 20px; border-radius: 12px; background: var(--primary); }
.content-hero h1 { font-size: clamp(46px, 8vw, 78px); }
.content-hero .hero-sub { margin: 0; }
.content-page .content-section { margin-bottom: 38px; }

.site-footer { color: #c7d8d1; background: #10241e; border-top: 10px solid var(--accent); }
.footer-inner { max-width: 1280px; }
.footer-brand { color: #fff; }
.footer-brand > span:not(.brand-logo) { display: none; }
.footer-desc { max-width: 480px; color: #a9c0b7; }
.footer-title { color: #fff; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-color: #315047; }

@media (max-width: 1120px) {
  .header-inner { gap: 12px; }
  .brand-logo { width: 176px; }
  .desktop-nav a { padding: 0 8px; font-size: 10px; }
}

@media (max-width: 1023px) {
  .header-inner { display: block; }
  .masthead-row { height: 70px; }
  .brand-logo { width: 190px; height: 56px; }
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { grid-column: 1; order: 1; }
  .hero-right { grid-column: 1; order: 2; }
  .hero-card { min-height: 0; }
  .hero-card-media { aspect-ratio: 16 / 9; }
  .editors-grid { grid-template-columns: 1fr; }
  .article-hero-shell { grid-template-columns: 1fr; }
  .article-hero-media { order: 0; box-shadow: 12px 12px 0 var(--primary); }
}

@media (max-width: 639px) {
  .brand-logo { width: 172px; height: 52px; }
  .department-rail-inner { padding-top: 14px; padding-bottom: 14px; }
  .department-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px 14px; }
  .hero-right { padding: 38px 20px 44px; }
  .hero-editorial-title { font-size: 41px; }
  .hero-excerpt { font-size: 15px; }
  .section-pad { padding-top: 58px; padding-bottom: 58px; }
  .section-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
  .editors-main-title { padding: 20px; font-size: 25px; }
  .mini-thumb { width: 108px; height: 82px; }
  .card-grid { grid-template-columns: 1fr; }
  .category-banner { padding: 48px 0 42px; }
  .category-editorial-copy h1 { font-size: 48px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { padding: 26px 22px; }
  .article-hero { padding: 40px 0 48px; }
  .article-hero-content h1 { font-size: 41px; }
  .article-hero-shell { gap: 28px; }
  .article-body-wrap { padding: 52px 18px 64px; }
  .prose p,
  .prose li { font-size: 16.5px; line-height: 1.82; overflow-wrap: anywhere; }
  .prose h2 { line-height: 1.14; }
  .content-page { padding: 42px 18px 58px; }
  .content-hero h1 { font-size: 45px; }
}
