/* =============================================
   theitnotes.com — Shared Stylesheet v2
   White / light theme · IBM Plex fonts
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg:        #ffffff;
  --bg-subtle: #f7f8fa;
  --surface:   #ffffff;
  --surface2:  #f0f2f5;
  --border:    #e2e6ed;
  --border2:   #d0d5de;
  --accent:    #0070f3;
  --accent-dk: #0057c2;
  --accent2:   #7c3aed;
  --green:     #059669;
  --warn:      #d97706;
  --text:      #111827;
  --muted:     #6b7280;
  --muted2:    #9ca3af;
  --tag-bg:    #eff6ff;
  --tag-text:  #1d4ed8;
  --radius:    8px;
  --radius-lg: 12px;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --transition: 180ms ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-subtle);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.nav__logo-text span { color: var(--muted); font-weight: 300; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.nav__link:hover {
  color: var(--text);
  background: var(--bg-subtle);
  border-color: var(--border);
}
.nav__link.active {
  color: var(--accent);
  background: var(--tag-bg);
  border-color: rgba(0,112,243,.15);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.nav__hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════
   HERO (homepage)
═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #fafafa 60%, #f5f0ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 60px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.hero__title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  color: var(--muted);
  max-width: 520px;
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { font-family: var(--font-mono); }
.stat__num {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}
.stat__label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #f0f6ff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-bottom: 48px;
}
.page-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-header__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header__desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
}

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header__left {}
.section-header__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.section-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.section-header__desc {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

/* ═══════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   NAV CARDS (homepage 3 big cards)
═══════════════════════════════════════════ */
.nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-card:hover {
  border-color: rgba(0,112,243,.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.nav-card:hover::before { opacity: 1; }
.nav-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: .1em;
}
.nav-card__icon {
  font-size: 30px;
  line-height: 1;
}
.nav-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.nav-card__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}
.nav-card__arrow {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  font-weight: 500;
}
.nav-card:hover .nav-card__arrow { gap: 12px; }

/* ═══════════════════════════════════════════
   ARTICLE / FEATURE CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.card:hover {
  border-color: rgba(0,112,243,.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--tag-bg);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--tag-text);
  margin-bottom: 12px;
  width: fit-content;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.card__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card__author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.card__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: gap var(--transition);
}
.card:hover .card__cta { gap: 8px; }

/* ═══════════════════════════════════════════
   CATEGORY CARDS (expandable — docs/blog lists)
═══════════════════════════════════════════ */
.cat-grid {
  columns: 2;
  column-gap: 20px;
  margin-bottom: 48px;
}
.cat-grid .category-card {
  break-inside: avoid;
  display: block;
  margin-bottom: 20px;
  width: 100%;
}
@media (max-width: 700px) {
  .cat-grid { columns: 1; }
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  align-self: start; /* prevent grid/flex stretching */
  height: auto;      /* always hug content */
}
.category-card:hover {
  border-color: rgba(0,112,243,.2);
  box-shadow: var(--shadow);
}
.category-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  transition: background var(--transition);
  gap: 12px;
}
.category-card__header:hover { background: var(--bg-subtle); }
.category-card__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.category-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--tag-bg);
  border: 1px solid rgba(0,112,243,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.category-card__info { min-width: 0; }
.category-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card__meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.category-card__chevron {
  color: var(--muted2);
  font-size: 13px;
  transition: transform 220ms ease;
  flex-shrink: 0;
}
.category-card.open .category-card__chevron { transform: rotate(180deg); }
.category-card.open { border-color: rgba(0,112,243,.25); }

.category-card__body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-subtle);
}
.category-card.open .category-card__body { display: flex; }

/* Subtopic rows */
.subtopic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.subtopic:hover {
  border-color: var(--accent);
  background: var(--tag-bg);
}
.subtopic__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.subtopic__desc {
  color: var(--muted);
  font-size: 11px;
}
.subtopic__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.subtopic__author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted2);
  white-space: nowrap;
}
.subtopic__link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   DETAIL PAGE — article/doc view
═══════════════════════════════════════════ */
.detail-header {
  background: linear-gradient(135deg, #f0f6ff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-bottom: 44px;
}
.detail-header__back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
.detail-header__back:hover { color: var(--accent); }
.detail-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--tag-bg);
  border: 1px solid rgba(0,112,243,.15);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tag-text);
  margin-bottom: 14px;
  font-weight: 500;
}
.detail-header__title {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  margin-bottom: 10px;
}
.detail-header__desc { color: var(--muted); max-width: 600px; font-size: 15px; }
.detail-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.detail-meta-item strong { color: var(--text); }

