/* ============================================================
   Opsagon GCP — Cloud Architect Academy
   Enterprise learning platform styling
   ============================================================ */

:root {
  --topbar-h: 60px;
  --sidebar-w: 300px;
  --maxw: 900px;

  --accent: #4285F4;
  --accent-2: #34A853;
  --accent-soft: rgba(66, 133, 244, 0.16);
  --link: #4c9aff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ---- Dark (default) ---- */
[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(66,133,244,0.10), transparent 60%),
             radial-gradient(1000px 500px at -10% 10%, rgba(76,154,255,0.07), transparent 55%);
  --surface: #12161f;
  --surface-2: #171c27;
  --surface-3: #1d2431;
  --text: #e9edf5;
  --text-2: #9aa6b8;
  --text-3: #64708a;
  --stroke: #242c3a;
  --stroke-2: #1b222e;
  --code-bg: #0d1017;
  --success: #3fb950;
  --warning: #d9a441;
  --danger: #f0616d;
}

/* ---- Light ---- */
[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(66,133,244,0.16), transparent 60%),
             radial-gradient(1000px 500px at -10% 5%, rgba(52,168,83,0.09), transparent 55%);
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --surface-3: #e9edf4;
  --text: #10151f;
  --text-2: #566179;
  --text-3: #8a93a7;
  --stroke: #e2e7f0;
  --stroke-2: #edf0f6;
  --code-bg: #f6f8fb;
  --link: #2563eb;
  --success: #1a7f37;
  --warning: #9a6700;
  --danger: #d1242f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent-soft); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--stroke); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============================ TOP BAR ============================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; z-index: 60;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 3px 8px rgba(66,133,244,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--text-2); letter-spacing: .2px; }

.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  min-width: 240px; max-width: 420px; flex: 1;
  background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--stroke); border-radius: 10px;
  padding: 8px 12px; cursor: text; font-family: inherit; font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.search-trigger:hover { border-color: var(--text-3); }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd, .palette kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--stroke);
  border-radius: 6px; padding: 2px 6px;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; color: var(--text-2);
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--stroke); }
.nav-toggle { display: none; margin-left: -6px; }

[data-theme="dark"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: none; }

.progress-chip { position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
.progress-chip .ring { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--stroke); stroke-width: 3; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .6s ease; }
.progress-chip span { position: absolute; font-size: 9.5px; font-weight: 700; color: var(--text); }

/* ============================ SIDEBAR ============================ */
.sidebar {
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  z-index: 40;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid var(--stroke-2); }
.reset-progress {
  width: 100%; background: transparent; color: var(--text-3);
  border: 1px solid var(--stroke); border-radius: 8px; padding: 7px;
  font-size: 12px; font-family: inherit; cursor: pointer;
}
.reset-progress:hover { color: var(--danger); border-color: var(--danger); }

.nav-home {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin-bottom: 6px;
  border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.nav-home:hover { background: var(--surface-2); color: var(--text); }
.nav-home.active { background: var(--accent-soft); color: var(--accent); }

.nav-group { margin-bottom: 3px; }
.nav-group-head { display: flex; align-items: stretch; border-radius: 9px; overflow: hidden; }
.grp-link {
  flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 8px 8px 8px 12px; color: var(--text-2); font-size: 13px; font-weight: 600;
}
.grp-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.grp-link.active { background: var(--accent-soft); color: var(--accent); }
.grp-link .cat-icon { display: grid; place-items: center; flex-shrink: 0; }
.grp-link .grp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-link .grp-count {
  font-size: 10.5px; color: var(--text-3); font-weight: 600;
  background: var(--surface-2); border-radius: 20px; padding: 1px 7px; flex-shrink: 0;
}
.grp-toggle {
  display: grid; place-items: center; width: 34px; flex-shrink: 0;
  background: transparent; border: none; cursor: pointer; color: var(--text-3);
}
.grp-toggle:hover { background: var(--surface-2); color: var(--text); }
.nav-group.open .grp-toggle svg { transform: rotate(90deg); }
.grp-toggle svg { transition: transform .2s; }

.nav-items { display: none; margin: 2px 0 6px; padding-left: 8px; }
.nav-group.open .nav-items { display: block; }
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border-radius: 8px; margin: 1px 0;
  color: var(--text-2); font-size: 13px; cursor: pointer;
  border-left: 2px solid var(--stroke-2);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.nav-item.nav-overview { font-weight: 600; font-size: 12.5px; color: var(--text-3); padding-left: 12px; }
.nav-item.nav-overview.active { color: var(--accent); }
.ni-order {
  width: 18px; height: 18px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: var(--text-3); background: var(--surface-3); border-radius: 5px;
}
.nav-item.active .ni-order { background: var(--accent-soft); color: var(--accent); }
.nav-item.done .ni-order { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.nav-item.done .ni-aws { box-shadow: 0 0 0 2px var(--success); border-radius: 6px; }
.nav-item .ni-icon { position: relative; flex-shrink: 0; display: grid; place-items: center; }
.nav-item .ni-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scrim { display: none; }

/* ============================ CONTENT ============================ */
.content {
  margin-left: var(--sidebar-w); margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
  padding: 0;
}

/* ---------- Dashboard ---------- */
.dash { max-width: 1120px; margin: 0 auto; padding: 40px 32px 80px; }
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--stroke); border-radius: 20px;
  padding: 46px 40px; margin-bottom: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 55%);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,153,0,.22), transparent 70%); pointer-events: none;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 12px; border-radius: 30px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -1px; margin: 0 0 14px; max-width: 720px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 16px; color: var(--text-2); max-width: 620px; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
}
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #ffffff; box-shadow: 0 8px 22px rgba(66,133,244,.28); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--stroke); }
.btn-ghost:hover { text-decoration: none; border-color: var(--text-3); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 34px; }
.stat {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 18px 18px; position: relative; overflow: hidden;
}
.stat .num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.stat .lbl { color: var(--text-2); font-size: 12.5px; margin-top: 7px; }
.stat .ic { position: absolute; right: 12px; top: 12px; color: var(--accent); opacity: .5; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 16px; }
.section-title h2 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.section-title .hint { font-size: 12.5px; color: var(--text-3); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cat-card {
  display: block; background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 20px; cursor: pointer; color: var(--text);
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-card .cc-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent); flex-shrink: 0;
}
.cat-card h3 { font-size: 15.5px; margin: 0; font-weight: 700; }
.cat-card .cc-count { font-size: 12px; color: var(--text-3); }
.cat-card p { font-size: 13px; color: var(--text-2); margin: 0 0 14px; }
.cat-card .cc-progress { height: 6px; background: var(--surface-3); border-radius: 20px; overflow: hidden; }
.cat-card .cc-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 20px; transition: width .5s; }
.cat-card .cc-progress-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; }
.cat-card .cc-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cat-card .cc-chip { font-size: 11px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--stroke-2); border-radius: 20px; padding: 2px 9px; }

.dash-foot { margin-top: 40px; color: var(--text-3); font-size: 12.5px; text-align: center; border-top: 1px solid var(--stroke-2); padding-top: 22px; }

/* ---------- Article layout ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 36px; max-width: 1240px; margin: 0 auto; padding: 26px 32px 100px; }
.article { min-width: 0; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--text-3); }

.article-head {
  border-bottom: 1px solid var(--stroke); padding-bottom: 20px; margin-bottom: 26px;
}
.article-head .cat-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 4px 11px; margin-bottom: 12px;
}
.article-meta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.article-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.abadge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--stroke); border-radius: 8px; padding: 4px 10px; }
.abadge b { color: var(--text); }
.complete-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--stroke);
  border-radius: 10px; padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.complete-btn:hover { border-color: var(--success); color: var(--success); }
.complete-btn.done { background: color-mix(in srgb, var(--success) 16%, transparent); border-color: var(--success); color: var(--success); }

/* Markdown body */
.md { font-size: 15px; }
.md h1 { display: none; } /* title rendered in head */
.md h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -.4px;
  margin: 44px 0 16px; padding-top: 8px; scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.md h2:first-of-type { margin-top: 8px; }
