/* NephroLens -- Penn Medicine look (all tabs). The site's only look since 2026-09-30 (the
   classic plum look and its switch were removed). Loaded by index.html right after its own <style>
   block, so these rules win: colors, type, borders and header. The layout rules the tabs need live
   in index.html itself.

   Source: new_annotate/dpa_standalone.zip (static/pm-theme.css, 2026-09-29), which themed the
   standalone DemoPathologyAnnotation page. Its color tokens, global type, header, buttons and cards
   are reused as-is; its DemoPathologyAnnotation layout rules moved into index.html. The section at
   the end extends the look to the other six tabs.

   Palette (pennmedicine.org): navy #011f5b and crimson #990000 (the logo's colors), dark blue
   #0055a4 for links and hover, muted blue #627191, border #e5e9ef, page #f7f8fa, tint #e1eaf3,
   off-black #2c2c2c. Serif headings pair with the logo's serif wordmark. */

:root,
:root[data-theme="light"]{
  --pm-navy:#011f5b; --pm-blue:#0055a4; --pm-red:#990000;
  --pm-muted:#627191; --pm-line:#e5e9ef; --pm-soft:#f7f8fa; --pm-tint:#e1eaf3; --pm-ink:#2c2c2c;
  --pm-serif:Georgia, "Times New Roman", serif;
  --pm-sans:"Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pm-ctl:32px;

  --bg:var(--pm-soft); --bg-raised:#fff; --ink:var(--pm-ink); --ink-soft:var(--pm-muted); --line:var(--pm-line);
  --accent:var(--pm-navy); --accent-soft:var(--pm-tint); --accent-ink:var(--pm-navy);
  --teal:var(--pm-blue); --teal-soft:#f5f9fc;
  --crit:var(--pm-red); --crit-soft:#f5e6e6;
  --shadow:none;
  color-scheme:light;
}

body{ font-family:var(--pm-sans); font-size:14px; line-height:1.55; background:var(--bg); color:var(--pm-ink); }
h1, h2, h3{ font-family:var(--pm-serif); font-weight:400; color:var(--pm-navy); letter-spacing:-.01em; }
button{ font-family:var(--pm-sans); }
* :focus-visible{ outline:2px solid var(--pm-blue); outline-offset:2px; }
a{ color:var(--pm-blue); text-underline-offset:3px; }

/* ---------- Header: Penn Medicine logo | tool name, white bar, hairline below ---------- */
.topbar{
  max-width:none; margin:0; min-height:82px;
  padding:14px max(32px, calc((100% - 1120px) / 2 + 32px));
  background:#fff; border-bottom:1px solid var(--pm-line);
}
@media (min-width:1200px){
  /* line the header content up with .shell's content, which sits at 50% - 50vw + 32px margin
     plus 32px padding (padding % resolves against the same body width as .shell's margin %) */
  .topbar{ margin:0; padding-left:calc(50% - 50vw + 64px); padding-right:calc(50% - 50vw + 64px); }
}
@media (max-width:900px){
  .topbar{ min-height:0; padding:12px 20px; }
}
.brand{ align-items:center; gap:22px; }
.brand-logo{ display:block; flex:none; }
.brand-logo img{ display:block; height:34px; width:auto; }
.brand-text{ display:flex; flex-direction:column; gap:3px; padding-left:22px; border-left:1px solid var(--pm-line); }
.brand .eyebrow{ color:var(--pm-red); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.brand h1{ font-size:26px; line-height:1.05; letter-spacing:-.02em; }
@media (max-width:700px){
  .brand-logo img{ height:26px; }
  .brand-text{ padding-left:14px; }
  .brand h1{ font-size:20px; }
}
.shell{ padding-top:20px; }
/* ---------- Shared controls ---------- */
.tbtn{
  min-height:38px; padding:6px 12px; font-size:13px; font-weight:700; border-radius:4px;
  border:1px solid var(--pm-line); background:#fff; color:var(--pm-navy);
}
.tbtn:hover{ border-color:var(--pm-blue); color:var(--pm-blue); }
.tbtn:disabled{ opacity:.4; }
.tbtn:disabled:hover{ border-color:var(--pm-line); color:var(--pm-navy); }

/* ---------- Cards ---------- */
.pr1-viewer-card, .pr1-report{ border-radius:0; border-color:var(--pm-line); box-shadow:none; }
.pr1-viewer-card{ margin-right:12px; }
.dpa2-hovertip{ background:rgba(1,31,91,.96); color:#fff; border-radius:3px; padding:8px 12px; }

/* ---------- The rest of NephroLens (the six other tabs), same rules ---------- */
/* the Penn Medicine logo (index.html's base styles hide it until this file shows it) */
.brand-logo{ display:block; }
.brand-text h1{ font-size:24px; }
/* tab switcher: square, hairline, navy indicator (the indicator reads --accent) */
.mode-toggle{ background:#fff; border-color:var(--pm-line); border-radius:4px; }
.mode-indicator{ border-radius:3px; box-shadow:none; }
.mode-btn{ border-radius:3px; font-family:var(--pm-sans); }
/* every tab's panels: one hairline, square corners, no shadow */
.panel, .result-card, .bm-gallery-card, .pd-card{ border-radius:0; box-shadow:none; border-color:var(--pm-line); }
.panel-head{ border-bottom-color:var(--pm-line); }
.status-pill{ border-radius:3px; }
.dropzone{ border-radius:0; }
.disclaimer{ border-radius:0; }
/* DemoPathologyAnnotation's slide picker keeps the serif of the standalone design */
.dpa2-slide-row select{ font-family:var(--pm-serif); }
