/* ─── ARTICLE PAGE LAYOUT ─── */
.article-page { background: var(--cream); min-height: 100vh; }

.article-hero {
  padding: 140px 48px 60px; background: var(--ink);
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(13,127,116,0.15) 0%, transparent 60%);
}
.article-hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }

.article-breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px;
}
.article-breadcrumb a {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.article-breadcrumb a:hover { color: var(--teal-light); }
.article-breadcrumb span { color: rgba(255,255,255,0.25); font-size: 13px; }

.article-tag {
  display: inline-block;
  background: var(--teal-dim); border: 1px solid rgba(13,127,116,0.3);
  color: var(--teal-light); padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
}

.article-hero h1 {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 20px;
}
.article-hero h1 em { font-style: italic; color: var(--teal-light); }

.article-hero-sub {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,0.6); font-weight: 300; max-width: 680px;
}

/* ─── ARTICLE BODY ─── */
.article-body { max-width: 900px; margin: 0 auto; padding: 72px 48px 100px; }

.article-section { margin-bottom: 64px; }

.article-section h2 {
  font-family: var(--font-display, 'Instrument Serif', serif); font-size: 32px;
  color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em;
}
.article-section h3 {
  font-family: var(--font-display, 'Instrument Serif', serif); font-size: 22px;
  color: var(--ink); margin-bottom: 12px; margin-top: 32px;
}
.article-section p {
  font-size: 16px; line-height: 1.8; color: var(--ink-soft);
  font-weight: 300; margin-bottom: 16px;
}
.article-section ul,
.article-section ol { padding-left: 20px; margin-bottom: 16px; }
.article-section li {
  font-size: 16px; line-height: 1.8; color: var(--ink-soft);
  font-weight: 300; margin-bottom: 6px;
}

/* ─── EQUATION BLOCK ─── */
.eq-block {
  background: var(--white); border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 20px 28px; margin: 24px 0;
  box-shadow: 0 2px 12px rgba(15,25,35,0.05); overflow-x: auto;
}
.eq-label {
  font-size: 11px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.eq-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; font-weight: 300; }

/* ─── CONCEPT CARD ─── */
.concept-card {
  background: var(--white); border-radius: 16px; padding: 28px 32px;
  border: 1px solid rgba(15,25,35,0.06); margin: 24px 0;
  box-shadow: 0 2px 12px rgba(15,25,35,0.04);
}
.concept-card-title {
  font-family: var(--font-display, 'Instrument Serif', serif); font-size: 20px;
  color: var(--ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.concept-card-title::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.concept-card p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); font-weight: 300; }

/* ─── FIGURE ─── */
.fig-container { margin: 32px 0; }
.fig-caption {
  font-size: 13px; color: var(--text-muted);
  text-align: center; margin-top: 10px; font-style: italic;
}
.diagram-svg { width: 100%; height: auto; }

/* ─── COMPARISON TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.compare-table th {
  background: var(--ink); color: var(--white);
  padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 500;
}
.compare-table th:first-child { border-radius: 12px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 12px 0 0; }
.compare-table td {
  padding: 12px 20px; font-size: 14px; color: var(--ink-soft);
  font-weight: 300; border-bottom: 1px solid rgba(15,25,35,0.06);
}
.compare-table tr:nth-child(even) td { background: rgba(13,127,116,0.03); }
.compare-table tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.compare-table tr:last-child td:last-child  { border-radius: 0 0 12px 0; }

/* ─── HIGHLIGHT / WARN BOXES ─── */
.highlight-box {
  background: var(--teal-dim); border: 1px solid rgba(13,127,116,0.2);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.highlight-box p { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 0; }
.highlight-box strong { color: var(--teal); }

.warn-box {
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px; padding: 20px 24px; margin: 24px 0;
}
.warn-box p { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 0; }

/* ─── BOTTOM NAV ─── */
.article-nav-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0; border-top: 1px solid rgba(15,25,35,0.1);
  margin-top: 48px; flex-wrap: wrap; gap: 16px;
}
.article-nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--teal);
  text-decoration: none; cursor: pointer; transition: gap 0.2s;
}
.article-nav-btn:hover { gap: 12px; }

/* ─── RESOURCES HUB ─── */
.resources-hero {
  padding: 160px 48px 80px; position: relative;
  overflow: hidden; background: var(--cream);
}
.resources-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 20%, rgba(13,127,116,0.07) 0%, transparent 60%);
}
.resources-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.resources-hero h1 {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px;
}
.resources-hero h1 em { font-style: italic; color: var(--teal); }
.resources-hero p {
  font-size: 18px; line-height: 1.7; color: var(--ink-soft);
  font-weight: 300; max-width: 560px;
}

.resources-grid-section { padding: 60px 48px 100px; }
.resources-grid-inner { max-width: 1200px; margin: 0 auto; }
.resources-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.resource-card {
  background: var(--white); border-radius: 18px; padding: 32px;
  border: 1px solid rgba(15,25,35,0.06);
  box-shadow: 0 2px 16px rgba(15,25,35,0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(15,25,35,0.1);
  border-color: rgba(13,127,116,0.2);
}
.resource-card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 20px;
}
.resource-card-tag {
  font-size: 10px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}
.resource-card h3 {
  font-family: var(--font-display, 'Instrument Serif', serif); font-size: 22px;
  margin-bottom: 10px; color: var(--ink);
}
.resource-card p {
  font-size: 14px; line-height: 1.7; color: var(--ink-soft);
  font-weight: 300; margin-bottom: 20px;
}
.resource-card-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--teal);
}
.resource-card-arrow svg { transition: transform 0.2s; }
.resource-card:hover .resource-card-arrow svg { transform: translateX(4px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .resources-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .article-hero { padding: 120px 24px 50px; }
  .article-body { padding: 48px 24px 80px; }
  .resources-hero { padding: 130px 24px 60px; }
  .resources-grid-section { padding: 40px 24px 80px; }
  .resources-cards { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table td, .compare-table th { padding: 10px 12px; }
}
