/* ============================================================
   AI Red Team Lab — Blog Stylesheet
   Dark security theme
   ============================================================ */

:root {
  --bg:          #0a0e1a;
  --bg2:         #0f1629;
  --card:        #131d35;
  --elevated:    #1a2540;
  --border:      #1e3054;
  --border2:     #2a4070;

  --text:        #e8eef7;
  --text2:       #8899b5;
  --text3:       #5a6d8a;

  --red:         #ff4757;
  --red-dim:     #c0392b;
  --blue:        #4a9eff;
  --blue-dim:    #2c72cc;
  --green:       #2ed573;
  --green-dim:   #1f9e52;
  --yellow:      #ffd32a;
  --orange:      #ff6b35;
  --purple:      #a371f7;

  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
                 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --mono:        'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.35);
  --transition:  0.2s ease;
  --nav-h:       64px;
  --sidebar-w:   260px;
  --content-max: 760px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.75; min-height: 100vh; }
img  { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a    { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7ab8ff; }
code { font-family: var(--mono); font-size: 0.875em; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; }

/* ── Reading Progress Bar ───────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 2000;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transition: width 0.1s linear;
}

/* ── Navigation ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: var(--text2); font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--elevated); }
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 0.4rem 1rem !important; border-radius: 20px !important;
}
.nav-cta:hover { background: var(--red-dim) !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 1rem; z-index: 999;
  flex-direction: column; gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text2); padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); }
.nav-mobile a:hover { color: var(--text); background: var(--elevated); }

/* ── Layout ─────────────────────────────────────── */
.page-wrapper { margin-top: var(--nav-h); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero ────────────────────────────────────────── */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,71,87,0.12) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
}
.hero-tag {
  display: inline-block; margin-bottom: 1rem;
  background: rgba(255,71,87,0.15); color: var(--red);
  border: 1px solid rgba(255,71,87,0.35);
  padding: 0.25rem 0.85rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; position: relative; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 1.1rem; color: var(--text2); max-width: 600px; margin: 0 auto 2rem; position: relative; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dim); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--elevated); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: rgba(74,158,255,0.1); color: var(--blue); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }

/* ── Cards ───────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.card-link { color: var(--text); text-decoration: none; }
.card-link:hover .card { border-color: var(--red); }

/* ── Article Card ─────────────────────────────────── */
.article-card { display: flex; flex-direction: column; }
.article-card .card-body { flex: 1; }
.article-card .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.read-more { color: var(--blue); font-size: 0.85rem; font-weight: 600; }

/* ── Tags / Badges ───────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.tag-red    { background: rgba(255,71,87,0.15);  color: var(--red);    border: 1px solid rgba(255,71,87,0.3); }
.tag-blue   { background: rgba(74,158,255,0.15); color: var(--blue);   border: 1px solid rgba(74,158,255,0.3); }
.tag-green  { background: rgba(46,213,115,0.15); color: var(--green);  border: 1px solid rgba(46,213,115,0.3); }
.tag-yellow { background: rgba(255,211,42,0.15); color: var(--yellow); border: 1px solid rgba(255,211,42,0.3); }
.tag-purple { background: rgba(163,113,247,0.15);color: var(--purple); border: 1px solid rgba(163,113,247,0.3); }
.tag-orange { background: rgba(255,107,53,0.15); color: var(--orange); border: 1px solid rgba(255,107,53,0.3); }

/* Difficulty stars */
.difficulty { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.75rem; color: var(--yellow); }
.difficulty .empty { color: var(--border2); }

/* ── Section Headers ─────────────────────────────── */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.section-header p { color: var(--text2); font-size: 1rem; }
.section-label {
  display: inline-block; margin-bottom: 0.6rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--red); text-transform: uppercase;
}

/* ── Divider ─────────────────────────────────────── */
.divider { border: none; height: 1px; background: var(--border); margin: 2rem 0; }

/* ── Article Layout ──────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 3rem; align-items: start;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.article-sidebar {
  position: sticky; top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
}
.toc {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.toc-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text3); text-transform: uppercase; margin-bottom: 0.75rem; }
.toc ul { list-style: none; padding: 0; }
.toc li { margin: 0; }
.toc a { color: var(--text2); font-size: 0.875rem; display: block; padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); border-left: 2px solid transparent; transition: all var(--transition); }
.toc a:hover { color: var(--text); background: var(--elevated); border-left-color: var(--border2); }
.toc a.active { color: var(--red); border-left-color: var(--red); background: rgba(255,71,87,0.08); }
.toc li.toc-h3 a { padding-left: 1.25rem; font-size: 0.83rem; }
.toc li.toc-h4 a { padding-left: 2rem; font-size: 0.8rem; }

/* ── Article Header ──────────────────────────────── */
.article-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text3); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--text2); }
.breadcrumb-sep { color: var(--border2); }
.article-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-meta .date { font-size: 0.8rem; color: var(--text3); }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
.article-lead { font-size: 1.05rem; color: var(--text2); line-height: 1.7; }

/* ── Article Body ────────────────────────────────── */
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: var(--text); }
.article-body h4 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; color: var(--text2); }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 700; }

