/* ==========================================================================
   ExcelAstuces — Main Stylesheet
   ========================================================================== */

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1a7a42;
  --green-light:  #22a356;
  --green-pale:   #e8f5ee;
  --green-mid:    #c2e8d1;
  --blue:         oklch(56% 0.19 240);
  --purple:       oklch(58% 0.19 290);
  --orange:       oklch(65% 0.19 50);
  --red:          oklch(60% 0.19 25);
  --teal:         oklch(58% 0.18 160);
  --bg:           #f7f8f6;
  --surface:      #ffffff;
  --border:       #e2e6e0;
  --text:         #1a1f18;
  --text-muted:   #5a6655;
  --text-faint:   #8a9985;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  --font:         'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --container:    1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ────────────────────────────────────────────────────── */
.ea-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.ea-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.ea-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ea-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.ea-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.ea-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.ea-logo-text span { color: var(--text-faint); font-weight: 500; }

.ea-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ea-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .18s;
}

.ea-nav a:hover,
.ea-nav a.current {
  background: var(--green-pale);
  color: var(--green);
  text-decoration: none;
}

.ea-nav .ea-nav-cta {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  margin-left: 8px;
}

.ea-nav .ea-nav-cta:hover {
  background: var(--green-light);
  color: #fff;
}

/* ── Mobile nav toggle ────────────────────────────────────────────── */
.ea-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ea-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* ==========================================================================
   HERO — Blog Home
   ========================================================================== */
.ea-hero {
  background: linear-gradient(135deg, #0f5c2e 0%, #1a7a42 50%, #14834a 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ea-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.ea-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ea-hero-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  backdrop-filter: blur(4px);
}

.ea-hero-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.ea-hero-logo-text span { color: #7ee8a2; }

.ea-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ea-hero h1 em {
  font-style: normal;
  color: #7ee8a2;
}

.ea-hero p {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Search */
.ea-search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.ea-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,.35);
  pointer-events: none;
  display: flex;
}

.ea-search-input {
  width: 100%;
  padding: 15px 48px 15px 46px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  outline: none;
  transition: box-shadow .2s;
}

.ea-search-input:focus {
  box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 0 3px rgba(34,163,86,.3);
}

/* Stats */
.ea-hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.ea-hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.ea-hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* ==========================================================================
   CATEGORY FILTERS
   ========================================================================== */
.ea-filters {
  padding: 28px 0 0;
}

.ea-filters-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ea-filter-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
}

.ea-filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.ea-filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ==========================================================================
   ARTICLE GRID
   ========================================================================== */
.ea-grid-section {
  padding: 20px 0 80px;
}

.ea-results-count {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-weight: 500;
}

.ea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Article Card ─────────────────────────────────────────────────── */
.ea-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: all .22s cubic-bezier(.25,.8,.25,1);
  text-decoration: none;
  color: var(--text);
}

.ea-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}

.ea-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ea-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ea-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  color: #fff;
}

.ea-badge-tag {
  background: var(--green-pale);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}

.ea-card-fav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  color: var(--text-faint);
  transition: all .18s;
  flex-shrink: 0;
  line-height: 1;
}

.ea-card-fav:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.ea-card-fav.active { color: #ef4444; background: rgba(239,68,68,.08); }

.ea-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.ea-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Formula chip */
.ea-formula-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f1c14;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.ea-formula-chip code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7ee8a2;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ea-formula-copy {
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  color: #fff;
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ea-formula-copy:hover { background: rgba(255,255,255,.18); }
.ea-formula-copy.copied { background: #22a356; }

.ea-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ea-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-faint);
}

.ea-level-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}

.ea-level-debutant      { background: var(--green-pale); color: var(--green); }
.ea-level-intermediaire { background: oklch(95% 0.05 85); color: oklch(55% 0.15 85); }
.ea-level-avance        { background: oklch(95% 0.04 25); color: oklch(52% 0.15 25); }

/* ==========================================================================
   SINGLE ARTICLE — Reading Progress
   ========================================================================== */
.ea-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(0,0,0,.06);
}

.ea-reading-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a7a42, #22a356);
  width: 0%;
  transition: width .1s linear;
}

/* ==========================================================================
   SINGLE ARTICLE — Hero
   ========================================================================== */
