/* Power BI lab styles are external because the Worker CSP intentionally blocks inline styles. */
:root {
  --bi-ink: #10252e;
  --bi-muted: #536a75;
  --bi-surface: #f6f7f4;
  --bi-card: #ffffff;
  --bi-rule: #d5dee0;
  --bi-blue: #0d6281;
  --bi-blue-deep: #123d5a;
  --bi-gold: #f2b134;
  --plum-900: #102f43;
  --plum-950: #071f2d;
  --mint-300: #bce8d8;
  --amber-300: #f5ca62;
  --paper: #ffffff;
}

body { background: var(--bi-surface); color: var(--bi-ink); }
.topbar { background: #102f43; border-bottom-color: #1b7797; box-shadow: 0 2px 0 rgba(7, 31, 45, .16); }
.topbar .wordmark { color: #ffffff; }
.topbar .wordmark span:first-child { color: #bce8d8; }
.topbar .wordmark span:last-child { color: #f5ca62; }
.topbar .nav-button { border-color: rgba(255, 255, 255, .72); color: #ffffff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.topbar .nav-button:hover, .topbar .nav-button:focus-visible { border-color: #ffffff; background: rgba(255, 255, 255, .18); outline: none; }
.bi-page { max-width: 1120px; margin: 0 auto; padding: 40px 24px 88px; }
.bi-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #123d5a, #176d92); color: #fff; border-radius: 24px; padding: clamp(32px, 6vw, 58px); box-shadow: 0 20px 44px rgba(18, 61, 90, .18); }
.bi-hero::after { content: ""; position: absolute; width: 310px; height: 310px; right: -105px; bottom: -155px; border: 42px solid rgba(255,255,255,.09); border-radius: 50%; }
.bi-hero > * { position: relative; z-index: 1; }
.bi-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.85rem); line-height: .96; letter-spacing: -.055em; margin: 15px 0 20px; max-width: 800px; }
.bi-hero p { max-width: 710px; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; margin-bottom: 22px; }
.bi-kicker { display: inline-block; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bi-progress { height: 10px; max-width: 700px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; margin: 15px 0 6px; }
.bi-progress i { display: block; height: 100%; width: 0; background: var(--bi-gold); transition: width .2s ease; }
.bi-hero small { font-weight: 700; }

.bi-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 30px; margin-top: 30px; }
.bi-nav { position: sticky; top: 20px; align-self: start; border: 1px solid var(--bi-rule); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(18, 61, 90, .05); }
.bi-nav strong { display: block; padding: 9px 10px; color: var(--bi-muted); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.bi-nav a { display: block; padding: 9px 10px; color: var(--bi-blue-deep); border-radius: 8px; font-weight: 700; text-decoration: none; }
.bi-nav a:hover, .bi-nav a:focus-visible { background: #e6f2f7; outline: none; }

.bi-card { border: 1px solid var(--bi-rule); border-radius: 18px; padding: clamp(24px, 4vw, 36px); margin-bottom: 20px; background: var(--bi-card); box-shadow: 0 8px 24px rgba(18, 61, 90, .035); }
.bi-card h2 { color: var(--bi-blue-deep); font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; margin: 0 0 12px; }
.bi-card h3 { color: var(--bi-ink); font-size: 1.07rem; margin: 28px 0 8px; }
.bi-card p { color: var(--bi-muted); line-height: 1.68; }
.bi-card strong { color: var(--bi-ink); }
.overline { color: var(--bi-blue) !important; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bi-download { display: block; border: 1px solid #b9d5e0; border-radius: 13px; padding: 18px; color: var(--bi-blue-deep); text-decoration: none; background: #f4fbfd; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.bi-download:hover, .bi-download:focus-visible { border-color: var(--bi-blue); box-shadow: 0 10px 18px rgba(23,109,146,.12); transform: translateY(-2px); outline: none; }
.bi-download strong { display: block; color: var(--bi-blue-deep); font-size: 1.05rem; }
.bi-download small { display: block; color: var(--bi-muted); line-height: 1.45; margin-top: 6px; }
.bi-step { display: grid; grid-template-columns: 34px 1fr; gap: 13px; margin: 19px 0; color: var(--bi-muted); line-height: 1.65; }
.bi-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bi-blue); color: #fff; font-size: .88rem; font-weight: 800; }
.bi-note { background: #eaf5fa; border-left: 4px solid var(--bi-blue); padding: 14px 17px; border-radius: 0 9px 9px 0; color: var(--bi-muted); line-height: 1.6; }
.bi-goal { background: #fff8e5; border-left-color: #d69413; }
.bi-card code { display: block; overflow-x: auto; white-space: pre-wrap; background: #132b3a; color: #e8f8ff; padding: 18px; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; line-height: 1.6; }
.bi-check { display: flex; gap: 9px; align-items: center; margin: 20px 0 0; color: var(--bi-ink); cursor: pointer; font-weight: 700; }
.bi-check input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: #198754; }
.bi-answer { color: #166534 !important; font-weight: 700; min-height: 1.5em; }
.bi-button { border: 0; border-radius: 8px; padding: 10px 14px; background: var(--bi-blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.bi-button:hover { background: var(--bi-blue-deep); transform: translateY(-1px); }
.bi-button:focus-visible { outline: 3px solid #f2b134; outline-offset: 3px; }
.bi-visual { margin: 25px 0 5px; border: 1px solid var(--bi-rule); border-radius: 12px; overflow: hidden; background: #f7fcff; }
.bi-visual img { display: block; width: 100%; height: auto; }
.bi-visual figcaption { padding: 11px 14px; color: var(--bi-muted); font-size: .86rem; line-height: 1.45; }

@media (max-width: 760px) {
  .bi-page { padding: 24px 16px 64px; }
  .bi-layout, .bi-grid { grid-template-columns: 1fr; }
  .bi-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bi-nav strong { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .bi-download, .bi-button, .bi-progress i { transition: none; }
}
