/* Electrician Job Estimator landing.
   The app's own grammar at page size: paper, black print, one green-and-yellow
   striped band, yellow numbered squares, thin ink outlines, no shadows. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f4ef;
  --sheet: #ffffff;
  --ink: #14171a;
  --text: #2b3136;
  --muted: #4d555c;
  --green: #157f3c;
  --yellow: #f4d224;
  --yellow-soft: #fbf4cc;
  --yellow-edge: #d8b90e;
  --slate: #7b8690;
  --mist: #bfc6cb;
  --line: 1.5px solid var(--ink);
  --rule: 3px solid var(--ink);
  --r: 6px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
  --gut: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.08;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1304px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--yellow);
  border: var(--line);
  border-radius: var(--r);
  font-weight: 600;
}

.skip:focus {
  top: 8px;
}

/* ---------- shared pieces ---------- */

.band {
  height: 14px;
  background: repeating-linear-gradient(135deg, var(--green) 0 12px, var(--yellow) 12px 24px);
  border-bottom: var(--rule);
}

.sq {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  line-height: 1;
}

.kicker {
  color: var(--muted);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--yellow);
  border: var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.callout {
  padding: 14px 16px;
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow-edge);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 1rem;
}

.smallprint {
  color: var(--muted);
  font-size: 0.95rem;
}

.textlink {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 22px;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
}

a.play:hover {
  background: var(--ink);
  color: #fff;
}

.play--pending {
  background: transparent;
  border-style: dashed;
  color: var(--ink);
  cursor: default;
}

.play__icon {
  flex: none;
}

.frame {
  border: var(--rule);
  background: var(--sheet);
  box-shadow: 12px 12px 0 var(--ink); /* a solid offset block, as in the store graphics */
}

.frame img {
  width: 100%;
}

.crop {
  overflow: hidden;
  border: var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

.crop img {
  width: 100%;
}

/* ---------- header ---------- */

.top {
  background: var(--sheet);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.brand__name {
  overflow: hidden;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  flex: none;
}

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--yellow);
}

/* ---------- hero ---------- */

.hero {
  overflow: hidden;
  border-bottom: var(--rule);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 64px;
  padding-top: 64px;
}

.hero__text {
  padding-bottom: 64px;
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.2rem);
  line-height: 1;
}

.hero__line {
  display: flex;
  align-items: center;
  gap: 0.24em;
  padding: 0.07em 0;
}

.hero__line .sq {
  width: 1.5em;
  height: 1.5em;
  border-width: 3px;
  font-size: 0.56em;
}

.hero__lead {
  max-width: 38em;
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero__note {
  max-width: 34em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  list-style: none;
}

.facts li {
  padding: 4px 10px;
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__shot {
  position: relative;
  min-height: 520px;
}

.hero__shot .frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 14px;
}

/* ---------- the example job ---------- */

.run {
  padding: 56px 0;
  background: var(--sheet);
  border-bottom: var(--rule);
}

.run__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.run__title {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
}

.run__job {
  margin-top: 10px;
  color: var(--muted);
}

.run__job strong {
  margin-right: 10px;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
}

.bar {
  display: flex;
  height: 48px;
  margin-top: 24px;
  overflow: hidden;
  border: var(--rule);
  border-radius: var(--r);
}

.bar__seg {
  flex: 1 1 0;
  min-width: 0;
}

.bar__seg + .bar__seg {
  border-left: 1.5px solid var(--ink);
}

.bar__seg--labour,
.dot--labour {
  background: var(--ink);
}
.bar__seg--materials,
.dot--materials {
  background: var(--green);
}
.bar__seg--travel,
.dot--travel {
  background: var(--slate);
}
.bar__seg--extras,
.dot--extras {
  background: var(--mist);
}
.bar__seg--markup,
.dot--markup {
  background: var(--yellow);
}

.bar__seg--materials {
  border-left-color: var(--sheet) !important;
}

.dot {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: var(--line);
  border-radius: 3px;
  vertical-align: -2px;
}

.parts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  border-top: var(--line);
  border-bottom: var(--line);
}

.parts__cell {
  padding: 14px 16px 14px 0;
}

