/* ==========================================================================
   CLAUDE FOR BUSINESS — Editorial article styles
   Scoped under .business-article so hero/header/lesson-nav giữ nguyên Basic style
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=JetBrains+Mono:wght@400;500;600&display=swap');

.business-article {
  /* Design tokens — scoped, không leak ra ngoài */
  --bg-cream: #FAF6EE;
  --bg-cream-deeper: #F4EFE0;
  --bg-paper: #FFFFFF;
  --bg-dark: #1F1B16;
  --bg-dark-soft: #2A251E;

  --ink-primary: #1F1B16;
  --ink-secondary: #5C5247;
  --ink-tertiary: #8A7E6E;
  --ink-on-dark: #FAF6EE;

  --coral: #C8553D;
  --coral-soft: #E89A6F;
  --coral-bg: #FCE8DE;

  --sage: #6B8E23;
  --sage-soft: #A4B776;
  --sage-bg: #EDF1DD;

  --mustard: #D4A017;
  --mustard-bg: #FAF1D6;

  --terracotta: #B8453D;
  --terracotta-bg: #F8DFD9;

  --steel-blue: #4A6B7C;
  --steel-blue-bg: #E0E8ED;

  --border-soft: #E8DFCD;
  --border-medium: #D5C9B0;
  --border-strong: #1F1B16;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --shadow-sm: 0 1px 3px rgba(31, 27, 22, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 27, 22, 0.12);
  --shadow-card: 0 2px 0 var(--ink-primary), 0 6px 16px rgba(31, 27, 22, 0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Container reading width */
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-primary);
}

/* Subtle radial gradient on the .section wrapper for editorial atmosphere */
.section--business {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232, 154, 111, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(74, 107, 124, 0.05) 0%, transparent 50%);
}

/* === TYPOGRAPHY === */
.business-article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  color: var(--ink-primary);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

.business-article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
  color: var(--ink-primary);
  font-variation-settings: "opsz" 60, "SOFT" 30;
  position: relative;
  scroll-margin-top: 100px;
}

.business-article h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--coral);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
}

.business-article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--ink-primary);
  font-variation-settings: "opsz" 48;
}

.business-article h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--ink-primary);
}

.business-article p {
  margin-bottom: var(--space-5);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-primary);
}

.business-article p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  font-weight: 400;
}

.business-article strong,
.business-article b {
  font-weight: 700;
  color: var(--ink-primary);
}

.business-article em,
.business-article i {
  font-style: italic;
  color: var(--ink-secondary);
}

/* === LINKS (article body) === */
.business-article a {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--coral-soft);
  transition: all 0.2s;
}

.business-article a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coral);
}

/* === LISTS === */
.business-article ul,
.business-article ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.business-article li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.business-article ul li::marker {
  color: var(--coral);
}

.business-article ol li::marker {
  color: var(--coral);
  font-weight: 700;
}

/* Task list checkboxes */
.business-article ul.task-list {
  list-style: none;
  padding-left: 0;
}

.business-article ul.task-list li {
  position: relative;
  padding-left: var(--space-7);
  margin-bottom: var(--space-3);
}

.business-article ul.task-list li input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 1.125rem;
  height: 1.125rem;
  appearance: none;
  border: 2px solid var(--ink-primary);
  border-radius: 4px;
  background: var(--bg-paper);
  cursor: pointer;
  transition: all 0.2s;
}

.business-article ul.task-list li input[type="checkbox"]:checked {
  background: var(--coral);
  border-color: var(--coral);
}

.business-article ul.task-list li input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}

/* === BLOCKQUOTES (TL;DR, Highlights) === */
.business-article blockquote {
  position: relative;
  background: var(--bg-paper);
  border-left: 4px solid var(--coral);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-size: 1.0625rem;
}

.business-article blockquote p:last-child {
  margin-bottom: 0;
}

