/* Handwriting paper maker: the strip of table at the top (pages.css), the maker and the sheets it draws, the blank
   pages, the letter chart and the guide. Sheets are SVG in hundredths of an inch, so the preview and the printout
   are the same page. */

/* The strip of table: the card with the answer, and half a sheet of June's tracing lying on the wood beside it. */
.hp-band .band-card { max-width: 660px; }
.hp-band .band-card h1 { font-size: clamp(32px, 3vw, 44px); }
.hp-band .band-card .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hp-band .thing { pointer-events: none; }
.hp-half { background: #fff; padding: 2.2% 3% 1%; box-shadow: 0 0 0 1px rgba(51,54,59,.12), 10px 14px 18px rgba(80,45,10,.32); }
.hp-half svg { display: block; width: 100%; height: auto; }
/* June's pencil goes over the first June, one stroke after another, once. */
.hp-half .hand path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hp-half .hand path { stroke-dashoffset: 1; animation: hp-write .42s cubic-bezier(.45,.05,.55,.95) forwards; }
  .hp-half .hand path:nth-child(1) { animation-delay: .9s; animation-duration: .55s; }
  .hp-half .hand path:nth-child(2) { animation-delay: 1.75s; }
  .hp-half .hand path:nth-child(3) { animation-delay: 2.3s; animation-duration: .25s; }
  .hp-half .hand path:nth-child(4) { animation-delay: 2.85s; animation-duration: .25s; }
  .hp-half .hand path:nth-child(5) { animation-delay: 3.2s; }
  .hp-half .hand path:nth-child(6) { animation-delay: 3.95s; animation-duration: .6s; }
}
@keyframes hp-write { to { stroke-dashoffset: 0; } }