.parts__cell + .parts__cell {
  padding-left: 16px;
  border-left: var(--line);
}

.parts dt {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.3;
}

.parts dd {
  margin-top: 6px;
  padding-left: 24px;
}

.parts dd b,
.totals dd,
.sums__fig b,
.figline b {
  font-family: var(--head);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.parts dd b {
  font-size: 1.6rem;
  line-height: 1.1;
}

.parts dd span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.totals {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 20px;
  margin-top: 24px;
}

.totals__cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.totals dt {
  color: var(--muted);
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.totals dd {
  font-size: 2.1rem;
  line-height: 1.1;
}

.totals__op {
  align-self: center;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 2rem;
}

.totals__cell--total {
  padding: 12px 22px;
  background: var(--yellow);
  border: var(--rule);
  border-radius: var(--r);
}

.totals__cell--total dt {
  color: var(--ink);
}

.totals__cell--total dd {
  font-size: 3rem;
}

.run__note {
  max-width: 46em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- chapters ---------- */

.chapter {
  padding: 88px 0 96px;
  border-bottom: var(--rule);
}

.chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 22em);
  align-items: end;
  gap: 12px 28px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: var(--line);
}

.chapter__head h2 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  line-height: 0.95;
}

.chapter__head p {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.4;
}

.sq--lg {
  width: 1.45em;
  height: 1.45em;
  border-width: 3px;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.3rem);
}

.chapter h3 {
  font-size: 1.7rem;
}

.chapter h3 + p,
.chapter p + p {
  margin-top: 14px;
}

/* 1 — build */

.build {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.build__text {
  max-width: 40em;
}

.build__text .callout {
  margin-top: 24px;
}

.build__shot {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  padding-right: 12px;
}

.frame--window {
  max-height: 540px;
  overflow: hidden;
}

.build__shot figcaption {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 1 — the order of the sums */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
  margin-top: 88px;
}

.ledger__head {
  position: sticky;
  top: 24px;
}

.sums {
  list-style: none;
  border-top: var(--rule);
}

.sums__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(170px, auto);
  gap: 4px 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: var(--line);
}

.sums__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
}

.sums__what b {
  display: block;
  color: var(--ink);
  font-family: var(--head);
  font-size: 1.35rem;
  line-height: 1.2;
}

.sums__what span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.98rem;
}

.sums__fig {
  text-align: right;
}

.sums__fig span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.sums__fig b {
  display: block;
  font-size: 1.6rem;
  line-height: 1.15;
}

.sums__row--net {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--sheet);
}

.sums__row--total {
  padding-left: 12px;
  padding-right: 12px;
  background: var(--yellow);
  border-bottom: var(--rule);
}

.sums__row--total .sums__what span,
.sums__row--total .sums__fig span {
  color: var(--ink);
}

.sums__row--total .sums__fig b {
  font-size: 2rem;
}

/* 1 — markup and VAT */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 88px;
}

.pair__item h3 {
  margin-top: 24px;
}

/* 2 — options and stages */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 32px 56px;
}

.duo__item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 32px;
  align-items: start;
}

.figline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 20px !important;
  padding: 12px 0;
  border-top: var(--line);
  border-bottom: var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.figline b {
  font-size: 1.7rem;
  line-height: 1.1;
}

.chapter > .wrap > .smallprint {
  margin-top: 32px;
}

/* 3 — the two copies */

.copies {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.copies__col {
  padding-top: 20px;
  border-top: var(--rule);
}

.copies__col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
}

.mark--yes {
  background: var(--green);
}

.mark--yes::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.mark--no {
  background: linear-gradient(135deg, transparent 0 44%, var(--ink) 44% 56%, transparent 56%) var(--yellow);
}

.ticks {
  margin-top: 16px;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1.5px solid var(--mist);
  line-height: 1.4;
}

.ticks li:first-child {
  border-top: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 6px;
  height: 11px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.ticks--no li::before {
  left: 0;
  top: 21px;
  width: 14px;
  height: 0;
  border-width: 0 0 2.5px 0;
  border-color: var(--ink);
  transform: none;
}

.copies__col--never p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.copies__shot p {
  margin-top: 20px;
}

/* ---------- also in the app ---------- */

.kit {
  padding: 80px 0;
  background: var(--sheet);
  border-bottom: var(--rule);
}

.kit__in,
.limits__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}