.business-article blockquote h3 {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: var(--space-3);
  font-variation-settings: normal;
}

.business-article blockquote h3::after {
  display: none;
}

.business-article blockquote em {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink-primary);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 50;
  display: block;
  margin: var(--space-3) 0;
}

/* === CODE === */
.business-article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-cream-deeper);
  color: var(--ink-primary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  font-weight: 500;
}

.business-article pre {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-5) 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--bg-dark);
  font-family: var(--font-mono);
}

.business-article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
  font-weight: 400;
}

.business-article pre::before {
  content: "PROMPT";
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--coral-soft);
  background: var(--bg-dark-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

/* === TABLES === */
.business-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-6) 0;
  background: var(--bg-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  font-size: 0.9375rem;
}

.business-article th {
  background: #E8753F;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Override <strong>/<b> bên trong <th> để giữ chữ trắng (tránh dark-on-orange) */
.business-article th strong,
.business-article th b {
  color: #fff;
}

.business-article td {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-soft);
  vertical-align: top;
  line-height: 1.6;
}

.business-article tr:first-child td {
  border-top: none;
}

.business-article tr:hover td {
  background: var(--bg-cream);
}

.business-article td:first-child {
  font-weight: 600;
  color: var(--ink-primary);
}

/* === HORIZONTAL RULES === */
.business-article hr {
  border: none;
  height: 1px;
  background: var(--border-soft);
  margin: var(--space-7) 0;
  position: relative;
}

.business-article hr::after {
  content: "❋";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-cream);
  padding: 0 var(--space-4);
  color: var(--coral);
  font-size: 0.875rem;
}

/* === STAT HERO (big number band) === */
.business-article .stat-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: var(--ink-primary);
  color: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 0;
  margin: var(--space-6) 0;
  overflow: hidden;
}

.business-article .stat-hero > div {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-right: 1px solid rgba(250, 246, 238, 0.1);
}

.business-article .stat-hero > div:last-child {
  border-right: none;
}

.business-article .stat-hero .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--coral-soft);
  display: block;
  margin-bottom: var(--space-2);
  font-variation-settings: "opsz" 96, "SOFT" 30;
}

.business-article .stat-hero .stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.7);
}

/* === TIER SECTIONS === */
.business-article .tier-section {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--bg-paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.business-article .tier-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.business-article .tier-tag.tier-1 { background: var(--steel-blue-bg); color: var(--steel-blue); }
.business-article .tier-tag.tier-2 { background: var(--mustard-bg); color: #8B6914; }
.business-article .tier-tag.tier-3 { background: var(--coral-bg); color: var(--coral); }

/* === CTA Buttons inside article === */
.business-article .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.business-article .btn-primary {
  background: var(--ink-primary);
  color: var(--bg-cream);
  box-shadow: 0 4px 0 var(--coral);
}

.business-article .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--coral);
  text-decoration: none;
}

.business-article .btn-secondary {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}

.business-article .btn-secondary:hover {
  background: var(--ink-primary);
  color: var(--bg-cream);
  text-decoration: none;
}

.business-article .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

/* === Utilities scoped === */
.business-article .text-center { text-align: center; }
.business-article .text-muted { color: var(--ink-secondary); }
.business-article .mt-0 { margin-top: 0; }
.business-article .mb-0 { margin-bottom: 0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .business-article {
    padding: 0 var(--space-4);
  }
  .business-article .stat-hero > div {
    border-right: none;
    border-bottom: 1px solid rgba(250, 246, 238, 0.1);
  }
  .business-article .stat-hero > div:last-child {
    border-bottom: none;
  }
  .business-article table {
    font-size: 0.875rem;
  }
  .business-article th,
  .business-article td {
    padding: var(--space-3);
  }
  .business-article blockquote {
    padding: var(--space-4) var(--space-5);
  }
  .business-article pre {
    padding: var(--space-4);
    font-size: 0.875rem;
  }
}
