/* =====================================================================
   CloudLens Autopilot for AWS - supplemental styles
   Layers on top of styles.css. No :root token overrides here so the AWS
   orange/navy palette from styles.css stays authoritative. This sheet only
   styles the AWS-only sections (configuration, prep-vms, sensors, mirroring,
   teardown, appendix), the full-width Keysight banner, and shared helpers.
   ===================================================================== */

/* ---------- Full-width Keysight brand banner (squid-ink navy) ---------- */
.keysight-top-banner {
  display: block; width: 100%; text-decoration: none;
  padding: 15px 0; text-align: center;
  background: linear-gradient(180deg, var(--navy-2, #2f3d4f), var(--navy, #232F3E));
  border-bottom: 2px solid oklch(0% 0 0 / .35);
  box-shadow:
    inset 0 -1px 0 oklch(0% 0 0 / .3),
    inset 0 1px 0 oklch(100% 0 0 / .10),
    0 2px 10px oklch(0% 0 0 / .22);
  position: relative; z-index: 61;
}
.keysight-top-banner__text {
  font-family: var(--font);
  font-size: 20px; font-weight: 900; letter-spacing: .3em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 0 oklch(0% 0 0 / .5), 0 2px 6px oklch(0% 0 0 / .35);
}
.keysight-top-banner:hover .keysight-top-banner__text { color: var(--accent-bright); }
@media (max-width: 760px) {
  .keysight-top-banner { padding: 12px 0; }
  .keysight-top-banner__text { font-size: 15px; letter-spacing: .24em; }
}
@media (max-width: 480px) {
  .keysight-top-banner__text { font-size: 12.5px; letter-spacing: .18em; }
}

/* ---------- Responsive auto-fit grid for the extra sections ---------- */
.info-grid {
  display: grid; gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 8px;
}

/* Sub-heading used inside the long-form extra sections */
.sub-head {
  margin: 44px 0 12px; font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700; letter-spacing: -.01em; color: var(--ink);
}
.section > .container > p { color: var(--ink-soft); line-height: 1.65; }
.section > .container > p code,
.card p code, .card li code, .callout-warning code {
  background: var(--bg-2); padding: 2px 8px; border-radius: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  box-shadow: inset 0 1px 2px var(--inner-dark);
}
.muted-note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }

/* Numbered badge for the one-time configuration cards */
.num-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px; margin-bottom: 8px;
  font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent), var(--accent-deep));
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / .55), 0 6px 14px -4px var(--accent-glow);
  position: relative; overflow: hidden;
}
.num-badge::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(100% 0 0 / .55), transparent 55%);
}

/* ---------- Code blocks that carry a data-lang attribute ---------- */
pre[data-lang] {
  position: relative; margin: 8px 0 14px;
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 14px; padding: 30px 16px 14px;
  overflow-x: auto; font-size: 12.5px; line-height: 1.6;
  font-family: var(--mono);
  box-shadow:
    inset 0 2px 6px oklch(0% 0 0 / .35),
    inset 0 -1px 0 oklch(100% 0 0 / .05),
    0 12px 26px -18px oklch(0% 0 0 / .35);
}
pre[data-lang] code {
  background: transparent; color: inherit; font-family: inherit;
  white-space: pre; padding: 0; box-shadow: none; font-size: 12.5px;
}
pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute; top: 8px; left: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: oklch(70% 0.02 260); font-family: var(--mono);
}
.card pre[data-lang] { margin-bottom: 10px; }

/* ---------- Warning callout (amber, dark-mode aware) ---------- */
.callout-warning {
  position: relative; margin: 14px 0 6px;
  border-radius: 16px; padding: 14px 16px 14px 46px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: linear-gradient(180deg,
    oklch(var(--gold-l) var(--gold-c) var(--gold-h) / .30),
    oklch(var(--gold-l) var(--gold-c) var(--gold-h) / .12)), var(--surface);
  box-shadow:
    inset 0 1px 0 var(--neu-light),
    0 1px 2px var(--neu-dark),
    0 12px 26px -18px oklch(0% 0 0 / .3);
}
.callout-warning::before {
  content: "\26A0"; position: absolute; left: 16px; top: 13px;
  font-size: 16px; line-height: 1; color: var(--gold-deep);
}
html[data-theme="dark"] .callout-warning::before { color: var(--gold-bright); }
.callout-warning strong { color: var(--ink); font-weight: 700; }

/* Tables inside the extra-section cards keep the base .step-table look but
   need a little breathing room when they follow a paragraph. */
.card .step-table { margin-top: 12px; }

/* Bullet lists inside plain extra-section cards. */
.card ul { margin: 6px 0 10px; padding-left: 20px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }
.card ul li { margin-bottom: 4px; }