.kit h2,
.limits h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
  line-height: 1;
}

.kit__in > div > p,
.limits__in > div > p {
  max-width: 24em;
  margin-top: 14px;
  color: var(--muted);
}

.kit__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.kit__list > div {
  padding: 18px 0 22px;
  border-top: var(--line);
}

.kit__list dt {
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.kit__list dd {
  margin-top: 6px;
  font-size: 1rem;
}

/* ---------- on the phone ---------- */

.phone {
  padding: 88px 0;
  background: var(--green);
  border-bottom: var(--rule);
  color: #fff;
}

.phone__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
}

.phone h2 {
  color: #fff;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem);
  line-height: 0.98;
}

.phone__head p {
  font-size: 1.1rem;
  line-height: 1.45;
}

.phone__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  list-style: none;
}

.phone__grid li {
  padding: 18px 18px 20px;
  border: 1.5px solid #fff;
  border-radius: var(--r);
}

.phone__grid h3 {
  color: #fff;
  font-size: 1.35rem;
}

.phone__grid p {
  margin-top: 8px;
  font-size: 1rem;
}

.warn {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px 48px;
  align-items: start;
  margin-top: 16px;
  padding: 24px;
  background: var(--yellow);
  border: var(--rule);
  border-radius: var(--r);
  color: var(--ink);
}

.warn h3 {
  grid-row: span 2;
  font-size: 2rem;
  line-height: 1;
}

.warn .textlink {
  justify-self: start;
  color: var(--ink);
}

/* ---------- limits ---------- */

.limits {
  padding: 80px 0;
  border-bottom: var(--rule);
}

.limits__list {
  list-style: none;
  counter-reset: lim;
  border-bottom: var(--line);
}

.limits__list li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-top: var(--line);
  color: var(--ink);
  counter-increment: lim;
}

.limits__list li::before {
  content: counter(lim);
  position: absolute;
  left: 0;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- download ---------- */

.get {
  padding: 88px 0;
  background: var(--sheet);
}

.get__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: center;
}

.get h2 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem);
  line-height: 0.96;
}

.get__side p {
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  background: var(--paper);
}

.foot .band {
  border-top: var(--rule);
}

.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.foot__id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot__id strong {
  display: block;
  color: var(--ink);
  font-family: var(--head);
  font-size: 1.35rem;
  line-height: 1.15;
}

.foot__id span,
.foot__mail span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  list-style: none;
}

.foot__nav a {
  display: inline-block;
  padding: 6px 0;
}

.foot__mail a {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
}

.foot__small {
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__small p {
  max-width: 62em;
  padding-top: 0;
}

.foot__small p:first-child {
  padding-top: 20px;
  border-top: var(--line);
  max-width: none;
}

/* ---------- document pages ---------- */

.doc {
  padding: 64px 0 104px;
}

.doc__head {
  padding-bottom: 36px;
  border-bottom: var(--rule);
}

.doc__head h1 {
  max-width: 16em;
  margin-top: 14px;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem);
  line-height: 0.98;
}

.doc__lead {
  max-width: 40em;
  margin-top: 20px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.5;
}

.doc__meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
  margin-top: 48px;
}

.doc__toc {
  position: sticky;
  top: 24px;
  padding: 18px 20px;
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
}

.doc__toc ol {
  padding-left: 1.4em;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
}

.doc__toc li {
  padding: 3px 0;
}

.doc__toc a {
  display: inline-block;
  padding: 3px 0;
  text-decoration-thickness: 1.5px;
}

.doc__body {
  max-width: 780px;
}

.doc__body section + section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: var(--line);
}

.doc__body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  scroll-margin-top: 24px;
}

.doc__body h2 .sq {
  font-size: 1.15rem;
}

.doc__body p,
.doc__body ul,
.doc__body .tablewrap {
  margin-top: 16px;
}

.doc__body ul {
  padding-left: 1.2em;
}

.doc__body li + li {
  margin-top: 8px;
}

