body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 90%;
  line-height: 1.45;
  margin: 1.25rem;
  color: #222;
}

h1 {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.8rem;
}

h2 {
  font-size: 1.05rem;
  margin: 1.2rem 0 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: bold;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
}

a.brand:hover {
  text-decoration: underline;
}

/* Red app icon beside the help title, same place as MFR 7's header logo. */
.brand::before {
  content: "";
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: url("images/mfr.png") center / contain no-repeat;
}

.breadcrumb {
  margin: 0.75rem 0;
}

.wizard {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 1.25rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #c8c8c8;
}

.wizard a {
  white-space: nowrap;
}

.tutorial-step {
  margin: 1rem 0 0.5rem;
  font-size: 1.15em;
}

.quote {
  color: #b00b0b;
}

figure.screenshot {
  margin: 1rem 0;
}

/* Two related shots on one row when space allows (e.g. Options top + bottom). */
.screenshot-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.screenshot-pair > figure.screenshot {
  margin: 0;
  flex: 1 1 280px;
  max-width: min(100%, 480px);
}

.screenshot-pair > figure.screenshot img {
  max-width: 100%;
}

figure.screenshot img {
  /* Keep intrinsic aspect when max-width shrinks (HTML width/height alone stretch). */
  max-width: min(100%, 640px);
  height: auto;
  border: 1px solid #888;
  background:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  min-height: 48px;
  cursor: zoom-in;
}

/* Full-window diagrams (e.g. UI shell hotspots) — up to intrinsic width. */
figure.screenshot.screenshot-wide img,
figure.screenshot.screenshot-wide .screenshot-hotspots {
  max-width: min(100%, 1280px);
}

/* Percentage overlays stay aligned when the screenshot is CSS-scaled. */
.screenshot-hotspots {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.screenshot-hotspots > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  cursor: default;
}

.screenshot-hotspot {
  position: absolute;
  box-sizing: border-box;
  cursor: pointer;
}

.screenshot-hotspot.is-circle {
  border-radius: 50%;
}

/* Tutorial / callout overlays: visible region boxes on a full-window shot. */
.screenshot-hotspot.is-callout {
  border: 2px solid var(--callout-color, #c62828);
  border-radius: 3px;
  box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--callout-color, #c62828) 10%, transparent);
  line-height: normal;
}

.screenshot-hotspot.is-callout.is-circle {
  border-radius: 50%;
}

.screenshot-hotspot.is-callout[data-region="file"] {
  --callout-color: #c62828;
}

.screenshot-hotspot.is-callout[data-region="avail"] {
  --callout-color: #ef6c00;
}

.screenshot-hotspot.is-callout[data-region="chain"] {
  --callout-color: #1565c0;
}

.screenshot-hotspot.is-callout[data-region="config"] {
  --callout-color: #ad1457;
}

.screenshot-hotspot.is-callout[data-region="rename"] {
  --callout-color: #2e7d32;
}

.screenshot-hotspot.is-callout[data-region="status"] {
  --callout-color: #f9a825;
}

.screenshot-hotspot.is-callout[data-region="go"],
.screenshot-hotspot.is-callout[data-region="undo"] {
  --callout-color: #c62828;
}

.screenshot-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--callout-color, #c62828);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.screenshot-hotspot-label.is-start {
  left: 0.45rem;
  transform: none;
}

.screenshot-hotspot-label.is-end {
  left: auto;
  right: 0.45rem;
  transform: none;
}

.screenshot-hotspot-label.is-above {
  bottom: auto;
  top: -1.55rem;
}

.screenshot-hotspot.is-circle .screenshot-hotspot-label {
  bottom: auto;
  top: calc(100% + 0.25rem);
}

figure.screenshot figcaption {
  color: #666;
  font-size: 0.85em;
  margin-top: 0.35rem;
}

html.screenshot-lightbox-open,
html.screenshot-lightbox-open body {
  overflow: hidden;
}

.screenshot-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.78);
}

.screenshot-lightbox.is-open {
  display: flex;
}

.screenshot-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border: 1px solid #fff;
  background: #fff;
  cursor: zoom-out;
}

.screenshot-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.15rem 0.55rem;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font: 1.4rem/1 Verdana, Geneva, sans-serif;
  cursor: pointer;
}

ul.options {
  padding-left: 1.2rem;
}

