/* ═══════════════════════════════════════════════════════════
   CXOsignal — app.css
   Styles for /app/* authenticated pages (support docs, dashboard)
   Inherits ADO palette tokens — same visual language as main.css
   ═══════════════════════════════════════════════════════════ */

/* ── Layer 1: ADO Palette (mirrored from main.css) ────────── */
:root {
  --ado-gray-10:  #FAF9F8;
  --ado-gray-20:  #F3F2F1;
  --ado-gray-30:  #EDEBE9;
  --ado-gray-40:  #E1DFDD;
  --ado-gray-50:  #C8C6C4;
  --ado-gray-60:  #A19F9D;
  --ado-gray-70:  #605E5C;
  --ado-gray-80:  #323130;
  --ado-gray-90:  #201F1E;

  --ado-blue:       #0C70D8;
  --ado-blue-dark:  #0A5FB8;
  --ado-blue-tint:  #EBF4FF;
  --ado-blue-tint2: #D6EAFF;

  --ado-green:      #107C10;
  --ado-amber:      #E6A817;
  --ado-amber-dark: #835B00;
  --ado-red:        #A4262C;

  --ado-green-tint: #DFF6DD;
  --ado-amber-tint: #FFF4CE;
  --ado-red-tint:   #FDE7E9;
}

/* ── Layer 2: Semantic Tokens ────────────────────────────── */
:root {
  --text:          var(--ado-gray-80);
  --text-muted:    var(--ado-gray-70);
  --text-title:    var(--ado-gray-90);
  --link:          var(--ado-blue);
  --bg:            #fff;
  --bg-subtle:     var(--ado-gray-10);
  --bg-chrome:     var(--ado-gray-20);
  --border:        var(--ado-gray-30);
  --border-field:  var(--ado-gray-50);

  --font-stack: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-pill: 10px;
  --nav-height: 64px;
  --sidebar-width: 300px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-stack);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Site Header (nav bar) ───────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  z-index: 100;
}
.site-header .nav-logo img { height: 32px; display: block; }
.site-header .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--font-stack);
  font-size: 14px;
  color: var(--text);
  flex: 1;
  outline: none;
}
.header-search input::placeholder { color: var(--ado-gray-60); }
.header-search svg { color: var(--ado-gray-60); flex-shrink: 0; }
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--link); text-decoration: none; }
.header-nav .btn-primary {
  padding: 6px 16px;
  background: var(--ado-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.header-nav .btn-primary:hover { background: var(--ado-blue-dark); text-decoration: none; }

/* Nav link with an inline brand badge (e.g. LinkedIn icon beside Community) */
.nav-link-with-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}
.linkedin-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
}

/* Signed-in user chip */
.header-user {
  position: relative;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.user-chip:hover { background: var(--ado-gray-30); }
.user-chip .dropdown-chevron {
  color: var(--text-muted);
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.user-chip[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ado-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.user-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.user-chip-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  min-width: 130px;
  z-index: 200;
  overflow: hidden;
}
.user-chip-menu.open { display: block; }
.user-chip-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.user-chip-menu button:hover { background: var(--ado-gray-10); }

/* ── App Shell (below fixed nav) ────────────────────────── */
.app-shell {
  display: flex;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.sidebar-product-label {
  display: block;
  padding: 16px 20px 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
}
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-heading-row {
  display: flex;
  align-items: center;
}
.sidebar-section-heading-link {
  flex: 1;
  padding: 6px 0 6px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2px;
}
.sidebar-section-heading-link:hover { color: var(--text-title); text-decoration: none; }
.sidebar-section-heading-link.active { color: var(--ado-blue); }
.sidebar-section-heading-row .sidebar-section-heading {
  width: auto;
  padding: 6px 20px 6px 8px;
  margin-bottom: 0;
}
.sidebar-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 2px;
  /* button resets */
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.sidebar-section-heading:hover { color: var(--text-title); }
a.sidebar-section-heading--link { text-decoration: none; }
a.sidebar-section-heading--link.active { color: var(--ado-blue); }
.sidebar-chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sidebar-section-heading[aria-expanded="false"] .sidebar-chevron { transform: rotate(-90deg); }
.sidebar-nav { list-style: none; overflow: hidden; }
.sidebar-nav li a {
  display: block;
  padding: 2px 20px 2px 28px;
  font-size: 12px;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.sidebar-nav li a:hover {
  background: var(--ado-gray-30);
  color: var(--text-title);
  text-decoration: none;
}
.sidebar-nav li a.active {
  color: var(--ado-blue);
  border-left-color: var(--ado-blue);
  background: var(--ado-blue-tint);
  font-weight: 600;
  padding-left: 26px; /* compensate for 2px border */
}

/* Child items (second-level indent) */
.sidebar-nav .child a {
  padding-left: 36px;
}
.sidebar-nav .child a.active {
  padding-left: 34px; /* compensate for 2px border */
}

/* Deployment Guide expand/collapse */
.sidebar-nav .dg-parent { display: flex; align-items: stretch; }
.sidebar-nav .dg-parent > a { flex: 1; min-width: 0; }
.dg-toggle {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ado-gray-60);
  padding: 0;
  transition: background 0.1s;
}
.dg-toggle:hover { background: var(--ado-gray-30); color: var(--text-title); }
.sidebar-nav .dg-parent > a.active ~ .dg-toggle {
  background: var(--ado-blue-tint);
  color: var(--ado-blue);
}
.dg-chevron { width: 10px; height: 10px; transition: transform 0.2s; }
.dg-toggle[aria-expanded="false"] .dg-chevron { transform: rotate(-90deg); }
.sidebar-nav .dg-child.dg-hidden { display: none; }

/* Locked (license-required) nav items */
.sidebar-nav a.locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ado-gray-60);
  position: relative;
}
.sidebar-nav a.locked:hover {
  color: var(--ado-gray-70);
  background: var(--ado-gray-20);
}
.lock-icon {
  width: 12px; height: 12px;
  flex-shrink: 0;
  color: var(--ado-gray-50);
  margin-left: 6px;
}
/* Tooltip */
.sidebar-nav a.locked::after {
  content: "Requires a paid license";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ado-gray-90);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}
