/* Statistics Masterclass, unit layout option 2 "Colour Bands": the online reader (design/unit/option_2/unit.css).
   Loaded after the theme's site.css on the unit pages only. The hero is the site's cool band under a Sidenote
   Blue band, without the photograph; the boxes are filled with their light tint and carry a title bar in their
   strong tone; the section numbers stand on small blue bands. Fonts as the site: Frank Ruhl Libre and Hind. */

/* ------------------------------------------------------------------ hero */
.reader-hero { background: var(--tint-c); border-top: 14px solid var(--blue); border-bottom: 1px solid var(--tint-c-hair); }
.reader-hero img.bg { display: none; }
.reader-hero .wrap { max-width: var(--wrap); padding-top: clamp(44px, 5.5vw, 72px); padding-bottom: clamp(40px, 5vw, 60px); }
.reader-hero .wrap > * { max-width: 68%; }
.reader-hero .eyebrow { font: 600 .9375rem/1.4 var(--sans); color: var(--blue); }
.reader-hero h1 { font: 700 clamp(2.2rem, 4.2vw, 3.6rem)/1.06 var(--serif); letter-spacing: -.018em; color: var(--ink); margin: 12px 0 14px; }
.reader-hero .sub { font: 400 italic 1.25rem/1.45 var(--serif); color: var(--ink-2); }
.reader-hero .reader-actions { margin-top: 24px; }
.reader-hero .credit { display: none; }
@media (max-width: 1040px) { .reader-hero .wrap > * { max-width: none; } }

/* ---------------------------------------------------------------- reader */
.toc .eyebrow { font: 600 .9375rem/1.4 var(--sans); color: var(--blue); background: var(--tint-c); padding: 8px 12px; }
.toc a { border-left: 1px solid var(--tint-c-hair); color: var(--ink-2); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--blue); }
.unit-text h2 { font: 700 1.875rem/1.2 var(--serif); border-bottom: 1px solid var(--tint-c-hair); padding-bottom: .35em; }
.unit-text h2 .secno { display: inline-block; font: 600 .5em/1 var(--sans); color: #fff; background: var(--blue); padding: .32em .45em .22em; margin-right: .7em; vertical-align: .28em; }
.unit-text h3 { font: 700 1.375rem/1.3 var(--serif); }
.unit-text h3 .secno { font: 600 .72em/1 var(--sans); color: var(--blue); vertical-align: .1em; margin-right: .5em; }
.unit-text h4 { font: 600 1rem/1.4 var(--sans); font-style: normal; color: var(--blue); }

/* ----------------------------------------------------------------- boxes */
/* Filled: the light tint as ground, no frame, a title bar in the strong tone with white text. */
.box, .box-keyequation, .box-law, .box-laws, .box-example, .box-excursion, .box-research, .box-keypoints, .box-check, .box-interactive {
  border: 0; background: var(--bx-l); margin: 1.9em 0; }
.box-head, .box-keyequation .box-head, .box-law .box-head, .box-laws .box-head, .box-example .box-head, .box-excursion .box-head, .box-research .box-head, .box-keypoints .box-head, .box-check .box-head, .box-interactive .box-head {
  background: var(--bx); color: #fff; padding: 10px 20px 8px; gap: 2px 14px; align-items: baseline; }
.box-kind, .box-keyequation .box-kind, .box-law .box-kind, .box-laws .box-kind, .box-research .box-kind, .box-keypoints .box-kind, .box-check .box-kind, .box-interactive .box-kind { font: 600 .875rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; opacity: .92; }
.box-title { font: 700 1.0625rem/1.4 var(--serif); color: #fff; }
.box-excursion .box-title { font-style: italic; font-weight: 400; }
.box-body, .box-keyequation .box-body, .box-law .box-body, .box-laws .box-body, .box-research .box-body, .box-check .box-body, .box-interactive .box-body { padding: 16px 20px 6px; }
/* Derivation: working on white with the bar in the tint and a blue rule at the left. */
.box-derivation { border: 1px solid var(--bx-l); border-left: 3px solid var(--bx); background: #fff; }
.box-derivation .box-head { background: var(--bx-l); color: var(--bx); border-bottom: 0; padding: 10px 20px 8px; }
.box-derivation .box-kind { color: var(--bx); font: 600 .875rem/1.4 var(--sans); }
.box-derivation .box-title { color: var(--ink); }
.box-research .box-head { display: grid; gap: 4px; padding: 14px 20px 12px; }
.box-research .box-name { font: 700 1.25rem/1.2 var(--serif); color: #fff; }
.box-research .box-inst { font: 400 .9375rem/1.3 var(--sans); color: #fff; opacity: .85; }
.box-research .box-lead { color: var(--bx); }
.box-keypoints { background: var(--bx-l); }
.box-keypoints .box-head { background: var(--bx); color: #fff; }
.box-keypoints .box-kind { color: #fff; }
.box-keypoints .box-body { padding-top: 14px; }
/* The questions box of the opening keeps a plain head in ochre on its tint: its heading is a sentence, not a label. */
.box-questions { background: #faf4e6; }
.box-questions .box-head { background: transparent; color: #8a6a1f; padding: 16px 20px 0; }
.box-questions .box-kind { color: #8a6a1f; opacity: 1; font: 600 1rem/1.4 var(--sans); }
.box-check .opt { border: 1px solid var(--tint-c-hair); background: #fff; }
.box-check .opt:hover, .box-check .opt:has(input:checked) { border-color: var(--bx); }
.box-interactive .ia-caption { color: var(--ink-2); font-family: var(--sans); }
.paperlink { border-top: 1px solid var(--tint-c-hair); }
.paperlink span { font: 600 .8125rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
@media (max-width: 560px) {
  .box-head, .box-body, .box-derivation .box-head, .box-research .box-head, .box-questions .box-head { padding-left: 15px; padding-right: 15px; }
}

/* ------------------------------------------------------- figures, tables */
.unit-text figcaption { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
.unit-text table { border: 1px solid var(--ink); font-family: var(--sans); }
.unit-text th { border-bottom: 1px solid var(--ink); font-weight: 600; background: var(--tint-c); }
.unit-pager { border-top: 1px solid var(--tint-c-hair); }
.reader-end { background: var(--blue); color: #fff; border: 0; }