.md h3 { font-size: 18px; font-weight: 650; margin: 30px 0 10px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.md h4 { font-size: 15px; font-weight: 650; margin: 22px 0 8px; color: var(--text); }
.md p { margin: 12px 0; color: var(--text); }
.md strong { color: var(--text); font-weight: 650; }
.md ul, .md ol { margin: 12px 0; padding-left: 24px; }
.md li { margin: 5px 0; }
.md li::marker { color: var(--accent); }
.md hr { border: none; border-top: 1px solid var(--stroke); margin: 30px 0; }
.md a { color: var(--link); border-bottom: 1px solid transparent; }
.md a:hover { border-bottom-color: var(--link); text-decoration: none; }
.md blockquote { border-left: 3px solid var(--accent); background: var(--surface-2); margin: 16px 0; padding: 4px 18px; border-radius: 0 10px 10px 0; color: var(--text-2); }

/* Inline code */
.md :not(pre) > code {
  font-family: var(--mono); font-size: 12.8px; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 1.5px 6px;
}
/* Code blocks */
.md pre {
  background: var(--code-bg); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 18px 0; position: relative;
  font-size: 13px; line-height: 1.55;
}
.md pre code { font-family: var(--mono); background: none; padding: 0; color: var(--text); }
.code-lang {
  position: absolute; top: 8px; right: 10px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-3); font-weight: 600;
}
.copy-btn {
  position: absolute; top: 7px; right: 60px; font-size: 11px; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--stroke); border-radius: 7px;
  padding: 3px 9px; cursor: pointer; opacity: 0; transition: opacity .15s; font-family: inherit;
}
.md pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--text); }

/* Tables */
.md .table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}
.md table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.md thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 70%, var(--surface)) 100%);
  padding: 12px 16px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, var(--stroke));
  white-space: nowrap;
}
.md tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--stroke-2);
  vertical-align: top;
  color: var(--text-2);
}
.md tbody tr:last-child td { border-bottom: none; }
.md tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}
.md tbody tr:hover td {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.md td strong, .md th strong { color: var(--text); font-weight: 650; }
.md .table-wrap + em, .md table + em { display: block; margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* Mermaid diagrams */
.md .mermaid {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px;
  padding: 20px; margin: 18px 0; text-align: center; overflow-x: auto;
}
.md .mermaid svg { max-width: 100%; height: auto; }

/* Collapsible answers (exam / interview) */
.md details {
  border: 1px solid var(--stroke); border-radius: 10px; margin: 12px 0;
  background: var(--surface-2); overflow: hidden;
}
.md details summary {
  cursor: pointer; padding: 10px 16px; font-weight: 600; font-size: 13.5px; color: var(--accent);
  list-style: none; display: flex; align-items: center; gap: 8px; user-select: none;
}
.md details summary::-webkit-details-marker { display: none; }
.md details summary::before { content: "▸"; color: var(--text-3); font-size: 11px; }
.md details[open] summary::before { content: "▾"; }
.md details[open] summary { border-bottom: 1px solid var(--stroke-2); }
.md details > *:not(summary) { padding-left: 16px; padding-right: 16px; }
.md details p:first-of-type { margin-top: 12px; }
.md details p:last-child { margin-bottom: 12px; }

/* Article footer nav */
.article-nav { display: flex; gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--stroke); }
.anav {
  flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px;
  border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface); color: var(--text);
}
.anav:hover { border-color: var(--accent); text-decoration: none; }
.anav.next { text-align: right; align-items: flex-end; }
.anav .dir { font-size: 11.5px; color: var(--text-3); }
.anav .ttl { font-size: 14px; font-weight: 600; }

/* Right rail: TOC */
.toc { position: sticky; top: calc(var(--topbar-h) + 26px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 60px); overflow-y: auto; }
.toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 12px; padding-left: 12px; }
.toc a {
  display: block; font-size: 12.8px; color: var(--text-2); padding: 5px 12px;
  border-left: 2px solid var(--stroke-2); line-height: 1.4;
}
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.h3 { padding-left: 24px; font-size: 12px; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* ============================ SEARCH PALETTE ============================ */
.palette {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start;
  padding-top: 12vh;
}
.palette[hidden] { display: none; }
.palette-box {
  width: min(640px, 92vw); background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--stroke); color: var(--text-3); }
.palette-input input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 16px; font-family: inherit; }
.palette-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.presult {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.presult.active, .presult:hover { background: var(--surface-2); }
.presult .pr-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.presult .pr-main { min-width: 0; flex: 1; }
.presult .pr-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presult .pr-title mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.presult .pr-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.presult .pr-cat { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.palette-empty { padding: 32px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* ============================ GCP ICONS ============================ */
.aws-icon { display: block; object-fit: contain; flex-shrink: 0; background: transparent; }
.aws-icon.icon-fallback {
  opacity: 1;
  background: #dd344c;
  border-radius: 4px;
  /* hide broken-image glyph when src was cleared */
  object-fit: none;
  color: transparent;
}
.svc-icon-lg-img {
  width: 64px; height: 64px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--stroke);
  border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.ni-aws { width: 22px; height: 22px; border-radius: 5px; }
.cc-aws { width: 42px; height: 42px; padding: 6px; background: var(--surface-2); border-radius: 11px; border: 1px solid var(--stroke-2); }
.pr-aws { width: 36px; height: 36px; padding: 4px; background: var(--surface-2); border-radius: 9px; border: 1px solid var(--stroke-2); }

/* ============================ ARTICLE HEADER v2 ============================ */
.article-head-main { display: flex; gap: 18px; align-items: flex-start; }
.article-head-text { flex: 1; min-width: 0; }
.meta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 8px; border: 1px solid var(--stroke); background: var(--surface-2);
}
.meta-badge b { color: var(--text); font-weight: 700; }
.meta-badge.diagrams { border-color: color-mix(in srgb, var(--link) 35%, var(--stroke)); color: var(--link); }
.meta-badge.interview { border-color: color-mix(in srgb, var(--warning) 35%, var(--stroke)); color: var(--warning); }

.pilot-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .35px; text-transform: uppercase;
  color: #4285f4; background: color-mix(in srgb, #4285f4 14%, transparent);
  border: 1px solid color-mix(in srgb, #4285f4 40%, transparent);
}
.meta-badge.exam { border-color: color-mix(in srgb, var(--success) 35%, var(--stroke)); color: var(--success); }
.meta-badge.read { color: var(--text-2); }

/* ============================ SECTION TABS ============================ */
.section-nav-wrap {
  position: sticky; top: var(--topbar-h); z-index: 30;
  margin: 0 -32px 24px; padding: 10px 32px 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}

.section-tabs {
  display: grid;
  grid-template-columns: repeat(var(--sec-tabs, 8), minmax(0, 1fr));
  width: 100%;
  gap: 1px;
  overflow: hidden;
  padding: 4px 4px 0;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--stroke);
  border-bottom: none;
  background: var(--stroke-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.sec-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 4px 14px;
  border: none;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-3);
  transition: color .18s, background .18s, transform .12s;
}
.sec-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}
.sec-tab:active { transform: scale(.98); }
.sec-tab.active {
  color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)) 0%, var(--surface) 100%);
}
.sec-tab.active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  box-shadow: 0 -1px 8px color-mix(in srgb, var(--accent) 45%, transparent);
}
.sec-tab .tab-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .35px;
  line-height: 1;
  opacity: .45;
}
.sec-tab.active .tab-num { opacity: 1; color: var(--accent); }
.sec-tab .tab-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-2);
  opacity: .9;
  flex-shrink: 0;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.sec-tab:hover .tab-ic {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--stroke));
  transform: translateY(-1px);
}
.sec-tab.active .tab-ic {
  opacity: 1;
  background: color-mix(in srgb, var(--accent-soft) 85%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke));
  box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sec-tab .tab-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -.1px;
}

