/* sundayvisit.com.au/guides/large-print-emergency-contact-list/: one A4 page in large print to keep by the phone.
   Loaded after guides.css and puzzles.css (which give the buttons and the print rules), on this page only.
   The sheet is drawn as the paper it prints on, so what you type is what you get. On screen nothing is under
   18px (staticPageTextSize.test.ts). On paper every word is 18 point or bigger, the large print minimum in the
   South Australian Government's accessibility guidelines; Triple Zero (000) is about 50 point.
   Chrome 78: no flex gap, and a plain value before any clamp(). */

/* The opening: a big photo of the sheet by the phone, beside the title. */
.sv-guide-intro .wsp-actions { align-items: center; }
.nb-type-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 .25rem;
  font: 600 1.1875rem/1.2 var(--sans);
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.nb-type-link:hover { color: var(--pine-hover); }
.nb-type-link:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 900px) {
  .sv-hero-inner {
    max-width: none;
    grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
    grid-column-gap: 3.5rem;
    padding-right: 0;
    padding-left: 2rem;
    padding-left: max(2rem, calc((100vw - 74rem) / 2));
  }
  .sv-guide-photo { max-height: none; min-height: 30rem; height: 36rem; align-self: center; }
  .sv-guide-photo img { border-radius: 12px 0 0 12px; object-position: 60% 50%; }
}

/* The sheet. */
.wsp-puzzle.nb-sheet { padding: 0; background: none; box-shadow: none; }
.sv-guide .nb-how { margin: 0 0 1.25rem; font-size: 1.1875rem; }
.nb-paper {
  max-width: 49.625rem;
  margin: 0 auto;
  background: #fffdf9;
  color: var(--ink);
  border-radius: 4px;
  padding: 1.5rem 1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(19, 36, 59, .08), 0 30px 60px -36px rgba(19, 36, 59, .5);
  font-family: var(--sans);
  font-size: 1.25rem;
}
.nb-logo { display: block; height: 2.5rem; width: auto; margin-left: -.3rem; }
.sv-guide .nb-paper h2 {
  margin: .5rem 0 0;
  font: 400 2.5rem/1 var(--serif);
  font-size: 2.5rem;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
  letter-spacing: -.02em;
  color: var(--ink);
}

/* Triple Zero (000): the one band of colour. */
.nb-emergency { margin: 1.125rem 0 0; padding: 1rem 1rem 1.125rem; border-radius: 4px; background: var(--pine); color: #fff; }
.sv-guide .nb-emergency p { margin: 0; color: #fff; }
.sv-guide .nb-emergency .nb-emergency-what { font: 400 1.25rem/1.3 var(--sans); }
.sv-guide .nb-emergency .nb-emergency-num {
  margin: .125rem 0 0;
  font: 400 2rem/1.05 var(--serif);
  font-size: 2rem;
  font-size: clamp(2rem, .9rem + 4.4vw, 4.125rem);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.sv-guide .nb-emergency .nb-emergency-note { margin-top: .375rem; font: 400 1.25rem/1.4 var(--sans); }

/* Lines to type or write on. */
.nb-paper input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .25rem 0 .375rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font: 500 1.25rem/1.2 var(--sans);
  color: #1d3a8a;
  -webkit-appearance: none;
  appearance: none;
}
.nb-paper input:focus { outline: none; border-bottom-color: var(--pine); box-shadow: 0 2px 0 var(--pine); background: rgba(36, 84, 71, .05); }
.nb-label, .nb-colhead { display: block; font-size: 1.25rem; line-height: 1.3; color: var(--ink-soft); }
.nb-me { margin-top: 1.25rem; }
.nb-field { display: block; margin-top: .75rem; }
.nb-field .nb-label { margin-bottom: .25rem; }
.nb-people {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  grid-column-gap: 1rem;
  margin-top: .5rem;
}
.nb-cell input { min-height: 56px; }
.sv-guide .nb-sec h3 { margin: 1.75rem 0 0; font: 400 1.75rem/1.1 var(--serif); font-size: 1.75rem; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem); color: var(--ink); }

/* Help lines: who on the left, the number on the right. */
.sv-guide ul.nb-help { margin: .5rem 0 0; padding: 0; list-style: none; }
.sv-guide .nb-help li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding: .5rem 0;
  border-bottom: 1px solid #c9bfae;
}
.nb-who { margin-right: 1rem; font-size: 1.25rem; line-height: 1.35; }
.nb-num { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-guide .nb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 1.5rem 0 0; font-size: 1.125rem; color: var(--ink-soft); }
.nb-foot span:first-child { margin-right: 1rem; }
.nb-sheet .wsp-print-one { margin-top: 1.5rem; }
.nb-sources { max-width: var(--measure); }

/* SVWD-30: with 200% text on a phone the rem paddings stay at their standard-text px sizes and the text grows only
   as far as the numbers and names still fit. Standard text keeps its sizes; Chrome 78, which has no min(), keeps the
   rem sizes. */
