/* Hub shell: bar + one visible panel. Tokens come from style.css (:root).
   Readability rules apply: text pairs >= 4.5:1, no gradients (logo only),
   nothing under 13px. The bar is white - the wordmark (#273266) would
   vanish on navy; the active tab is the solid navy control. */

.hub {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

/* ---------- bar ---------- */

.hub-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--jv-border);
}
.hub-logo { height: 28px; width: auto; display: block; flex-shrink: 0; }

.hub-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.hub-tab {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--jv-ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.hub-tab:hover { background: var(--jv-surface); color: var(--jv-ink); }
.hub-tab[aria-current="page"],
.hub-tab[aria-current="page"]:hover { background: var(--jv-navy); color: #ffffff; }

.hub-legal { display: flex; gap: 14px; font-size: 13px; flex-shrink: 0; }
.hub-legal a { color: var(--jv-ink-2); text-decoration: underline; }
.hub-legal a:hover { color: var(--jv-link); }

/* ---------- panels ---------- */

.hub-main { min-height: 0; overflow: hidden; }
.hub-panel { height: 100%; min-height: 0; }
.hub-panel[hidden] { display: none; }

.panel-report { display: flex; flex-direction: column; }
.report-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 6px 20px;
  font-size: 14px;
  color: var(--jv-ink-2);
  background: var(--jv-surface);
  border-bottom: 1px solid var(--jv-border);
}
.report-open { color: var(--jv-link); font-weight: 500; }
.report-frame { flex: 1; width: 100%; min-height: 0; border: 0; display: block; }

.panel-doku {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}
.doku-card {
  max-width: 480px;
  padding: 28px;
  border: 1px solid var(--jv-border);
  border-radius: 14px;
  background: var(--jv-surface);
}
.doku-card h1 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.doku-card p { margin-bottom: 20px; }
.doku-open {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--jv-navy);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}
.doku-open:hover { background: var(--jv-navy-hover); }

/* ---------- small screens: logo + legal on row 1, tabs on row 2 ---------- */

@media (max-width: 767px) {
  .hub-bar { flex-wrap: wrap; row-gap: 8px; padding: 8px 14px; }
  .hub-logo { height: 22px; }
  .hub-legal { margin-left: auto; }
  .hub-tabs { order: 3; flex-basis: 100%; }
  .hub-tab { padding: 8px 12px; }

  /* Looker canvases are fixed-width: the own-tab button leads. */
  .report-bar { padding: 10px 14px; }
  .report-hint { display: none; }
  .report-open {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: var(--jv-navy);
    color: #ffffff;
    text-decoration: none;
  }
}