/* Terraform tab — brand purple when active */
.sec-tab[data-sec="terraform"].active,
.sec-tab[data-sec="terraform"].active .tab-num { color: #844FBA; }
.sec-tab[data-sec="terraform"].active::after { background: #844FBA; box-shadow: 0 -1px 8px rgba(132, 79, 186, .35); }
.sec-tab[data-sec="terraform"].active .tab-ic {
  background: color-mix(in srgb, #844FBA 14%, var(--surface));
  border-color: color-mix(in srgb, #844FBA 40%, var(--stroke));
  box-shadow: 0 3px 12px rgba(132, 79, 186, .18);
}
.sec-tab[data-sec="terraform"]:hover .tab-ic { border-color: color-mix(in srgb, #844FBA 30%, var(--stroke)); }

.section-panel[data-sec="iac"] > h2:first-child { margin-top: 16px; }

/* IaC tool subtabs — Terraform · CloudFormation · CDK */
.iac-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
}
.iac-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.iac-subtab:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--stroke);
}
.iac-subtab-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.iac-subtab-ic .iac-tool-icon,
.iac-subtab-ic img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.tab-ic .tab-ic-img,
.tab-ic .iac-tool-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}
.code-file-icon .iac-tool-icon,
.code-file-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.iac-subtab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iac-subtab-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text-3);
  flex-shrink: 0;
}
.iac-subtab.active { color: var(--text); background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.iac-subtab[data-iac="terraform"].active { border-color: color-mix(in srgb, #844FBA 45%, var(--stroke)); color: #844FBA; }
.iac-subtab[data-iac="terraform"].active .iac-subtab-ic {
  background: color-mix(in srgb, #844FBA 14%, var(--surface));
  border-color: color-mix(in srgb, #844FBA 40%, var(--stroke));
  color: #844FBA;
}
.iac-subtab[data-iac="terraform"].active .iac-subtab-badge {
  color: #844FBA;
  border-color: color-mix(in srgb, #844FBA 35%, transparent);
  background: color-mix(in srgb, #844FBA 10%, transparent);
}
.iac-subtab[data-iac="gcloud"].active { border-color: color-mix(in srgb, #4285F4 45%, var(--stroke)); color: #4285F4; }
.iac-subtab[data-iac="gcloud"].active .iac-subtab-ic {
  background: color-mix(in srgb, #4285F4 14%, var(--surface));
  border-color: color-mix(in srgb, #4285F4 40%, var(--stroke));
  color: #4285F4;
}
.iac-subtab[data-iac="gcloud"].active .iac-subtab-badge {
  color: #4285F4;
  border-color: color-mix(in srgb, #4285F4 35%, transparent);
  background: color-mix(in srgb, #4285F4 10%, transparent);
}
.iac-subtab[data-iac="configconnector"].active { border-color: color-mix(in srgb, #34A853 45%, var(--stroke)); color: #34A853; }
.iac-subtab[data-iac="configconnector"].active .iac-subtab-ic {
  background: color-mix(in srgb, #34A853 14%, var(--surface));
  border-color: color-mix(in srgb, #34A853 40%, var(--stroke));
  color: #34A853;
}
.iac-subtab[data-iac="configconnector"].active .iac-subtab-badge {
  color: #34A853;
  border-color: color-mix(in srgb, #34A853 35%, transparent);
  background: color-mix(in srgb, #34A853 10%, transparent);
}
.iac-subpanels { margin-top: 16px; }
.iac-subpanel { display: none; animation: fadeIn .25s ease; }
.iac-subpanel.active { display: block; }
.iac-subpanel > h3[data-iac] {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
}
.iac-subpanel > h3[data-iac]::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}
.iac-subpanel[data-iac="terraform"] > h3[data-iac]::before { background: #844FBA; }
.iac-subpanel[data-iac="gcloud"] > h3[data-iac]::before { background: #4285F4; }
.iac-subpanel[data-iac="configconnector"] > h3[data-iac]::before { background: #34A853; }

.section-panel[data-sec="iac"] .infographic-frame { margin: 16px 0 20px; }

@media (max-width: 720px) {
  .iac-subtabs { grid-template-columns: 1fr; }
  .iac-subtab { justify-content: flex-start; }
  .iac-subtab-badge { margin-left: auto; }
}

.section-panels {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid var(--stroke);
}
.section-panel { display: none; animation: fadeIn .25s ease; }
.section-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section-panel > h2:first-child { margin-top: 16px; padding-top: 0; border-top: none; }

/* Structured intro guide (What / How / Technical background) */
.section-panel[data-sec="intro"] > h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; margin: 28px 0 10px;
  padding: 10px 14px; border-radius: 10px 10px 0 0;
  background: var(--surface-2); border: 1px solid var(--stroke-2); border-bottom: none;
  color: var(--text);
}
.section-panel[data-sec="intro"] > h3:first-of-type { margin-top: 12px; }
.section-panel[data-sec="intro"] > h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.section-panel[data-sec="intro"] > h3 + p {
  margin: 0 0 4px; padding: 14px 16px 16px;
  border: 1px solid var(--stroke-2); border-top: none; border-radius: 0 0 10px 10px;
  background: var(--surface); color: var(--text-2); font-size: 14.5px; line-height: 1.6;
}
.section-panel[data-sec="intro"] > h3 + p + h3 { margin-top: 20px; }

/* AWS official docs intro block */
.section-panel[data-sec="intro"] blockquote {
  margin: 0 0 20px; padding: 12px 16px; border-radius: 10px;
  border-left: 4px solid var(--link); background: color-mix(in srgb, var(--link) 8%, var(--surface));
  font-size: 13px; color: var(--text-2);
}
.section-panel[data-sec="intro"] img {
  display: block; max-width: min(100%, 920px); height: auto; margin: 16px auto;
  border-radius: 10px; border: 1px solid var(--stroke);
  background: #fff; padding: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  cursor: zoom-in;
}
.section-panel[data-sec="intro"] img:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.section-panel[data-sec="intro"] .mermaid,
.section-panel[data-sec="intro"] pre:has(.mermaid) {
  margin: 16px 0; border-radius: 10px; overflow: hidden;
}
.section-panel[data-sec="intro"] h3:has(+ img),
.section-panel[data-sec="intro"] h3:has(+ pre) {
  margin-top: 24px;
}
.section-panel[data-sec="intro"] .table-wrap { margin: 12px 0; }
.section-panel[data-sec="intro"] em:last-child { display: block; margin-top: 16px; font-size: 12px; color: var(--text-3); }

/* Mobile section dock */
.section-dock {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--stroke);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(var(--sec-tabs, 8), minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
}
.dock-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; padding: 6px 2px; border: none; background: transparent;
  color: var(--text-3); font-size: 9px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.dock-pill span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-pill.active { color: var(--accent); }
.dock-pill[data-sec="iac"].active { color: #844FBA; }
.dock-pill svg { width: 18px; height: 18px; }

/* ============================ Q&A CARDS ============================ */
.level-strip {
  display: flex; align-items: center; gap: 12px; margin: 36px 0 20px; padding: 14px 18px;
  border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface-2);
  border-left-width: 4px;
}
.level-strip[data-level="junior"] { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 6%, var(--surface-2)); }
.level-strip[data-level="senior"] { border-left-color: var(--link); background: color-mix(in srgb, var(--link) 6%, var(--surface-2)); }
.level-strip[data-level="tech-lead"] { border-left-color: color-mix(in srgb, var(--link) 70%, var(--accent)); background: color-mix(in srgb, var(--link) 6%, var(--surface-2)); }
.level-strip-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
}
.level-icon-junior { background: color-mix(in srgb, var(--success) 20%, transparent); color: var(--success); }
.level-icon-senior { background: color-mix(in srgb, var(--link) 20%, transparent); color: var(--link); }
.level-icon-tech-lead { background: color-mix(in srgb, var(--link) 20%, transparent); color: var(--link); }
.level-count {
  margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-3);
  padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke);
}
.level-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.level-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.level-junior { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.level-junior::before { background: var(--success); }
.level-senior { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); border: 1px solid color-mix(in srgb, var(--link) 35%, transparent); }
.level-senior::before { background: var(--link); }
.level-tech-lead { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--link); border: 1px solid color-mix(in srgb, var(--link) 35%, transparent); }
.level-tech-lead::before { background: var(--link); }
.level-hint { color: var(--text-2); font-size: 13px; font-weight: 500; }
[data-theme="light"] .level-junior { color: var(--success); }
[data-theme="light"] .level-tech-lead { color: var(--link); }

/* Interview section guide banner */
.section-panel[data-sec="interview"] .interview-guide {
  margin: 0 0 20px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--stroke));
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 80%, var(--surface)) 0%, var(--surface) 100%);
  border-left: 4px solid var(--accent);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
.section-panel[data-sec="interview"] .interview-guide p { margin: 0; }
.section-panel[data-sec="interview"] > p > em:first-child {
  display: block; margin: -4px 0 16px; padding: 8px 12px; border-radius: 8px;
  background: var(--surface-2); font-style: normal; font-size: 12px; font-weight: 600;
  color: var(--text-3); letter-spacing: .2px;
}

/* Nature's Glow palette — Interview Q&A */
.section-panel[data-sec="interview"],
.interview-panel-v3 {
  --ng-sky: #9ECFE0;
  --ng-sky-deep: #3A8FAF;
  --ng-sky-bg: color-mix(in srgb, #9ECFE0 22%, var(--surface));
  --ng-orange: #D9782D;
  --ng-gold: #DDB830;
  --ng-gold-deep: #9A7210;
  --ng-grass: #5F9B4A;
  --ng-grass-deep: #3D6B30;
  --ng-forest: #1B4332;
}

.qa-card, .exam-card {
  position: relative; border: 1px solid var(--stroke); border-radius: 16px;
  background: var(--surface); margin: 24px 0; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.qa-card-v3 {
  display: grid; grid-template-columns: 44px 1fr; gap: 0;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.section-panel[data-sec="interview"] .qa-card-v3.qa-card-diff-easy { border-left: 4px solid var(--ng-grass); }
.section-panel[data-sec="interview"] .qa-card-v3.qa-card-diff-medium { border-left: 4px solid var(--ng-orange); }
.section-panel[data-sec="interview"] .qa-card-v3.qa-card-diff-hard { border-left: 4px solid var(--ng-forest); }
.qa-card-v3.qa-card-diff-easy { border-left: 4px solid var(--success); }
.qa-card-v3.qa-card-diff-medium { border-left: 4px solid var(--warning); }
.qa-card-v3.qa-card-diff-hard { border-left: 4px solid var(--danger); }
.qa-card-v3:hover { border-color: var(--stroke); box-shadow: 0 2px 12px rgba(0,0,0,.06); transform: none; }
.qa-card-v3.qa-card-expanded { box-shadow: 0 2px 16px rgba(0,0,0,.08); border-color: color-mix(in srgb, var(--accent) 25%, var(--stroke)); }
.qa-card-v3.qa-card-highlight { animation: qa-highlight .6s ease 3; }
@keyframes qa-highlight {
  0%, 100% { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), 0 8px 32px rgba(0,0,0,.12); }
}
.qa-card-rail {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 0; border-right: 1px solid var(--stroke-2);
  background: var(--surface-2);
}
.qa-rail-num {
  font-size: 11px; font-weight: 800; letter-spacing: -.2px; color: var(--text-3);
}
.qa-rail-strip {
  width: 3px; flex: 1; min-height: 24px; border-radius: 999px;
  background: var(--warning);
}
.section-panel[data-sec="interview"] .qa-rail-easy .qa-rail-strip,
.section-panel[data-sec="interview"] .qa-card-diff-easy .qa-rail-strip { background: var(--ng-grass); }
.section-panel[data-sec="interview"] .qa-rail-medium .qa-rail-strip,
.section-panel[data-sec="interview"] .qa-card-diff-medium .qa-rail-strip { background: var(--ng-orange); }
.section-panel[data-sec="interview"] .qa-rail-hard .qa-rail-strip,
.section-panel[data-sec="interview"] .qa-card-diff-hard .qa-rail-strip { background: var(--ng-forest); }
.qa-rail-easy .qa-rail-strip, .qa-card-diff-easy .qa-rail-strip { background: var(--success); }
.qa-rail-medium .qa-rail-strip, .qa-card-diff-medium .qa-rail-strip { background: var(--warning); }
.qa-rail-hard .qa-rail-strip, .qa-card-diff-hard .qa-rail-strip { background: var(--danger); }
.qa-rail-icons { display: flex; flex-direction: column; gap: 4px; }
.qa-rail-icon { display: grid; place-items: center; opacity: .75; }
.qa-rail-icon svg { width: 11px; height: 11px; }
.section-panel[data-sec="interview"] .qa-rail-fav { color: var(--ng-gold); }
.section-panel[data-sec="interview"] .qa-rail-hot { color: var(--ng-sky-deep); }
.qa-rail-fav { color: var(--accent); }
.qa-rail-hot { color: var(--danger); }
.qa-card-body { padding: 14px 16px 16px; min-width: 0; }
.qa-card-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 8px 12px; margin-bottom: 8px;
}
.qa-card-title-block { flex: 1; min-width: 200px; }
.qa-card-title {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  line-height: 1.3; color: var(--text);
}
.qa-title-num { color: var(--accent); }
.qa-title-sep { margin: 0 6px; color: var(--text-3); font-weight: 600; }
.qa-title-topic { color: var(--text); }
.qa-card-desc {
  margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-card-meta-right {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-shrink: 0;
}
.qa-time-est {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--stroke-2);
}
.qa-time-est svg { width: 11px; height: 11px; opacity: .7; }
.qa-card-footer {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--stroke-2);
}
.section-panel[data-sec="interview"] .qa-expand-btn {
  width: auto; justify-content: flex-start;
  padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--stroke-2); background: var(--surface); color: var(--text-2);
  box-shadow: none;
}
.section-panel[data-sec="interview"] .qa-expand-btn:hover {
  background: var(--surface-2); color: var(--text); box-shadow: none;
}
.section-panel[data-sec="interview"] .qa-expand-btn.is-open {
  background: color-mix(in srgb, var(--ng-grass) 14%, var(--surface));
  color: var(--ng-forest); border-color: color-mix(in srgb, var(--ng-grass) 35%, var(--stroke));
}
.qa-expand-btn {
  display: inline-flex; align-items: center; gap: 5px; width: 100%;
  justify-content: center;
  padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  border: 1px solid var(--stroke-2); background: var(--surface); color: var(--text-2);
  transition: all .15s;
}
.qa-expand-btn svg { width: 12px; height: 12px; transition: transform .2s; flex-shrink: 0; }
.qa-expand-btn.is-open svg { transform: rotate(180deg); }
.qa-expand-btn:hover { background: var(--surface-2); box-shadow: none; }
.qa-expand-btn.is-open { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.qa-expand-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.exam-card { display: block; padding: 20px 22px; margin: 28px 0; }
.qa-card p, .exam-card p { margin: 0; }
.qa-card p + p, .exam-card p + p { margin-top: 10px; color: var(--text-2); }
.section-panel[data-sec="interview"] .qa-question-block {
  background: var(--surface-2);
  border: 1px solid var(--stroke-2);
  border-left: 2px solid var(--ng-sky-deep);
}
.section-panel[data-sec="interview"] .qa-question-label { color: var(--ng-sky-deep); }
.qa-question-block {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-2);
  border-left: 2px solid var(--accent);
}
.qa-card-v3 .qa-question-block { margin-top: 10px; margin-bottom: 0; }
.qa-question-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.qa-question-label::before {
  content: "Q"; display: inline-grid; place-items: center;
  width: 14px; height: 14px; border-radius: 3px;
  font-size: 8px; font-weight: 800; line-height: 1;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.section-panel[data-sec="interview"] .qa-question-label::before {
  color: var(--ng-sky-deep);
  background: color-mix(in srgb, var(--ng-sky) 20%, transparent);
  border-color: color-mix(in srgb, var(--ng-sky) 35%, transparent);
}
.qa-question { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.55; margin: 0; }
.qa-question p { margin: 0; }
.qa-card-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px;
  position: relative; padding-right: 40px;
}
.qa-card-actions { position: absolute; right: 0; top: 0; }
.qa-topic-junior { color: #3fb950; background: color-mix(in srgb, #3fb950 12%, transparent); border-color: color-mix(in srgb, #3fb950 30%, transparent); }
.qa-topic-senior { color: var(--link); background: color-mix(in srgb, var(--link) 12%, transparent); border-color: color-mix(in srgb, var(--link) 30%, transparent); }
.qa-topic-tech-lead { color: #a855f7; background: color-mix(in srgb, #a855f7 12%, transparent); border-color: color-mix(in srgb, #a855f7 30%, transparent); }

/* Colored label chips — compact, text-first */
.qa-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; border: 1px solid transparent;
  transition: background .12s;
}
.qa-chip:hover { transform: none; box-shadow: none; }
.qa-chip svg { flex-shrink: 0; opacity: .85; width: 10px; height: 10px; }
.qa-chip-level-junior { color: var(--success); background: color-mix(in srgb, var(--success) 16%, transparent); border-color: color-mix(in srgb, var(--success) 38%, transparent); }
.qa-chip-level-senior { color: var(--link); background: color-mix(in srgb, var(--link) 16%, transparent); border-color: color-mix(in srgb, var(--link) 38%, transparent); }
.qa-chip-level-tech-lead { color: color-mix(in srgb, var(--link) 80%, var(--accent)); background: color-mix(in srgb, var(--link) 14%, transparent); border-color: color-mix(in srgb, var(--link) 35%, transparent); }
.qa-chip-exam-saa-c03, .qa-chip-exam-sap-c02 { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.qa-chip-diff-easy { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.qa-chip-diff-medium { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.qa-chip-diff-hard { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.section-panel[data-sec="interview"] .qa-chip-fav,
.section-panel[data-sec="interview"] .qa-chip-cat-exam-fav {
  color: var(--ng-gold-deep);
  background: color-mix(in srgb, var(--ng-gold) 22%, transparent);
  border-color: color-mix(in srgb, var(--ng-gold) 45%, transparent);
}
.section-panel[data-sec="interview"] .qa-chip-hot {
  color: var(--ng-sky-deep);
  background: color-mix(in srgb, var(--ng-sky) 28%, transparent);
  border-color: color-mix(in srgb, var(--ng-sky) 50%, transparent);
}
.qa-chip-fav, .qa-chip-cat-exam-fav { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.qa-chip-hot, .qa-chip-important, .qa-chip-cat-security { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.qa-chip-scenario, .qa-chip-cat-scenario { color: var(--link); background: color-mix(in srgb, var(--link) 14%, transparent); border-color: color-mix(in srgb, var(--link) 35%, transparent); }
.qa-chip-production { color: var(--link); background: color-mix(in srgb, var(--link) 14%, transparent); border-color: color-mix(in srgb, var(--link) 35%, transparent); }
.qa-chip-handson, .qa-chip-cat-operations, .qa-chip-cat-default { color: var(--text-2); background: var(--surface-3); border-color: var(--stroke); text-transform: none; }
.qa-chip-cat-networking, .qa-chip-cat-storage, .qa-chip-cat-database, .qa-chip-cat-architecture, .qa-chip-cat-containers { color: var(--link); border-color: color-mix(in srgb, var(--link) 30%, transparent); background: color-mix(in srgb, var(--link) 8%, transparent); }
.qa-chip-cat-compute, .qa-chip-cat-serverless, .qa-chip-cat-messaging { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.qa-chip-cat-monitoring, .qa-chip-cat-performance, .qa-chip-cat-cost { color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.qa-chip-topic { text-transform: none; font-weight: 600; letter-spacing: 0; }

.qa-answer {
  border: 1px solid var(--stroke-2); border-radius: 8px; margin-top: 12px;
  background: var(--surface); overflow: hidden;
  box-shadow: none;
  animation: qa-expand .25s ease;
}
@keyframes qa-expand { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qa-answer:not([open]) { display: none; }
.qa-answer-head {
  padding: 8px 12px; border-bottom: 1px solid var(--stroke-2);
  background: var(--surface-2);
}
.qa-answer-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-3);
}
.qa-answer-label::before {
  content: "A"; display: inline-grid; place-items: center;
  width: 14px; height: 14px; border-radius: 3px;
  font-size: 8px; font-weight: 800; line-height: 1;
  color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}
.qa-answer-actions { padding: 8px 12px; border-top: 1px solid var(--stroke-2); background: var(--surface-2); }
.qa-answer summary { display: none; }
.qa-answer-body { padding: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

.qa-answer-sections { display: flex; flex-direction: column; gap: 0; }
.qa-answer-section { padding: 10px 12px; border-bottom: 1px solid var(--stroke-2); }
.qa-answer-section:last-child { border-bottom: none; }
.qa-sec-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase;
  margin-bottom: 6px;
}
.qa-sec-head svg { width: 12px; height: 12px; opacity: .75; }
.qa-sec-body { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.qa-sec-body ul, .qa-sec-body ol { margin: 6px 0 0; padding-left: 20px; }
.qa-sec-body li { margin: 4px 0; }
.qa-sec-answer .qa-sec-head { color: var(--success); }
.qa-sec-explanation .qa-sec-head { color: var(--link); }
.qa-sec-architecture .qa-sec-head { color: var(--link); }
.qa-sec-mistakes .qa-sec-head { color: var(--danger); }
.qa-sec-followups .qa-sec-head { color: var(--link); }
.qa-sec-tips .qa-sec-head { color: var(--accent); }
.qa-sec-answer { background: color-mix(in srgb, var(--success) 5%, var(--surface)); }
.qa-sec-explanation { background: color-mix(in srgb, var(--link) 4%, var(--surface)); }
.qa-sec-architecture { background: color-mix(in srgb, var(--link) 4%, var(--surface)); }
.qa-sec-mistakes { background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.qa-sec-followups { background: color-mix(in srgb, var(--link) 4%, var(--surface)); }
.qa-sec-tips { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }

.qa-related {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed var(--stroke); background: var(--surface-2);
}
.qa-related-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 10px;
}
.qa-related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-related-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--link); transition: all .12s;
}
.qa-related-chip:hover { border-color: var(--link); background: color-mix(in srgb, var(--link) 10%, var(--surface)); transform: translateY(-1px); }

.qa-card.qa-read .qa-rail-num::after {
  content: ""; display: block; width: 6px; height: 6px; margin: 4px auto 0;
  border-radius: 50%; background: var(--success);
}
.level-strip-hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.exam-question-block {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0 0 18px; padding: 16px 18px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--stroke));
  border-left: 3px solid var(--accent);
}
.exam-question-inner { flex: 1; min-width: 0; }
.exam-question { font-weight: 600; color: var(--text); font-size: 15px; line-height: 1.65; margin: 0; }
.exam-question p { margin: 0; }
.exam-question strong { color: var(--text); font-weight: 700; }
.exam-options { display: grid; gap: 10px; margin: 0 0 14px; }
.exam-opt {
  position: relative; padding: 12px 16px 12px 38px;
  border: 1px solid var(--stroke); border-radius: 10px; background: var(--surface-2);
  font-size: 14px; color: var(--text-2); line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.exam-opt::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.exam-opt:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke)); background: color-mix(in srgb, var(--accent) 4%, var(--surface-2)); }
.exam-opt strong { color: var(--text); font-weight: 700; }
.exam-card-footer { margin: 4px 0 0; }
.exam-expand-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--success) 42%, var(--stroke));
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  color: var(--success); transition: all .18s;
}
.exam-expand-btn svg { transition: transform .2s; flex-shrink: 0; }
.exam-expand-btn.is-open svg { transform: rotate(180deg); }
.exam-expand-btn:hover {
  background: color-mix(in srgb, var(--success) 16%, var(--surface));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--success) 18%, transparent);
}
.exam-expand-btn.is-open {
  background: color-mix(in srgb, var(--success) 14%, var(--surface));
  color: color-mix(in srgb, var(--success) 85%, var(--text));
}
.exam-answer {
  margin-top: 12px; border-radius: 12px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--success) 38%, var(--stroke));
  background: color-mix(in srgb, var(--success) 7%, var(--surface));
  animation: qa-expand .25s ease;
}
.exam-answer[hidden] { display: none; }
.exam-answer-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-weight: 700; font-size: 13px; color: var(--success);
  border-bottom: 1px solid color-mix(in srgb, var(--success) 25%, var(--stroke));
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
}
.exam-answer-head svg { flex-shrink: 0; opacity: .9; }
.exam-answer-body { padding: 14px 18px 16px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.exam-answer-body p { margin: 0; }
.exam-answer-body strong { color: var(--success); font-weight: 800; }
.exam-answer-body em { color: var(--text-3); }
.section-panel[data-sec="exam"] .exam-card:first-of-type { margin-top: 16px; }
.section-panel[data-sec="exam"] .exam-question-block {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--stroke));
}
.section-panel[data-sec="exam"] .exam-num {
  margin-top: 2px;
}
.qa-card-topic-what-is-the-service .qa-topic { color: #3fb950; border-color: color-mix(in srgb, #3fb950 35%, transparent); background: color-mix(in srgb, #3fb950 12%, transparent); }
.qa-card-topic-how-to-use-it .qa-topic { color: var(--link); border-color: color-mix(in srgb, var(--link) 35%, transparent); background: color-mix(in srgb, var(--link) 12%, transparent); }
.qa-card-topic-benefits .qa-topic { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.qa-card-topic-compare-choose .qa-topic,
.qa-card-topic-compare .qa-topic { color: #a855f7; border-color: color-mix(in srgb, #a855f7 35%, transparent); background: color-mix(in srgb, #a855f7 12%, transparent); }
.qa-card-topic-when-not-to-use .qa-topic { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, transparent); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.qa-card:hover, .exam-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--stroke)); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.qa-badge, .exam-num {
  position: relative; left: auto; top: auto; width: 28px; height: 28px;
  display: inline-grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800;
  margin-bottom: 8px;
}
.exam-num {
  flex-shrink: 0; width: 32px; height: 32px; margin: 0;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--stroke));
}
.qa-topic {
  position: relative; left: auto; top: auto;
  display: inline-flex; margin: 0 0 10px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-3); border: 1px solid var(--stroke-2);
}
.qa-section-label, .exam-section-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--text); margin: 20px 0 10px; padding: 6px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--stroke);
}