.doc__body li::marker {
  color: var(--green);
}

.tablewrap {
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.4;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody th {
  width: 44%;
  color: var(--ink);
  font-weight: 600;
}

tbody tr + tr > * {
  border-top: 1.5px solid var(--mist);
}

/* support */

.contact {
  position: sticky;
  top: 24px;
  padding: 22px 22px 24px;
  background: var(--sheet);
  border: var(--rule);
  box-shadow: 10px 10px 0 var(--ink);
}

.contact h2 {
  font-size: 1.6rem;
}

.contact h3 {
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--line);
  font-size: 1.2rem;
}

.contact__mail {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 0;
  color: var(--green);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact p,
.contact ul {
  margin-top: 10px;
  font-size: 0.98rem;
}

.contact ul {
  padding-left: 1.2em;
}

.contact li + li {
  margin-top: 6px;
}

.contact__note {
  padding: 12px 14px;
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow-edge);
  border-radius: var(--r);
  color: var(--ink);
}

.faq__title {
  font-size: 2rem !important;
}

.faq {
  margin-top: 20px;
  border-bottom: var(--line);
}

.faq details {
  border-top: var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 16px 48px 16px 0;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--sheet);
  border: var(--line);
  border-radius: var(--r);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
  background: var(--yellow);
}

.faq details p {
  max-width: 44em;
  margin: 0;
  padding: 0 48px 20px 0;
}

.doc__body > .smallprint {
  margin-top: 24px;
}

/* changelog */

.log {
  margin-top: 48px;
}

.log__item {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 16px 72px;
  align-items: start;
  padding: 28px 0 36px;
  border-bottom: var(--line);
}

.log__ver {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
}

.log__ver .sq {
  font-size: 1.15rem;
}

.log__item h2 {
  font-size: 1.8rem;
}

.log__item ul {
  max-width: 44em;
  margin-top: 14px;
  padding-left: 1.2em;
}

.log__item li + li {
  margin-top: 6px;
}

.log__item li::marker {
  color: var(--green);
}

.log__item .smallprint,
.log + .smallprint {
  margin-top: 20px;
}

/* 404 */

.lost {
  max-width: 34em;
  margin-top: 32px;
  list-style: none;
  border-bottom: var(--line);
}

.lost li {
  border-top: var(--line);
}

.lost a {
  display: block;
  padding: 14px 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.35rem;
}

/* ---------- narrower screens ---------- */