@media (max-width: 30rem) {
  .nb-paper { padding-left: 1rem; padding-left: min(1rem, 16px); padding-right: 1rem; padding-right: min(1rem, 16px); }
  .nb-people { grid-template-columns: minmax(0, 1fr) 8.5rem; grid-template-columns: minmax(0, 1fr) min(8.5rem, 136px); grid-column-gap: 1rem; grid-column-gap: min(1rem, 16px); }
  /* The number keeps its standard-text size; with bigger text it grows no further than the screen allows, on one line. */
  .sv-guide .nb-emergency .nb-emergency-num { font-size: 2rem; font-size: min(clamp(2rem, .9rem + 4.4vw, 4.125rem), max(32px, calc(14.4px + 4.4vw))); }
  .sv-guide .nb-paper h2 { font-size: 2.5rem; font-size: min(clamp(2.5rem, 1.6rem + 3vw, 3.75rem), 52px); }
}

/* SVWD-34: the same between a phone and 640px, where 200% text pushed Triple Zero (000) 37px off a 540px screen. */
@media (min-width: 30.0625rem) and (max-width: 639.98px) {
  .nb-paper { padding-left: 1rem; padding-left: min(1rem, 16px); padding-right: 1rem; padding-right: min(1rem, 16px); }
  .nb-people { grid-template-columns: minmax(0, 1fr) 8.5rem; grid-template-columns: minmax(0, 1fr) min(8.5rem, 136px); grid-column-gap: 1rem; grid-column-gap: min(1rem, 16px); }
  .sv-guide .nb-emergency .nb-emergency-num { font-size: 2rem; font-size: min(clamp(2rem, .9rem + 4.4vw, 4.125rem), max(32px, calc(14.4px + 4.4vw))); }
  .sv-guide .nb-paper h2 { font-size: 2.5rem; font-size: min(clamp(2.5rem, 1.6rem + 3vw, 3.75rem), 52px); }
}

@media (min-width: 640px) {
  .nb-paper { padding: 2.375rem 3.625rem 1.875rem; font-size: 1.5rem; }
  .nb-logo { height: 3rem; }
  .sv-guide .nb-emergency .nb-emergency-what, .sv-guide .nb-emergency .nb-emergency-note, .nb-label, .nb-colhead, .nb-who, .sv-guide .nb-foot { font-size: 1.5rem; }
  .nb-emergency { padding: 1rem 1.625rem 1.125rem; }
  .nb-me { display: grid; grid-template-columns: minmax(0, 1fr) 15.625rem; grid-column-gap: 1.75rem; margin-top: 1.375rem; }
  .nb-field { margin-top: 0; }
  .nb-people { grid-template-columns: minmax(0, 1fr) 15.625rem; grid-column-gap: 1.75rem; }
  .nb-paper input { font-size: 1.625rem; }
  .nb-num { font-size: 1.6875rem; }
  /* SVWD-34: with enlarged text the paper's side padding and the phone column stay at their standard-text px sizes
     (the caps are the 110% root's, from 768px; below that the rem size is the smaller), so the lines to write on
     keep room at 700px with 200% text. Chrome 78, which has no min(), keeps the rem sizes. */
  .nb-paper { padding-left: 3.625rem; padding-left: min(3.625rem, 63.8px); padding-right: 3.625rem; padding-right: min(3.625rem, 63.8px); }
  .nb-me, .nb-people { grid-template-columns: minmax(0, 1fr) 15.625rem; grid-template-columns: minmax(0, 1fr) min(15.625rem, 275px); grid-column-gap: 1.75rem; grid-column-gap: min(1.75rem, 30.8px); }
}

/* On paper: one A4 page, the same layout, every word 18 point or bigger. */
@media print {
  .nb-how, .nb-sources-band, .nb-sheet .wsp-print-one { display: none !important; }
  .wsp-puzzle.nb-sheet { break-after: auto; }
  .nb-paper {
    max-width: none;
    margin: 0;
    padding: 0 2mm;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    font-size: 18pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .nb-logo { height: 12mm; margin-left: -1.5mm; }
  .sv-guide .nb-paper h2 { margin: 1.5mm 0 0; font-size: 44pt; }
  .nb-emergency { margin-top: 4mm; padding: 3.5mm 6mm 4mm; background: #245447 !important; }
  .sv-guide .nb-emergency .nb-emergency-what, .sv-guide .nb-emergency .nb-emergency-note { font-size: 18pt; }
  .sv-guide .nb-emergency .nb-emergency-num { font-size: 48pt; }
  .sv-guide .nb-emergency .nb-emergency-note { margin-top: 1mm; line-height: 1.3; }
  .nb-me { display: grid; grid-template-columns: minmax(0, 1fr) 64mm; grid-column-gap: 7mm; margin-top: 5mm; }
  .nb-field { margin-top: 0; }
  .nb-label, .nb-colhead, .nb-who, .sv-guide .nb-foot { font-size: 18pt; }
  .nb-paper input { min-height: 0; height: 10mm; padding: 0 0 1mm; font-size: 19pt; border-bottom: 1.2pt solid #13243b; }
  .nb-people { grid-template-columns: minmax(0, 1fr) 64mm; grid-column-gap: 7mm; margin-top: 1mm; }
  .nb-cell input { min-height: 0; height: 12mm; }
  .sv-guide .nb-sec h3 { margin-top: 5mm; font-size: 25pt; }
  .sv-guide ul.nb-help { margin-top: 1.5mm; }
  .sv-guide .nb-help li { padding: 1.3mm 0; break-inside: avoid; }
  .nb-num { font-size: 20pt; }
  .sv-guide .nb-foot { margin-top: 5mm; }
}
