/* moforte help page styles — standalone, no Zephyr dependency.
   Designed for the moforte theme (dark chrome, tokens available via
   /assets/css/tokens.css loaded by inject_ssi_chrome). All colors fall
   back safely if tokens aren't loaded. */

:root {
  --mf-help-max-width: 980px;
  --mf-help-padding: 24px;
}

html {
  scroll-padding-top: var(--mf-header-height, 112px);
}

body {
  margin: 0;
  line-height: 1.6;
  background: var(--mf-bg-primary, #0A0D10);
  color: var(--mf-text-primary, #cfd8dc);
}

.mf-help-page {
  max-width: var(--mf-help-max-width);
  margin: 0 auto;
  padding: var(--mf-help-padding);
  padding-top: 0;
}

.mf-help-content {
  width: 100%;
}

.main {
  margin: 10px;
  text-align: left;
  font-weight: normal;
  font-size: 16px;
}

/* Links */
a {
  color: var(--mf-accent-teal, #80cbc4);
  text-decoration: none;
}
a:hover {
  color: var(--mf-accent-blue, #69aaf0);
  text-decoration: underline;
}

/* Bold text gets full white for emphasis on the dark bg */
b, strong {
  color: var(--mf-text-white, #ffffff);
  font-weight: 700;
}

/* Table-based menus. No Zephyr baseline underneath, so rows need
   explicit spacing or everything stacks flush. */
.table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
}
.table td {
  padding: 0;
  border: none;
}
.tableRow {
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  /* Source HTML sets inline `style="height: 9px"` as a tight-row spacer
     -- override so anchors actually render at their natural line box.
     Goal: match the rhythm on /help/FAQs/ (16px / line-height 1.5),
     no extra padding or min-height. */
  height: auto !important;
}
.tableRow b {
  display: inline-block;
  margin-top: 1.6em;
  margin-bottom: 0.25em;
  font-size: 20px;
}
.tableRow a {
  display: inline-block;
}

/* Restore vertical rhythm on plain headings. The moforte chrome's
   base.css ships a universal `* { margin: 0 }` reset which zeroes
   browser-default h1..h6 margins. Without this rule, FAQ section
   headings collide with the link list above them. */
h1, h2, h3, h4, h5, h6 {
  color: var(--mf-text-white, #ffffff);
  font-weight: 700;
  line-height: 1.3;
}
h2 { font-size: 24px; margin: 0.5em 0 0.4em; }
h3 { font-size: 20px; margin: 1.6em 0 0.4em; }
h4 { font-size: 18px; margin: 1.2em 0 0.3em; }
h5 { font-size: 16px; margin: 1.0em 0 0.3em; }
h6 { font-size: 14px; margin: 0.8em 0 0.2em; }

/* Lists */
li {
  margin: 5px 0;
}
li.compactList {
  margin: 0;
}

/* Google Translate chooser (displayed inline in the nav bar) */
#gt-open { display: inline; }
#gt-chooser {
  display: none;
  margin-top: 6px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
#gt-chooser label,
#gt-chooser select,
#gt-go {
  display: inline-block;
  vertical-align: middle;
}
#gt-select {
  min-width: 220px;
  max-width: 360px;
  width: auto;
}
#gt-go {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
}

/* Search form */
.mf-help-page .help-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mf-help-page .help-search-form input[type="text"] {
  width: 260px;
  max-width: 100%;
}
.mf-help-page .help-search-form input[type="submit"] {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1;
  height: auto;
}

/* Form controls */
.mf-help-page input[type="text"],
.mf-help-page select,
.mf-help-page input[type="submit"],
.mf-help-page button,
.mf-help-page a#gt-go {
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f2f2f2;
  color: #111;
  box-shadow: none;
  text-transform: none;
}
.mf-help-page input[type="text"],
.mf-help-page select {
  height: auto;
}

input, select, button, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Content callouts (preset/parameter descriptions — named-style hooks
   sprinkled through the help HTML). Bold variants get white emphasis. */
.creditName {
  margin-top: 16px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: var(--mf-text-white, #ffffff);
}
.creditTitle {
  text-align: center;
  font-size: 18px;
}
.versionBox {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
}
.editorDisplayNameStyle,
.effectDisplayNameStyle,
.termNameStyle {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  color: var(--mf-text-white, #ffffff);
}
.editorDescriptionStyle,
.effectDescriptionStyle,
.termDescriptionStyle {
  font-size: 16px;
  text-align: left;
}
.editorSectionHeadingStyle,
.tabDisplayNameStyle,
.parameterListHeadingStyle {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  color: var(--mf-text-white, #ffffff);
}
.editorItemNameStyle,
.groupDisplayNameStyle {
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  color: var(--mf-text-white, #ffffff);
}
.editorItemDescriptionStyle,
.parameterDescriptionStyle,
.externalLinkStyle {
  font-size: 14px;
  text-align: left;
}
.parameterDisplayNameStyle {
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  color: var(--mf-text-white, #ffffff);
}

/* Media */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Video lightbox */
.video-thumbnail-container {
  width: 75%;
  min-width: 300px;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
}
.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  pointer-events: none;
}
.video-player {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  z-index: 100000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.video-player iframe {
  width: 100%;
  height: calc(75vw * 9 / 16);
}
.video-player .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