.sidebar-nav a.locked:hover::after {
  opacity: 1;
}

/* ── Header Help dropdown ─────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-stack);
  padding: 0;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover { color: var(--link); }
.nav-dropdown-trigger .dropdown-chevron {
  color: var(--ado-gray-60);
  transition: transform 0.15s;
}
.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.nav-dropdown-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 8px 16px 4px;
  margin: 0;
  border-bottom: none;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--link);
  text-decoration: none;
}

/* ── Nested submenu ─────────────────────────────────────── */
.nav-dropdown-submenu-item { position: relative; }
.nav-dropdown-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  gap: 8px;
}
.nav-dropdown-submenu-trigger:hover { color: var(--link); background: var(--bg-subtle); }
.nav-dropdown-submenu-chevron { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }
.nav-dropdown-submenu-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 200px;
  padding: 6px 0;
  z-index: 201;
}
.nav-dropdown-submenu-item:hover .nav-dropdown-submenu-menu,
.nav-dropdown-submenu-item.open .nav-dropdown-submenu-menu { display: block; }

/* ── Group headings (3rd-level sidebar hierarchy) ─────────── */
.sidebar-group { list-style: none; }

.sidebar-group-heading-row {
  display: flex;
  align-items: center;
}
.sidebar-group-heading-link {
  flex: 1;
  padding: 5px 0 5px 32px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-decoration: none;
}
.sidebar-group-heading-link:hover { color: var(--text-title); text-decoration: none; }
.sidebar-group-heading-link.active { color: var(--ado-blue); }
.sidebar-group-heading-row .sidebar-group-heading {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  padding: 5px 20px 5px 6px;
  line-height: 1;
}
.sidebar-group-heading-row .sidebar-group-heading:hover { color: var(--text-title); }
.sidebar-group-heading[aria-expanded="false"] .sidebar-chevron { transform: rotate(-90deg); }

.sidebar-group-nav { list-style: none; overflow: hidden; }
.sidebar-group-nav li a { padding-left: 40px; }
.sidebar-group-nav li a.active { padding-left: 38px; }

/* Developer Resources section — visually separated from main nav */
.sidebar-section--developer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* External nav links (open in new tab) */
.sidebar-nav a.external {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}
.sidebar-nav a.external:hover { color: var(--link); }
.external-icon {
  width: 11px; height: 11px;
  flex-shrink: 0;
  color: var(--ado-gray-50);
  margin-left: 6px;
}
.sidebar-nav a.external:hover .external-icon { color: var(--ado-blue); }

