/* Unit layout option 2 "Period Strip": the online reader (design/unit/option_2/unit.css).
   Loaded after the theme's site.css on the unit pages. The page already lies in its bed: the site's Jurassic rail
   runs down the left edge of every curriculum page as the strip runs down the PDF. The banner is the bed of page
   one: the pale Jurassic tint, black type, the unit line in the deep Jurassic of the key results, a 2 px contact
   at its base, no photograph. Boxes are filled beds: the pale tint of the box as ground and a title bar in the
   strong tone with the kind of box and the title in white, as the PDF draws them. Fonts: the site's Encode Sans
   Expanded and Charis SIL, already loaded by tokens.css. */

/* --------------------------------------------------------------- banner */
.reader-hero { background: var(--j-t); color: #000; border-bottom: 2px solid #000; }
.reader-hero img.bg, .reader-hero .credit { display: none; }
.reader-hero .wrap { max-width: 1140px; padding: 64px 28px 54px; }
.reader-hero .eyebrow { font: 600 15px/1.3 var(--sans); color: #1c8a9e; }
.reader-hero h1 { color: #000; font-size: clamp(34px, 4.4vw, 58px); margin: 14px 0 12px; max-width: 16em; }
.reader-hero .sub { font: italic 400 clamp(18px, 1.6vw, 22px)/1.4 var(--serif); color: var(--grey); margin-bottom: 26px; max-width: 40em; }
.reader-hero .btn-light { background: #000; color: #fff; border-color: #000; }
.reader-hero .btn-light:hover { background: var(--pm); border-color: var(--pm); color: #000; }
.reader-hero .btn-ghost { background: transparent; color: #000; border-color: #000; }
.reader-hero .btn-ghost:hover { background: #000; color: #fff; }
.reader-hero :focus-visible { outline-color: #000; }

/* ----------------------------------------------------------------- text */
.toc a:hover, .toc a.is-active { border-color: var(--j); color: #000; }
.unit-text .secno { color: #1c8a9e; }
.unit-text figure img { border: 1px solid #000; }

/* ---------------------------------------------------------------- boxes */
.box { margin: 2.2em 0; border: 0; background: var(--bx-l); }
.box-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 20px 11px; background: var(--bx); color: #fff; }
.box-kind { color: #fff; opacity: .92; font: 600 12px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.box-title { color: #fff; font: 700 17px/1.3 var(--sans); }
.box-body { padding: 14px 20px 6px; }
.box-keyequation .box-head, .box-law .box-head, .box-laws .box-head, .box-check .box-head, .box-interactive .box-head { background: var(--bx); color: #fff; }
.box-derivation { background: var(--bx-l); }
.box-derivation .box-head { background: var(--bx); color: #fff; border-bottom: 0; }
.box-example, .box-excursion { border: 0; background: var(--bx-l); }
.box-example .box-head, .box-excursion .box-head { background: var(--bx); color: #fff; padding-bottom: 11px; }
.box-excursion .box-title { font-style: italic; }
.box-research { border: 0; background: var(--bx-l); }
.box-research .box-head { display: grid; gap: 4px; background: var(--bx); color: #fff; padding: 14px 20px 14px; }
.box-research .box-kind { color: #fff; letter-spacing: .04em; }
.box-research .box-name { font: 800 20px/1.2 var(--sans); color: #fff; }
.box-research .box-inst { font: italic 400 16px/1.3 var(--serif); color: #d5efe6; }
.box-research .box-body { padding-top: 14px; }
.box-keypoints { border: 0; background: var(--bx-l); }
.box-keypoints .box-head { background: var(--bx); color: #fff; padding: 10px 20px 11px; }
.box-keypoints .box-kind { color: #fff; font-weight: 700; font-size: 13px; }
.box-keypoints .box-body { padding-top: 12px; }
/* the opening questions: a bed under a 2 px contact, the sentence in black, no bar */
.box-questions { border-top: 2px solid #000; }
.box-questions .box-head { background: transparent; color: #000; padding: 16px 20px 0; }
.box-questions .box-kind { color: #000; opacity: 1; font: 600 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.box-questions .box-body { padding-top: 6px; }
.box-check { border: 0; background: var(--bx-l); }
.box-check .check-result { border-top-color: rgba(201, 32, 74, .3); }
.box-interactive { border: 0; background: var(--bx-l); }
.paperlink { border-top: 1px solid #000; }

@media (max-width: 560px) {
  .reader-hero .wrap { padding: 40px 20px 36px; }
  .box-head, .box-body, .box-research .box-head, .box-keypoints .box-head, .box-questions .box-head { padding-left: 15px; padding-right: 15px; }
}
