/* Meeting presentation: local override for the preserved Finamore Hub. */
:root {
  --ink: #171b1e;
  --navy: #141719;
  --muted: #535d62;
  --gold: #79521d;
  --goldlite: #dfc28b;
  --line: #dcdedb;
  --paper: #f6f7f4;
  --green: #235b3e;
  --red: #962f29;
  --radius: 18px;
  --focus: #775017;
}

html { scroll-padding-block: 24px 100px; }
body { min-width: 0; }
body, button, input, select, textarea { font-family: Manrope, 'Segoe UI', sans-serif; }
button, input, select, textarea { font-size: 1rem; }
.workspace, main, .page, .grid > *, .card, .reader, .library-layout > * { min-width: 0; }
img, video, canvas, svg { max-width: 100%; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.page h1:focus, .page h1:focus-visible { outline: none; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { overflow-wrap: anywhere; }

.sidebar { background: #fff; }
.brand { color: #161819; font-size: 23px; letter-spacing: .15em; white-space: nowrap; }
.brand small { color: #53574f; white-space: normal; }
.sidebar nav a { min-height: 46px; }
.sidebar nav a span { color: #647076; }
.sidebar nav a[aria-current='page'] { background: #f1e9da; color: #664517; }
.sidebar nav a[aria-current='page'] span { color: #664517; }
.sidebar nav a:hover { background: #f5f1e8; color: var(--ink); }
.topbar { background: #fff; }
.topbar > * { min-width: 0; }
main { padding-bottom: 44px; }
.intro { max-width: 860px; }
.intro h1 { max-width: 800px; font-size: clamp(42px, 4.6vw, 66px); }
.pagehead h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; }
.eyebrow { color: var(--gold); }
.lead { color: var(--muted); }
.card { box-shadow: 0 3px 16px #14171903; }
.card p { line-height: 1.75; }
.card h2:first-child { margin-top: 0; }
.card :is(p, ul, ol) + .actions { margin-bottom: 0; }
.grid + .grid { margin-top: 18px; }
.notice { background: #f3eddf; border-left-color: #987034; color: #584c38; }
.notice p { color: inherit; }
.btn { min-height: 46px; border-radius: 10px; }
.btn.small { min-height: 44px; }
.btn:hover { background: #303536; }
.btn.outline:hover { background: #f3f0e9; }
.btn:disabled:hover { transform: none; }
.sectiontitle { margin-top: 40px; }
.sectiontitle > * { min-width: 0; }
.sectiontitle > a { min-height: 44px; display: inline-flex; align-items: center; }
.metric, .statgrid strong { font-variant-numeric: tabular-nums; }
.statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.statgrid > * { min-width: 0; }
summary { min-height: 44px; padding-block: 9px; }
details > summary { color: var(--ink); }
.deep { margin-top: 24px; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin: 8px 0 26px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid #262c2d;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}
.hero-panel > * { min-width: 0; }
.hero-panel :is(h1, h2, h3, strong) { color: #fff; }
.hero-panel :is(h1, h2) { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.hero-panel h1 { font-size: clamp(35px, 3.8vw, 54px); letter-spacing: -.035em; }
.hero-panel h2 { font-size: clamp(28px, 2.8vw, 38px); }
.hero-panel p { color: #d5dad9; font-size: 15px; }
.hero-panel .lead { color: #e0e4e1; }
.hero-panel .eyebrow { color: var(--goldlite); }
.hero-panel a:not(.btn) { color: #e6c997; }
.hero-panel .intro { padding: 0; }
.hero-panel .intro h1 { margin-top: 12px; }
.hero-panel .actions { margin-bottom: 0; }
.hero-panel .btn.outline { background: transparent; color: #fff; border-color: #9a8763; }
.hero-panel .btn.outline:hover { background: #2c3030; }
.hero-panel :where(a, button, [tabindex]):focus-visible { outline-color: #ebd3a8; }

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #e0d1b8;
  border-radius: 7px;
  background: #f4eddf;
  color: #6e4b1b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.badge:is(.green, .proven, .ready, .ok, .approved), .badge[data-status='proven'], .badge[data-status='ok'] {
  background: #eaf2ec; border-color: #c4d9ca; color: #235b3e;
}
.badge:is(.red, .critical, .blocked, .error), .badge[data-status='blocked'], .badge[data-status='error'] {
  background: #f8eae7; border-color: #e3c4bf; color: #962f29;
}
.badge:is(.neutral, .pending, .draft), .badge[data-status='pending'] {
  background: #edf0ef; border-color: #d4dcda; color: #44545a;
}
.hero-panel .badge { background: #332b1e; border-color: #6c5c3e; color: #e8d1a6; }
.hero-panel .badge:is(.green, .proven, .ready, .ok) { background: #20372b; border-color: #466754; color: #c9e7d4; }

.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.kpi { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.kpi > :is(strong, b, .metric) { display: block; margin: 8px 0 10px; font-size: clamp(27px, 3vw, 38px); line-height: 1.16; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi > :is(span, small, p) { color: var(--muted); font-size: 13px; line-height: 1.65; }
.kpi > .badge { color: #6e4b1b; font-size: 12px; }
.kpi h3 { margin: 0 0 8px; font-size: 16px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 22px; }
.status-grid > * { min-width: 0; }
.status-grid .card { padding: 22px; }
.status-grid .badge { margin-bottom: 14px; }

.process-lane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.process-lane > * { min-width: 0; padding: 20px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.process-lane h3 { font-size: 16px; margin: 8px 0 10px; }
.process-lane p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.process-lane .number { font-size: 12px; }
.hero-panel .process-lane { margin: 0; align-self: stretch; }
.hero-panel .process-lane > * { background: #202527; border-color: #454b49; display: flex; flex-direction: column; justify-content: center; }
.hero-panel .process-lane h3 { color: #fff; }
.hero-panel .process-lane p { color: #d8ded9; }
.hero-panel .process-lane .number { color: #e1c590; }

.role-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 11px 18px; border: 1px solid #bfc7c5; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.role-button:hover { background: #f3efe7; border-color: #a08860; }
.role-button[aria-pressed='true'], .role-button[aria-selected='true'], .role-button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.role-panel { min-width: 0; padding: 28px; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.role-panel[hidden] { display: none; }
.role-panel h2 { margin-bottom: 14px; }
.role-panel p { color: var(--muted); }
.role-panel .grid { margin-top: 24px; }
.role-panel .card { background: #f9faf7; box-shadow: none; }
.role-panel ul, .role-panel ol { padding-left: 22px; }
.role-panel li + li { margin-top: 8px; }

.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.calc-grid > * { min-width: 0; }
.calc-grid label { display: grid; align-content: start; gap: 8px; color: var(--ink); font-size: 14px; line-height: 1.55; font-weight: 700; }
.calc-grid label :is(small, .caption) { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }
.calc-grid :is(input, select, textarea), .filters :is(input, select) {
  display: block; width: 100%; min-width: 0; min-height: 46px;
  margin: 0; padding: 11px 12px; border: 1px solid #aab4af;
  border-radius: 9px; background: #fff; color: var(--ink);
  font: 400 16px/1.45 Manrope, 'Segoe UI', sans-serif;
  font-variant-numeric: tabular-nums;
}
.filters :is(input, select) { margin-top: 7px; }
.calc-grid textarea { resize: vertical; min-height: 100px; }
.calc-grid :is(input, textarea)::placeholder { color: #65706a; opacity: 1; }
.calc-grid input:is([type='checkbox'], [type='radio']) { display: inline-block; width: 22px; min-height: 22px; padding: 0; accent-color: var(--gold); }
.calc-grid :is(input, select, textarea)[aria-invalid='true'] { border-color: #962f29; box-shadow: 0 0 0 1px #962f29; }
.calc-output { min-width: 0; margin: 22px 0 0; padding: 24px; border: 1px solid #d7c5a6; border-radius: 16px; background: #f8f4eb; color: var(--ink); }
.calc-output h3 { margin-bottom: 14px; }
.calc-output p { color: #524d42; }
.calc-output :is(strong, b, output) { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-output > strong { display: block; font-size: 30px; line-height: 1.25; margin-block: 8px 14px; }
.calc-output .kpi-row { margin: 16px 0 0; }
.calc-output .kpi { background: #fffdf9; }
.calc-output dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.calc-output dl > div { min-width: 0; }
.calc-output dt { font-size: 13px; color: #544f42; }
.calc-output dd { margin: 6px 0 0; font-size: 25px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
#calcError.error, #libError { color: #962f29; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#calcError.error:not(:empty), #libError:not(:empty) { margin: 18px 0; padding: 16px 18px; border: 1px solid #dfb8b2; border-left: 3px solid #962f29; border-radius: 9px; background: #fbefed; }
#calcError[hidden], #libError[hidden] { display: none; }

.capacity-row { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(120px, 1.2fr) minmax(140px, 1fr); gap: 18px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.capacity-row:last-child { border-bottom: 0; }
.capacity-row > * { min-width: 0; }
.capacity-row > :first-child { font-size: 14px; font-weight: 700; }
.capacity-row > :last-child { font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.capacity-row small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.load-bar { height: 12px; max-width: 100%; overflow: hidden; border-radius: 999px; background: #e0e4df; }
.load-bar > span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: #8c652b; }
.capacity-row:is(.over, .overloaded, .critical, .danger, .exceeded) .load-bar > span,
.load-bar:is(.over, .critical, .danger, .red) > span { background: #962f29; }
.capacity-row:is(.ok, .green) .load-bar > span, .load-bar:is(.ok, .green) > span { background: #356346; }

.journey-step, .timeline-step { min-width: 0; padding: 24px; border: 1px solid var(--line); border-left: 3px solid #a27d41; border-radius: 0 14px 14px 0; background: #fff; }
.journey-step h3, .timeline-step h3 { margin: 10px 0 12px; }
.journey-step p, .timeline-step p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.journey-step .badge, .timeline-step .badge { margin-block: 0 10px; }
.timeline-step + .timeline-step { margin-top: 14px; }
.timeline-step :is(ul, ol) { padding-left: 20px; font-size: 14px; }
.timeline-step li + li { margin-top: 7px; }
.sources-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.source-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.source-card h3 { margin: 9px 0 12px; font-size: 17px; }
.source-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.source-card :is(a, code) { overflow-wrap: anywhere; }
.source-card a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; line-height: 1.6; }
.source-card :is(small, .caption) { display: block; font-size: 12px; color: var(--muted); margin-top: 12px; }
.toc-card { min-width: 0; padding: 24px; border: 1px solid #d9c9a9; border-radius: 16px; background: #f9f6ee; }
.toc-card h2 { margin-top: 0; }
.toc-card :is(ul, ol) { padding-left: 21px; margin-bottom: 0; }
.toc-card li + li { margin-top: 5px; }
.toc-card a { min-height: 44px; display: inline-flex; align-items: center; color: #65451a; }
.tablewrap { max-width: 100%; overscroll-behavior-inline: contain; }
.tablewrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.reader { overflow-wrap: anywhere; }
.reader :is(table, pre) { max-width: 100%; overscroll-behavior-inline: contain; }
.reader pre { white-space: pre; }
.library-layout nav { min-width: 0; }
.docbutton { min-height: 46px; }
.docbutton[aria-pressed='true'] { background: #f1e8d7; border-color: #c6ab79; }
.demo-image { display: block; width: 288px; max-width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; margin: 20px auto; border: 1px solid var(--line); border-radius: 12px; background: #f1f3ef; }

.meeting-controls {
  position: sticky; bottom: 0; z-index: 16;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; margin: 28px auto 0; padding: 12px clamp(16px, 3vw, 44px);
  border-top: 1px solid #d6d9d3; background: #fffffff7;
  box-shadow: 0 -5px 18px #14171906;
}
.meeting-controls > * { min-width: 0; }
.meeting-controls .actions { margin: 0; gap: 8px; }
.meeting-controls :is(button, .btn) { min-height: 44px; padding: 10px 15px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.meeting-controls button:not(.btn) { border: 1px solid #bfc7c0; background: #fff; color: var(--ink); font-weight: 700; }
.meeting-controls button:not(.btn):hover { background: #f5f1e7; }
.meeting-controls button[aria-pressed='true'] { background: #f0e6d3; border-color: #b19156; color: #624215; }
.meeting-controls :is(p, span) { font-size: 12px; color: var(--muted); }
#meetingProgress { color: #374047; opacity: 1; font-weight: 700; line-height: 1.55; }
#prevPage, #nextPage { min-width: 100px; }
#nextPage { background: var(--navy); color: #fff; border-color: var(--navy); }
#nextPage:hover { background: #303536; }
#printButton { background: #fff; }
footer { background: #fff; }

@media screen {
  body.presentation-mode .deep { display: none; }
  body.presentation-mode [data-page='biblioteca'] .deep,
  body.presentation-mode .deep:is(.library-layout, .calc-grid, .calc-output),
  body.presentation-mode .deep:has(.library-layout, .calc-grid, .calc-output) { display: revert; }
}

@media (min-width: 1650px) {
  main { padding-bottom: 44px; }
}
@media (min-width: 821px) {
  .sidebar nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; align-content: start; scrollbar-width: thin; }
  .sidebar > :not(nav) { flex-shrink: 0; }
}
@media (max-width: 1100px) {
  .hero-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .hero-panel .process-lane { min-height: 160px; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacity-row { grid-template-columns: minmax(110px, .8fr) minmax(90px, 1fr) minmax(130px, 1fr); gap: 14px; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 145px; }
  .sidebar { background: #fffffff7; backdrop-filter: blur(12px); }
  .sidebar nav { max-width: 100%; overscroll-behavior-inline: contain; }
  .topbar { min-height: 70px; }
  main { padding-bottom: 32px; }
  .pagehead h1 { font-size: clamp(32px, 6vw, 44px); }
  .meeting-controls { padding: 12px 20px; }
  .kpi-row { gap: 12px; }
  .kpi { padding: 18px; }
  .library-layout nav { gap: 8px; overscroll-behavior-inline: contain; }
  .library-layout .docbutton { max-width: 230px; }
}
@media (max-width: 560px) {
  .topbar { align-items: center; flex-wrap: wrap; gap: 12px; }
  .topbar .btn { min-height: 44px; font-size: 12px; max-width: none; }
  main { padding: 24px 16px 28px; }
  .intro h1 { font-size: 42px; line-height: 1.1; }
  .pagehead { margin-bottom: 24px; }
  .pagehead h1 { font-size: 35px; line-height: 1.14; }
  .pagehead p, .lead { font-size: 16px; }
  .hero-panel { padding: 24px 20px; border-radius: 18px; }
  .hero-panel h1 { font-size: 36px; }
  .hero-panel .process-lane { min-height: 0; }
  .process-lane { grid-template-columns: 1fr; gap: 10px; }
  .process-lane > * { padding: 18px; }
  .process-lane h3 { margin: 5px 0 8px; }
  .hero-panel .process-lane > * { display: block; }
  .status-grid, .kpi-row, .sources-list { grid-template-columns: 1fr; }
  .kpi-row { margin-block: 20px; gap: 12px; }
  .kpi { padding: 20px; }
  .kpi > :is(strong, b, .metric) { font-size: 33px; }
  .statgrid { grid-template-columns: 1fr; gap: 10px; }
  .statgrid article { padding: 18px 20px; }
  .statgrid span { font-size: 13px; }
  .statgrid strong { font-size: 30px; }
  .role-button { flex: 1 1 140px; padding-inline: 12px; }
  .role-panel { padding: 22px; }
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-output { padding: 20px; }
  .calc-output dl { grid-template-columns: 1fr; gap: 16px; }
  .calc-output dl > div + div { border-top: 1px solid #decfaf; padding-top: 14px; }
  .capacity-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding-block: 17px; }
  .capacity-row .load-bar { grid-column: 1 / -1; grid-row: 2; }
  .capacity-row > :last-child { text-align: right; }
  .journey-step, .timeline-step, .source-card, .toc-card { padding: 21px; }
  .sectiontitle { margin: 34px 0 18px; }
  .sectiontitle h2 { font-size: 25px; }
  .card { padding: 22px; }
  .actions { gap: 10px; }
  .actions .btn { max-width: 100%; }
  .demo-image { margin-block: 18px; }
  .reader { padding: 22px; }
}

@media screen and (max-width: 640px) {
  body { padding-bottom: 76px; }
  .meeting-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 106px;
    align-items: center;
    gap: 6px;
    padding: 8px;
  }
  .meeting-controls > * { grid-row: 1; min-width: 0; }
  .meeting-controls :is(button, .btn) { width: auto; min-width: 0; min-height: 44px; height: 44px; padding: 6px; font-size: 12px; line-height: 1.2; }
  #prevPage { grid-column: 1; min-width: 0; }
  #meetingProgress { grid-column: 2; width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  #nextPage { grid-column: 3; min-width: 0; }
  #meetingToggle { grid-column: 4; font-size: 11px; white-space: normal; overflow-wrap: normal; }
  footer { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  :root { --ink: #000; --muted: #353535; --paper: #fff; --line: #bcbcbc; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 10pt; line-height: 1.5; }
  .sidebar, .topbar, .meeting-controls, .skip, .actions, .filters, .segmented,
  .role-button, .library-layout nav, .calc-grid, .fields, button, input, select, textarea,
  video, iframe, .readertop .btn { display: none !important; }
  .workspace { margin: 0 !important; }
  main { max-width: none; padding: 0 !important; }
  .page, .page[hidden], body.presentation-mode .page[hidden] { display: block !important; animation: none; padding: 0; margin-bottom: 24pt; break-before: auto; }
  .page + .page { border-top: 1px solid #999; padding-top: 18pt; }
  .deep, body.presentation-mode .deep, .role-panel[hidden] { display: block !important; }
  .intro, .pagehead { max-width: none; margin-bottom: 16pt; }
  .intro h1, .pagehead h1, .hero-panel h1 { font-size: 27pt; line-height: 1.15; margin-block: 8pt 12pt; }
  h2 { font-size: 19pt; }
  h3 { font-size: 13pt; }
  :is(h1, h2, h3, summary), .sectiontitle { break-after: avoid-page; }
  p, li { orphans: 3; widows: 3; }
  .hero-panel, .card, .kpi, .role-panel, .calc-output, .journey-step,
  .timeline-step, .source-card, .toc-card, .notice, .process-lane > * {
    background: #fff !important; color: #000 !important; box-shadow: none !important;
    border-color: #bcbcbc; break-inside: avoid-page;
  }
  .hero-panel { display: block; padding: 16pt; }
  .hero-panel :is(h1, h2, h3, p, strong, .lead, .eyebrow, .number),
  .card p, .calc-output p { color: #000 !important; }
  .hero-panel .process-lane { margin-top: 14pt; }
  .hero-panel .process-lane > * { display: block; border: 1px solid #bcbcbc; padding: 10pt; }
  .overview, .grid, .status-grid, .sources-list, .library-layout { display: block; }
  .card, .journey-step, .timeline-step, .source-card, .toc-card, .role-panel { margin-bottom: 12pt; padding: 14pt; }
  .kpi-row, .statgrid, .process-lane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10pt; }
  .kpi { padding: 12pt; }
  .kpi > :is(strong, b, .metric), .statgrid strong { font-size: 24pt; }
  .badge, .pill, .hero-panel .badge { background: #fff !important; color: #000 !important; border: 1px solid #888; }
  .calc-output, .moneyresult, .capacity-row, output { visibility: visible !important; color: #000 !important; }
  .calc-output { margin-top: 14pt; padding: 14pt; }
  .calc-output dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-output dd { font-size: 18pt; }
  .capacity-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12pt; break-inside: avoid; }
  .capacity-row .load-bar { grid-column: auto; grid-row: auto; border: 1px solid #999; background: #fff; }
  .load-bar > span { background: #666 !important; print-color-adjust: exact; }
  .capacity-row > :last-child { text-align: left; }
  .sectiontitle { margin: 20pt 0 12pt; }
  .reader { border: 0; padding: 0; overflow: visible; break-inside: auto; }
  .reader :is(p, li), .card p { font-size: 10pt; }
  .reader table, .tablewrap table { display: table; width: 100%; min-width: 0; table-layout: fixed; overflow: visible; font-size: 9pt; }
  .tablewrap { overflow: visible; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .reader :is(td, th), td, th { min-width: 0; padding: 8pt; overflow-wrap: anywhere; }
  .reader pre { overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; }
  .demo-image { width: 144px; height: auto; break-inside: avoid; }
  a, .hero-panel a:not(.btn) { color: #000; text-decoration: underline; }
  .source-card a { display: inline; min-height: 0; }
  footer { padding: 14pt 0; color: #333; background: #fff; }
}

#studyChapterTitle:focus{outline:none}
.study-print-all{display:none}
@media print{
  #studyPanel,.study-question-card{display:none!important}
  .study-print-all{display:block}
  .study-print-chapter + .study-print-chapter{border-top:1px solid #999;padding-top:18pt;margin-top:24pt}
}