@media (max-width: 1080px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 40px;
  }

  .parts {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .parts__cell,
  .parts__cell + .parts__cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-left: 0;
    border-bottom: var(--line);
  }

  .parts dd {
    flex: none;
    margin-top: 0;
    padding-left: 0;
    text-align: right;
  }

  .parts dd b {
    font-size: 1.35rem;
  }

  .ledger,
  .kit__in,
  .limits__in,
  .copies {
    grid-template-columns: 1fr;
  }

  .ledger {
    gap: 28px;
  }

  .ledger__head {
    position: static;
    max-width: 40em;
  }

  .copies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .copies__shot {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
  }

  .copies__shot .crop {
    grid-row: span 2;
  }

  .copies__shot p {
    margin-top: 0;
  }

  .phone__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc__grid,
  .log__item {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 32px 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --gut: 16px;
  }

  body {
    font-size: 1rem;
  }

  .top__in {
    min-height: 56px;
    gap: 10px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .nav__wide {
    display: none;
  }

  .nav ul {
    gap: 14px;
  }

  .nav a {
    padding: 14px 0;
    font-size: 0.95rem;
  }

  .hero__in {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 36px;
  }

  .hero__text {
    padding-bottom: 36px;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .hero__cta {
    margin-top: 24px;
  }

  .facts {
    margin-top: 24px;
  }

  .hero__shot {
    min-height: 0;
    height: 330px;
    margin-right: -2px;
  }

  .hero__shot .frame {
    left: 0;
    right: 12px;
    box-shadow: 10px 10px 0 var(--ink);
  }

  .run {
    padding: 40px 0;
  }

  .bar {
    height: 40px;
  }

  .totals {
    display: block;
    margin-top: 8px;
  }

  .totals__op {
    display: none;
  }

  .totals__cell {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: var(--line);
  }

  .totals dd {
    font-size: 1.5rem;
  }

  .totals__cell--total {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 16px;
    padding: 12px 16px;
    border: var(--rule);
  }

  .totals__cell--total dd {
    font-size: 2.6rem;
  }

  .chapter {
    padding: 56px 0 64px;
  }

  .chapter__head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 20px;
  }

  .chapter__head p {
    grid-column: 1 / -1;
    font-size: 1.05rem;
  }

  .chapter h3 {
    font-size: 1.5rem;
  }

  .build,
  .pair,
  .duo,
  .phone__head,
  .get__in,
  .warn,
  .foot__in,
  .doc__grid,
  .log__item {
    grid-template-columns: 1fr;
  }

  .build {
    gap: 32px;
  }

  .build__shot {
    justify-self: start;
    max-width: none;
    padding-right: 10px;
  }

  .frame--window {
    max-height: 400px;
    box-shadow: 10px 10px 0 var(--ink);
  }

  .ledger,
  .pair {
    margin-top: 56px;
  }

  .sums__row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px 0;
  }

  .sums__row--net,
  .sums__row--total {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sums__fig {
    grid-column: 2;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    border-top: 1.5px dotted var(--slate);
    text-align: left;
  }

  .sums__row--total .sums__fig {
    border-top-color: var(--ink);
  }

  .sums__fig b {
    flex: none;
    font-size: 1.4rem;
  }

  .sums__row--total .sums__fig b {
    font-size: 1.8rem;
  }

  .pair {
    gap: 44px;
  }

  .pair__item h3 {
    margin-top: 18px;
  }

  .duo {
    gap: 48px;
  }

  .duo__item {
    grid-row: auto;
    grid-template-rows: none;
    gap: 22px;
  }

  .crop--tall {
    max-height: 430px;
  }

  .copies {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .copies__shot {
    display: block;
  }

  .copies__shot p {
    margin-top: 16px;
  }

  .kit,
  .limits,
  .get {
    padding: 56px 0;
  }

  .kit__list {
    grid-template-columns: 1fr;
  }

  .phone {
    padding: 56px 0;
  }

  .phone__grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 32px;
  }

  .warn {
    gap: 8px;
    margin-top: 10px;
    padding: 18px 16px 20px;
  }

  .warn h3 {
    grid-row: auto;
    font-size: 1.7rem;
  }

  .foot__in {
    gap: 24px;
    padding-top: 36px;
  }

  .doc {
    padding: 40px 0 64px;
  }

  .doc__head {
    padding-bottom: 28px;
  }

  .doc__lead {
    font-size: 1.08rem;
  }

  .doc__grid {
    margin-top: 28px;
    gap: 36px;
  }

  .doc__toc,
  .contact {
    position: static;
  }

  .contact {
    margin-right: 10px;
  }

  .doc__body h2 {
    align-items: flex-start;
    font-size: 1.55rem;
  }

  .doc__body h2 .sq {
    margin-top: 1px;
    font-size: 1rem;
  }

  /* The data table becomes a stack of labelled cards. */
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: auto;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 12px 14px;
  }

  tbody tr + tr {
    border-top: 1.5px solid var(--ink);
  }

  tbody th,
  tbody td {
    padding: 0;
    width: auto;
  }

  tbody tr + tr > * {
    border-top: 0;
  }

  tbody td {
    margin-top: 6px;
    color: var(--muted);
  }

  tbody td:nth-of-type(1)::before {
    content: "Entered by: ";
    color: var(--ink);
    font-weight: 600;
  }

  tbody td:nth-of-type(2)::before {
    content: "Personal data? ";
    color: var(--ink);
    font-weight: 600;
  }

  .faq summary {
    font-size: 1.2rem;
  }

  .faq details p {
    padding-right: 0;
  }

  .log {
    margin-top: 24px;
  }
}

@media (max-width: 360px) {
  .brand__name {
    font-size: 1rem;
  }

  .nav ul {
    gap: 10px;
  }
}

@media print {
  .top .nav,
  .skip,
  .play {
    display: none;
  }
}
