/* ═══════════════════════════════════════════════════════════════════════
   way2pdf — Centralized Design Tokens
   All colors, typography, spacing, shadows, and radii in one place.
   Reference these variables everywhere; change colors by editing here only.
═══════════════════════════════════════════════════════════════════════ */

:root {

  /* ── Brand Palette — Teal + Navy ───────────────────────────────── */
  --clr-navy:       #1E293B;          /* navbar, dark headings              */
  --clr-navy-deep:  #0F172A;          /* darkest — footer, deepest surfaces */
  --clr-primary:    #14B8A6;          /* buttons, links, focus rings        */
  --clr-primary-hv: #0D9488;          /* primary hover / pressed            */
  --clr-sky:        #22D3EE;          /* cyan accent                        */

  /* ── Page Surfaces ──────────────────────────────────────────────── */
  --clr-bg:         #F8FAFC;          /* body / page background             */
  --clr-bg-alt:     #F1F5F9;          /* alternating section tint           */
  --clr-surface:    #ffffff;          /* cards, modals, panels              */
  --clr-surface-2:  #F8FAFC;          /* secondary card / sidebar           */

  /* ── Text ───────────────────────────────────────────────────────── */
  --clr-text:       #1E293B;          /* body text                          */
  --clr-text-muted: #64748B;          /* secondary / caption text           */
  --clr-text-light: #94A3B8;          /* placeholder / disabled             */
  --clr-heading:    #0F172A;          /* h1 – h3 headings                   */

  /* ── Borders ────────────────────────────────────────────────────── */
  --clr-border:     #E2E8F0;          /* default dividers                   */
  --clr-border-md:  #CBD5E1;          /* slightly stronger border           */

  /* ── Semantic Colors ────────────────────────────────────────────── */
  --clr-success:    #14B8A6;
  --clr-warning:    #F59E0B;
  --clr-danger:     #EF4444;
  --clr-info:       #22D3EE;

  /* ── Footer ─────────────────────────────────────────────────────── */
  --clr-footer-bg:  #0F172A;
  --clr-footer-txt: #CCFBF1;
  --clr-footer-dim: rgba(204,251,241,.65);

  /* ── Gradients ──────────────────────────────────────────────────── */
  --grad-brand: #14B8A6;
  --grad-page:  linear-gradient(160deg, #F8FAFC 0%, #F1F5F9 100%);
  --grad-card:  linear-gradient(135deg, #1E293B 0%, #14B8A6 68%, #22D3EE 100%);

  /* ── Typography ─────────────────────────────────────────────────── */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;

  --fs-xs:   0.72rem;
  --fs-sm:   0.85rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;

  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  --lh-tight:  1.25;
  --lh-snug:   1.4;
  --lh-normal: 1.6;
  --lh-loose:  1.75;

  /* ── Border Radius ──────────────────────────────────────────────── */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  /* ── Shadows ────────────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.11), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.13), 0 6px 12px rgba(0,0,0,.07);

  /* Colored shadow for primary buttons */
  --shadow-primary: 0 4px 14px rgba(20,184,166,.38);

  /* ── Transitions ─────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   0.12s var(--ease-out);
  --t-base:   0.22s var(--ease-out);
  --t-slow:   0.36s var(--ease-out);

  /* ── Z-index Scale ───────────────────────────────────────────────── */
  --z-dropdown:  1050;
  --z-sticky:    1020;
  --z-fixed:     1030;
  --z-overlay:   1040;
  --z-modal:     1060;
  --z-toast:     9999;

  /* ── Bootstrap 5 variable remaps — overrides Bootswatch Lux ───── */
  --bs-primary:               #14B8A6;
  --bs-primary-rgb:           20, 184, 166;
  --bs-primary-text-emphasis: #0F172A;
  --bs-primary-bg-subtle:     #CCFBF1;
  --bs-primary-border-subtle: #99F6E4;
  --bs-link-color:            #14B8A6;
  --bs-link-color-rgb:        20, 184, 166;
  --bs-link-hover-color:      #0D9488;
  --bs-link-hover-color-rgb:  13, 148, 136;
  --bs-body-bg:               #F8FAFC;
  --bs-body-bg-rgb:           248, 250, 252;
  --bs-body-color:            #1E293B;
  --bs-body-color-rgb:        30, 41, 59;
  --bs-border-color:          #E2E8F0;
  --bs-border-color-translucent: rgba(20,184,166,.175);
  --bs-secondary-color:       #64748B;
  --bs-secondary-color-rgb:   100, 116, 139;
  --bs-heading-color:         #0F172A;
  --bs-btn-focus-shadow-rgb:  20, 184, 166;
  --bs-focus-ring-color:      rgba(20,184,166,.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   Global Resets & Base
═══════════════════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden;
  max-width: 100%;
  background: var(--grad-page) !important;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--clr-text);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }
h5 { font-size: var(--fs-lg);  }
h6 { font-size: var(--fs-base); }

/* ── Links ───────────────────────────────────────────────────────── */
a { color: var(--clr-primary); transition: color var(--t-fast); }
a:hover { color: var(--clr-primary-hv); }

/* ── Code / Pre ──────────────────────────────────────────────────── */
code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  background: #f0fdf4;
  color: var(--clr-navy);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  border: 1px solid #bbf7d0;
}

/* ── Selection ───────────────────────────────────────────────────── */
::selection {
  background: rgba(20,184,166,.2);
  color: var(--clr-navy-deep);
}

/* ── Focus rings ─────────────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.nav-link:focus,
.btn:focus,
.dropdown-item:focus {
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Navigation
═══════════════════════════════════════════════════════════════════════ */

.navbar {
  background: var(--grad-brand) !important;
  box-shadow: 0 4px 20px rgba(20,184,166,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: visible;
  z-index: var(--z-fixed);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 82% 75%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.navbar-brand {
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform var(--t-base);
}
.navbar-brand:hover { transform: scale(1.04); }

.nav-link {
  font-weight: var(--fw-medium);
  font-size: 0.93rem;
  color: rgba(255,255,255,.92) !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: var(--r-sm);
  margin: 0 1px;
  transition: background var(--t-fast), transform var(--t-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Underline indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,.75);
  transition: width var(--t-base), left var(--t-base);
  border-radius: var(--r-pill);
}
.nav-link:hover::after,
.nav-link.active::after { width: 70%; left: 15%; }

/* Toggler */
.navbar-toggler {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.navbar-toggler:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown */
.dropdown-menu {
  background: rgba(255,255,255,.99);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 6px;
  z-index: var(--z-dropdown) !important;
  min-width: 180px;
  max-height: 80vh;
  overflow-y: auto;
}
.dropdown-menu::-webkit-scrollbar { width: 5px; }
.dropdown-menu::-webkit-scrollbar-track { background: var(--clr-surface-2); border-radius: 3px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 3px; }

.dropdown-header {
  font-weight: var(--fw-semibold);
  color: var(--clr-primary);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0.4rem 1rem;
}
.dropdown-item {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  padding: 0.45rem 1rem;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.dropdown-item:hover {
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-sm);
}
.dropdown-item a { text-decoration: none; color: inherit; display: block; width: 100%; }

/* Mobile nav */
@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: .4rem;
    padding-top: .4rem;
  }
  .navbar-nav .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border-radius: var(--r-md);
    margin: .2rem 0 .2rem 1rem !important;
    background: rgba(255,255,255,.1) !important;
    border: none;
  }
  .navbar-nav .dropdown-menu .dropdown-item { color: rgba(255,255,255,.9) !important; }
  .navbar-nav .dropdown-menu .dropdown-item:hover { background: rgba(255,255,255,.18) !important; color: #fff !important; }
  .navbar-nav .dropdown-menu .dropdown-header { color: rgba(255,255,255,.55) !important; }
  .navbar-collapse.show { max-height: calc(100vh - 60px); overflow-y: auto; }
  .navbar-nav .nav-link { padding: .7rem 1rem !important; }
}

/* Mega menu */
@media (min-width: 992px) {
  .pdf-mega-menu {
    position: absolute; top: calc(100% + 4px); left: 50%;
    transform: translateX(-50%); width: 640px;
    background: var(--clr-surface); border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl); border: 1px solid var(--clr-border);
    z-index: var(--z-dropdown); padding: 10px;
  }
  .pdf-mega-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .pdf-mega-col { padding: 4px 2px; }
  .pdf-mega-heading {
    font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--clr-primary);
    text-transform: uppercase; letter-spacing: .06em;
    padding: 2px 8px 6px; display: flex; align-items: center; gap: 5px;
  }
  .pdf-mega-item {
    display: flex; align-items: center; gap: 7px; padding: 7px 8px;
    border-radius: var(--r-sm); color: var(--clr-text);
    text-decoration: none; font-size: var(--fs-sm);
    transition: background var(--t-fast), color var(--t-fast); white-space: nowrap;
  }
  .pdf-mega-item:hover { background: #dcfce7; color: var(--clr-primary); }
  .pdf-mega-item i { width: 16px; text-align: center; flex-shrink: 0; }

  .fmt-mega-menu {
    position: absolute; top: calc(100% + 4px); right: 0; width: 420px;
    background: var(--clr-surface); border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl); border: 1px solid var(--clr-border);
    z-index: var(--z-dropdown); padding: 10px;
  }
  .fmt-mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .fmt-mega-col { padding: 4px 2px; }
  .fmt-mega-heading {
    font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--clr-primary);
    text-transform: uppercase; letter-spacing: .06em;
    padding: 2px 8px 6px; display: flex; align-items: center; gap: 5px;
  }
  .fmt-mega-item {
    display: flex; align-items: center; gap: 7px; padding: 7px 8px;
    border-radius: var(--r-sm); color: var(--clr-text);
    text-decoration: none; font-size: var(--fs-sm);
    transition: background var(--t-fast), color var(--t-fast);
  }
  .fmt-mega-item:hover { background: #dcfce7; color: var(--clr-primary); }
  .fmt-mega-item i { width: 16px; text-align: center; flex-shrink: 0; }
}

