:root {
  --bg: #eef0f4;
  --canvas: #23133a;
  --white: #23133a;
  --navy: #e8e3f1;
  --navy2: #2a1647;
  --azure: #883CF0;
  --azure-lt: #1f1232;
  --azure-mid: #5e309d;
  --teal: #e299fa;
  --teal-lt: #e0f7fc;
  --red: #c8243c;
  --red-lt: #dc143c2b;
  --gold: #c8901a;
  --gold-lt: #cfbb9b42;
  --green: #1a7a4a;
  --green-lt: #77b25520;
  --text: #e8f5ee;
  --text-mid: #c8d6e5;
  --text-dim: #c8d6e5;
  --border: #3a1c63;
  --border2: #5e309d;
  --shadow: 0 1px 4px #be52e50f, 0 4px 16px #be52e50f;
  --shadow-lg: 0 4px 24px #be52e50f, 0 1px 4px #be52e50f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.secret-server-azure-keyvault-guide {
  background:#191127;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
  height:100vh;
  overflow-y: auto;
}

/* ── Blueprint grid background ── */
.secret-server-azure-keyvault-guide::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,120,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,120,212,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* ── Layout ── */
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ─────────────── SIDEBAR ─────────────── */
.sidebar {
  width: 256px; flex-shrink: 0;
  background: #180f26;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 2px; }

.sb-top {
  padding: 28px 22px 20px;
  border-bottom: 1px solid #3a1c63;
}

.sb-wordmark {
  font-weight: 800; font-size: 22px;
  color: #fff;
  line-height: 1.1; margin-bottom: 4px;
}
.sb-wordmark span { color: var(--azure); }

.sb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}
.sb-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.sb-progress { padding: 16px 22px; border-bottom: 1px solid #3a1c63; }
.sb-prog-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.sb-prog-label { font-size: 9px; color: rgba(255,255,255,0.3); }
.sb-prog-pct { font-size: 9px; color: var(--teal); font-weight: 500; }
.sb-prog-bar { height: 2px; background: #282035; border-radius: 2px; }
.sb-prog-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #3a1c63, #684895);
  border-radius: 2px; transition: width 0.5s ease;
}

nav { flex: 1; padding: 12px 0; }
.nav-group { margin-bottom: 4px; }
.nav-group-label {
  font-size: 9px;
  color: rgba(255,255,255,0.22);
  padding: 8px 22px 4px;
  text-transform: uppercase;
}
.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 22px; cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-size: 11.5px;
  text-decoration: none; transition: all 0.15s;
  border-right: 2px solid transparent;
}
.nav-link:hover { color: rgba(255,255,255,0.8); background: #23133a9f; }
.nav-link.active { color: #fff; border-right-color: var(--azure); background: #23133a; }
.nav-link .nl-num {
  font-size: 9px; color: rgba(255,255,255,0.2);
  width: 16px; text-align: right; flex-shrink: 0;
}
.nav-link.active .nl-num { color: var(--azure); }

.sb-bottom {
  padding: 16px 22px;
  border-top: 1px solid #3a1c63;
  font-size: 10px; color: rgba(255, 255, 255, 0.773);
  line-height: 1.6;
}

/* ─────────────── MAIN ─────────────── */
.main { flex: 1; max-width: 940px; }

/* ── HERO ── */
.hero {
  background: #32145b8f;
  padding: 56px 52px 48px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 360px; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(162, 0, 212, 0.12) 100%);
  pointer-events: none;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.hero-pill {
  font-size: 9px;
  background: #1f1232;
  border: 1px solid #23133a;
  color: var(--azure); padding: 3px 10px;
  border-radius: 2px; text-transform: uppercase;
}
.hero-rule { flex: 1; height: 1px; background: #23133a; }

h1 {
  font-weight: 800; font-size: 48px;
  color: #fff; line-height: 1.0;
  margin-bottom: 6px;
}
h1 .az { color: var(--azure); }
h1 .tl { color: var(--teal); }

.hero-sub {
  font-style: italic;
  font-size: 14px; color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.hero-desc {
  color: rgba(255,255,255,0.55); font-size: 12.5px;
  line-height: 1.85; max-width: 580px; margin-bottom: 32px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  font-size: 10px;
  padding: 4px 12px; border-radius: 2px;
  border: 1px solid; display: flex; align-items: center; gap: 6px;
}
.chip.azure { border-color: #5e309d; color: rgba(222, 229, 236, 0.9); background: #23133aa0; }
.chip.teal  { border-color: #8851d5; color: rgba(193, 212, 214, 0.85); background: #2a16478b; }
.chip.gold  { border-color: rgba(200,144,26,0.4); color: rgba(255,190,50,0.9); background: rgba(200,144,26,0.1); }
.chip.red   { border-color: rgba(200,36,60,0.4);  color: rgba(255,100,110,0.9); background: rgba(200,36,60,0.1); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid #3a1c63; border-radius: 4px; overflow: hidden; }
.hstat {
  background: #1f1232;
  padding: 16px 18px;
}
.hstat-val {
  font-weight: 700; font-size: 26px;
  color: #fff; line-height: 1;
  margin-bottom: 4px;
}
.hstat-val .u { font-size: 14px; color: var(--text-dim); margin-left: 1px; }
.hstat-lbl { font-size: 9px; color: rgba(255, 255, 255, 0.863); text-transform: uppercase; }

/* ─────────────── SECTIONS ─────────────── */
section.sec {
  padding: 44px 52px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
  animation: slideIn 0.35s ease both;
}
section.sec:nth-child(2n) { background: var(--white); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sec-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.sec-index {
  font-weight: 800; font-size: 11px;
  color: var(--azure);
  background: var(--azure-lt); border: 1px solid var(--azure-mid);
  padding: 3px 9px; border-radius: 2px; margin-top: 5px;
  flex-shrink: 0;
}
h2 {
  font-weight: 700; font-size: 26px;
  color: var(--navy); line-height: 1.2;
}

h3 {
  font-weight: 600; font-size: 16px;
  color: #fff; margin-bottom: 10px; 
}
p { color: var(--text-mid); font-size: 12.5px; line-height: 1.85; margin-bottom: 14px; }
strong { color: var(--navy); font-weight: 600; }

/* ─── CALLOUTS ─── */
.callout {
  display: flex; gap: 12px;
  padding: 14px 16px; border-radius: 4px;
  margin: 16px 0; border-left: 3px solid;
}
.callout-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; font-size: 12px; }
.callout-title { font-size: 10px; font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }

.callout.info  { background: var(--azure-lt); border-color: var(--azure); }
.callout.info  .callout-title { color: var(--azure); }
.callout.warn  { background: var(--red-lt);  border-color: var(--red); }
.callout.warn  .callout-title { color: var(--red); }
.callout.tip   { background: var(--green-lt); border-color: var(--green); }
.callout.tip   .callout-title { color: var(--green); }
.callout.note  { background: var(--gold-lt); border-color: var(--gold); }
.callout.note  .callout-title { color: var(--gold); }

/* ─── CODE BLOCKS ─── */
.codeblock {
  background: #1f1232;
  border-radius: 6px; overflow: hidden;
  margin: 16px 0; box-shadow: var(--shadow);
}
.cb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #3a1c63;
  background: #883cf050;
}
.cb-lang {
  font-size: 10px; color: rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 7px; 
}
.cb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); }
.cb-copy {
  font-size: 10px;
  color: #883CF0; background: none;
  border: 1px solid #3a1c63;
  padding: 2px 9px; border-radius: 2px;
  cursor: pointer; transition: all 0.15s;
}
.cb-copy:hover { color: var(--azure); border-color: #5e309d; }
.cb-copy.ok    { color: var(--teal);  border-color: #5e309d; }
pre {
  padding: 18px 16px; overflow-x: auto;
  font-size: 12px; line-height: 1.65;
  color: rgba(255,255,255,0.75);
}
pre::-webkit-scrollbar { height: 3px; }
pre::-webkit-scrollbar-thumb { background: transparent; }

.kw  { color: #c792ea; }
.str { color: #c3e88d; }
.num { color: #f78c6c; }
.cmt { color: #546e7a; font-style: italic; }
.key { color: #89ddff; }
.val { color: #80cbc4; }
.op  { color: #89ddff; }
code {
  font-size: 11.5px;
  background: var(--azure-lt); border: 1px solid var(--azure-mid);
  color: var(--azure); padding: 1px 5px; border-radius: 2px;
}

/* ─── DIAGRAM ─── */
.diagram {
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white); padding: 32px 24px;
  margin: 20px 0; box-shadow: var(--shadow);
}
.diag-flow { display: flex; align-items: stretch; gap: 0; }
.diag-node {
  background: #3a1c63;
  border-radius: 6px; padding: 18px 20px;
  min-width: 160px; text-align: center;
  flex-shrink: 0; position: relative;
  transition: transform 0.2s;
}
.diag-node:hover { transform: translateY(-2px); }
.diag-node.azure-node { background: linear-gradient(135deg, #3a1c63, #684895); }
.diag-node.teal-node  { background: linear-gradient(135deg, #b59bdb, #4a3a60); }
.dn-icon { font-size: 22px; margin-bottom: 6px; }
.dn-title {
  font-weight: 700; font-size: 13px;
  color: #fff; margin-bottom: 3px;
}
.dn-sub { font-size: 10px; color: rgba(255, 255, 255, 0.689); line-height: 1.4; }

.diag-conn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 60px; position: relative;
}
.conn-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--border2), var(--azure), var(--border2));
  position: relative;
}
.conn-arrow {
  position: absolute; top: -6px;
  font-size: 11px; color: var(--azure);
}
.conn-arrow.right { right: -3px; }
.conn-arrow.left  { left: -3px; }
.conn-lbl {
  font-size: 9px; color: var(--text-dim);
  margin-top: 6px; 
  text-align: center; line-height: 1.4;
}

.diag-legend {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 20px; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--text-dim);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ─── STEPS ─── */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; }
.step-spine { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-badge {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border2);
  background: var(--white); display: flex;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.step.done .step-badge { background: var(--green); border-color: var(--green); color: #fff; }
.step.active .step-badge { background: var(--azure-lt); border-color: var(--azure); color: var(--azure); }
.step-vline { flex: 1; width: 1px; background: var(--border); min-height: 14px; margin: 3px 0; }
.step:last-child .step-vline { display: none; }
.step-body { padding-bottom: 22px; flex: 1; }
.step-title {
  font-weight: 700; font-size: 15px;
  color: var(--navy); margin: 4px 0 6px;
}
.step.done .step-title { color: var(--green); }
.step-desc { color: var(--text-mid); font-size: 12px; line-height: 1.75; }

/* ─── TABS ─── */
.tab-strip {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px; overflow-x: auto;
}
.t-btn {
  font-size: 11px;
  padding: 8px 18px; cursor: pointer; color: var(--text-dim);
  border: none; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; transition: all 0.15s;
  
}
.t-btn:hover { color: var(--navy); }
.t-btn.on { color: var(--azure); border-bottom-color: var(--azure); font-weight: 500; }
.t-pane { display: none; }
.t-pane.on { display: block; }

/* ─── MAPPING TABLE ─── */
.map-table {
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; margin: 16px 0;
  box-shadow: var(--shadow);
}
.map-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr auto;
  border-bottom: 1px solid var(--border);
}
.map-row:last-child { border-bottom: none; }
.map-row.hdr { background: #883cf050; }
.map-cell { padding: 10px 14px; font-size: 12px; }
.map-row.hdr .map-cell {
  font-size: 9px; color: rgba(255, 255, 255, 0.691);
  text-transform: uppercase; font-weight: 600;
}
.map-arrow {
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: 14px; color: var(--azure);
  background: var(--azure-lt);
}
.map-row.hdr .map-arrow {
  border-color: #3a1c63; background:#883cf050;
  color: var(--azure);
}
.map-tag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 2px;
  font-size: 9px; font-weight: 600; 
}
.map-tag.bidi { background: #1f123227;  color: var(--teal);   border: 1px solid #5e309d; }
.map-tag.push { background: var(--azure-lt); color: var(--azure);  border: 1px solid var(--azure-mid); }
.map-tag.pull { background: var(--gold-lt);  color: var(--gold);   border: 1px solid rgba(200,144,26,0.25); }
.map-dir { padding: 10px 12px; display: flex; align-items: center; }
.map-row.hdr .map-dir .map-tag { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.701); border-color: #3a1c63; }

/* ─── CONFLICT ACCORDIONS ─── */
.accord { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin: 10px 0; box-shadow: var(--shadow); }
.accord-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer;
  background: var(--white); transition: background 0.15s;
  gap: 12px;
}
.accord-hd:hover { background: #1f1232; }
.accord.open .accord-hd { background: #1f1232; }
.accord-left { display: flex; align-items: center; gap: 10px; }
.accord-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.sev {
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 2px; text-transform: uppercase;
}
.sev.crit { background: var(--red-lt);   color: var(--red);   border: 1px solid rgba(200,36,60,0.2); }
.sev.high { background: var(--gold-lt);  color: var(--gold);  border: 1px solid rgba(200,144,26,0.2); }
.sev.med  { background: var(--azure-lt); color: var(--azure); border: 1px solid var(--azure-mid); }
.sev.low  { background: var(--green-lt); color: var(--green); border: 1px solid rgba(26,122,74,0.2); }
.accord-chev { font-size: 11px; color: var(--text-dim); transition: transform 0.2s; }
.accord.open .accord-chev { transform: rotate(180deg); }
.accord-body { display: none; padding: 18px 18px; border-top: 1px solid var(--border); background: var(--canvas); }
.accord.open .accord-body { display: block; }

/* ─── SECURITY GRID ─── */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.sec-card {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 18px; background: var(--white);
  box-shadow: var(--shadow); transition: all 0.2s;
  border-top: 3px solid var(--azure);
}
.sec-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.sec-card:nth-child(2n) { border-top-color: var(--teal); }
.sec-card:nth-child(3)  { border-top-color: var(--gold); }
.sec-card:nth-child(4)  { border-top-color: var(--green); }
.sc-icon { font-size: 22px; margin-bottom: 8px; }
.sc-title {
  font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 6px;
}
.sc-desc { font-size: 11.5px; color: var(--text-mid); line-height: 1.75; }

/* ─── CHECKLISTS ─── */
.ck-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.ck-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 13px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; transition: all 0.15s; font-size: 12px; color: var(--text-mid);
}
.ck-item:hover { border-color: var(--azure-mid); background: var(--azure-lt); }
.ck-item.checked { border-color: rgba(26,122,74,0.3); background: #2a1647; color: #60c090; }
.ck-box {
  width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; margin-top: 1px; transition: all 0.15s;
  background: var(--white);
}
.ck-item.checked .ck-box { background: var(--green); border-color: var(--green); color: #fff; }

/* ─── QUIZ ─── */
.quiz-card {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 20px; background: var(--white);
  margin: 14px 0; box-shadow: var(--shadow);
}
.quiz-q {
  font-size: 14px;
  color: var(--navy); margin-bottom: 16px; line-height: 1.65;
}
.q-num {
  font-weight: 700; font-size: 11px; 
  color: var(--azure); margin-bottom: 8px; display: block;
}
.quiz-opts { display: flex; flex-direction: column; gap: 7px; }
.quiz-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 4px; cursor: pointer; transition: all 0.15s;
  font-size: 12px; color: var(--text-mid); background: var(--canvas);
}
.quiz-opt:hover { border-color: var(--azure); background: var(--azure-lt); color: var(--navy); }
.quiz-opt.correct { border-color: #77b255; background: #77b25520; color: #60c090; }
.quiz-opt.wrong   { border-color: #dc143c;   background: #dc143c2b;  color: #ff7a90; }
.quiz-opt.disabled { pointer-events: none; }
.opt-ltr {
  width: 20px; height: 20px; border-radius: 3px;
  background: var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  color: var(--text-mid); margin-top: 0;
}
.quiz-fb {
  margin-top: 12px; padding: 10px 14px; border-radius: 4px;
  font-size: 12px; display: none; line-height: 1.65;
}
.quiz-fb.show { display: block; }
.quiz-fb.ok  { background: #77b25520; color: #60c090; border: 1px solid #77b255; }
.quiz-fb.err { background: #dc143c2b;   color: #ff7a90;   border: 1px solid #dc143c; }

/* ─── FOOTER ─── */
.sec-footer {
  padding: 28px 52px;
  background: #180f26; display: flex;
  align-items: center; justify-content: space-between;
}
.ft-left { font-size: 11px; color: rgba(255,255,255,0.28); line-height: 1.7; }
.ft-btn {
  font-weight: 700; font-size: 14px; 
  background: var(--azure); color: #fff; border: none;
  padding: 10px 24px; border-radius: 3px;
  cursor: pointer; transition: all 0.2s;
}
.ft-btn:hover { background: #883cf0e0; box-shadow: 0 4px 20px #be52e50f; transform: translateY(-1px); }
.ft-btn.done  { background: var(--green); }

/* ─── INLINE TAG BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 600;
  padding: 2px 8px; border-radius: 2px; text-transform: uppercase;
}
.badge.azure { background: var(--azure-lt); color: var(--azure); border: 1px solid var(--azure-mid); }
.badge.teal  { background: var(--teal-lt);  color: var(--teal);  border: 1px solid rgba(0,180,216,0.25); }
.badge.green { background: var(--green-lt); color: var(--green); border: 1px solid rgba(26,122,74,0.25); }
.badge.gold  { background: var(--gold-lt);  color: var(--gold);  border: 1px solid rgba(200,144,26,0.25); }
.badge.red   { background: var(--red-lt);   color: var(--red);   border: 1px solid rgba(200,36,60,0.2); }

/* ─── TERM HIGHLIGHT (External Vault / External Secret) ─── */
.term {
  display: inline; background: #23133a;
  color: var(--teal);
  font-size: 11.5px; padding: 1px 6px; border-radius: 2px;
  border: 1px solid #3a1c63;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .sidebar { width: 210px; }
  .hero { padding: 36px 28px; }
  section.sec { padding: 32px 28px; }
  h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .sec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .hero { padding: 28px 20px; }
  section.sec { padding: 28px 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .sec-footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}


  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }