/* BK Replay customer docs. Colours follow the portal's default branding. */
:root {
  --header: #03243C;
  --accent: #2A4EEF;
  --bg: #ffffff;
  --panel: #f5f7fa;
  --text: #1b1f24;
  --muted: #5b6573;
  --border: #dde2e8;
  --note: #eef2ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8ea2ff;
    --bg: #121417;
    --panel: #1b1e23;
    --text: #e6e8eb;
    --muted: #a0a8b3;
    --border: #2e333a;
    --note: #1e2440;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, .side label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 24px;
  background: var(--header); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { height: 26px; }
.lang { display: flex; gap: 4px; }
.lang a { color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 6px; font-size: 14px; font-weight: 600; opacity: .75; }
.lang a.active, .lang a:hover { background: rgba(255,255,255,.15); opacity: 1; }

.wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1280px; margin: 0 auto; }
.side { border-right: 1px solid var(--border); padding: 20px 16px 40px 24px; position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; }
.nav-toggle, .side label { display: none; }
.side h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 6px; }
.side h2:first-of-type { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.side li a:hover { background: var(--panel); }
.side li a[aria-current="page"] { background: var(--note); color: var(--accent); font-weight: 600; }

main { padding: 28px 48px 64px; min-width: 0; max-width: 900px; }
main h1 { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }
main h2 { font-size: 23px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); }
main h3 { font-size: 18px; margin: 26px 0 6px; }
main p, main li { max-width: 72ch; }
main img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin: 8px 0 4px; }
main table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
main th, main td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
main th { background: var(--panel); }
main code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
main blockquote { margin: 16px 0; padding: 10px 16px; background: var(--note); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; }
main blockquote p { margin: 4px 0; }
main hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

footer { display: flex; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 16px 24px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  header.top { padding: 0 16px; }
  .brand span { font-size: 15px; }
  .wrap { display: block; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  .side label { display: block; cursor: pointer; font-weight: 600; }
  .side label::after { content: " \25BE"; }
  .side nav { display: none; margin-top: 8px; }
  .nav-toggle:checked ~ nav { display: block; }
  main { padding: 20px 16px 48px; }
  main h1 { font-size: 26px; }
  footer { padding: 16px; }
}