/* ── Main Content Area ────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px 56px 80px;
  max-width: 860px;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb-sep { color: var(--ado-gray-50); }
.breadcrumb .current { color: var(--text); }

/* ── Page Breadcrumb Bar (injected above article, below header) */
.page-breadcrumb-bar {
  margin: -40px -56px 28px;
  padding: 8px 56px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}
.page-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--link); }
.bc-sep { margin: 0 6px; color: var(--ado-gray-50); }
.bc-current { color: var(--text); }

/* ── Article Eyebrow ──────────────────────────────────────── */
.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ado-blue);
  background: var(--ado-blue-tint);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.eyebrow-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ado-gray-50);
}
.eyebrow-plain {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Article Headline ─────────────────────────────────────── */
.main-content p + p,
.main-content ul + p,
.main-content ol + p { margin-top: 1em; }

.article-headline {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* ── Article Meta Row ─────────────────────────────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.meta-date { font-size: 13px; color: var(--text-muted); }
.meta-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.meta-badge.intermediate {
  background: var(--ado-amber-tint);
  color: var(--ado-amber-dark);
}
.meta-badge.tier {
  background: var(--ado-blue-tint);
  color: var(--ado-blue);
}

/* ── Gate notice (unauthenticated access to gated pages) ─── */
.gate-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  margin: 64px auto 0;
  padding: 0 16px;
}
.gate-lock-icon {
  width: 44px;
  height: 52px;
  color: var(--ado-gray-50);
  margin-bottom: 20px;
}
.gate-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 12px;
}
.gate-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.gate-cta-btn {
  background: var(--ado-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-family: var(--font-stack);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.gate-cta-btn:hover { background: var(--ado-blue-dark); }

/* ── Callout Box (Why It Matters) ────────────────────────── */
.callout {
  background: var(--ado-blue-tint);
  border-left: 3px solid var(--ado-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
  margin-bottom: 36px;
}
.callout-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ado-blue);
  margin-bottom: 6px;
}
.callout p { font-size: 15px; color: var(--text-title); line-height: 1.6; }
.callout ul { margin: 8px 0 8px 20px; }
.callout li { font-size: 15px; color: var(--text-title); margin-bottom: 6px; line-height: 1.5; }
.callout--warning {
  background: var(--ado-amber-tint);
  border-left-color: var(--ado-amber-dark);
}
.callout--warning .callout-label { color: var(--ado-amber-dark); }
.callout--it-admin {
  background: #f4eafa;
  border-left-color: #5c2d91;
}
.callout--it-admin .callout-label { color: #5c2d91; }
.callout--it-admin .callout-label::before { content: "\1F465  "; }
.it-admin-badge {
  display: block;
  background: #f4eafa;
  border-left: 3px solid #5c2d91;
  color: #5c2d91;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  margin-bottom: 6px;
  border-radius: 0 2px 2px 0;
}
.it-admin-badge::before { content: "\1F465  "; }
.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Inline code ─────────────────────────────────────────── */
code {
  font-family: "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.875em;
  background: var(--ado-gray-20);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--ado-gray-90);
}

/* ── Section Heading (within article) ────────────────────── */
.article-section-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Checklist ────────────────────────────────────────────── */
.checklist {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.checklist li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ado-green-tint);
  border: 1.5px solid var(--ado-green);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23107C10' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Numbered Steps ───────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 16px;
}
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ado-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-body { min-width: 0; }
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}
.step-body p { font-size: 15px; margin-bottom: 14px; }
.step-body ul { margin: 0 0 14px 20px; }
.step-body li { font-size: 15px; margin-bottom: 6px; line-height: 1.5; }

/* ── Code Block ───────────────────────────────────────────── */
.code-block {
  background: var(--ado-gray-90);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  position: relative;
}
.code-block pre {
  font-family: "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 13px;
  color: #D4D4D4;
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 12px;
  color: #ccc;
  cursor: pointer;
  font-family: var(--font-stack);
  transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

/* ── Screenshot Placeholder ───────────────────────────────── */
.screenshot-placeholder {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-field);
  border-radius: var(--radius-md);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ── Article Image ────────────────────────────────────────── */
.article-list {
  margin: 8px 0 16px 0;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.article-list li { margin-bottom: 4px; }

.article-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  display: block;
}

/* ── Config field table (screenshot above, table below) ─────── */
.config-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  margin-bottom: 4px;
}
.config-table tr { border-top: 1px solid var(--border); }
.config-table tr:first-child { border-top: none; }
.config-table td {
  padding: 12px 0;
  font-size: 15px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--text-title);
}
.config-table-name {
  font-weight: 600;
  width: 32%;
  padding-right: 24px;
}
.config-table td p { margin-bottom: 8px; }
.config-table td p:last-child { margin-bottom: 0; }
.config-table td ul { margin: 0 0 8px 20px; }
.config-table td ul:last-child { margin-bottom: 0; }
.config-table td li { font-size: 15px; margin-bottom: 4px; }