ul.options li {
  margin: 0.35rem 0;
}

/* Example cards: Options caption + Result (before >>> after) as distinct bands */
p:has(+ .examples) {
  margin: 1.15rem 0 0;
  padding: 0.55rem 0.9rem 0.45rem;
  border: 1px solid #c8c8c8;
  border-bottom: none;
  border-left: 3px solid #5a6d7e;
  border-radius: 3px 3px 0 0;
  background: #e8eef4;
  color: #333;
  font-size: 0.92em;
  line-height: 1.55;
}

p:has(+ .examples)::before {
  content: "Options";
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6d7e;
}

/* Name | value columns when structured with .ex-opt */
p:has(+ .examples):has(.ex-opt) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.28rem;
  align-items: baseline;
}

p:has(+ .examples):has(.ex-opt)::before {
  grid-column: 1 / -1;
}

.ex-opt {
  display: contents;
}

.ex-name {
  color: #5a6d7e;
  font-weight: 600;
  padding-right: 0.15rem;
}

.ex-name::after {
  content: "";
}

.ex-val {
  color: #111;
  min-width: 0;
  padding-left: 0.65rem;
  border-left: 1px solid #c5d0dc;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.ex-val code {
  font-size: 1em;
}

p:has(+ .examples) + .examples {
  margin: 0 0 0.25rem;
  padding: 0.45rem 0.9rem 0.75rem;
  border: 1px solid #c8c8c8;
  border-top: 1px solid #d5dbe2;
  border-left: 3px solid #3d7a52;
  border-radius: 0 0 3px 3px;
  background: #fff;
}

p:has(+ .examples) + .examples::before {
  content: "Result";
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d7a52;
}

/* Standalone example blocks (no Options caption above) */
.examples:not(p + .examples) {
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid #c8c8c8;
  border-left: 3px solid #3d7a52;
  border-radius: 3px;
  background: #fff;
}

.examples:not(p + .examples)::before {
  content: "Result";
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d7a52;
}

.examples code {
  display: block;
  margin: 0.35rem 0 0.55rem;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  color: #111;
}

.examples code:last-child {
  margin-bottom: 0;
}

/* Separate multiple before>>>after lines inside one block */
.examples code + code {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #c8c8c8;
}

.note {
  margin-top: 1.15rem;
  color: #444;
}

.group-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
}

.group-list li {
  margin: 0.2rem 0;
}

.help-search {
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.help-search input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  padding: 0.4rem 0.55rem;
  font: inherit;
  border: 1px solid #888;
}

.help-search-results {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ccc;
  background: #fafafa;
}

.help-search-list {
  margin: 0;
  padding-left: 1.2rem;
}

.help-search-list li {
  margin: 0.45rem 0;
}

.help-search-snippet,
.help-search-empty,
.help-search-more {
  margin: 0.2rem 0 0;
  color: #555;
  font-size: 0.92em;
}

.help-toc-dimmed {
  opacity: 0.45;
}

.toc {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.2rem;
}

.toc > li {
  margin: 0.65rem 0;
}

.toc ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.toc li li {
  margin: 0.25rem 0;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 40rem;
  margin: 1rem 0 1.5rem;
}

.tip {
  box-sizing: border-box;
  border: 2px solid #222;
  background: #ffffcc;
  padding: 0.85rem 1rem;
  font-weight: bold;
}

code.sig {
  color: #b00b0b;
}

.ref-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 52rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95em;
}

.ref-table th,
.ref-table td {
  border: 1px solid #ccc;
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.ref-table th {
  background: #e8e8e8;
}

.ref-table .center {
  text-align: center;
}

.token-block {
  margin: 0 0 1.5rem;
}

.token-block h2 {
  margin-top: 1.4rem;
}

/* Generated from h2 headings when the page is at least two viewport pages long (help.js). */
nav.page-toc {
  margin: 0.85rem 0 1.35rem;
  padding: 0.55rem 0.9rem 0.7rem;
  max-width: 52rem;
  border: 1px solid #c8c8c8;
  border-left: 3px solid #5a6d7e;
  border-radius: 3px;
  background: #f4f7fa;
}

.page-toc-title {
  margin: 0 0 0.35rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6d7e;
}

nav.page-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 16rem 2;
  column-gap: 1.5rem;
}

nav.page-toc li {
  margin: 0.2rem 0;
  break-inside: avoid;
}