/* ============================ INTERVIEW PANEL V3 ============================ */
.interview-panel-v3 { --qa-gap: 16px; }

.interview-stats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  margin: 0 0 14px;
}
.interview-stat {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--stroke-2); background: var(--surface);
  box-shadow: none;
  transition: border-color .15s;
}
.interview-stat:hover { transform: none; box-shadow: none; border-color: var(--stroke); }
.interview-stat .is-icon {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-3); flex-shrink: 0;
}
.interview-stat .is-icon svg { width: 14px; height: 14px; }
.interview-stat .is-icon.is-gold { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.interview-stat .is-icon.is-hot { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.interview-stat .is-icon.is-scenario { background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--link); }
.interview-stat .is-icon.is-done { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success); }
.interview-stat .is-icon.is-time { background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--link); }
.interview-stat .is-val { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--text); line-height: 1.1; }
.interview-stat .is-lbl { display: block; font-size: 10px; font-weight: 500; color: var(--text-3); margin-top: 1px; }

.interview-sticky-progress {
  display: flex; align-items: center; gap: 12px; padding: 8px 0 4px;
}
.isp-track {
  flex: 1; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden;
}
.isp-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width .35s ease;
}
.isp-text { font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

.interview-panel-v2 { --qa-gap: 20px; }
.interview-toolbar {
  position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 20;
  margin: 0 0 20px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--stroke-2); background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.interview-filter-toggle {
  display: none; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid var(--stroke-2);
  background: var(--surface-2); color: var(--text-2); margin-left: auto;
}
.interview-search-wrap .search-kbd {
  font-family: var(--mono); font-size: 9px; color: var(--text-3);
  background: var(--surface-3); border: 1px solid var(--stroke-2);
  border-radius: 4px; padding: 1px 4px; flex-shrink: 0;
}
.interview-sort-wrap {
  display: inline-flex; align-items: center;
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--stroke-2);
  background: var(--surface-2); color: var(--text-2); font-size: 11px;
}
.interview-sort {
  border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; outline: none;
}
.filter-chip-hot.active { background: var(--danger); }
.filter-chip-production.active { background: var(--link); }
.filter-chip-handson.active { background: var(--text-3); color: var(--surface); }
.filter-chip-important.active { background: var(--danger); }
.filter-chip-answered.active { background: var(--success); }
.filter-chip-unanswered.active { background: var(--text-3); color: var(--surface); }
.filter-chip-cat.active { background: var(--link); }
.interview-filter-drawer { display: block; }
.filter-chip-hot:not(.active):hover { border-color: var(--danger); color: var(--danger); }
.filter-chip-production:not(.active):hover { border-color: var(--link); color: var(--link); }
.interview-toolbar-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--stroke-2);
}
.interview-toolbar-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.15px; }
.interview-toolbar-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; line-height: 1.4; }
.interview-filter-count {
  margin-left: auto; font-size: 10px; font-weight: 600; color: var(--text-3);
  padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke-2);
  white-space: nowrap; align-self: center;
}
.interview-filter-count.is-filtered { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--stroke)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.interview-filter-groups {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px;
  margin-bottom: 10px;
}
.interview-filter-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.interview-filter-group-type { grid-column: 1 / -1; }
.interview-filter-label {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--text-3); min-width: 56px; padding-top: 4px; flex-shrink: 0;
}
.interview-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 500;
  font-family: inherit; cursor: pointer; border: 1px solid var(--stroke-2);
  background: var(--surface); color: var(--text-2); transition: all .1s;
}
.filter-chip:hover { border-color: var(--stroke); color: var(--text); background: var(--surface-2); transform: none; box-shadow: none; }
.filter-chip.active { color: #fff; border-color: transparent; box-shadow: none; font-weight: 600; }
.filter-chip-junior.active { background: var(--success); }
.filter-chip-senior.active { background: var(--link); }
.filter-chip-tech-lead.active { background: color-mix(in srgb, var(--link) 70%, var(--accent)); }
.filter-chip-saa.active, .filter-chip-sap.active { background: var(--accent); }
.filter-chip-easy.active { background: var(--success); }
.filter-chip-medium.active { background: var(--warning); color: var(--text); }
.filter-chip-hard.active { background: var(--danger); }
.filter-chip-fav.active { background: var(--accent); color: var(--text); }
.filter-chip-scenario.active { background: var(--link); }
.filter-chip-bookmark.active { background: var(--accent); }
.filter-chip-junior:not(.active):hover { border-color: var(--success); color: var(--success); }
.filter-chip-senior:not(.active):hover { border-color: var(--link); color: var(--link); }
.filter-chip-tech-lead:not(.active):hover { border-color: var(--link); color: var(--link); }
.interview-progress {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  padding: 6px 0;
}
.interview-level-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px; cursor: pointer;
  border: 1px solid var(--stroke-2); background: var(--surface); color: var(--text-2);
  font-family: inherit; transition: all .1s;
}
.interview-toolbar-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.interview-search-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--stroke-2);
  background: var(--surface-2);
}
.interview-search-wrap svg { color: var(--text-3); flex-shrink: 0; width: 14px; height: 14px; opacity: .65; }
.interview-search {
  flex: 1; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 13px; outline: none;
}
.interview-toolbar-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.interview-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  font-size: 11px; font-weight: 500; font-family: inherit; cursor: pointer;
  border: 1px solid var(--stroke-2); border-radius: 6px; background: var(--surface);
  color: var(--text-2); transition: all .1s;
}
.interview-btn:hover { color: var(--text); border-color: var(--stroke); background: var(--surface-2); }
.interview-progress-bar {
  flex: 1; height: 3px; border-radius: 999px; background: var(--surface-3); overflow: hidden;
}
.interview-progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width .3s ease;
}
.interview-progress-text { font-size: 10px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.interview-level-nav {
  display: flex; flex-wrap: wrap; gap: 5px; padding-top: 8px;
  border-top: 1px solid var(--stroke-2);
}
.interview-level-pill-junior:hover { border-color: var(--success); color: var(--success); }
.interview-level-pill-senior:hover { border-color: var(--link); color: var(--link); }
.interview-level-pill-tech-lead:hover { border-color: var(--link); color: var(--link); }

.qa-card-v3:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa-card-v3:focus:not(:focus-visible) { outline: none; }
.qa-card-v3:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa-meta-badges {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 2px;
}
.qa-bookmark-btn {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--stroke-2); border-radius: 6px; background: var(--surface);
  color: var(--text-3); cursor: pointer; transition: all .1s;
}
.qa-bookmark-btn svg { width: 12px; height: 12px; }
.qa-bookmark-btn:hover, .qa-bookmark-btn.active { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 90%, var(--surface)); }
.qa-card.qa-read { border-left-width: 4px; border-left-color: var(--accent); }
.qa-card.qa-hidden { display: none !important; }
.qa-level-badge, .qa-exam-badge, .qa-diff-badge, .qa-scenario-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke);
  display: inline-flex; align-items: center; gap: 4px;
}
.qa-level-badge.level-junior { color: #3fb950; background: color-mix(in srgb, #3fb950 14%, transparent); border-color: color-mix(in srgb, #3fb950 35%, transparent); }
.qa-level-badge.level-senior { color: var(--link); background: color-mix(in srgb, var(--link) 14%, transparent); border-color: color-mix(in srgb, var(--link) 35%, transparent); }
.qa-level-badge.level-tech-lead { color: #a855f7; background: color-mix(in srgb, #a855f7 14%, transparent); border-color: color-mix(in srgb, #a855f7 35%, transparent); }
.qa-exam-badge { color: var(--link); border-color: color-mix(in srgb, var(--link) 35%, transparent); background: color-mix(in srgb, var(--link) 10%, transparent); }
.qa-diff-easy, .qa-diff-badge.qa-diff-easy { color: #3fb950; border-color: color-mix(in srgb, #3fb950 35%, transparent); background: color-mix(in srgb, #3fb950 10%, transparent); }
.qa-diff-medium, .qa-diff-badge.qa-diff-medium { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, transparent); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.qa-diff-hard, .qa-diff-badge.qa-diff-hard { color: #f85149; border-color: color-mix(in srgb, #f85149 35%, transparent); background: color-mix(in srgb, #f85149 10%, transparent); }
.qa-fav-badge { color: var(--warning); display: inline-flex; align-items: center; }
.qa-scenario-badge { color: #a855f7; border-color: color-mix(in srgb, #a855f7 35%, transparent); background: color-mix(in srgb, #a855f7 10%, transparent); }
.qa-topic-chip {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-3); border: 1px solid var(--stroke-2);
}
.level-tech-lead { background: color-mix(in srgb, #a855f7 18%, transparent); color: #a855f7; border: 1px solid color-mix(in srgb, #a855f7 35%, transparent); }
.level-tech-lead::before { background: #a855f7; }
.qa-copy-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px;
  font-size: 11px; font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1px solid var(--stroke); border-radius: 7px; background: var(--surface);
  color: var(--text-2); transition: all .12s;
}
.qa-copy-btn:hover { color: var(--text); border-color: var(--text-3); }
.qa-copy-btn.copied { color: var(--success); border-color: var(--success); }
.qa-answer-body strong { color: var(--text); }
.qa-answer-body ul, .qa-answer-body ol { margin: 8px 0; padding-left: 20px; }
.qa-answer-body li { margin: 4px 0; }

.section-panel[data-sec="compare"] .table-wrap { margin: 16px 0; }

/* ChatGPT-generated infographic images (not mermaid) */
.md img[src*="infographics/"],
.infographic-frame img {
  display: block; width: 100%; height: auto; margin: 0;
  border-radius: 0;
}
.infographic-frame {
  position: relative; border: 1px solid var(--stroke); border-radius: 14px;
  margin: 20px 0; overflow: hidden; background: var(--surface);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.infographic-frame .infographic-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--stroke);
}
.infographic-frame--tabs .infographic-toolbar { padding: 8px 10px; }
.infographic-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--stroke-2);
}
.infographic-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: var(--text-2); cursor: pointer; transition: color .15s, background .15s, box-shadow .15s;
}
.infographic-tab:hover { color: var(--text); background: var(--surface-2); }
.infographic-tab.active {
  color: var(--text); background: var(--surface);
  border-color: var(--stroke); box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.infographic-tab[data-viz="diagram"].active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--stroke));
  color: var(--accent);
}
.infographic-fs {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 1px solid var(--stroke);
  border-radius: 8px; background: var(--surface); color: var(--text-2);
  cursor: pointer; flex-shrink: 0;
}
.infographic-fs:hover { color: var(--accent); border-color: var(--accent); }
.infographic-zoom-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 1px solid var(--stroke);
  border-radius: 8px; background: var(--surface); color: var(--text-2);
  cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1; flex-shrink: 0;
}
.infographic-zoom-btn:hover { color: var(--accent); border-color: var(--accent); }
.infographic-toolbar-actions {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.infographic-body { position: relative; overflow: hidden; }
.infographic-pane { display: none; overflow: auto; max-height: min(72vh, 900px); }
.infographic-pane.active { display: block; }
.infographic-zoom-inner {
  transform-origin: center top;
  transition: transform .12s ease;
  will-change: transform;
}
.infographic-pane[data-viz="infograph"] .infographic-zoom-inner { cursor: zoom-in; }
.infographic-pane[data-viz="infograph"] img {
  display: block; width: 100%; height: auto;
}
.infographic-pane .mermaid {
  margin: 0 !important; border: none !important; border-radius: 0 !important;
  padding: 24px 16px !important; min-height: 200px; cursor: zoom-in;
}
.infographic-diagram-empty {
  padding: 32px 24px; text-align: center; color: var(--text-2); font-size: 14px;
  background: var(--surface-2);
}
.infographic-diagram-empty p { margin: 8px 0; }
.infographic-frame .infographic-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.infographic-caption {
  padding: 10px 14px; font-size: 13px; font-style: italic;
  color: var(--text-3); text-align: center; background: var(--surface-2);
  border-top: 1px solid var(--stroke-2); margin: 0;
}

.section-panel[data-sec="deep"] .infographic-frame { margin: 24px 0; }
.section-panel[data-sec="deep"] > blockquote {
  margin: 16px 0; padding: 12px 16px; border-radius: 10px;
  border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  font-size: 14px; color: var(--text-2);
}
.section-panel[data-sec="interview"] .filter-chip-fav.active { background: var(--ng-gold); color: var(--ng-forest); }
.section-panel[data-sec="interview"] .filter-chip-hot.active { background: var(--ng-sky-deep); color: #fff; }
.section-panel[data-sec="interview"] .filter-chip-hot:not(.active):hover { border-color: var(--ng-sky-deep); color: var(--ng-sky-deep); }
.section-panel[data-sec="interview"] .interview-stat .is-icon.is-gold {
  background: color-mix(in srgb, var(--ng-gold) 22%, transparent); color: var(--ng-gold-deep);
}
.section-panel[data-sec="interview"] .interview-stat .is-icon.is-hot {
  background: color-mix(in srgb, var(--ng-sky) 30%, transparent); color: var(--ng-sky-deep);
}
.section-panel[data-sec="interview"] .qa-card-favorite .qa-chip-fav { animation: ng-fav-pulse 2s ease infinite; }
@keyframes ng-fav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ng-gold) 0%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ng-gold) 28%, transparent); }
}
.qa-card-scenario .qa-chip-scenario { box-shadow: 0 0 0 2px color-mix(in srgb, #a855f7 25%, transparent); }
.qa-card-favorite .qa-chip-fav { animation: qa-fav-pulse 2s ease infinite; }
@keyframes qa-fav-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warning) 0%, transparent); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 20%, transparent); }
}
.section-panel[data-sec="interview"] .qa-card + .qa-card { margin-top: 28px; }
.section-panel[data-sec="interview"] .level-strip + .qa-card { margin-top: 16px; }

