/* DG Field Manuals (manuals.html): the crew's field-manual look. Typewriter headings (Special Elite), a typed body
   (Space Mono), a sand page with a dot grid, black section bars and INQ / DIR questions. The two fonts ship with the
   site (fonts/, with their licences): the page rules only allow fonts from the site itself. */
@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/special-elite-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/space-mono-latin-400-italic.woff2') format('woff2'); }

.fm-body {
  --fm-sand: #d4c5a9; --fm-paper: #f4efdf; --fm-olive: #4a5336; --fm-ink: #1c1b18; --fm-red: #9b2c2c;
  background-color: var(--fm-sand);
  background-image: radial-gradient(var(--fm-olive) 0.5px, transparent 0.5px);
  background-size: 10px 10px;
}
.fm-page { display: flex; justify-content: center; padding: 24px 12px 10px; }
.fm-digest {
  background: var(--fm-paper); color: var(--fm-ink); font-family: 'Space Mono', ui-monospace, monospace;
  max-width: 820px; width: 100%; border: 3px solid var(--fm-ink); box-shadow: 8px 8px 0 rgba(0, 0, 0, .8); padding: 30px;
  font-size: 15.5px; line-height: 1.65;
}
.fm-digest a { color: var(--fm-red); font-weight: 700; }
.fm-type, .fm-mark, .fm-title, .fm-section, .fm-heading, .fm-cap, .fm-warn h3, .fm-q::before, .fm-a::before, .fm-sign, .fm-card .fm-no {
  font-family: 'Special Elite', 'Courier New', monospace;
}
.fm-mark { text-align: center; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border-bottom: 3px solid var(--fm-ink); padding-bottom: 10px; margin: 0 0 20px; }
.fm-mark.end { border-bottom: 0; border-top: 3px solid var(--fm-ink); padding: 10px 0 0; margin: 34px 0 0; }
.fm-title { text-align: center; font-size: clamp(1.7rem, 5.5vw, 2.6rem); line-height: 1.15; margin: 10px 0 6px; text-transform: uppercase; }
.fm-sub { text-align: center; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin: 0 0 26px; }
.fm-fig { border: 3px solid var(--fm-ink); padding: 6px; background: #fff; transform: rotate(-1deg); margin: 28px auto; max-width: 92%; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.fm-fig:nth-of-type(even) { transform: rotate(.8deg); }
.fm-fig img { display: block; width: 100%; height: auto; filter: contrast(1.08) sepia(.18); }
.fm-fig .fm-blank { display: grid; place-items: center; min-height: 180px; background: repeating-linear-gradient(45deg, #efe7d2 0 12px, #e5dac2 12px 24px); color: #6b6250; font-size: .9rem; text-align: center; padding: 12px; }
.fm-cap { text-align: center; font-size: .9rem; font-weight: 700; margin: 10px 0 2px; text-transform: uppercase; }
.fm-section { background: var(--fm-ink); color: var(--fm-paper); padding: 8px 15px; font-size: 1.25rem; display: inline-block; margin: 34px 0 16px; text-transform: uppercase; }
.fm-heading { font-size: 1.2rem; margin: 22px 0 6px; }
.fm-digest p { margin: 0 0 12px; }
.fm-steps { margin: 6px 0 16px; padding-left: 1.6em; }
.fm-steps li { margin: 0 0 6px; }
.fm-qa { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--fm-ink); }
.fm-q { font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; display: flex; gap: 10px; }
.fm-q::before { content: 'INQ:'; color: var(--fm-red); flex: none; }
.fm-a { position: relative; padding-left: 52px; }
.fm-a::before { content: 'DIR:'; position: absolute; left: 0; top: 0; color: var(--fm-olive); font-weight: 700; }
.fm-warn { border: 2px dashed var(--fm-ink); background: #e5dac2; padding: 14px 16px; margin: 24px 0; }
.fm-warn h3 { margin: 0 0 6px; font-size: 1.15rem; text-transform: uppercase; }
.fm-warn h3::before { content: '⚠ '; }
.fm-sign { text-align: right; font-size: 1.2rem; margin: 22px 0 0; }
.fm-back { display: inline-block; margin: 0 0 14px; font-size: .9rem; }
.fm-note { background: #fff6c4; border-left: 4px solid var(--fm-red); padding: 8px 12px; font-size: .9rem; }
.fm-loading { text-align: center; opacity: .7; }
/* "Prepared by": the crew member's round portrait under the picture (the manuals and the crew Q&A) */
.fm-by { display: flex; gap: 12px; align-items: center; justify-content: center; margin: -12px 0 26px; font-size: .9rem; text-align: left; }
.fm-by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--fm-ink); filter: contrast(1.05) sepia(.15); }
.fm-by small { opacity: .75; }
/* the list of manuals */
.fm-list { display: grid; gap: 14px; margin: 10px 0 0; }
.fm-card { display: block; border: 2px solid var(--fm-ink); background: #fffaf0; padding: 14px 16px; text-decoration: none; color: inherit !important; font-weight: 400 !important; box-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.fm-card:hover, .fm-card:focus-visible { background: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(0, 0, 0, .6); }
.fm-card .fm-no { color: var(--fm-red); font-size: .95rem; }
.fm-card b { display: block; font-size: 1.15rem; margin: 2px 0 4px; }
.fm-card span { font-size: .9rem; }
@media (max-width: 600px) {
  .fm-digest { padding: 18px 14px; font-size: 14.5px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .8); }
  .fm-section { font-size: 1.05rem; display: block; }
  .fm-a { padding-left: 0; padding-top: 1.4em; }
  .fm-fig { max-width: 100%; }
}
