:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-soft: #9CA3AF;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #DBEAFE;
  --success: #10B981;
  --border: #E5E7EB;
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: 0.2s ease;
}

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

.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transition: 0.2s ease;
}

.header-cta:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  padding: 38px 0 22px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.meta-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 50%;
}

.hero-title {
  max-width: 920px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 800px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.8;
}

/* Main Article Layout */
.article-section {
  padding: 24px 0 70px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.featured-image {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.article-body .lead {
  font-size: 1.16rem;
  line-height: 1.9;
  color: #374151;
}

.article-body p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 1.04rem;
  line-height: 1.95;
}

.article-body h2 {
  margin: 38px 0 14px;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--success);
  background: #F0FDF4;
  border-radius: 0 18px 18px 0;
  color: #065F46;
  font-size: 1.08rem;
  line-height: 1.8;
  font-weight: 600;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #F3F4F6;
  color: var(--text-secondary);
  font-weight: 600;
  transition: 0.2s ease;
}

.article-tags a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Sidebar */
.article-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.sidebar-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.98rem;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.share-btn {
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.share-btn:hover {
  background: #F3F4F6;
}

.newsletter-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.newsletter-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* Related */
.related-news-section {
  padding: 10px 0 80px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
}

.section-link {
  color: var(--accent);
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #D1D5DB;
}

.news-card-category {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4338CA;
  font-size: 0.82rem;
  font-weight: 700;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.4;
}

.news-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.news-card-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 50;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .article-body {
    padding: 22px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }
}