@media (max-width: 960px) {
  .interview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .interview-filter-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .qa-card-v3 { grid-template-columns: 44px 1fr; }
  .qa-card-title { font-size: 16px; }
  .qa-card-meta-right { width: auto; margin-left: auto; }
  .interview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interview-filter-toggle { display: inline-flex; }
  .interview-filter-drawer { display: none; }
  .interview-filter-drawer.is-open { display: block; animation: fadeIn .2s ease; }
  .interview-toolbar-head .interview-filter-count { display: none; }
}

@media print {
  .interview-toolbar, .section-nav-wrap, .section-dock, .toc, .topbar, .sidebar { display: none !important; }
  .qa-card { break-inside: avoid; border: 1px solid #ccc; }
  .qa-answer { display: block !important; }
  .qa-answer summary { display: none; }
  .qa-hidden { display: block !important; }
}

/* ============================ CODE BLOCKS v2 ============================ */
.code-block {
  border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden;
  margin: 20px 0; background: var(--code-bg); box-shadow: 0 6px 28px rgba(0,0,0,.14);
}
.code-block-terraform { border-color: color-mix(in srgb, #844FBA 40%, var(--stroke)); }
.code-block-terraform .code-head { background: color-mix(in srgb, #844FBA 8%, var(--surface-2)); }
.code-block-terraform .lang-dot { background: #844FBA; }
.code-block-gcloud { border-color: color-mix(in srgb, #4285F4 45%, var(--stroke)); }
.code-block-gcloud .code-head { background: color-mix(in srgb, #4285F4 10%, var(--surface-2)); }
.code-block-gcloud .lang-dot { background: #4285F4; }
.code-block-gcloud .code-file-icon { color: inherit; }
.code-block-configconnector { border-color: color-mix(in srgb, #34A853 45%, var(--stroke)); }
.code-block-configconnector .code-head { background: color-mix(in srgb, #34A853 10%, var(--surface-2)); }
.code-block-configconnector .lang-dot { background: #34A853; }
.code-block-configconnector .code-file-icon { color: inherit; }
.code-filename { font-family: var(--mono, ui-monospace, monospace); font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: none; }
.code-file-icon { display: inline-flex; align-items: center; justify-content: center; }
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--stroke);
}
.code-head-lang {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--text-2);
}
.lang-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.code-head-actions { display: flex; gap: 6px; }
.code-copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  font-size: 11.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1px solid var(--stroke); border-radius: 7px; background: var(--surface);
  color: var(--text-2); transition: all .12s;
}
.code-copy:hover { color: var(--text); border-color: var(--text-3); }
.code-copy.copied { color: var(--success); border-color: var(--success); }
.code-block pre {
  margin: 0 !important; border: none !important; border-radius: 0 !important;
  padding: 16px 18px !important; background: transparent !important;
  max-height: 520px; overflow: auto;
}
.code-block pre .code-lang, .code-block pre .copy-btn { display: none; }

/* ============================ DIAGRAM FRAMES ============================ */
.diagram-frame {
  position: relative; border: 1px solid var(--stroke); border-radius: 14px;
  margin: 20px 0; overflow: hidden; background: var(--surface);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}
.diagram-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--stroke);
}
.diag-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.diag-fs {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1px solid var(--stroke); border-radius: 8px; background: var(--surface); color: var(--text-2);
}
.diag-fs:hover { color: var(--accent); border-color: var(--accent); }
.diagram-frame .mermaid {
  margin: 0 !important; border: none !important; border-radius: 0 !important;
  padding: 24px 16px !important; cursor: zoom-in;
}

/* Diagram modal */
.diagram-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.diagram-modal[hidden] { display: none; }
.diagram-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.diagram-modal-box {
  position: relative; width: min(96vw, 1400px); max-height: 92vh;
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.diagram-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--stroke); background: var(--surface-2);
}
.diagram-modal-title { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.diagram-modal-tools {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.diagram-zoom-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--stroke);
  border-radius: 8px; background: var(--surface); color: var(--text-2);
  cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1;
}
.diagram-zoom-btn:hover { color: var(--accent); border-color: var(--accent); }
.diagram-zoom-level {
  min-width: 48px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2);
}
.diagram-zoom-reset {
  padding: 6px 10px; font-size: 11.5px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--stroke); border-radius: 8px; background: var(--surface);
  color: var(--text-2); cursor: pointer;
}
.diagram-zoom-reset:hover { color: var(--accent); border-color: var(--accent); }
.diagram-modal-body {
  flex: 1; overflow: auto; padding: 20px; display: flex; align-items: flex-start; justify-content: center;
  min-height: 200px;
}
.diagram-modal-stage {
  transform-origin: center top;
  transition: transform .12s ease;
  will-change: transform;
}
.diagram-modal-stage img { max-width: 100%; height: auto; display: block; }
.diagram-modal-body svg { max-width: none; height: auto; }

/* Dashboard service chips with icons */
.cc-chip-with-icon { display: inline-flex; align-items: center; gap: 5px; }
.cc-chip-with-icon img { width: 14px; height: 14px; }

/* ============================ CATEGORY OVERVIEW PAGE ============================ */
.cat-page { max-width: 960px; margin: 0 auto; padding: 28px 32px 80px; }
.cat-page-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--stroke); }
.cat-page-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.cat-page-icon { width: 56px; height: 56px; padding: 8px; background: var(--surface-2); border: 1px solid var(--stroke); border-radius: 14px; }
.cat-page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 10px; line-height: 1.1; }
.cat-page-blurb { color: var(--text-2); font-size: 15px; line-height: 1.65; margin: 0; max-width: 720px; }
.cat-page-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-learning-path {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 28px; border-left: 3px solid var(--accent);
}
.cat-learning-path h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 10px; }
.cat-learning-path p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

.cat-services-section h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 6px; }
.cat-services-hint { color: var(--text-3); font-size: 13px; margin: 0 0 16px; }

.cat-service-list { display: grid; gap: 12px; }
.cat-svc-row {
  display: grid; grid-template-columns: 32px 48px 1fr auto; gap: 14px; align-items: start;
  padding: 18px 18px; border: 1px solid var(--stroke); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-svc-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke)); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.1); text-decoration: none; }
