:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #0b1f3a;
  --navy-2: #13335c;
  --brand: #0c66e4;
  --brand-dark: #0055cc;
  --emerald: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --code-bg: #0f172a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
header.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none !important;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.nav-links a { color: #cbd5e1; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.nav-search-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.nav-kbd {
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #13335c 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.badge-green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 900px;
}
.hero p.lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 820px;
  margin: 0 0 26px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
}
.btn-primary { background: #38bdf8; color: #0b1f3a; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.24); }
main { padding: 40px 0 64px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
  margin: 24px 0 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.card h3 { margin-top: 0; font-size: 18px; color: var(--navy); }
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}
@media (max-width: 640px) {
  .prose { padding: 22px 18px; }
}
.prose h1 { margin-top: 0; color: var(--navy); font-size: clamp(24px, 3.2vw, 31px); line-height: 1.28; }
.prose h2 { color: var(--navy); margin-top: 32px; border-bottom: 1px solid var(--border); padding-bottom: 8px; font-size: 21px; }
.prose h3 { color: var(--navy-2); margin-top: 22px; font-size: 17px; }
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
table.matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}
table.matrix th, table.matrix td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
table.matrix th { background: #f1f5f9; color: var(--navy); font-weight: 700; width: 26%; }
code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  word-break: break-word;
}
pre {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
pre code { background: transparent; padding: 0; color: inherit; word-break: normal; }
.xml-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}
.xml-box-bad { border-left: 4px solid var(--red); padding-left: 12px; }
.xml-box-good { border-left: 4px solid var(--emerald); padding-left: 12px; }
.xml-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.xml-label-bad { color: #b91c1c; }
.xml-label-good { color: #047857; }
.callout {
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--brand);
  background: #eff6ff;
  margin: 20px 0;
}
.callout-warn {
  border-left-color: var(--red);
  background: #fef2f2;
}
.callout-cta {
  background: linear-gradient(135deg, #0b1f3a 0%, #13335c 100%);
  color: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.callout-cta p { margin: 6px 0 0; color: #cbd5e1; font-size: 14px; max-width: 680px; }
.bs-code-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-right: 5px;
  margin-bottom: 4px;
}
.bs-lang-pill {
  display: inline-block;
  background: var(--navy);
  color: #7dd3fc;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #f8fafc;
}
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.faq-item p { margin: 0; font-size: 14px; color: var(--text); }

/* Hub directory controls */
.hub-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.hub-search-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: inherit;
}
.hub-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-chip {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.hub-chip.active, .hub-chip:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* Live In-Browser Checker Widget (.bsw-*) */
.bsw-shell {
  background: var(--surface);
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 26px;
  margin: 28px 0 36px;
  box-shadow: 0 10px 25px -5px rgba(11, 31, 58, 0.08);
}
.bsw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bsw-privacy-pill {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bsw-title { margin: 0 0 6px; font-size: 23px; color: var(--navy); border: none !important; padding: 0 !important; }
.bsw-sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.bsw-lang-switch { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 7px; overflow: hidden; }
.bsw-lang-btn {
  background: #f8fafc;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.bsw-lang-btn.active { background: var(--navy); color: #fff; }
.bsw-sample-bar {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.bsw-sample-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.bsw-sample-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.bsw-sample-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}
.bsw-sample-btn:hover { border-color: var(--brand); color: var(--brand); }
.bsw-sample-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.bsw-sample-btn-danger { border-color: #fca5a5; color: #991b1b; background: #fef2f2; }
.bsw-sample-btn-danger.active { background: #dc2626; color: #fff; border-color: #dc2626; }
.bsw-sample-btn-warn { border-color: #fcd34d; color: #92400e; background: #fffbeb; }
.bsw-sample-btn-warn.active { background: #d97706; color: #fff; border-color: #d97706; }
.bsw-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bsw-dropzone:hover, .bsw-dropzone.dragover {
  border-color: var(--brand);
  background: #eff6ff;
}
.bsw-drop-main { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.bsw-drop-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.bsw-drop-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bsw-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
}
.bsw-btn-primary { background: var(--brand); color: #fff; }
.bsw-btn-primary:hover { background: var(--brand-dark); }
.bsw-btn-outline { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.bsw-btn-outline.active, .bsw-btn-outline:hover { background: #e2e8f0; }
.bsw-btn-ghost { background: transparent; color: var(--brand); border-color: transparent; }
.bsw-paste-drawer { margin-top: 14px; }
.bsw-textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  color: #e2e8f0;
}
.bsw-results { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 18px; }
.bsw-alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 12px; border: 1px solid transparent; }
.bsw-alert-ok { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.bsw-alert-err { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.bsw-alert-warn { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.bsw-chip {
  background: rgba(15,23,42,0.08);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.bsw-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bsw-subhead { font-weight: 700; font-size: 14px; color: var(--navy); margin: 16px 0 8px; }
.bsw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.bsw-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.bsw-kpi {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.bsw-kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.bsw-kpi-val { font-size: 15px; font-weight: 700; color: var(--navy); }
.bsw-muted-sm { font-size: 12px; color: var(--muted); }
.bsw-table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.bsw-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.bsw-table th, .bsw-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.bsw-table th { background: #f1f5f9; font-weight: 700; color: var(--navy); }
.bsw-right { text-align: right !important; }
.bsw-sev { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.bsw-sev-err { background: #fee2e2; color: #991b1b; }
.bsw-sev-warn { background: #fef3c7; color: #92400e; }
.bsw-rule-link { font-weight: 600; font-size: 12px; white-space: nowrap; }
.bsw-toolbar-bottom { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.bsw-export-box {
  margin-top: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}
.bsw-export-blocked {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.bsw-export-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.bsw-mini-btn {
  background: #38bdf8;
  color: #0b1f3a;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.bsw-code-preview { margin: 0; max-height: 220px; overflow: auto; font-size: 11.5px; background: #020617; padding: 10px; }
.bsw-jira-cta {
  margin-top: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ctrl+K Instant Search Modal */
.bs-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.bs-search-backdrop[hidden] { display: none !important; }
.bs-search-dialog {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.bs-search-input-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.bs-search-icon { font-size: 18px; color: var(--muted); }
.bs-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.bs-search-esc {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.bs-search-results { max-height: 390px; overflow-y: auto; padding: 8px; }
.bs-search-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none !important;
}
.bs-search-item:hover, .bs-search-item.active { background: #eff6ff; }
.bs-search-item-top { font-size: 14px; color: var(--navy); margin-bottom: 3px; }
.bs-search-item-sub { font-size: 12px; color: var(--muted); }
.bs-search-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.bs-search-foot {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

footer.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 40px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; }
