/* Cheat sheets: a paper page on screen, a clean A4 or Letter page in print.
   The content is laid out for a 186 mm wide column (A4 and Letter both fit it
   with 12 mm margins), in two columns of blocks. */

.sheet-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 20px var(--gutter) 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sheet { --sheet-ink: #101d2e; --sheet-rule: #d7dde6; box-sizing: border-box; width: min(100% - 2 * var(--gutter), 210mm); margin: 20px auto 72px; padding: 14mm 12mm 10mm; background: #fff; color: var(--sheet-ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 50px rgba(16, 29, 46, 0.1); font-size: 13px; line-height: 1.4; }
.sheet a { color: inherit; text-decoration-color: #9fb2cc; text-underline-offset: 2px; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 2px solid var(--sheet-ink); padding-bottom: 6px; margin-bottom: 10px; }
.sheet-brand { width: 100%; font: 700 10.5px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #55657a; }
.sheet-head h1 { font-size: 24px; line-height: 1.15; }
.sheet-head .draft-badge { margin: 0; }
.sheet-cols { columns: 2 300px; column-gap: 8mm; }
.sheet-block { break-inside: avoid; margin: 0 0 9px; }
.sheet-block h2 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #083678; border-bottom: 1px solid var(--sheet-rule); padding-bottom: 2px; margin-bottom: 4px; line-height: 1.3; }
.sheet-block h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; margin: 6px 0 2px; letter-spacing: 0; }
.sheet-block p { margin: 3px 0; }
.sheet-block ul, .sheet-block ol { margin: 3px 0; padding-left: 16px; }
.sheet-block li { margin: 1px 0; }
.sheet-dl { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 2px 8px; margin: 0; }
.sheet-dl dt { font-weight: 700; }
.sheet-dl dd { margin: 0; }
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th, .sheet-table td { text-align: left; vertical-align: top; padding: 3px 4px 3px 0; border-bottom: 1px solid var(--sheet-rule); font-weight: 400; }
.sheet-table tbody th { font-weight: 700; width: 30%; }
.sheet-table thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #55657a; font-weight: 700; }
.sheet-table small { display: block; color: #55657a; font-size: 11px; font-weight: 400; }
.sheet-rhythms .sheet-table tbody th { width: 26%; }
.sheet-strip-cell { width: 34%; }
.sheet-strip { display: block; width: 100%; height: 30px; border-radius: 3px; border: 1px solid #f0d6d6; }
.sheet-draft { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; border: 1px solid #b7791f; color: #5c3b00; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 1px; }
.sheet-note { color: #33445a; font-size: 12px; }
.sheet-formula { font-family: var(--mono); font-size: 11.5px; background: #f3f6fa; border-radius: 4px; padding: 5px 7px; margin: 4px 0; }
.sheet-criteria li { margin: 3px 0; }
.sheet-decisions { padding-left: 18px; }
.sheet-decisions li { margin: 0 0 5px; }
.sheet-decisions small { color: #55657a; }
.sheet-opt { display: inline-block; margin: 1px 2px 0 0; padding: 0 6px; border: 1px solid var(--sheet-rule); border-radius: 999px; font-size: 11.5px; }
.sheet-axis { break-inside: avoid; }
.hexaxial { display: block; width: 100%; max-width: 280px; margin: 0 auto; }
.hexaxial .hx-axis { stroke: #33445a; stroke-width: 1; }
.hexaxial .hx-dot { fill: #33445a; }
.hexaxial .hx-label { font: 600 10px var(--sans); fill: #101d2e; }
.hexaxial .hx-normal { fill: #c9eee5; }
.hexaxial .hx-right { fill: #dbe7fb; }
.hexaxial .hx-left { fill: #fde7b0; }
.hexaxial .hx-extreme { fill: #f6d3d3; }
.sheet figcaption { font-size: 11.5px; color: #33445a; margin-top: 4px; }
.sheet-quad td, .sheet-quad th { font-size: 12px; }
.sheet-foot { margin-top: 8px; padding-top: 5px; border-top: 1px solid var(--sheet-rule); font-size: 10px; color: #55657a; }

@media (max-width: 640px) {
  .sheet { padding: 18px 14px; font-size: 14px; }
  .sheet-cols { columns: 1; }
  .sheet-strip { height: 40px; }
  .sheet-rhythms .sheet-table, .sheet-rhythms .sheet-table tbody, .sheet-rhythms .sheet-table tr, .sheet-rhythms .sheet-table th, .sheet-rhythms .sheet-table td { display: block; width: auto; }
  .sheet-rhythms .sheet-table tr { padding: 6px 0; border-bottom: 1px solid var(--sheet-rule); }
  .sheet-rhythms .sheet-table th, .sheet-rhythms .sheet-table td { border: 0; padding: 2px 0; }
}

@page { margin: 11mm 12mm; }
@media print {
  html, body { background: #fff !important; }
  body { font-size: 8.6pt; }
  .nav, .foot, .skip, .sheet-toolbar { display: none !important; }
  main { padding: 0; }
  .sheet { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 8.6pt; }
  .sheet-cols { columns: 2; column-gap: 7mm; }
  .sheet-head h1 { font-size: 17pt; }
  .sheet-block h2 { font-size: 8.6pt; }
  .sheet-table small, .sheet-note, .sheet-formula { font-size: 7.8pt; }
  .sheet-strip { height: 26px; }
  .sheet-foot { font-size: 7pt; }
  a { text-decoration: none; }
}

/* One column, for the rhythm sheet whose tracings need the width. */
.sheet-cols.is-single { columns: 1; }
.is-single .sheet-rhythms .sheet-table tbody th { width: 21%; }
.is-single .sheet-strip-cell { width: 42%; padding-right: 8px; }
.is-single .sheet-strip { height: 44px; }
@media print {
  .sheet-cols.is-single { columns: 1; }
  .is-single .sheet-strip { height: 38px; }
  .sheet-rhythms tr { break-inside: avoid; }
}
.sheet-block.is-breakable { break-inside: auto; }
.sheet-block.is-breakable tr { break-inside: avoid; }
@media (max-width: 640px) { .sheet-table th, .sheet-table td { overflow-wrap: anywhere; hyphens: auto; } .sheet-table thead th { font-size: 9.5px; letter-spacing: 0; } }