.ea-article-hero {
  background: linear-gradient(135deg, #0f5c2e 0%, #1a7a42 50%, #14834a 100%);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}

.ea-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.ea-article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.ea-article-hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ea-article-hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.ea-article-hero h1 em {
  font-style: normal;
  color: #7ee8a2;
}

.ea-article-hero-desc {
  color: rgba(255,255,255,.72);
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 620px;
}

.ea-article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.ea-article-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
  font-weight: 500;
}

/* ── Article Actions (header) ─────────────────────────────────────── */
.ea-article-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ea-action-btn {
  background: #f4f5f3;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all .18s;
}

.ea-action-btn:hover { background: #e8e9e6; }
.ea-action-btn.fav-active { background: rgba(239,68,68,.1); color: #ef4444; }
.ea-action-btn.shared { background: var(--green-pale); color: var(--green); }

/* ==========================================================================
   SINGLE ARTICLE — Layout
   ========================================================================== */
.ea-article-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

/* ==========================================================================
   ARTICLE CONTENT — Typography
   ========================================================================== */
.ea-article-content {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4238;
}

.ea-article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 44px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 80px;
}

.ea-article-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2a3528;
  margin: 28px 0 12px;
}

.ea-article-content p { margin-bottom: 16px; }
.ea-article-content p:last-child { margin-bottom: 0; }

.ea-article-content strong { color: var(--text); font-weight: 700; }

.ea-article-content code {
  background: var(--green-pale);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ea-article-content ul,
.ea-article-content ol {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ea-article-content li { font-size: 14.5px; color: var(--text-muted); }
.ea-article-content hr { border: none; border-top: 1px solid var(--border); margin: 48px 0 40px; }

/* ── Formula Block ────────────────────────────────────────────────── */
.ea-formula-block {
  background: #0f1c14;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.ea-formula-block-header {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ea-formula-block-label {
  font-size: 11px;
  color: #5a8f6a;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ea-formula-block-copy {
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  color: #fff;
  font-size: 11.5px;
  font-family: var(--font);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}

.ea-formula-block-copy:hover { background: rgba(255,255,255,.14); }
.ea-formula-block-copy.copied { background: #22a356; }

.ea-formula-block pre {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #7ee8a2;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Tip Boxes ────────────────────────────────────────────────────── */
.ea-tip {
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ea-tip-icon { font-size: 18px; line-height: 1.4; flex-shrink: 0; }

.ea-tip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ea-tip-body { font-size: 14.5px; line-height: 1.65; color: #2a3528; }

.ea-tip-green  { background: #e8f5ee; border-left: 3px solid #22a356; }
.ea-tip-green .ea-tip-label { color: var(--green); }

.ea-tip-yellow { background: oklch(97% 0.04 85); border-left: 3px solid oklch(70% 0.18 85); }
.ea-tip-yellow .ea-tip-label { color: oklch(52% 0.18 85); }

.ea-tip-blue   { background: oklch(96% 0.03 240); border-left: 3px solid oklch(60% 0.16 240); }
.ea-tip-blue .ea-tip-label { color: oklch(50% 0.18 240); }

.ea-tip-indigo { background: #f0f4ff; border-left: 3px solid #4f6ef7; }
.ea-tip-indigo .ea-tip-label { color: #3451d1; }

/* ── Comparison Table ─────────────────────────────────────────────── */
.ea-compare-table-wrap { overflow-x: auto; margin: 24px 0; }

.ea-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ea-compare-table thead tr { background: var(--green); }

.ea-compare-table th {
  padding: 11px 16px;
  text-align: left;
  color: #fff;
  font-weight: 700;
}

.ea-compare-table th:nth-child(2),
.ea-compare-table th:nth-child(3) { text-align: center; }

.ea-compare-table th:nth-child(3) { color: #7ee8a2; }

.ea-compare-table th:first-child  { border-radius: 8px 0 0 0; }
.ea-compare-table th:last-child   { border-radius: 0 8px 0 0; }

.ea-compare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.ea-compare-table td:nth-child(2) { text-align: center; color: var(--text-muted); }
.ea-compare-table td:nth-child(3) { text-align: center; color: var(--green); font-weight: 600; }

.ea-compare-table tbody tr:nth-child(odd)  { background: #fff; }
.ea-compare-table tbody tr:nth-child(even) { background: #f7f8f6; }

/* ── Steps ────────────────────────────────────────────────────────── */
.ea-step {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.ea-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 2px;
}

.ea-step-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 6px;
  color: var(--text);
}

.ea-step-body { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ── Divider ──────────────────────────────────────────────────────── */
.ea-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 40px;
}

/* ==========================================================================
   TABLE OF CONTENTS (Sidebar)
   ========================================================================== */
.ea-toc {
  position: sticky;
  top: 80px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
}

.ea-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.ea-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ea-toc-item a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .15s;
}

.ea-toc-item a:hover {
  background: var(--green-pale);
  color: var(--green);
  text-decoration: none;
}

.ea-toc-item.current a {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
  border-left-color: var(--green);
}

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */
.ea-related h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.ea-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ea-related-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.ea-related-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.ea-related-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 10px 0 6px;
  line-height: 1.35;
  color: var(--text);
}

.ea-related-card p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.5;
  margin-bottom: 10px;
}

.ea-related-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ea-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: #fff;
}

.ea-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.ea-footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
}

.ea-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.ea-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ea-footer-col ul li a {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}

.ea-footer-col ul li a:hover { color: var(--green); }

.ea-footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================================
   WIDGETS
   ========================================================================== */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: .02em; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.ea-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.ea-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}

.ea-pagination .page-numbers:hover,
.ea-pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .ea-article-layout {
    grid-template-columns: 1fr;
  }
  .ea-toc { display: none; }
  .ea-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ea-hero h1 { font-size: 30px; }
  .ea-article-hero h1 { font-size: 28px; }
  .ea-nav { display: none; }
  .ea-hamburger { display: flex; }
  .ea-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .ea-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ea-grid { grid-template-columns: 1fr; }
  .ea-hero { padding: 48px 20px 56px; }
}