.cat-svc-row.done { border-left: 3px solid var(--success); }
.csr-num {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent);
}
.csr-aws { width: 40px; height: 40px; padding: 4px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--stroke-2); }
.csr-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.csr-type { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.csr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.csr-lbl { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 3px; }
.csr-cell { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.csr-arrow { color: var(--text-3); align-self: center; }
.cat-page-foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--stroke-2); }

@media (max-width: 720px) {
  .cat-page { padding: 20px 18px 60px; }
  .cat-page-hero { flex-direction: column; }
  .cat-svc-row { grid-template-columns: 28px 40px 1fr; }
  .csr-arrow { display: none; }
  .csr-grid { grid-template-columns: 1fr; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  :root { --sidebar-w: 280px; }
  .nav-toggle { display: grid; }
  .sidebar {
    transform: translateX(-100%); transition: transform .25s ease;
    background: var(--surface); box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(0,0,0,.45); z-index: 35; }
  .content { margin-left: 0; }
  .brand-text em { display: none; }
  .search-trigger span { display: none; }
  .search-trigger { min-width: unset; flex: unset; width: 40px; padding: 8px; justify-content: center; }
  .search-trigger kbd { display: none; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 30px; }
  .dash, .article-wrap { padding-left: 18px; padding-right: 18px; }
  .section-nav-wrap { margin: 0 -18px 20px; padding: 0 18px; }
  .section-tabs { display: none; }
  .section-dock { display: grid; }
  .content { padding-bottom: 72px; }
  .article-head-main { flex-direction: column; align-items: center; text-align: center; }
  .article-meta-row { justify-content: center; }
  .complete-btn { margin-left: 0 !important; width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .article-nav { flex-direction: column; }
  .stat .num { font-size: 24px; }
}


/* ---- Cloud switcher (AWS <-> GCP sibling site) ---- */
.cloud-switch {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--stroke-2); background: var(--surface);
  color: var(--text-2); text-decoration: none; font-size: 11px; font-weight: 700;
  letter-spacing: .4px; font-family: inherit; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.cloud-switch:hover { border-color: var(--accent); color: var(--text); text-decoration: none; background: var(--surface-2); }
.cloud-switch .cs-cur { color: var(--accent); }
.cloud-switch .cs-sep { opacity: .35; font-weight: 500; }
.cloud-switch .cs-other { color: var(--text-3); }
.cloud-switch:hover .cs-other { color: var(--text); }
