/* LOSTFALL — printable survival sheet (Form S-1, pure B&W).
   Screen: dark control bar + white page preview. Print: page only, #000 on #FFF. */

body { background: #26261F; }

.sheets-controls {
  position: sticky; top: 0; z-index: 10; background: var(--bg); color: var(--cream);
  border-bottom: 1px solid var(--hairline); font-family: var(--mono);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px); flex-wrap: wrap;
}
.sheets-controls__grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheets-controls__mark { font-size: 11px; letter-spacing: 7px; }
.sheets-controls label { font-size: 8.5px; letter-spacing: 2px; color: var(--silver); }
.sheets-seg { display: flex; border: 1px solid var(--hairline-strong); }
.sheets-seg button {
  background: none; border: none; color: var(--silver); font-family: var(--mono);
  font-size: 10px; letter-spacing: 1px; padding: 8px 14px; cursor: pointer;
}
.sheets-seg button.is-on { background: var(--cream); color: var(--bg); }
.sheets-print {
  background: var(--cream); color: var(--bg); border: none; font-family: var(--serif);
  font-size: 14px; padding: 10px 22px; cursor: pointer;
}
.sheets-back { color: var(--silver); text-decoration: none; font-size: 9px; letter-spacing: 2px; }
.sheets-hint { font-size: 8px; letter-spacing: 1px; color: var(--faded); width: 100%; }

.sheets-stage { padding: 28px; display: flex; justify-content: center; }
.sheet-frame { width: 100%; max-width: 794px; }
.sheet-frame.is-letter { max-width: 816px; }

/* ---- the page ---- */
.sheet-page {
  background: #fff; color: #000; width: 100%;
  padding: 30px; box-sizing: border-box; font-family: var(--mono);
}
.sheet-inner { border: 3px solid #000; display: flex; flex-direction: column; }

.sh-mast { display: flex; align-items: stretch; border-bottom: 3px solid #000; }
.sh-mast__brand { padding: 12px 20px 10px; border-right: 2px solid #000; display: flex; flex-direction: column; justify-content: center; }
.sh-mast__word { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: #000; }
.sh-mast__sub { font-family: var(--serif); font-style: italic; font-size: 12px; color: #000; padding-top: 3px; }
.sh-mast__meta { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: 8.5px; letter-spacing: 1px; color: #000; }
.sh-mast__meta b { font-weight: 600; font-size: 10px; letter-spacing: 2px; }
.sh-mast__mode { padding: 10px 16px; border-left: 2px solid #000; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 9.5px; color: #000; }
.sh-mast__mode div { display: flex; align-items: center; gap: 7px; }
.sh-box { width: 14px; height: 14px; border: 2.5px solid #000; flex: none; }

.sh-start { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #000; padding: 6px 14px; font-size: 8.5px; letter-spacing: 1px; color: #000; gap: 12px; flex-wrap: wrap; }
.sh-start b { font-weight: 600; }
.sh-rule { display: inline-block; border-bottom: 1.5px solid #000; }

.sh-sec { border-bottom: 2px solid #000; padding: 8px 14px 10px; }
.sh-sec__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; gap: 16px; }
.sh-sec__title { font-size: 9.5px; font-weight: 600; letter-spacing: 2px; color: #000; }
.sh-sec__note { font-size: 8px; letter-spacing: .5px; color: #000; text-align: right; }

.sh-vital { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; padding: 3px 0; }
.sh-vital__label { display: flex; align-items: baseline; gap: 7px; }
.sh-vital__abbr { font-family: var(--serif); font-size: 19px; line-height: 1; color: #000; }
.sh-vital__word { font-size: 8px; color: #000; }
.sh-vital__boxes { display: flex; gap: 4px; }
.sh-vbox { flex: 1 1 0; height: 26px; box-sizing: border-box; border: 2.5px solid #000; background: #fff; }
.sh-vbox.is-danger { background: repeating-linear-gradient(45deg, #000 0 2px, #fff 2px 9px); }

.sh-pack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sh-pbox { height: 54px; box-sizing: border-box; padding: 3px 5px; border: 2px solid #000; background: #fff; }
.sh-pbox.is-duffel { border-style: dashed; }
.sh-pbox span { font-size: 8px; color: #000; }
.sh-fire { display: flex; flex-direction: column; gap: 4px; padding-top: 7px; }
.sh-fire__row { display: flex; align-items: center; gap: 8px; font-size: 8.5px; color: #000; flex-wrap: wrap; }
.sh-fire__row b { font-weight: 600; flex: none; }
.sh-tally { width: 11px; height: 11px; border: 1.5px solid #000; border-radius: 50%; flex: none; }

.sh-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid #000; }
.sh-split > div { padding: 8px 14px 10px; }
.sh-split > div:first-child { border-right: 2px solid #000; }
.sh-line { display: flex; align-items: baseline; gap: 8px; font-size: 8.5px; color: #000; padding: 4px 0; }
.sh-blank { border-bottom: 1.5px solid #000; height: 19px; }

.sh-log { display: grid; grid-template-columns: 44px 64px 36px 36px 36px 36px 1fr; border: 2px solid #000; font-size: 7.5px; font-weight: 600; letter-spacing: 1px; color: #000; }
.sh-log > div { padding: 4px 6px; border-right: 1.5px solid #000; }
.sh-log > div:last-child { border-right: none; }
.sh-logrow { display: grid; grid-template-columns: 44px 64px 36px 36px 36px 36px 1fr; border: 1.5px solid #000; border-top: none; font-size: 8.5px; color: #000; }
.sh-logrow > div { padding: 5px 6px; border-right: 1.5px solid #000; }
.sh-logrow > div:last-child { border-right: none; }
.sh-logrow > div:first-child { font-weight: 600; }

.sh-notes { padding: 8px 14px 10px; display: flex; flex-direction: column; }
.sh-notes__lines { height: 140px; background-image: repeating-linear-gradient(0deg, transparent 0 22px, #000 22px 23.5px); background-position: 0 -1px; }

.sh-foot { display: flex; align-items: center; justify-content: space-between; border-top: 3px solid #000; padding: 6px 14px; font-size: 8px; letter-spacing: 1px; color: #000; gap: 12px; }
.sh-stamp { border: 2px solid #000; padding: 2px 8px; font-weight: 600; transform: rotate(-3deg); flex: none; }

/* ---- print ---- */
@media print {
  @page { size: A4; margin: 8mm; }
  html:where([data-size="letter"]) ~ * { }
  body { background: #fff !important; }
  .sheets-controls, .sheets-hint { display: none !important; }
  .sheets-stage { padding: 0; display: block; }
  .sheet-frame { max-width: none; width: 100%; }
  .sheet-page { padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
