/*
 * Explanator Revisited: css/style.css
 *
 * One stylesheet for both pages (index.html, help.html). No build step, no framework.
 *
 * Sections: theme tokens, base, masthead and navigation, layout, forms, results, report,
 * user manual, footer, dialog, motion.
 *
 * Themes: every colour is a custom property. Light is the default (:root); Dark applies through
 * prefers-color-scheme when no theme is chosen ("Auto"), or explicitly with data-theme="dark";
 * Warm and Light are explicit choices (data-theme on <html>, set by js/view.js). Each palette keeps
 * text contrast at WCAG AA or better (4.5:1 for text, 3:1 for borders of controls).
 *
 * Base font size is 15px; everything else is in rem so browser zoom and text settings scale it.
 * Breakpoint: 960px switches the generator to two columns (controls | report) and the manual to a
 * sidebar table of contents.
 */

/* ---------- theme tokens ---------- */
:root {
  color-scheme: light;
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --ink: #0f141a;
  --muted: #434c58;
  --line: #d9dee5;            /* decorative dividers only */
  --control: #77818e;         /* borders of inputs and buttons: >= 3:1 against surfaces */
  --accent: #b3232c;          /* classic Traveller red */
  --accent-ink: #ffffff;
  --accent-soft: #f7e3e4;
  --mast-bg: #121519;
  --mast-ink: #f1f3f5;
  --mast-muted: #a9b1bb;
  --focus: #2f6fdb;
  --heading: #8f1c23;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);

  /* Font stacks: system fonts only (no web fonts to download, works offline). Each OS has at least
     one named font; the generic family at the end is the final fallback.
       sans: system-ui (Chrome, Edge, Firefox 92+, Safari) -> -apple-system (older Safari/Firefox, macOS)
             -> Segoe UI (Windows) -> Roboto (Android, ChromeOS) -> Helvetica Neue / Arial -> sans-serif
             (on Linux, system-ui maps to the desktop font, e.g. Cantarell, Ubuntu or Noto Sans)
       mono: ui-monospace (Safari only) -> SF Mono / Menlo / Monaco (macOS) -> Cascadia Mono / Consolas
             (Windows) -> DejaVu Sans Mono / Liberation Mono / Noto Sans Mono (Linux) -> monospace
     The report must be monospaced so its tables line up; every font listed is. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", Consolas, "DejaVu Sans Mono",
               "Liberation Mono", "Noto Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0d1014; --surface: #151a20; --surface-2: #1b2128; --ink: #e5e9ee; --muted: #98a2ae;
    --line: #29313b; --control: #7d8896; --accent: #f2666d; --accent-ink: #12090a; --accent-soft: #3a1a1d;
    --mast-bg: #07090b; --mast-ink: #eef1f4; --mast-muted: #8f99a5; --focus: #6aa0ff; --heading: #ff8a90;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f3; --surface: #ffffff; --surface-2: #f6f7f9; --ink: #0f141a; --muted: #434c58;
  --line: #d9dee5; --control: #77818e; --accent: #b3232c; --accent-ink: #ffffff; --accent-soft: #f7e3e4;
  --mast-bg: #121519; --mast-ink: #f1f3f5; --mast-muted: #a9b1bb; --focus: #2f6fdb; --heading: #8f1c23;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1014; --surface: #151a20; --surface-2: #1b2128; --ink: #e5e9ee; --muted: #98a2ae;
  --line: #29313b; --control: #7d8896; --accent: #f2666d; --accent-ink: #12090a; --accent-soft: #3a1a1d;
  --mast-bg: #07090b; --mast-ink: #eef1f4; --mast-muted: #8f99a5; --focus: #6aa0ff; --heading: #ff8a90;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
:root[data-theme="warm"] {
  color-scheme: light;
  --bg: #efe6d4; --surface: #fbf6ec; --surface-2: #f4ecdc; --ink: #241a10; --muted: #5a4733;
  --line: #ddcdb0; --control: #8f7a5f; --accent: #a4501c; --accent-ink: #fff8ef; --accent-soft: #f3dfca;
  --mast-bg: #2e241a; --mast-ink: #f8eedf; --mast-muted: #cdb89c; --focus: #9c5a12; --heading: #8a3f12;
  --shadow: 0 1px 2px rgba(58, 46, 33, .08), 0 1px 3px rgba(58, 46, 33, .1);
}

/* ---------- base ---------- */
html { font-size: 15px; }
/* The hidden attribute must win over display rules set on classes (e.g. .actions { display: flex }). */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.5 var(--font-sans);
  /* Column layout so the footer sits at the bottom even when the page is short. */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main, body > .manual-layout { flex: 1 0 auto; width: 100%; }

/* Thin ("antialiased") font smoothing on macOS only where text is light on dark: it makes dark text
   on light backgrounds look washed out, so the Light and Warm themes keep the default rendering. */
.masthead, .screen { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:root[data-theme="dark"] body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}
a { color: var(--accent); text-underline-offset: 2px; }
cite { font-style: italic; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.07rem; font-weight: 650; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: .93rem; font-weight: 650; margin: 1.1rem 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Elements that only receive focus from script or the skip link (main, the report title) don't get a
   ring; the content itself shows where you are. */
[tabindex="-1"]:focus { outline: none; }
code, pre, kbd, .mono { font-family: var(--font-mono); }

/* ---------- masthead ---------- */
.masthead {
  background: var(--mast-bg);
  color: var(--mast-ink);
  border-bottom: 4px solid var(--accent);
  padding: calc(1.6rem + env(safe-area-inset-top, 0px)) 1rem 1.4rem;
}
/* Menu bar: Home · View · Help (disclosure menus; js/nav.js). Every top-level item, link or button,
   shares one box (.menubar-item) so they line up exactly. */
.menubar > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.menubar-item {
  display: inline-flex; align-items: center; gap: .3rem; box-sizing: border-box; min-height: 2.5rem;
  padding: 0 .85rem; border: 1px solid transparent; border-radius: 7px; background: none;
  color: var(--mast-ink); font: inherit; font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none;
  cursor: pointer;
}
.menubar-item:hover { border-color: var(--mast-muted); }
.menubar-item[aria-current="page"] { border-color: var(--mast-ink); background: rgba(255, 255, 255, .08); }
.menubar-item[aria-expanded="true"] { border-color: var(--mast-ink); }
.menubar .caret { font-size: .75em; }
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 30; min-width: 15rem;
  list-style: none; margin: 0; padding: .35rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--control); border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
@media (max-width: 600px) { .menu-list { left: 0; right: auto; } }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .55rem .75rem .55rem 2rem;
  border-radius: 6px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; position: relative;
}
.menu-list a:hover, .menu-list button:hover:not(:disabled) { background: var(--accent-soft); }
.menu-list button:disabled { color: var(--muted); cursor: default; }
.menu-list a[aria-current="page"] { font-weight: 700; }
.menu-list [aria-pressed="true"]::before { content: "✓"; position: absolute; left: .75rem; font-weight: 700; color: var(--accent); }
.menu-heading { padding: .5rem .75rem .25rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.menu-divider { margin-top: .35rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.menu-note { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.noscript { max-width: 1400px; margin: 1rem auto; padding: 0 1rem; font-weight: 600; }
.masthead-inner { max-width: 1400px; margin: 0 auto; display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.eyebrow { margin: 0 0 .35rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mast-muted); }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 750; letter-spacing: -.01em; }
.tagline { margin: .5rem 0 0; max-width: 46rem; color: var(--mast-muted); }

/* ---------- layout ---------- */
.layout {
  max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 2rem;
  display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start;
}
/* Narrow screens: one column in source order (Find, Choose, Report, Options, Sectors).
   Wide screens: controls on the left, the report in its own column on the right. */
@media (min-width: 960px) {
  .layout {
    grid-template-columns: 24rem minmax(0, 1fr);
    grid-template-areas: "find report" "choose report" "options report" "sectors report";
    grid-template-rows: auto auto auto 1fr;
  }
  .area-find { grid-area: find; }
  .area-choose { grid-area: choose; }
  .area-options { grid-area: options; }
  .area-sectors { grid-area: sectors; }
  .area-report { grid-area: report; }
  .report {
    position: sticky; top: calc(1rem + env(safe-area-inset-top, 0px));
    max-height: calc(100vh - 2rem); display: flex; flex-direction: column;
  }
  .report .report-text, .report .empty { overflow: auto; }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.15rem; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: .8rem; }
.step {
  display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700;
}
.hint { color: var(--muted); font-size: .87rem; margin: .5rem 0 0; }

/* ---------- forms ---------- */
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 550; }
input, select, button { font: inherit; color: inherit; }
input[type="search"], input[type="text"], input[type="number"], input:not([type]), select {
  width: 100%; min-width: 0; padding: .5rem .65rem; border: 1px solid var(--control); border-radius: 7px;
  background: var(--surface-2); font-weight: 400;
}
input:focus, select:focus { border-color: var(--focus); }
button {
  padding: .5rem .9rem; border-radius: 7px; border: 1px solid var(--control); background: var(--surface-2);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { filter: brightness(1.08); }
button[disabled] { opacity: .55; cursor: progress; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.row { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.row .grow { flex: 1 1 10rem; }
.stack { display: grid; gap: .6rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 450; }
.check input { margin-top: .2rem; }
/* Checkboxes and radios at least 24px with their label (WCAG 2.2 target size). */
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--accent); }
.options { display: grid; gap: .85rem; }
.suffix { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.suffix input { width: 6rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: .9rem; font-weight: 550; padding: 0; margin-bottom: .3rem; }
.seg { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.seg legend { width: 100%; }
.seg label { display: flex; gap: .4rem; align-items: center; font-weight: 450; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .6rem; }
details > summary { cursor: pointer; font-weight: 600; color: var(--accent); margin: .2rem 0; }
details[open] > summary { margin-bottom: .6rem; }
#range-search { margin-top: .9rem; }
.ranges { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.ranges .span2 { grid-column: 1 / -1; }
.range-head, .ranges fieldset { display: grid; grid-template-columns: minmax(6.5rem, 1fr) minmax(0, 5rem) minmax(0, 5rem); gap: .45rem; align-items: center; }
.range-head { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ranges legend { float: left; margin: 0; font-weight: 450; }
.file { display: inline-flex; position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file span { padding: .5rem .9rem; border: 1px dashed var(--muted); border-radius: 7px; font-weight: 600; }
.file:focus-within span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- results ---------- */
.status { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.status.error { color: var(--accent); font-weight: 600; }
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 22rem; overflow: auto; }
.matches button {
  width: 100%; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem;
  padding: .5rem .65rem; background: var(--surface-2); font-weight: 400; white-space: normal;
}
.matches button:hover, .matches button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.matches .w { font-weight: 650; }
.matches .u { font-family: var(--font-mono); font-size: .9rem; }
.matches .s { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.matches button[aria-current="true"] .s { color: var(--ink); }   /* muted on the tinted background is too faint */

.pills { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.pills li { font-size: .8rem; padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.imported { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .4rem; }
.imported li { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); font-size: .9rem; }
.imported small { color: var(--muted); }
.imported .btns { display: flex; gap: .3rem; }
.imported button { padding: .2rem .55rem; font-size: .83rem; }

/* ---------- report ---------- */
.report { padding: 0; overflow: hidden; }
.report-bar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); background: var(--surface);
}
.report-bar h2 { font-size: 1.2rem; }
.meta { margin: .25rem 0 0; color: var(--muted); font-size: .87rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 520px) {
  .report-bar > div { flex: 1 1 100%; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }   /* two columns of buttons on phones */
  .actions #download { grid-column: 1 / -1; }                      /* Save spans the last row */
}
.empty { padding: 1.4rem 1.15rem; }
.examples { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0; }
.report-text {
  padding: 1.1rem 1.15rem 1.6rem; margin: 0;
  font-family: var(--font-mono);
  font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 8;
}
.report-text .title { font-size: 1.15rem; font-weight: 700; }
.report-text .h { display: inline-block; margin-top: .35rem; color: var(--heading); font-weight: 700; letter-spacing: .03em; }
.report-text .sub { font-weight: 700; }
.report-text.busy { opacity: .45; transition: opacity .15s; }
.screen-wrap { border-top: 1px solid var(--line); padding: .8rem 1.15rem 1.1rem; }
.screen-wrap summary { margin: 0; }
.screen { margin: .7rem 0 0; padding: .8rem; background: #0b0d10; color: #e9e9e9; border-radius: 8px; overflow-x: auto; font-size: .82rem; line-height: 1.25; }

/* ---------- footer ---------- */
/* One-line footer. The body is a full-height flex column, so on short pages the footer sits at the
   bottom of the window; on long pages it follows the content and never covers it. */
.footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
}
.footer-inner { max-width: 1400px; margin: 0 auto; font-size: .85rem; color: var(--muted); }
.footer .link { font-size: inherit; }
.footer p { margin: 0; }
.footer strong { color: var(--ink); }
.legal p { font-size: .8rem; line-height: 1.45; }

/* ---------- dialog ---------- */
.dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); max-width: min(56rem, calc(100vw - 2rem)); padding: 1.3rem; }
.dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dialog.about { max-width: min(40rem, calc(100vw - 2rem)); line-height: 1.6; }
.about-links { padding-left: 1.2rem; }
.about-links li + li { margin-top: .3rem; }
.legal-text { font-size: .82rem; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.dialog h2 { margin-bottom: .6rem; }
.dialog .scroll { overflow-x: auto; }
.fmt { font-size: .78rem; background: var(--surface-2); padding: .8rem; border-radius: 8px; }

/* ---------- collapsible panels (Report options, Sectors) ---------- */
.collapsible > h2 { margin-bottom: 0; }
.collapse-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%;
  margin: -.35rem -.4rem; padding: .35rem .4rem; box-sizing: content-box;
  background: none; border: 0; border-radius: 7px; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.collapse-toggle:hover { background: var(--surface-2); }
.collapse-toggle::after { content: "▾"; flex: none; font-size: .9em; color: var(--muted); transition: transform .15s; }
.collapse-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.collapsed-summary { display: none; margin: .45rem 0 0; color: var(--muted); font-size: .87rem; }
.is-collapsed .collapsed-summary { display: block; }
.collapsible:not(.is-collapsed) > h2 { margin-bottom: .8rem; }

/* ---------- report actions hint ---------- */
.actions-hint { margin: 0; padding: .55rem 1.15rem; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }

/* ---------- user manual (help.html) ---------- */
.manual-layout {
  max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 2rem;
  display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .manual-layout { grid-template-columns: 16rem minmax(0, 52rem); justify-content: center; align-items: start; }
  .toc { position: sticky; top: calc(1rem + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 2rem); overflow: auto; }
}
.toc summary { color: var(--ink); }
.toc ol { margin: .4rem 0 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.manual { padding: 1.4rem 1.6rem 2rem; line-height: 1.65; }
.manual section { scroll-margin-top: 1rem; }
.manual section + section { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.manual h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.manual h3 { margin-top: 1.3rem; }
.manual p, .manual ul, .manual ol, .manual dl { margin: .7rem 0; max-width: 68ch; }
.manual li + li { margin-top: .3rem; }
.manual dt { font-weight: 650; margin-top: .9rem; }
.manual dd { margin: .2rem 0 0 0; padding-left: 1rem; border-left: 3px solid var(--accent-soft); }
.manual .steps li { padding-left: .2rem; }
.table-wrap { overflow-x: auto; margin: .8rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; color: var(--muted); padding-bottom: .4rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--control); }
code, kbd { font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: .05em .3em; }
kbd { border-color: var(--control); }

/* Closing the manual: a clear button-styled link at the top and the end. */
.close-help { margin: 0 0 1.4rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.close-help .hint { margin: 0; }
.close-help-top { grid-column: 1 / -1; margin: 0; }
.close-help-end { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.back-button {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem 1rem; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none;
}
.back-button:hover { filter: brightness(1.08); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print (File > Print or the report's Print button) ----------
   Only the report is printed, black on white, in a monospace font so its tables line up. The manual
   prints without its navigation. */
@media print {
  @page { margin: 15mm; }
  *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; }
  html { font-size: 11pt !important; }
  .skip, .masthead, .footer, .noscript, dialog,
  .area-find, .area-choose, .area-options, .area-sectors,
  .report .actions, .actions-hint, #empty, .screen-wrap,
  .toc, .close-help { display: none !important; }
  .layout, .manual-layout { display: block; max-width: none; padding: 0; }
  .card { border: 0; padding: 0; }
  .report { position: static; max-height: none; display: block; overflow: visible; }
  .report-bar { border: 0; padding: 0 0 .5rem; }
  .report .report-text { overflow: visible; padding: 0; font-size: 9.5pt; line-height: 1.35; }
  .report-text a { text-decoration: none; }
  .report-text .h { break-after: avoid; }
}