/* Code blocks */
pre {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  overflow-x: auto; margin: 1.25rem 0;
  position: relative; line-height: 1.6;
}
pre code { font-size: 0.85rem; color: #c9d1d9; }
.code-header {
  background: var(--elevated); border: 1px solid var(--border);
  border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.5rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text3);
  margin-top: 1.25rem;
}
.code-header + pre { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.copy-btn {
  background: none; border: 1px solid var(--border2);
  color: var(--text3); padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.75rem;
  transition: all var(--transition);
}
.copy-btn:hover { background: var(--elevated); color: var(--text); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* Inline code */
p code, li code, td code {
  background: var(--elevated); border: 1px solid var(--border);
  padding: 0.1em 0.4em; border-radius: var(--radius-sm);
  font-size: 0.875em; color: var(--orange);
}

/* ── Callout Boxes ───────────────────────────────── */
.callout {
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin: 1.5rem 0; display: flex; gap: 0.75rem; align-items: flex-start;
  border-left: 4px solid;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout-body { flex: 1; }
.callout-body p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 0.25rem; font-size: 0.9rem; }
.callout-note    { background: rgba(74,158,255,0.08);  border-color: var(--blue);   }
.callout-note .callout-title    { color: var(--blue);   }
.callout-tip     { background: rgba(46,213,115,0.08);  border-color: var(--green);  }
.callout-tip .callout-title     { color: var(--green);  }
.callout-warning { background: rgba(255,211,42,0.08);  border-color: var(--yellow); }
.callout-warning .callout-title { color: var(--yellow); }
.callout-danger  { background: rgba(255,71,87,0.08);   border-color: var(--red);    }
.callout-danger .callout-title  { color: var(--red);    }

/* ── Tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--elevated); }
th { padding: 0.75rem 1rem; text-align: left; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--elevated); }

/* ── Accordion ───────────────────────────────────── */
.accordion { margin: 1rem 0; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; overflow: hidden; }
.accordion-trigger {
  width: 100%; background: var(--card); border: none; cursor: pointer;
  padding: 0.9rem 1.1rem; display: flex; align-items: center; justify-content: space-between;
  color: var(--text); font-size: 0.95rem; font-weight: 600; text-align: left;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--elevated); }
.accordion-trigger.open { background: var(--elevated); }
.accordion-arrow { transition: transform var(--transition); font-style: normal; }
.accordion-trigger.open .accordion-arrow { transform: rotate(90deg); }
.accordion-body { display: none; padding: 1rem 1.1rem; background: var(--bg2); border-top: 1px solid var(--border); color: var(--text2); font-size: 0.9rem; line-height: 1.7; }
.accordion-body.open { display: block; }

/* ── Highlight / Steps ───────────────────────────── */
.steps { counter-reset: step; margin: 1.5rem 0; }
.step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-num {
  counter-increment: step;
  width: 32px; height: 32px; min-width: 32px;
  background: var(--red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.step-body h4 { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.step-body p { color: var(--text2); }

/* Info Box */
.info-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.info-box h4 { margin-bottom: 0.75rem; }

/* ── Risk Cards ──────────────────────────────────── */
.risk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.risk-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.risk-card .risk-num { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.risk-card h4 { margin-bottom: 0.5rem; }
.risk-card p { color: var(--text2); font-size: 0.875rem; margin: 0; }

/* ── Roadmap ─────────────────────────────────────── */
.roadmap { position: relative; padding-left: 2rem; }
.roadmap::before { content: ''; position: absolute; left: 0.6rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.roadmap-stage { position: relative; margin-bottom: 2.5rem; }
.roadmap-stage::before {
  content: ''; position: absolute; left: -1.625rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--border);
}
.roadmap-stage.active::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px rgba(255,71,87,0.5); }
.stage-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stage-card h3 { margin-bottom: 0.5rem; }
.stage-card p  { color: var(--text2); font-size: 0.9rem; margin-bottom: 0.75rem; }
.stage-articles { display: flex; flex-direction: column; gap: 0.4rem; }
.stage-article-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text2); font-size: 0.875rem; padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.stage-article-link:hover { color: var(--text); background: var(--elevated); }
.check-icon { color: var(--green); flex-shrink: 0; }

/* ── Feature Grid (Homepage) ─────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text2); font-size: 0.875rem; line-height: 1.6; }

/* ── Glossary ────────────────────────────────────── */
.glossary-search {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 1rem; margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.glossary-search:focus { outline: none; border-color: var(--blue); }
.glossary-search::placeholder { color: var(--text3); }
.glossary-letter { font-size: 1.5rem; font-weight: 900; color: var(--red); margin: 1.5rem 0 0.75rem; }
.glossary-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.glossary-item:last-child { border-bottom: none; }
.glossary-term { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.glossary-term .en { color: var(--text3); font-size: 0.875rem; font-weight: 400; margin-left: 0.5rem; }
.glossary-def { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* ── Nav Pagination ──────────────────────────────── */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-nav-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
  color: var(--text); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.article-nav-card:hover { border-color: var(--border2); color: var(--text); }
.article-nav-label { font-size: 0.75rem; color: var(--text3); margin-bottom: 0.3rem; }
.article-nav-title { font-weight: 700; font-size: 0.9rem; }
.article-nav-next { text-align: right; align-items: flex-end; }

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
  display: flex; gap: 2rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem; margin: 3rem 0;
}
.stat { text-align: center; flex: 1; min-width: 100px; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--red); }
.stat-label { font-size: 0.8rem; color: var(--text3); margin-top: 0.25rem; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem; margin-top: 5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-brand p { color: var(--text2); font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--text3); font-size: 0.875rem; }
.footer-col a:hover { color: var(--text2); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text3); font-size: 0.8rem; }
.ethics-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.3);
  color: var(--green); padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}

/* ── Utilities ───────────────────────────────────── */
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--text2); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.fw-bold { font-weight: 700; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .section { padding: 2.5rem 0; }
  .article-nav { grid-template-columns: 1fr; }
  .stats-bar { gap: 1rem; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* Syntax highlight hints */
pre .kw  { color: #ff7b72; }
pre .str { color: #a5d6ff; }
pre .cmt { color: #8b949e; font-style: italic; }
pre .num { color: #79c0ff; }
pre .fn  { color: #d2a8ff; }
pre .var { color: #ffa657; }
