/* Matched to C:\MoodyHubProduction\app\static\css\theme.css, 2 November 2026.
   Preserve the document portal layout; share the Hub's navy, teal and light surfaces. */
:root {
  --bg: #e3eaf0;
  --panel: #f8fafc;
  --ink: #172c3d;
  --muted: #536777;
  --line: #cbd8e1;
  --primary: #087b83;
  --primary-2: #11868f;
  --paper: var(--bg);
  --accent-light: #d3eae9;
  --ui-blue-dark: #102b40;
  --ui-blue-light: #e6f2f3;
  --ui-row: #f0f5f8;
  --ui-row-hover: #e2eff1;
  --ui-header-gradient: linear-gradient(115deg, #142e45 0%, #205368 70%, #226d74 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body { background: var(--bg); font-family: inherit; }
.header { background: var(--ui-header-gradient); color: #fff; border-bottom-color: #234b5c; }
.brand { color: #fff; font-size: 24px; letter-spacing: -.025em; font-weight: 800; gap: 14px; }
.brand-logo { display: block; width: 58px; height: 58px; object-fit: contain; flex: 0 0 58px; background: #fff; border: 3px solid #fff; border-radius: 14px; }
.brand-sub { color: #b4c8d7; font-size: 11px; font-weight: 500; letter-spacing: .04em; margin-top: 8px; }
.identity small { color: #b4c8d7; }
.header .quiet { color: #fff; border-color: #648795; background: #ffffff0a; }
.header .quiet:hover { background: #234b5c; }
.nav { background: linear-gradient(165deg, #152e45 0%, #0d2033 75%); border-bottom-color: #234b5c; }
.nav a { color: #dce8ef; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: #234b5c; text-decoration: none; }
.nav a[aria-current] { color: #95e0db; border-bottom-color: #77d2ce; }
.panel, .document-card { background: var(--panel); border-color: var(--line); box-shadow: 0 7px 22px rgba(15,38,56,.08); }
.panel { border-radius: 18px; }
.document-card { border-radius: 18px; }
.document-card:hover { border-color: #70aaa9; box-shadow: 0 10px 24px rgba(15,38,56,.14); }
button, .button { border-radius: 12px; }
.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: var(--primary); box-shadow: 0 8px 18px rgba(8,123,131,.15); }
.primary:hover { background: #096d75; border-color: #096d75; }
input:not([type=checkbox]), select, textarea { border-radius: 12px; border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(8,123,131,.22); border-color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid #248a92; outline-offset: 3px; }
.pending-banner { background: var(--ui-header-gradient); border-radius: 16px; box-shadow: 0 12px 30px rgba(15,38,56,.18); }
.pending-banner:hover { background: #205368; }
.pending-banner small { color: #dce8ef; }
.count { color: #096d75; background: linear-gradient(135deg, #d3eae9, #e2eff4); }
.stats { background: linear-gradient(135deg, var(--panel), #edf3f6); border-color: var(--line); box-shadow: 0 6px 18px rgba(15,38,56,.09); border-radius: 18px; }
.stats > div { border-color: var(--line); }
.stats span { color: var(--muted); }
.stats strong { color: var(--ui-blue-dark); }
.pdf-icon { color: #096d75; background: linear-gradient(135deg, #d3eae9, #e2eff4); }
th { background: var(--ui-row); }
tbody tr:hover { background: var(--ui-row-hover); }
.subtle, .timer-box { background: linear-gradient(135deg, var(--panel), #eaf2f5); }
.notice:not(.success):not(.warning) { background: var(--ui-blue-light); border-color: var(--line); }
.acknowledged { border-top-color: var(--primary); }
.accessible-text { background: var(--panel); }
.reading-controls, .text-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.reading-controls button, .text-controls button { min-width: 44px; padding: 9px 12px; font-size: 12px; }
.reading-controls output, .text-controls output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }
.pdf-stage { text-align: left; }
.pdf-stage canvas { display: block; max-width: none; margin: 0 auto; }
.accessible-text #pdf-text { overflow-wrap: anywhere; line-height: 1.8; }
.accessible-text .text-size-0 { font-size: 14px; }
.accessible-text .text-size-1 { font-size: 16px; }
.accessible-text .text-size-2 { font-size: 18px; }
.accessible-text .text-size-3 { font-size: 22px; }
.accessible-text .text-size-4 { font-size: 26px; }
.accessible-text .text-size-5 { font-size: 30px; }
.accessible-text .text-size-6 { font-size: 36px; }
.reader:fullscreen, .reader.reader-expanded { background: var(--panel); overflow: auto; border-radius: 0; margin: 0; }
.reader.reader-expanded { position: fixed; inset: 0; z-index: 100; }
.reader:fullscreen .reading-controls, .reader.reader-expanded .reading-controls { position: sticky; top: 0; z-index: 1; background: var(--panel); }
@media (max-width: 550px) {
  .brand { font-size: 15px; gap: 8px; min-width: 0; }
  .brand > span { white-space: nowrap; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-width: 2px; border-radius: 10px; }
  .brand-sub { font-size: 8px; letter-spacing: .015em; margin-top: 6px; }
  .header { gap: 10px; }
  .identity { gap: 4px; }
  .identity > span { max-width: 90px; overflow-wrap: anywhere; }
  .header .quiet { white-space: nowrap; }
}
