/* The Quick Session's sheet (templates/_quick_session_sheet.html), which the
   page turns into the PDF. A printed sheet, so it stays dark-on-white even
   when the site is in night mode - hence the fixed colours and !important
   (night mode recolours text through variables and its own rules). It is
   laid out at 760px wide, which becomes the A4 page's 190mm. Not touched
   by scripts/theme_night_mode.py on purpose. */
/* Where a page builds the sheet: off screen, at the sheet's width */
.qs-sheet-holder { position: absolute; left: -10000px; top: 0; width: 760px; }
.qs-sheet {
    width: 760px; background: #ffffff !important; color: #1f2937 !important;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
.qs-sheet * { box-sizing: border-box; }
.qs-sheet .qs-block { background: #ffffff !important; padding: 18px 22px; }

/* The heading block: the logo, then the brand, title and line under it */
.qs-sheet .qs-sheet-head { border-bottom: 4px solid #ff6b00; padding-bottom: 16px; }
.qs-sheet .qs-sheet-head-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.qs-sheet .qs-sheet-head-text { flex: 1 1 0; min-width: 0; }
.qs-sheet .qs-sheet-head-text .qs-sheet-sub { margin-bottom: 0; }
/* (the crest is 600x466 with clear sides - 66px tall is ~17mm printed) */
.qs-sheet .qs-sheet-logo { flex: 0 0 auto; height: 66px; width: auto; display: block; }
.qs-sheet .qs-sheet-brand { color: #0e2338 !important; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.qs-sheet .qs-sheet-brand span { color: #ff6b00 !important; margin-left: 4px; }
.qs-sheet .qs-sheet-title { color: #0e2338 !important; font-size: 28px; line-height: 1.2; margin: 8px 0 4px; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-sub { color: #6b7280 !important; font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.qs-sheet .qs-sheet-order { margin: 0; padding-left: 22px; color: #1f2937 !important; columns: 2; column-gap: 28px; }
.qs-sheet .qs-sheet-order li { margin: 2px 0; break-inside: avoid; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-order li::marker { color: #ff6b00; font-weight: 800; }
.qs-sheet .qs-sheet-order-players { color: #6b7280 !important; font-size: 12px; white-space: nowrap; }
.qs-sheet .qs-sheet-order-when { color: #bf4d00 !important; font-size: 12px; font-weight: 700; white-space: nowrap; }
.qs-sheet .qs-sheet-kit { margin: 10px 0 0; color: #1f2937 !important; font-size: 13px; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-kit strong { color: #0e2338 !important; }

/* One drill */
.qs-sheet .qs-sheet-drill { border-bottom: 1px solid #e5e7eb; }
.qs-sheet .qs-sheet-name {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
    color: #0e2338 !important; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere;
}
.qs-sheet .qs-sheet-name span {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #ff6b00; color: #0e2338 !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.qs-sheet .qs-sheet-when {
    margin: -6px 0 10px 40px; color: #bf4d00 !important; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em;
}
/* A drill's pictures (templates/_sheet_shots.html), then its facts.
   Alone - the thumbnail, or a video where nothing moves - the picture is
   centred at the size the set-up has in a sequence. Once the PDF maker has
   read the video (.is-sequence): the set-up big on the left, a moment from
   the middle and the end stacked beside it, each numbered. The two columns
   come out the same height for 16:9 pictures: 68.2% + 12px gap + the rest,
   with 20px captions */
.qs-sheet .qs-sheet-top { display: block; margin-bottom: 6px; }
.qs-sheet .qs-sheet-shots { margin: 0 0 12px; }
.qs-sheet .qs-sheet-shot { margin: 0; min-width: 0; }
.qs-sheet .qs-sheet-shot img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #e5e7eb; }
.qs-sheet .qs-sheet-shot figcaption { display: none; }
.qs-sheet .qs-sheet-shot-side { display: none; }
.qs-sheet .qs-sheet-shots:not(.is-sequence) .qs-sheet-shot-main { width: 68.2%; margin: 0 auto; }
.qs-sheet .qs-sheet-shots.is-sequence { display: flex; gap: 12px; align-items: flex-start; }
.qs-sheet .qs-sheet-shots.is-sequence .qs-sheet-shot-main { flex: 0 0 68.2%; }
.qs-sheet .qs-sheet-shots.is-sequence .qs-sheet-shot-side { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; min-width: 0; }
.qs-sheet .qs-sheet-shots.is-sequence figcaption {
    display: flex; align-items: center; gap: 6px; height: 16px; margin-top: 4px;
    color: #0e2338 !important; font-size: 12px; font-weight: 700; line-height: 16px;
}
.qs-sheet .qs-sheet-shot figcaption span {
    flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: #ff6b00; color: #0e2338 !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}
.qs-sheet .qs-sheet-facts {
    min-width: 0; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 14px;
    font-size: 13px;
}
/* The facts, with the drill's QR code beside them - 100px is ~25mm on the
   printed page, big enough to scan from a sheet on the grass */
.qs-sheet .qs-sheet-under { display: flex; gap: 16px; align-items: flex-start; }
.qs-sheet .qs-sheet-under .qs-sheet-facts { flex: 1; }
.qs-sheet .qs-sheet-qr { flex: 0 0 auto; width: 112px; text-align: center; }
.qs-sheet .qs-sheet-qr img { width: 100px; height: 100px; display: block; margin: 0 auto 4px; }
.qs-sheet .qs-sheet-qr span { display: block; font-size: 10.5px; line-height: 1.3; font-weight: 600; color: #6b7280 !important; }
.qs-sheet .qs-sheet-facts dt { color: #6b7280 !important; font-weight: 700; }
.qs-sheet .qs-sheet-facts dd { color: #1f2937 !important; margin: 0; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-facts dd.qs-sheet-players { font-weight: 700; color: #0e2338 !important; }
.qs-sheet .qs-sheet-h {
    margin: 14px 0 6px; color: #bf4d00 !important; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.qs-sheet .qs-sheet-text,
.qs-sheet .qs-sheet-text p,
.qs-sheet .qs-sheet-text li { color: #1f2937 !important; }
.qs-sheet .qs-sheet-h span { margin-left: 6px; color: #6b7280 !important; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* A drill's own sheet (templates/_drill_sheet.html) - made to print on one
   page where it can: the QR code to the video up in the heading, beside the
   logo and title (so the three pictures don't push everything down), and
   paragraphs closer together. Then the Four Corner Model two to a row, and
   the principles of play */
.qs-drill-sheet .qs-sheet-head { display: flex; align-items: center; gap: 14px; }
.qs-drill-sheet .qs-sheet-head .qs-sheet-sub { margin-bottom: 0; }
.qs-drill-sheet .qs-sheet-head .qs-sheet-qr { width: auto; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.qs-drill-sheet .qs-sheet-head .qs-sheet-qr img { width: 84px; height: 84px; margin: 0; }
.qs-drill-sheet .qs-sheet-head .qs-sheet-qr span { width: 64px; font-size: 10px; text-align: right; }
.qs-drill-sheet .qs-sheet-facts { margin-top: 2px; }
.qs-drill-sheet .qs-sheet-text p,
.qs-drill-sheet .qs-sheet-text .dt-list { margin-bottom: 0.4em; }
.qs-drill-sheet .qs-sheet-text .dt-h { margin-top: 0.7em; }
.qs-drill-sheet .qs-sheet-text > :last-child { margin-bottom: 0; }
.qs-drill-sheet .qs-sheet-h { margin-top: 12px; }
.qs-sheet .qs-sheet-row { display: flex; gap: 12px; margin-bottom: 10px; }
.qs-sheet .qs-sheet-corner {
    flex: 1 1 0; min-width: 0; padding: 8px 12px; border-radius: 8px;
    background: #f8fafc !important; border-left: 4px solid #e74c3c;
}
/* (the drill page's Four Corner colours) */
.qs-sheet .qs-sheet-corner-psychological { border-left-color: #27ae60; }
.qs-sheet .qs-sheet-corner-physical { border-left-color: #f1c40f; }
.qs-sheet .qs-sheet-corner-social { border-left-color: #3498db; }
.qs-sheet .qs-sheet-corner-name { margin: 0 0 2px; color: #0e2338 !important; font-size: 13px; font-weight: 800; }
.qs-sheet .qs-sheet-corner .qs-sheet-text { font-size: 13px; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-corner .qs-sheet-text p { margin: 0 0 4px; }
.qs-sheet .qs-sheet-principles { margin: 0 0 4px; color: #1f2937 !important; overflow-wrap: anywhere; }
.qs-sheet .qs-sheet-principles strong { color: #0e2338 !important; }
.qs-sheet .dt strong,
.qs-sheet .dt .dt-h { color: #111827 !important; }