/* Step cards */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  border-color: rgba(0,112,243,.2);
  box-shadow: var(--shadow);
}
.step-card__num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--border2);
  flex-shrink: 0;
  width: 32px;
}
.step-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.step-card__desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.step-card__code {
  margin-top: 12px;
  background: #1e1e2e;
  border: 1px solid #2a2a3d;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7dd3fc;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

/* Info boxes */
.info-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.info-box.tip {
  background: #f0fdf4;
  border-color: #86efac;
}
.info-box.info {
  background: var(--tag-bg);
  border-color: rgba(0,112,243,.2);
}
.info-box__icon { flex-shrink: 0; line-height: 1.4; }
.info-box__text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.info-box__text strong { color: var(--text); }

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.about-wrap {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 60px;
}
@media (max-width: 760px) {
  .about-wrap { grid-template-columns: 1fr; }
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--tag-bg);
  border: 3px solid var(--border);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 500;
}
.profile-location { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.profile-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.profile-link {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: all var(--transition);
  cursor: pointer;
  font-weight: 500;
}
.profile-link:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); }

.about-section { margin-bottom: 36px; }
.about-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.about-section p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 10px; }

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  padding: 5px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  transition: all var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--tag-bg); }

.exp-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.exp-item__role { font-weight: 600; font-size: 15px; }
.exp-item__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}
.exp-item__company { font-size: 13px; color: var(--accent); margin-bottom: 6px; font-weight: 500; }
.exp-item__desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 500px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.cert-item__icon { font-size: 18px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 60px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__logo img { height: 24px; }
.footer__logo-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.footer__logo-text strong { color: var(--accent); }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2);
}
.footer__links {
  display: flex;
  gap: 16px;
}
.footer__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.spacer { height: 48px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 300ms ease both; }
.animate-d1 { animation-delay: 60ms; }
.animate-d2 { animation-delay: 120ms; }
.animate-d3 { animation-delay: 180ms; }

/* ═══════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    z-index: 99;
    box-shadow: var(--shadow);
  }
  .nav__hamburger { display: flex; }
  .nav { position: relative; }

  .hero { padding: 48px 0 40px; }
  .page-header { padding: 32px 0 28px; }
  .hero__stats { gap: 24px; }
}

/* ═══════════════════════════════════════════
   CAT-NAV-CARD (techdocs overview grid)
═══════════════════════════════════════════ */
.cat-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cat-nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-nav-card:hover {
  border-color: rgba(0,112,243,.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cat-nav-card:hover::before { opacity: 1; }
.cat-nav-card__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--tag-bg);
  border: 1px solid rgba(0,112,243,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.cat-nav-card__body { flex: 1; min-width: 0; }
.cat-nav-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.cat-nav-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.cat-nav-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-nav-card__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  background: var(--tag-bg);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,112,243,.15);
}
.cat-nav-card__author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2);
}
.cat-nav-card__arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  align-self: center;
  transition: transform var(--transition);
}
.cat-nav-card:hover .cat-nav-card__arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   DOC ACCORDION (category subpages)
═══════════════════════════════════════════ */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  align-items: start;
}
.doc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.doc-item:hover { 
  border-color: rgba(0,112,243,.2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.doc-item.open { border-color: rgba(0,112,243,.35); }

.doc-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.doc-item__header:hover { background: var(--bg-subtle); }
.doc-item.open .doc-item__header { background: var(--tag-bg); }

.doc-item__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.doc-item__tag.networking { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.doc-item__tag.linux      { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.doc-item__tag.windows    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.doc-item__tag.aws        { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.doc-item__tag.software   { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }

.doc-item__info { flex: 1; min-width: 0; }
.doc-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.doc-item__desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-item__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.doc-item__author {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2);
  white-space: nowrap;
}
.doc-item__chevron {
  color: var(--muted2);
  font-size: 13px;
  transition: transform 220ms ease;
}
.doc-item.open .doc-item__chevron { transform: rotate(180deg); color: var(--accent); }

.doc-item__body {
  display: none;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-grow: 1;
}
.doc-item.open .doc-item__body { display: block; }
.doc-item__full-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.doc-item__meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.doc-item__meta-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
}
.doc-item__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.doc-item__view-btn:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
}

/* Blog tag colours */
.doc-item__tag.linux-admin  { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.doc-item__tag.intune       { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.doc-item__tag.powershell   { background:#fdf4ff; color:#7e22ce; border:1px solid #e9d5ff; }
.doc-item__tag.ad           { background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; }
.doc-item__tag.networking-b { background:#f0f9ff; color:#0369a1; border:1px solid #bae6fd; }
.doc-item__tag.repair       { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.doc-item__tag.macos        { background:#f5f5f7; color:#1d1d1f; border:1px solid #d2d2d7; }
.doc-item__tag.jamf         { background:#fff0f3; color:#be123c; border:1px solid #fecdd3; }

/* Blog body content styling */
.blog-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
  font-family: var(--font-sans);
}
.blog-body strong { color: var(--text); font-weight: 600; }
.blog-code {
  background: #1e1e2e;
  border: 1px solid #2a2a3d;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7dd3fc;
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
  margin: 12px 0;
}

/* ═══════════════════════════════════════════
   MOBILE OVERFLOW FIX
═══════════════════════════════════════════ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
@media (max-width: 640px) {
  .step-card {
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    overflow: hidden;
  }
  .step-card__code,
  .blog-code {
    font-size: 11px;
    padding: 12px 14px;
  }
  .doc-item__body {
    overflow-x: hidden;
  }
  .container {
    overflow-x: hidden;
  }
}
