/* Print lesson (?view=print): page 1 = the lesson on one page, page 2 = the answer key.
   The sheet is 7.4in x 10.1in, which fits inside both Letter and A4 with 0.4in margins.
   lesson-print.js lowers --sp-fs until page 1 fits. */
@page { margin: 0.4in; }
* { box-sizing: border-box; }
html, body { margin: 0; }
.sp-body { --sp-fs: 10.5px; background: #e9ece9; color: #111; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sp-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #d5dbd7; font-size: 15px; }
.sp-back { color: #1F5C99; font-weight: 700; text-decoration: none; }
.sp-go { padding: 9px 22px; border: 0; border-radius: 999px; background: #1F5C99; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sp-tip { margin: 0; color: #5A6372; font-size: 13px; }
.sp-sheet { width: 7.4in; min-height: 10.1in; margin: 0.5in auto; padding: 0; background: #fff; box-shadow: 0 0 0 0.3in #fff, 0 0 0 calc(0.3in + 1px) #d5dbd7; font-size: var(--sp-fs); line-height: 1.32; }
.sp-p1 { height: auto; }
@media screen and (max-width: 8in) {
  /* phones: the preview is scaled to the screen; the printout is unchanged */
  .sp-sheet { zoom: var(--sp-zoom, 1); }
}
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: .4em; margin-bottom: .55em; border-bottom: 2px solid #1F5C99; }
.sp-head h1 { margin: 0; font-size: 2em; line-height: 1.1; }
.sp-site { margin: .15em 0 0; color: #555; font-size: .95em; }
.sp-name { margin: 0; white-space: nowrap; font-size: .95em; }
.sp-sum { margin: 0 0 .6em; padding: .45em .7em; border-left: 4px solid #1F5C99; background: #EEF3F9; font-size: 1.12em; }
.sp-tag { display: inline-block; margin-right: .25em; color: #1F5C99; font-size: .78em; letter-spacing: .05em; text-transform: uppercase; }
.sp-cols { column-count: 2; column-gap: .28in; column-rule: 1px solid #dde3df; }
.sp-sec { margin: 0 0 .5em; }
.sp-sec h2 { margin: .1em 0 .25em; padding-bottom: .1em; border-bottom: 1px solid #C9D1DC; color: #1F5C99; font-size: 1.15em; break-after: avoid; }
.sp-sec h3 { margin: .35em 0 .15em; font-size: 1em; break-after: avoid; }
.sp-sec p { margin: .15em 0 .3em; }
.sp-sec ul, .sp-sec ol { margin: .1em 0 .35em; padding-left: 1.3em; }
.sp-sec li { margin: 0 0 .12em; }
.sp-en, .sll-tv__en { color: #555; }
.sp-ex { list-style: "– "; }
.sp-rule, .sll-tip { margin: .2em 0 .35em; padding: .3em .5em; border: 1px solid #C9D1DC; border-radius: 4px; break-inside: avoid; }
.sp-small { color: #555; font-size: .88em; }
/* tables */
.sp-tw { margin: .15em 0 .35em; break-inside: avoid; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.sp-table caption { text-align: left; font-weight: 700; }
.sp-table th, .sp-table td { padding: .12em .35em; border: 1px solid #C9D1DC; text-align: left; vertical-align: top; }
.sp-table thead th { background: #EEF3F9; }
.sp-table tbody th { font-weight: 700; }
.sll-row-spain { color: #777; }
.sll-spain-tag { font-size: .8em; color: #777; font-weight: 400; }
/* text-view blocks reused on paper */
.sll-tv__act { margin: .2em 0 .35em; break-inside: avoid; }
.sll-tv__title, .sll-tv__label { margin: .2em 0 .1em; font-weight: 700; }
.sll-tv__list { margin: .05em 0 .2em; }
.sll-tv__tag { margin-right: .2em; }
.sll-tv__note { display: block; color: #555; }
.sll-tv__chip { margin-right: 1px; padding: 0 .15em; border-bottom: 1px solid #1F5C99; }
.sll-tv__formula { font-weight: 700; }
.sll-ul { padding-left: 1.2em; }
.sll-dialogue p { margin: .1em 0; }
.sll-who { font-weight: 700; margin-right: .3em; }
.sll-dialogue .sll-en { display: block; color: #555; padding-left: 1em; }
/* mistakes and practice */
.sp-mis li { break-inside: avoid; }
.sp-mis s { color: #9a2a2a; }
.sp-mis .sp-en { display: block; }
.sp-ins { color: #444; font-style: italic; }
.sp-qs li { margin-bottom: .32em; break-inside: avoid; }
.sp-blank { display: inline-block; width: 5.5em; border-bottom: 1px solid #222; height: .9em; vertical-align: baseline; }
.sp-blank--s { width: 3em; }
.sp-hint { color: #555; }
.sp-opts { display: inline; }
.sp-opt { display: inline-block; margin-right: .7em; white-space: nowrap; }
.sp-lines i { display: block; height: 1.7em; border-bottom: 1px solid #999; }
/* answer key */
.sp-key li { break-inside: avoid; }
.sp-key strong { color: #1F5C99; }
.sp-p2 .sp-cols { column-count: 2; }

@media print {
  .sp-body { background: #fff; }
  .sp-bar { display: none; }
  .sp-sheet { width: auto; min-height: 0; margin: 0; box-shadow: none; zoom: 1 !important; }
  .sp-p1 { break-after: page; }
  .sp-p2 { break-before: page; }
}
