/*
 * fk-demo.css
 * FisherKing interactive demo (demo.html) for oronokolabs.com
 * Version 1.1 - 17Sep2026
 * 1.1: dashboard tabs, inert navigation; detail/discovery styles removed
 * Same palette as fk-screens.css; full-viewport layout.
 */

:root {
  --fk-navy: #1f2463;
  --fk-navy-deep: #16183f;
  --fk-indigo: #2e3585;
  --fk-panel: #e8eaf6;
  --fk-field: #f4f5fc;
  --fk-ink: #1b1d3a;
  --fk-ink-2: #5a5d7a;
  --fk-line: #d9dcef;
  --fk-good: #1e9e55;
  --fk-warn: #c98a00;
  --fk-high: #d9622b;
  --fk-crit: #c93434;
  --fk-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fk-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.fkd { margin: 0; font-family: var(--fk-mono); color: var(--fk-ink); background: #fff; font-size: 14px; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--fk-high); outline-offset: 2px; }

/* site banner */
.fkd-banner {
  height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: #0f1130; color: #cdd1f0; font-family: var(--fk-sans); font-size: 13px;
}
.fkd-back { color: #fff; text-decoration: none; font-weight: 600; }
.fkd-back::before { content: "\2190\00a0"; }
.fkd-back:hover { text-decoration: underline; }
.fkd-banner-note { flex: 1; text-align: center; color: #9ea4d6; }
.fkd-demo-cta { background: #fff; color: var(--fk-navy); padding: 5px 12px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.fkd-demo-cta:hover { background: var(--fk-panel); }

/* shell */
.fkd-app { display: grid; grid-template-columns: 230px 1fr; height: calc(100% - 40px); }
.fkd-side {
  background: linear-gradient(180deg, var(--fk-indigo) 0%, var(--fk-navy-deep) 100%);
  color: #dfe2f7; padding: 18px 14px; overflow-y: auto; font-size: 13px;
}
.fkd-brand { font-weight: 700; color: #fff; font-size: 17px; }
.fkd-brand small { display: block; font-size: 10px; font-weight: 600; color: #bfc4ea; margin-top: 2px; }
.fkd-cov { margin: 16px 0; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(255,255,255,.04); }
.fkd-cov b { display: block; color: #fff; font-size: 17px; }
.fkd-cov span { display: block; font-size: 11px; color: #aab0dd; margin-bottom: 8px; }
.fkd-cov span:last-child { margin-bottom: 0; }
.fkd-nav { list-style: none; margin: 0; padding: 0; }
.fkd-navitem { display: block; padding: 8px; border-radius: 4px; color: #aab0dd; cursor: default; user-select: none; }
.fkd-navitem.on { color: #fff; font-weight: 700; background: rgba(255,255,255,.12); }

.fkd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fkd-top {
  height: 48px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 20px; background: linear-gradient(90deg, var(--fk-indigo), var(--fk-navy-deep));
  color: #dfe2f7; font-size: 12px;
}
.fkd-role { background: #3ecf8e; color: #0c3b25; padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.fkd-body { flex: 1; overflow: auto; padding: 24px 28px 40px; outline: none; }

/* page parts */
.fkd-body h1 { margin: 0; font-size: 22px; color: var(--fk-navy); }
.fkd-sub { font-size: 12px; color: var(--fk-ink-2); margin: 4px 0 20px; }
.fkd-card { border: 1px solid var(--fk-line); border-radius: 6px; padding: 16px; min-width: 0; overflow-x: auto; background: #fff; }
.fkd-card h2 { margin: 0 0 12px; font-size: 13px; color: var(--fk-navy); }
.fkd-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.fkd-grid2.rev { grid-template-columns: 1fr 1.5fr; }

.fkd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.fkd-tile {
  font: inherit; width: 100%; text-align: left; background: var(--fk-field); border: 1px solid var(--fk-line); border-radius: 6px;
  padding: 14px 16px; cursor: pointer; color: inherit; text-decoration: none; display: block;
}
.fkd-tile:hover { border-color: var(--fk-indigo); }
.fkd-tile span { display: block; font-size: 11px; color: var(--fk-ink-2); }
.fkd-tile b { display: block; font-size: 28px; margin-top: 6px; }
.fkd-tile.dj { background: var(--fk-navy); border-color: var(--fk-navy); color: #fff; }
.fkd-tile.dj span { color: #c6cbf0; }
.fkd-tile.dj b { color: #ffb38a; }

.fkd-bars { display: grid; gap: 10px; }
.fkd-brow { display: grid; grid-template-columns: 150px 1fr 36px; white-space: nowrap; gap: 10px; align-items: center; font-size: 12px; }
.fkd-track { height: 12px; background: var(--fk-field); border-radius: 2px; overflow: hidden; }
.fkd-fill { height: 100%; border-radius: 2px; }
.fkd-brow em { font-style: normal; text-align: right; }
.b-good { background: var(--fk-good); } .b-crit { background: var(--fk-crit); } .b-high { background: var(--fk-high); } .b-warn { background: var(--fk-warn); }

/* tables */
.fkd table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fkd th { text-align: left; font-weight: 600; color: var(--fk-ink-2); padding: 8px 10px; background: var(--fk-panel); white-space: nowrap; }
.fkd td { padding: 8px 10px; border-bottom: 1px solid var(--fk-line); white-space: nowrap; }

.pill { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.p-crit { background: #f7dcdc; color: var(--fk-crit); }
.p-high { background: #fae3d6; color: #a8461a; }
.p-warn { background: #f7ecd0; color: #8a5f00; }
.p-good { background: #d9f1e3; color: #17774a; }
.p-mute { background: #e7e8ef; color: #5a5d7a; }

.btn { display: inline-block; border: 1px solid var(--fk-indigo); background: var(--fk-indigo); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--fk-navy); }
.btn.ghost { background: transparent; color: var(--fk-ink-2); border-color: var(--fk-line); }
.btn.ghost:hover { border-color: var(--fk-indigo); color: var(--fk-indigo); }
.btn.link { background: none; border: none; color: var(--fk-indigo); padding: 0; font-weight: 600; }
.btn.link:hover { background: none; text-decoration: underline; }
.fkd-gap { margin-top: 14px; }

/* dashboard tabs */
.fkd-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--fk-line); margin-bottom: 18px; }
.fkd-tab {
  border: none; background: none; color: var(--fk-ink-2); padding: 9px 14px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 13px;
}
.fkd-tab:hover { color: var(--fk-navy); }
.fkd-tab.on { color: var(--fk-navy); font-weight: 700; border-bottom-color: var(--fk-indigo); }
.fkd-lede { max-width: 80ch; font-size: 13px; line-height: 1.6; color: var(--fk-ink-2); margin: 0 0 16px; font-family: var(--fk-sans); }

.fkd-foot { font-size: 11px; color: var(--fk-ink-2); margin-top: 10px; }

@media (max-width: 900px) {
  .fkd-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: calc(100% - 40px); }
  .fkd-side { padding: 10px 12px; }
  .fkd-cov { display: none; }
  .fkd-nav { display: none; }
  .fkd-brand { margin-bottom: 0; }
  .fkd-top { display: none; }
  .fkd-body { padding: 18px 14px 40px; }
  .fkd-tiles { grid-template-columns: repeat(2, 1fr); }
  .fkd-grid2, .fkd-grid2.rev { grid-template-columns: 1fr; }
  .fkd-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .fkd-tab { padding: 8px 10px; white-space: nowrap; }
  .fkd-brow { grid-template-columns: 120px 1fr 36px; }
  .fkd-banner-note { display: none; }
  .fkd-banner { justify-content: space-between; font-size: 12px; padding: 0 10px; }
  .fkd-back, .fkd-demo-cta { white-space: nowrap; }
  .fkd-demo-cta { padding: 4px 8px; }
}