@media (max-width: 991.98px) {
  .pdf-mega-menu, .fmt-mega-menu {
    background: rgba(255,255,255,.07); border-radius: var(--r-md);
    margin: 4px 0 8px; padding: 6px;
  }
  .pdf-mega-inner, .fmt-mega-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .pdf-mega-col, .fmt-mega-col { display: contents; }
  .pdf-mega-heading, .fmt-mega-heading { display: none; }
  .pdf-mega-item, .fmt-mega-item {
    display: flex; align-items: center; gap: 5px; padding: 6px 7px;
    border-radius: var(--r-sm); color: rgba(255,255,255,.9);
    text-decoration: none; font-size: .8rem; overflow: hidden;
  }
  .pdf-mega-item:hover, .fmt-mega-item:hover { background: rgba(255,255,255,.15); color: #fff; }
  .pdf-mega-item i, .fmt-mega-item i { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Page Layout
═══════════════════════════════════════════════════════════════════════ */

.page-container {
  min-height: calc(100vh - 72px);
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .page-container { padding: 1rem 0; }
}

/* Ad layout (sidebars removed) */
.ad-layout-container { display: block; width: 100%; }
.ad-sidebar { display: none !important; }
.ad-main-content { display: block; width: 100%; }
.ad-mobile-top, .ad-mobile-bottom,
.advertise-banner-mobile, .advertise-label {
  display: none !important; visibility: hidden !important;
  height: 0 !important; margin: 0 !important;
  padding: 0 !important; overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Cards
═══════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.card-header {
  background: var(--grad-card);
  color: #fff;
  border-bottom: none;
  font-weight: var(--fw-semibold);
  padding: 1.1rem 1.25rem;
  font-size: var(--fs-base);
}

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════════════════════════════ */

.btn {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-md);
  border: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  letter-spacing: .01em;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--clr-primary-hv);
  box-shadow: 0 6px 20px rgba(22,163,74,.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-warning {
  background: #f59e0b;
  color: #1a1a1a;
}
.btn-warning:hover { background: #d97706; color: #1a1a1a; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════════════
   Upload Zone
═══════════════════════════════════════════════════════════════════════ */

.upload-zone {
  border: 2.5px dashed var(--clr-primary);
  background: rgba(20,184,166,.04);
  cursor: pointer;
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.upload-zone.drag-over {
  border-color: var(--clr-sky);
  background: rgba(34,211,238,.1);
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero Section
═══════════════════════════════════════════════════════════════════════ */

.hero-section {
  background: var(--grad-brand);
  border-radius: var(--r-2xl);
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: var(--fw-extrabold);
  margin: .5rem 0;
  letter-spacing: -.02em;
  line-height: var(--lh-tight);
}

/* ═══════════════════════════════════════════════════════════════════════
   Bootstrap Color Overrides
═══════════════════════════════════════════════════════════════════════ */

.text-primary    { color: var(--clr-primary) !important; }
.bg-primary      { background: var(--grad-brand) !important; }
.border-primary  { border-color: var(--clr-primary) !important; }
.text-muted      { color: var(--clr-text-muted) !important; }

.badge.bg-primary { background: var(--clr-primary) !important; }
.btn-outline-primary {
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
}
.btn-outline-primary:hover {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   Utilities
═══════════════════════════════════════════════════════════════════════ */

/* Toast */
.toast-wrapper {
  position: fixed; top: 80px; right: 20px;
  z-index: var(--z-toast); max-width: 340px;
}
.toast {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
}

/* Alert container */
.alert-container {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-overlay);
  max-width: 600px; width: 90%;
}

/* File item */
.file-item {
  cursor: move; border-radius: var(--r-md);
  background: var(--clr-surface);
  border-left: 3px solid transparent;
}

/* Progress bar */
#page-progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-sky), var(--clr-primary));
  z-index: var(--z-toast);
  transition: width .2s ease;
  border-radius: 0 2px 2px 0;
}

/* Back to top */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-sky) 100%);
  color: #fff; border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--shadow-primary);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(22,163,74,.55);
}
@media (max-width: 768px) {
  #back-to-top { bottom: 18px; right: 18px; width: 38px; height: 38px; font-size: 1rem; }
  .toast-wrapper { right: 10px; left: 10px; max-width: calc(100% - 20px); }
}

/* Skip link */
.visually-hidden-focusable {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
.visually-hidden-focusable:focus {
  position: fixed !important; width: auto !important; height: auto !important;
  padding: .5rem 1rem !important; margin: .5rem !important;
  overflow: visible !important; clip: auto !important;
  white-space: normal !important; z-index: var(--z-toast) !important;
  border-radius: var(--r-sm) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════════════════════════ */

footer {
  background: var(--clr-footer-bg) !important;
  color: var(--clr-footer-txt);
}
footer h5 {
  color: #fff !important;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  letter-spacing: .01em;
}
footer .footer-link {
  color: var(--clr-footer-dim) !important;
  text-decoration: none !important;
  font-size: var(--fs-sm);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-block;
}
footer .footer-link:hover {
  color: #fff !important;
  padding-left: 4px;
  text-decoration: underline !important;
}
footer hr { border-color: rgba(255,255,255,.15) !important; opacity: .5; }

.footer-legal-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 0 .3rem;
  transition: color var(--t-fast);
}
.footer-legal-link:hover { color: #7dd3fc; text-decoration: underline; }
.footer-legal-sep { color: rgba(255,255,255,.3); margin: 0 .1rem; user-select: none; }

/* ═══════════════════════════════════════════════════════════════════════
   Article / Blog Body Typography
═══════════════════════════════════════════════════════════════════════ */

.article-body {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--clr-text);
}
.article-body h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.article-body h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body strong { font-weight: var(--fw-semibold); color: var(--clr-heading); }
.article-body a { color: var(--clr-primary); font-weight: var(--fw-medium); }
.article-body a:hover { color: var(--clr-primary-hv); }
.article-body code {
  background: #f0fdf4;
  color: var(--clr-navy);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  font-size: .88em;
  border: 1px solid #bbf7d0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Responsive Helpers
═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .card { border-radius: var(--r-md); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .article-body { font-size: var(--fs-base); }
}