/* ── Troubleshooting Table ───────────────────────────────── */
.trouble-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 14px;
}
.trouble-table th {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.trouble-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  vertical-align: top;
  color: var(--text);
}
.trouble-table tr:nth-child(even) td { background: var(--bg-subtle); }

/* ── Related Articles ─────────────────────────────────────── */
.related-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.related-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-decoration: none;
}
.related-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ado-blue);
  margin-bottom: 6px;
}
.related-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.4;
}

/* ── Feedback Row ─────────────────────────────────────────── */
.feedback-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.feedback-btn {
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  border: 1px solid var(--border-field);
  background: var(--bg);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.feedback-btn:hover {
  background: var(--ado-gray-20);
  border-color: var(--ado-gray-50);
}
.feedback-btn.yes:hover { border-color: var(--ado-green); color: var(--ado-green); }
.feedback-btn.no:hover  { border-color: var(--ado-red);   color: var(--ado-red); }

.feedback-thanks {
  font-size: 14px;
  color: var(--ado-green);
}
.feedback-row:has(.feedback-comment-form),
.feedback-row:has(.feedback-thanks) {
  align-items: flex-start;
}
.feedback-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}
.feedback-comment-label {
  font-size: 13px;
  color: var(--text);
}
.feedback-comment {
  width: 100%;
  max-width: 480px;
  padding: 8px 10px;
  border: 1px solid var(--border-field);
  border-radius: var(--radius-sm);
  font-family: var(--font-stack);
  font-size: 13px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.feedback-comment:focus {
  outline: none;
  border-color: var(--ado-blue);
  box-shadow: 0 0 0 2px var(--ado-blue-tint2);
}
.feedback-comment-actions {
  display: flex;
  gap: 8px;
}
.feedback-submit {
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  border: 1px solid var(--ado-blue);
  background: var(--ado-blue);
  color: #fff;
  transition: background 0.15s;
}
.feedback-submit:hover { background: var(--ado-blue-dark); border-color: var(--ado-blue-dark); }
.feedback-skip {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
}
.feedback-skip:hover { color: var(--text); text-decoration: underline; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 12px 24px;
  font-size: 12px;
  color: var(--text-muted);
}
body:has(.sidebar) .site-footer {
  margin-left: var(--sidebar-width);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--link); text-decoration: none; }
.site-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-sep { color: var(--ado-gray-40); user-select: none; }

/* ── Sign-in button (guests in header) ────────────────────── */
.btn-sign-in {
  padding: 5px 14px;
  border: 1px solid var(--ado-blue);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ado-blue);
  font-family: var(--font-stack);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-sign-in:hover { background: var(--ado-blue-tint); }

/* ── LinkedIn placeholder (greyed, non-interactive) ───────── */
.nav-link-disabled {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--ado-gray-50) !important;
  cursor: default;
  pointer-events: none;
}

/* ── Divider ──────────────────────────────────────────────── */
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ── Article inline link ──────────────────────────────────── */
/* Underline always visible — required by WCAG 1.4.1 link-in-text-block */
.article-link { color: var(--ado-blue); text-decoration: underline; }
.article-link:hover { text-decoration: underline; }

/* ── Install links (step 4 guide links + copy buttons) ───── */
.install-links { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.install-link-row { display: flex; align-items: center; gap: 16px; }
.copy-link-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--ado-blue);
  background: none;
  border: 1px solid var(--ado-blue);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.copy-link-btn:hover { background: var(--ado-blue); color: #fff; }
.copy-link-btn.copied { color: var(--ado-green); border-color: var(--ado-green); }

/* ── Step checkmark variant (final step) ─────────────────── */
.step-number[aria-hidden] { background: var(--ado-green); font-size: 18px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content {
    margin-left: 0;
    padding: 32px 24px 60px;
  }
  body:has(.sidebar) .site-footer {
    margin-left: 0;
  }
  .page-breadcrumb-bar { margin: -32px -24px 28px; padding: 8px 24px; }
}
/* ── Mobile: collapse header nav into drawer ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 8px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-left: 0;
  }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .header-search { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