/* The maker */
.hp { padding: 56px var(--gap) 64px; scroll-margin-top: calc(var(--top-h) + 8px); }
.hp-head { max-width: 1240px; margin: 0 auto 26px; }
.hp-head h2 { margin-bottom: 10px; }
.hp-head p { max-width: 760px; font-size: 19px; line-height: 30px; margin: 0; }
.hp-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 36px 44px; align-items: start; }
.hp-form { background: var(--paper); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 24px 24px 20px; box-shadow: 6px 6px 0 var(--manila), 6px 6px 0 1.5px rgba(51,54,59,.2); }
.hp-form .f { margin: 0 0 20px; }
.hp-form label, .hp-form legend { display: block; font-weight: 700; font-size: 18px; line-height: 25px; margin: 0 0 6px; padding: 0; }
.hp-form .opt { font-weight: 400; }
.hp-form .hint { font-size: 15px; line-height: 22px; margin: 6px 0 0; }
.hp-form textarea, .hp-form select { width: 100%; font: 400 18px/1.45 var(--font); color: var(--graphite); background: #fff; border: 1.5px solid var(--graphite); border-radius: 4px; padding: 10px 12px; }
.hp-form textarea { resize: vertical; min-height: 120px; }
.hp-form select { min-height: 48px; }
.hp-form textarea:focus-visible, .hp-form select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp-form fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.hp-form .choices { display: grid; gap: 8px; }
.hp-form .choices.two { grid-template-columns: 1fr 1fr; }
.hp-form .choice { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 8px 12px; border: 1.5px solid rgba(51,54,59,.35); border-radius: 6px; font-weight: 400; font-size: 17px; line-height: 22px; cursor: pointer; background: #fff; }
.hp-form .choice:has(input:checked) { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); background: #fffbea; }
.hp-form .choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp-form .choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--red); }
.hp-form .choice small { display: block; font-size: 14px; line-height: 19px; }
.hp-form .tick { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; font-size: 17px; line-height: 24px; margin: 0 0 4px; cursor: pointer; }
.hp-form .tick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }
.hp-form .rule-top { border-top: 1.5px dashed rgba(79,134,219,.7); padding-top: 18px; }
.hp-form .rule-top > legend { float: left; width: 100%; }
.hp-form .rule-top > legend + * { clear: both; }
.hp-trace { border-left: 3px solid var(--yellow); padding-left: 14px; margin: -6px 0 22px; }
.hp-trace[hidden] { display: none; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.hp-actions .btn-red { min-width: min(160px, 100%); }
.btn-plain { background: none; border: 0; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; min-height: 44px; font: 700 16px/1.2 var(--font); color: var(--graphite); cursor: pointer; }
.btn-plain:hover { transform: none; box-shadow: none; text-decoration-thickness: 2px; }
.hp-status { font-size: 16px; line-height: 24px; margin: 14px 0 0; }
.hp-note { font-size: 16px; line-height: 24px; margin: 10px 0 0; padding: 10px 12px; background: #fffbea; border: 1.5px solid var(--yellow); border-radius: 4px; }
.hp-note p { margin: 0 0 6px; font-size: inherit; line-height: inherit; }
.hp-note p:last-child { margin-bottom: 0; }
.hp-top-note { margin: 0 0 18px; }
.hp-warn { font-size: 15px; line-height: 22px; margin: 8px 0 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--yellow); }
.hp-warn[hidden] { display: none; }
/* Until the maker's script has run (scripts off, still loading, or it failed), the form steps aside and the page
   says which, and what works instead. */
.hp-js { display: none; }
html.hp-on .hp-js { display: block; }
html.hp-on .hp-nojs { display: none; }
.hp-inline { display: none; }
html.hp-on .hp-inline { display: inline; }
.hp-nojs { background: var(--paper); border: 1.5px solid var(--graphite); border-radius: 6px; padding: 20px 22px; box-shadow: 6px 6px 0 var(--manila); }
.hp-nojs p { font-size: 17px; line-height: 27px; }
.hp-nojs .m-wait, .hp-nojs .m-fail { display: none; }
html.hp-wait .hp-nojs .m-off { display: none; }
html.hp-wait .hp-nojs .m-wait { display: block; }
html.hp-fail .hp-nojs .m-off, html.hp-fail .hp-nojs .m-wait { display: none; }
html.hp-fail .hp-nojs .m-fail { display: block; }
/* The first page in small, by the Print button, where the sheets are further down the page */
.hp-thumb { display: none; }
.hp-thumb a { display: flex; gap: 12px; align-items: center; color: var(--graphite); font-size: 15px; line-height: 21px; padding: 4px 0; }
.hp-thumb .svgw { flex: none; width: 92px; background: #fff; box-shadow: 0 0 0 1.5px rgba(51,54,59,.25); }
.hp-thumb svg { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { html.hp-on .hp-form .hp-thumb { display: block; margin: 6px 0 14px; } }
/* and beside the words being typed, where the sheets are out of sight */
.hp-type-thumb { display: none; }
@media (max-width: 960px) {
  .hp-type { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: start; }
  .hp-type-thumb { display: block; background: #fff; box-shadow: 0 0 0 1.5px rgba(51,54,59,.25); }
  .hp-type-thumb svg { display: block; width: 100%; height: auto; }
}
@media (max-width: 300px) { .hp-type { grid-template-columns: minmax(0, 1fr); } .hp-type-thumb { display: none; } }
/* The form's one note, shown by the page's signup script (su-send, in the head) only when the site has just turned this
   sending away (scripts off: the site's own page says so). The same look as the site's index-card notes. */
.signup .su-no { margin: 4px 0 14px; padding: 10px 12px; border: 2px solid var(--red); border-radius: 4px; background: #fff; font-size: 16px; line-height: 24px; }
.signup .su-no[hidden] { display: none; }

.hp-preview { background: var(--manila); border-radius: 6px; padding: 20px; min-width: 0; }
.hp-preview-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.hp-preview-head p { font-size: 16px; line-height: 24px; margin: 0; }
.hp-preview-head .btn { min-height: 44px; }
html.hp-on .hp-preview-head .hp-js { display: inline-flex; }
.hp-preview-head .btn[aria-pressed="true"] { background: #fffbea; box-shadow: inset 0 0 0 1.5px var(--graphite); }
/* Full size: each sheet at its printed width, in a box that scrolls by touch, or with the arrow keys once focused. */
.hp-scroll.big { overflow: auto; max-height: 85vh; padding: 4px 12px 12px 4px; }
.hp-scroll.big:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp-scroll.big .hp-sheets { grid-template-columns: 7.25in; justify-content: start; }
.hp-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; align-items: start; }
/* On a wide screen the sheets stay beside the form while it scrolls, so every change shows as it's made */
@media (min-width: 961px) {
  .hp-grid > .hp-preview { position: sticky; top: calc(var(--top-h) + 12px); }
  .hp-grid > .hp-preview .hp-scroll { max-height: calc(100vh - var(--top-h) - 150px); overflow: auto; padding: 2px 10px 10px 2px; }
}
.hp-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp-sheets.one { grid-template-columns: minmax(0, 520px); }
.hp-scroll.big .hp-sheets.one { grid-template-columns: 7.25in; }
.sheet-wrap { margin: 0; min-width: 0; }
.sheet-wrap figcaption { font-size: 15px; line-height: 21px; margin-top: 8px; }
.sheet { position: relative; width: 100%; aspect-ratio: 725 / 990; background: #fff; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(51,54,59,.15), 8px 10px 0 rgba(51,54,59,.08); }
.sheet .hp-svg { display: block; width: 100%; height: auto; }

/* The blank pages to print */
.hp-blanks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.pg .hp-blanks li { margin: 0; }
.pg .hp-blanks, .pg .lt-grid { padding: 0; margin-left: 0; }
.hp-blanks a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: start; height: 100%; text-decoration: none; background: #fff; border: 1.5px solid var(--graphite); border-radius: 6px; padding: 12px 14px; box-shadow: 4px 4px 0 var(--manila); color: var(--graphite); }
.hp-blanks a:hover { box-shadow: 4px 4px 0 var(--yellow); }
.hp-blanks b { display: block; font-size: 18px; line-height: 24px; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.hp-blanks span:not(.mini) { display: block; font-size: 15px; line-height: 21px; }
/* Each little sheet is the real one in miniature: its rows at their true spacing, drawn with heavier lines so they
   show at 64px. */
.hp-blanks .mini { grid-row: span 2; display: block; width: 64px; height: auto; background: #fff; box-shadow: 0 0 0 1px rgba(51,54,59,.25); }

/* The letter chart. The big letter stays at the top while its chart scrolls under it, where the screen is tall
   enough to hold both. */
.lt-wrap { margin: 18px 0 24px; }
.lt-stage { display: none; }
html.hp-on .lt-stage { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); grid-template-areas: "big say" "big steps"; gap: 6px 24px; align-items: start; background: #fff; border: 1.5px solid var(--graphite); border-radius: 6px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--manila); margin: 0 0 18px; position: sticky; top: calc(var(--top-h) + 8px); z-index: 3; scroll-margin-top: calc(var(--top-h) + 8px); }
@media (max-height: 620px) { html.hp-on .lt-stage { position: relative; } }
html.hp-on .lt-stage.lt-flow { position: relative; }
.lt-big { grid-area: big; }
.lt-say { grid-area: say; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.lt-steps { grid-area: steps; }
.lt-big svg { display: block; width: 100%; height: auto; max-height: 220px; }
.lt-big .ink { fill: none; stroke: var(--graphite); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
/* a stroke is one dash the length of the whole stroke (pathLength 1), so moving the dash writes it from its start */
.lt-big path.ink { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.lt-big .ink.dot { fill: var(--graphite); stroke: none; transform-box: fill-box; transform-origin: center; }
.lt-big .ghost { fill: none; stroke: #dfe2e6; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.lt-big .arr { fill: var(--red); stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.lt-big .st { fill: var(--yellow); stroke: var(--graphite); stroke-width: 1.3; }
.lt-big .num { font: 700 16px var(--font); fill: var(--graphite); stroke: #fff; stroke-width: 3.6; stroke-linejoin: round; paint-order: stroke; text-anchor: middle; }
.lt-big .rule line { stroke: var(--blue); stroke-width: 1.6; }
.lt-big .rule .m { stroke-dasharray: 8 6; }
.lt-big .rule .b { stroke: var(--red); stroke-width: 2; }
.lt-say .lt-name { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.lt-say .btn { min-height: 44px; }
.lt-steps { margin: 0; padding: 0 0 0 1.3em; font-size: 17px; line-height: 25px; }
.lt-steps.one { list-style: none; padding-left: 0; }
.pg .lt-steps li { margin: 0 0 4px; font-size: inherit; line-height: inherit; }
.lt-wrap .lt { scroll-margin-top: calc(var(--top-h) + var(--lt-stage-h, 0px) + 18px); scroll-margin-bottom: 12px; }
.lt-h { font-size: 19px; line-height: 26px; font-weight: 700; margin: 22px 0 8px; }
.lt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.pg .lt-grid li { margin: 0; }
.lt { position: relative; display: flex; flex-direction: column; align-items: center; background: #fff; border: 1.5px solid rgba(51,54,59,.3); border-radius: 6px; padding: 6px 4px 2px; }
.lt svg { display: block; height: 96px; width: auto; max-width: 100%; }
.lt .lt-c { font-size: 14px; line-height: 18px; }
.lt button { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; border-radius: 6px; cursor: pointer; padding: 0; }
.lt button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.lt:has(button[aria-pressed="true"]) { border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); background: #fffbea; }
.lt:hover:has(button) { border-color: var(--graphite); }

/* The guide */
.guide .pg-in > h2 { scroll-margin-top: calc(var(--top-h) + 20px); }
.guide figure { margin: 26px 0 30px; }
.guide figure img { display: block; width: 100%; height: auto; }
.guide figcaption { font-size: 15px; line-height: 22px; margin-top: 6px; }
.guide blockquote { margin: 16px 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); }
.guide blockquote p { font-size: 18px; line-height: 29px; margin: 0 0 4px; }
.guide blockquote footer { font-size: 15px; line-height: 22px; }
.tbl-scroll { overflow-x: auto; margin: 14px 0 10px; }
.sizes { width: 100%; border-collapse: collapse; margin: 0; font-size: 17px; line-height: 25px; }
.sizes th, .sizes td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid #c7cbd1; vertical-align: top; }
.sizes thead th { font-weight: 700; border-bottom: 1.5px solid var(--graphite); }
.sizes tbody th { font-weight: 400; }
@media (max-width: 520px) {
  .sizes, .sizes tbody, .sizes tr, .sizes th, .sizes td { display: block; }
  .sizes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sizes tr { padding: 10px 0; border-bottom: 1px solid #c7cbd1; }
  .sizes tbody th, .sizes td { border: 0; padding: 2px 0; }
  .sizes tbody th { font-weight: 700; }
  .sizes td::before { content: attr(data-label) ": "; }
}
.three { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 22px; align-items: center; margin: 14px 0 6px; }
.three svg { display: block; width: 100%; height: auto; }
.three ul { margin: 0; }
.next-card { margin-top: 8px; }

@media (max-width: 960px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hp { padding: 36px 12px 48px; }
  .hp-head p { font-size: 18px; line-height: 28px; }
  .hp-form { padding: 18px 16px 16px; box-shadow: 4px 4px 0 var(--manila); }
  .hp-preview { padding: 14px; }
  .hp-sheets { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px; }
  .hp-sheets.one { grid-template-columns: minmax(0, 1fr); }
  .sizes { font-size: 16px; line-height: 24px; }
  html.hp-on .lt-stage { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); grid-template-areas: "big say" "steps steps"; padding: 10px 12px; gap: 6px 14px; }
  .lt-say { flex-direction: column; align-items: flex-start; justify-content: center; align-self: center; }
  .lt-steps { font-size: 15px; line-height: 21px; }
  .pg .lt-steps li { margin-bottom: 2px; }
  .lt-say .lt-name { font-size: 19px; }
  .lt svg { height: 80px; }
  .lt-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
  .three { grid-template-columns: minmax(0, 1fr); }
  .three svg { max-width: 300px; }
  /* phone-sized targets for the shared menu and footer on this page */
  .top .menu summary { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .top .menu li a { min-height: 44px; display: flex; align-items: center; }
  .foot li { margin: 0; }
  .foot li a { min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
  .signup .tick { min-height: 44px; align-items: center; }
}
@media (max-width: 340px) {
  .hp-form .choices.two { grid-template-columns: minmax(0, 1fr); }
  .hp-sheets { grid-template-columns: minmax(0, 1fr); }
  html.hp-on .lt-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "big" "say" "steps"; }
  .lt-big svg { max-width: 140px; }
}

/* The print pages (blank sheets and the letter chart) */
.pp { padding-top: calc(var(--top-h) + 36px); }
.pp .hp-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; margin: 0 0 14px; }
.pp .hp-head p + p { margin-top: 12px; }
.pp .pp-back { font-size: 16px; line-height: 24px; margin-bottom: 10px; }
.pp .pp-do { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pp .pp-keys { font-size: 16px; line-height: 24px; }
.pp .pp-print { display: none; }
.pp-js .pp .pp-print { display: inline-flex; }
.pp .pp-others { margin-top: 16px; }
.pp .pp-others p { font-size: 16px; line-height: 24px; margin: 0 0 4px; }
.pp .pp-others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.pp .pp-others li { margin: 0; font-size: 16px; line-height: 24px; }
.pp .pp-others a { display: inline-block; padding: 10px 0; }
.pp .hp-preview { max-width: 1240px; margin: 0 auto; }
.pp .hp-sheets { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 520px)); }
/* a wide screen puts the words beside the sheet */
@media (min-width: 961px) {
  .pp.one-sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); column-gap: 48px; align-items: start; max-width: calc(1240px + 2 * var(--gap)); margin: 0 auto; }
  .pp.one-sheet .hp-head { margin: 0; max-width: none; }
  .pp.one-sheet .hp-preview { margin: 0; max-width: none; }
  .pp.one-sheet .hp-sheets.one { grid-template-columns: minmax(0, 1fr); }
}
/* the chart's own sheets: the tiles laid out on a 7.25 x 9.9 in page */
.chart-sheet { padding: 3.5%; container-type: inline-size; }
.chart-sheet h2 { font-size: 4.2cqw; line-height: 1.2; margin: 0 0 1.2cqw; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: .35cqw; text-underline-offset: .8cqw; }
.chart-sheet p { font-size: 2.1cqw; line-height: 1.4; margin: 0 0 2cqw; }
.chart-sheet .lt-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4cqw; }
.chart-sheet .lt { border-radius: .8cqw; padding: .8cqw .4cqw .2cqw; border-color: rgba(51,54,59,.35); }
.chart-sheet .lt svg { height: 20cqw; }
.chart-sheet .lt-grid li { margin: 0; }
.chart-sheet .lt .lt-c { font-size: 2.1cqw; line-height: 1.3; }
.chart-sheet .lt-h { font-size: 2.6cqw; margin: 2.4cqw 0 1.2cqw; }
.chart-sheet .foot-note { position: absolute; right: 3.5%; bottom: 1.2%; font-size: 1.65cqw; color: #5d6168; margin: 0; }
/* page 2: capitals seven to a row, and the ten numbers on one row */
.chart-sheet.upper .lt-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.chart-sheet.upper .lt svg { height: 17.5cqw; }
.chart-sheet.upper .lt-grid.nums { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1cqw; }
.chart-sheet.upper .lt-grid.nums { gap: .6cqw; }
.chart-sheet.upper .lt-grid.nums .lt { padding-left: .1cqw; padding-right: .1cqw; }
.chart-sheet.upper .lt-grid.nums svg { height: 17cqw; }

/* Zoomed in to 200% on a phone: headings that fit whole words, and a header that scrolls away. */
@media (max-width: 300px) {
  .pp .hp-head h1 { font-size: 26px; line-height: 1.3; }
  .hp-band .band-card h1 { font-size: 22px; line-height: 1.35; }
  .pg h2 { font-size: 24px; line-height: 1.3; }
}
@media (max-height: 480px) {
  .top { position: absolute; }
}

/* Printing: only the sheets, each at 7.25 x 9.9 in. The page size comes from the paper chosen (a style the maker
   writes); with scripts off, the printer's own paper is used, and the sheet fits US Letter and A4 alike. */
@page { margin: 0.5in; }
@media print {
  html, body { background: #fff !important; }
  body { margin: 0; padding: 0 !important; }
  .top, .foot, .hp-band, .hp-head, .hp-form, .hp-nojs, .guide, .pg-free, .blank-sec, .skip, .hp-preview-head { display: none !important; }
  main { padding: 0 !important; }
  .hp { padding: 0 !important; }
  .pp, .pp.one-sheet { display: block; max-width: none; }
  .hp-grid { display: block; max-width: none; }
  .hp-preview, .hp-grid > .hp-preview { background: none; padding: 0; position: static; }
  .hp-sheets, .hp-sheets.one { display: block; }
  .hp-scroll, .hp-scroll.big { overflow: visible; max-height: none; padding: 0; }
  .sheet-wrap { margin: 0; break-inside: avoid; break-after: page; }
  .sheet-wrap:last-child { break-after: auto; }
  .sheet-wrap figcaption { display: none; }
  .sheet { width: 7.25in !important; height: 9.9in; aspect-ratio: auto; margin: 0 auto; box-shadow: none !important; }
  .chart-sheet .lt { break-inside: avoid; }
}
