/*
 * Backlog Controller website (DESIGN.md 0.5). The firm issues a numbered set of sheets every
 * month, as a drawing set is issued, and the site takes three things from that world and
 * gives each real work: the title block (facts in ruled cells), the sheet number (a
 * reference that links to the sheet) and the dimension line (the close, measured in
 * business days). One blue, one ink, white paper, and a hi-vis yellow on the call and
 * nothing else. Barlow in three widths is the firm's voice, the family the mark is drawn
 * in; Century Schoolbook (TeX Gyre Schola) is the package's voice and appears wherever the
 * site quotes a sheet. Everything sits on one grid of twelve columns.
 */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/barlowcondensed-medium.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlowcondensed-semibold.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/barlowsemicondensed-medium.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlowsemicondensed-semibold.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/barlow-regular.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/barlow-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/barlow-medium.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/barlow-semibold.woff2) format("woff2"); }
@font-face { font-family: "TeX Gyre Schola"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/schola-regular.woff2) format("woff2"); }
@font-face { font-family: "TeX Gyre Schola"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/schola-bold.woff2) format("woff2"); }
@font-face { font-family: "TeX Gyre Schola"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/schola-italic.woff2) format("woff2"); }

/* Stand-ins while the faces load: a local face scaled to Barlow's widths and heights, so the
   page does not jump when the real one arrives. */
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 500 600; src: local("Arial Bold"), local("Arial"), local("Roboto Bold"), local("Roboto"), local("Liberation Sans Bold"), local("Liberation Sans"); size-adjust: 74%; ascent-override: 135%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Semi Condensed Fallback"; font-weight: 500 600; src: local("Arial"), local("Roboto"), local("Liberation Sans"); size-adjust: 86%; ascent-override: 116%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-weight: 400 600; src: local("Arial"), local("Roboto"), local("Liberation Sans"); size-adjust: 96.6%; ascent-override: 103.6%; descent-override: 20.7%; line-gap-override: 0%; }

:root {
  --blue: #2c3d8f;              /* blueline: the mark, the field, the rules of a title block, sheet numbers */
  --blue-press: #223073;
  --call: #ffd21f;              /* hi-vis yellow: the call, and nothing else */
  --call-press: #f0c000;
  --ink: #14182b;
  --meta: #565a70;
  --rule: #cdd1e1;
  --tint: #eceef6;              /* the desk a sheet lies on, where the field is not blue */
  --paper: #ffffff;
  --display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --label: "Barlow Semi Condensed", "Barlow Semi Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", "Barlow Fallback", "Helvetica Neue", Arial, sans-serif;
  --doc: "TeX Gyre Schola", "Century Schoolbook", Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1296px;
  --gut: clamp(24px, 3.4vw, 48px);      /* the gutter a column keeps on its right */
  --s: clamp(32px, 3.6vw, 52px);        /* between parts of one topic */
  --m: clamp(56px, 6.4vw, 92px);        /* between topics */
  --l: clamp(72px, 8.8vw, 128px);       /* before the closing band */
  --gutter: 14px;                       /* between table columns */
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  font-variant-ligatures: none;         /* Barlow's ffi reads as "tt" */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 96px;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(54px, 7.3vw, 104px); line-height: .94; letter-spacing: -.012em; }
h2 { font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.008em; }
h2.label, h3.label { font-size: clamp(27px, 2.4vw, 32px); line-height: 1.08; letter-spacing: 0; }
h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.12; }
p { max-width: 40rem; text-wrap: pretty; }
p + p { margin-top: .8em; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
.lead { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.45; }
.small { font-size: 15px; line-height: 1.5; color: var(--meta); }
.nowrap { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--ink); color: #fff; padding: 10px 14px; font: 600 16px/1 var(--text); text-decoration: none; }
a.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the grid */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.g > * { min-width: 0; padding-right: var(--gut); }
.g > :last-child, .g > .end { padding-right: 0; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }

/* ------------------------------------------------------------------ sections */
.band { padding: var(--m) 0; }
.band.close-top { padding-top: var(--s); }
.band.flush-top { padding-top: 0; }
.band.last { padding-bottom: var(--l); }
.tint { background: var(--tint); }
.head { margin-bottom: var(--s); }
.head .lead { margin-top: 16px; max-width: 38rem; }
.head.narrow { margin-bottom: 22px; }
.more { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.prose > * + * { margin-top: .8em; }
.prose h3 { margin-top: 1.5em; }
.prose h3:first-child { margin-top: 0; }
.note-below { margin-top: 20px; }

/* ------------------------------------------------------------------ buttons, sheet numbers */
.btn {
  display: inline-block;
  font: 600 17px/1 var(--text);
  padding: 15px 22px 16px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--blue);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue-press); color: #fff; }
.btn.line { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn.line:hover { background: var(--blue); color: #fff; }
.on-blue .btn { background: #fff; color: var(--blue); }
.on-blue .btn:hover { background: #e3e7f6; color: var(--blue-press); }
.on-blue .btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.on-blue .btn.line:hover { background: #fff; color: var(--blue); box-shadow: none; }
.btn.call, .on-blue .btn.call { background: var(--call); color: var(--ink); box-shadow: none; }
.btn.call:hover, .on-blue .btn.call:hover { background: var(--call-press); color: var(--ink); }
.on-blue a:hover { color: #fff; text-decoration-thickness: 2px; }
.on-blue :focus-visible { outline-color: #fff; }

/* A sheet number: the package's own reference, and on the site a link to that sheet. */
.no { font: 600 .86em/1 var(--label); color: var(--blue); letter-spacing: .01em; white-space: nowrap; }
a.no { display: inline-block; padding: 4px 7px 5px; box-shadow: inset 0 0 0 1.5px var(--blue); border-radius: 2px; text-decoration: none; }
a.no:hover { background: var(--blue); color: #fff; }
.catalog a.no, .rows a.no { justify-self: start; }

/* ------------------------------------------------------------------ header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.wordmark { display: block; color: var(--blue); flex: none; }
.wordmark:hover { color: var(--blue); }
.wordmark svg { display: block; height: 27px; width: auto; }
nav.pages { display: flex; gap: 26px; margin-left: 14px; }
nav.pages a { font: 500 16.5px/1.2 var(--text); text-decoration: none; white-space: nowrap; padding: 6px 0; }
nav.pages a:hover { color: var(--blue); }
nav.pages a[aria-current="page"] { box-shadow: 0 2px 0 var(--blue); }
.top-phone { margin-left: auto; font: 600 17px/1 var(--text); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
header.top .btn { padding: 13px 18px 14px; font-size: 16.5px; }
details.menu { display: none; }

/* ------------------------------------------------------------------ the field (first screen and page heads) */
.field { background: var(--blue); color: #fff; }
.hero .g { padding-top: clamp(40px, 5.4vw, 80px); }
.hero-say { padding-bottom: clamp(44px, 5vw, 76px); }
.hero h1 { margin-bottom: 20px; }
.hero .also { font: 500 clamp(25px, 2.5vw, 35px)/1.12 var(--display); max-width: 24ch; margin-bottom: 28px; text-wrap: balance; }
.hero .lead { max-width: 30rem; margin-top: 30px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.hero .after { margin-top: 12px; font-size: 16.5px; color: rgba(255, 255, 255, .86); }
.hero .after a { text-decoration-color: rgba(255, 255, 255, .5); white-space: nowrap; }
.hero-sheet { padding-bottom: clamp(44px, 5vw, 76px); }
.hero-sheet .caption { font: 500 14px/1.4 var(--label); color: rgba(255, 255, 255, .86); margin: 0 0 10px; max-width: none; }
@media (min-width: 1345px) { .hero .sheet table.fin td:first-child { white-space: nowrap; } }
/* A laptop is short: the call must sit in the first screen at 1366 by 768. */
@media (min-width: 901px) and (max-height: 860px) {
  .hero .g { padding-top: 40px; }
  .hero h1 { font-size: clamp(54px, 6.2vw, 86px); margin-bottom: 16px; }
  .hero .also { font-size: clamp(23px, 2.1vw, 30px); margin-bottom: 22px; }
}

.pagehead .wrap { padding-top: clamp(40px, 4.6vw, 68px); padding-bottom: clamp(36px, 4.2vw, 60px); }
.pagehead h1 { font-size: clamp(44px, 5.2vw, 76px); line-height: .97; max-width: 20ch; }
.pagehead .lead { margin-top: 20px; max-width: 40rem; }
.pagehead .actions { margin-top: 28px; }
.pagehead .g { align-items: end; }
.pagehead dl.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(255, 255, 255, .5); }
.pagehead dl.facts > div { padding: 12px 20px 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.pagehead dl.facts dt { font: 500 13px/1.25 var(--label); color: rgba(255, 255, 255, .74); }
.pagehead dl.facts dd { margin: 3px 0 0; font: 600 19px/1.25 var(--label); }
.pagehead dl.facts dd span { display: block; margin-top: 3px; font: 400 15px/1.4 var(--text); color: rgba(255, 255, 255, .88); }

/* ------------------------------------------------------------------ a sheet (paper, in the package's voice) */
.sheet {
  background: var(--paper);
  color: #1b1b1b;
  font-family: var(--doc);
  font-size: 15px;
  line-height: 1.46;
  font-variant-numeric: lining-nums tabular-nums;
  font-variant-ligatures: common-ligatures;
  padding: clamp(20px, 2.8vw, 40px) clamp(18px, 2.8vw, 40px) clamp(22px, 3vw, 40px);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 3px rgba(20, 24, 43, .1);
}
.field .sheet { box-shadow: 0 1px 0 rgba(6, 10, 36, .35), 0 4px 14px rgba(6, 10, 36, .3); }
.sheet p { max-width: none; }
.sheet-name { font: 600 19px/1.3 var(--label); margin: 0 0 6px; letter-spacing: 0; }
.sheet-name .no { font-size: 1em; margin-right: 9px; }
.sheet .finding { font-size: 16.5px; line-height: 1.42; margin: 0 0 18px; }
.sheet .sub-head { font: 600 15px/1.3 var(--label); margin: 0 0 6px; }
.sheet .sub-head.gap { margin-top: 20px; }
.sheet ol { margin: 0; padding-left: 1.5em; }
.sheet ol li { margin-bottom: 6px; }
.sheet .to { font: 500 13.5px/1.5 var(--label); color: var(--meta); margin-bottom: 14px; }
.hero .sheet, .hero .sheet table.fin { font-size: 14.5px; }
/* The package's title block, at the foot of a sheet shown on the site. */
.sheet-tb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; margin-top: 26px; border-top: 2px solid var(--blue); border-bottom: 1px solid var(--blue); }
.sheet-tb > div { padding: 6px 12px 7px; border-right: 1px solid var(--blue); min-width: 0; }
.sheet-tb > div:first-child { padding-left: 0; display: flex; align-items: center; color: var(--blue); }
.sheet-tb > div:last-child { border-right: 0; padding-right: 0; }
.sheet-tb .mark svg { display: block; height: 12.5px; width: auto; }
.sheet-tb .l { display: block; font: 500 11px/1.3 var(--label); color: var(--meta); }
.sheet-tb .v { display: block; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.sheet-tb .sn .v { font: 600 21px/1.05 var(--label); color: var(--blue); }
/* The owner's memo as it reads on S-1: the memo beside its decisions, the months beneath. */
.memo-sheet .cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(24px, 3.6vw, 52px); }
.memo-sheet .cols p + p { margin-top: .7em; }
.memo-sheet > .months { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* G-1 as the package prints it: the sheets by number, each a link to the sheet. */
.sheetlist { margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; }
.sheetlist .hd, .sheetlist a { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: baseline; }
.sheetlist .hd { margin: 0; font: 500 12.5px/1.25 var(--label); color: var(--meta); border-bottom: 1px solid #1b1b1b; padding-bottom: 5px; }
.sheetlist ol { list-style: none; padding: 0; margin: 0; }
.sheetlist li { margin: 0; }
.sheetlist a { padding: 6px 0 7px; text-decoration: none; }
.sheetlist a:hover .t { text-decoration: underline; }
.sheetlist .n { font: 600 15px/1.4 var(--label); color: var(--blue); }
/* A printed note or list on paper (the 24 steps, the arithmetic under W-1). */
.sheet ol.cal { list-style: none; padding: 0; columns: 2; column-gap: 36px; counter-reset: step; margin-top: 12px; }
.sheet ol.cal li { counter-increment: step; break-inside: avoid; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: 0 8px; padding: 4px 0; margin: 0; align-items: baseline; }
.sheet ol.cal li::before { content: counter(step) "."; color: var(--meta); }
.sheet ol.cal .day { white-space: nowrap; }
.sheet .printed { font-size: 14.5px; line-height: 1.5; }
.sheet .printed + .printed { margin-top: 10px; }

/* The sample's pages as drawings. */
.page { display: block; background: var(--paper); box-shadow: 0 0 0 1px var(--rule), 0 1px 3px rgba(20, 24, 43, .1); }
.page img { width: 100%; }
figcaption { font: 500 14px/1.45 var(--label); color: var(--meta); margin-top: 12px; }

/* ------------------------------------------------------------------ the title block (facts in ruled cells) */
.tb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--blue); }
.tb > div { padding: 13px 20px 17px; border-right: 1px solid var(--blue); min-width: 0; }
.tb > div:first-child { padding-left: 0; }
.tb > div:last-child { border-right: 0; padding-right: 0; }
.tb.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb .l { font: 500 13.5px/1.3 var(--label); color: var(--meta); margin-bottom: 3px; }
.tb .v { font: 600 clamp(22px, 2vw, 27px)/1.1 var(--display); }
.tb .s { font-size: 15px; line-height: 1.4; color: var(--meta); margin-top: 5px; }
.tb.says .s { font-size: 16.5px; line-height: 1.5; color: var(--ink); margin-top: 8px; }
.tb.says > div { padding-top: 16px; padding-bottom: 20px; }
.tb.says a { font-weight: 500; }

/* ------------------------------------------------------------------ ruled rows */
/* What the owner is dealing with, the sheet that answers it, what arrives. */
ul.rows { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.rows > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 20px 0 22px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows p { margin: 0; }
.rows .say { grid-column: span 5; padding-right: var(--gut); font: 500 clamp(22px, 2vw, 27px)/1.16 var(--display); text-wrap: balance; }
.rows .ref { grid-column: span 1; }
.rows .get { grid-column: span 6; font-size: 16.5px; line-height: 1.5; }
.rows.two .get { grid-column: span 7; }

/* Label and sentence, ruled (who gets what; the rules we hold to). */
dl.who { border-top: 1px solid var(--ink); }
dl.who > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 4px 28px; padding: 15px 0 17px; border-bottom: 1px solid var(--rule); align-items: baseline; }
dl.who dt { font: 600 21px/1.2 var(--display); }
dl.who dd { font-size: 16.5px; line-height: 1.5; }

/* Question and answer, in view, two across. */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
.qa > div { padding: 0 var(--gut) 0 0; }
.qa h3 { font: 600 clamp(20px, 1.7vw, 23px)/1.25 var(--label); letter-spacing: 0; margin-bottom: 6px; }
.qa p { font-size: 16.5px; line-height: 1.5; }

/* Plain lists. */
ul.plain { list-style: none; padding: 0; max-width: 40rem; }
ul.plain li { position: relative; padding-left: 1.25em; margin-bottom: .45em; }
ul.plain li::before { content: "\2013"; position: absolute; left: 0; color: var(--blue); }
ul.trades { columns: 3; column-gap: var(--gut); max-width: none; }
ul.trades li { break-inside: avoid; }

/* ------------------------------------------------------------------ the close, measured */
/* A dimension line over a count: one mark for each step due that business day. */
.ruler { color: var(--blue); margin: 0; }
.ruler .span { position: relative; height: 30px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.ruler .span::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px solid currentColor; }
.ruler .span i { position: absolute; top: 3px; width: 1.5px; height: 17px; background: currentColor; transform: rotate(45deg); }
.ruler .span i:first-of-type { left: -1px; }
.ruler .span i:last-of-type { right: -1px; }
.ruler .span span { position: absolute; left: 50%; top: 11px; transform: translate(-50%, -50%); background: var(--paper); padding: 0 16px; font: 600 clamp(19px, 1.7vw, 23px)/1 var(--display); white-space: nowrap; }
.tint .ruler .span span { background: var(--tint); }
.ruler ol { list-style: none; padding: 0; margin: 0 1px; display: flex; justify-content: space-between; align-items: flex-end; height: 96px; border-bottom: 1.5px solid currentColor; }
.ruler ol li { position: relative; width: 9px; display: flex; flex-direction: column-reverse; align-items: center; }
.ruler li em { display: block; width: 9px; height: calc(var(--n) * 10px); background: repeating-linear-gradient(to top, currentColor 0 7px, transparent 7px 10px); }
.ruler li b { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font: 500 13.5px/1 var(--label); color: var(--meta); }
.ruler li.n0 { --n: 0; } .ruler li.n1 { --n: 1; } .ruler li.n2 { --n: 2; } .ruler li.n3 { --n: 3; } .ruler li.n4 { --n: 4; } .ruler li.n7 { --n: 7; }
.ruler ul.due { list-style: none; padding: 0; margin: 34px 1px 0; display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); }
.ruler ul.due li { grid-row: 1; font: 500 13.5px/1.32 var(--label); color: var(--ink); text-align: center; text-wrap: balance; }
.ruler ul.due li.at0 { grid-column: 1 / span 20; text-align: left; color: var(--meta); text-wrap: pretty; }
.ruler ul.due li.at3 { grid-column: 27 / span 8; } .ruler ul.due li.at4 { grid-column: 37 / span 8; } .ruler ul.due li.at5 { grid-column: 47 / span 8; }
.ruler ul.due li.at6 { grid-column: 57 / span 8; } .ruler ul.due li.at7 { grid-column: 67 / span 8; } .ruler ul.due li.at8 { grid-column: 77 / span 8; }
.ruler ul.due li.at9 { grid-column: 87 / span 8; }
.ruler ul.due li.at10 { grid-column: 95 / -1; text-align: right; font-weight: 600; color: var(--blue); }
.ruler .ends { display: none; }
ol.days { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
ol.days li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: 0 18px; padding: 11px 0 12px; border-bottom: 1px solid var(--rule); align-items: baseline; }
ol.days .d { font: 600 21px/1.2 var(--display); color: var(--blue); }
ol.days .t { font-size: 16.5px; line-height: 1.45; }
ol.days .c { font: 500 14px/1.3 var(--label); color: var(--meta); white-space: nowrap; }
ol.days li:last-child .t { font-weight: 600; }

/* ------------------------------------------------------------------ the closing band */
.close-band { padding: var(--m) 0; }
.close-band h2 { font-size: clamp(42px, 5vw, 72px); line-height: .97; }
.close-band .lead { margin-top: 16px; max-width: 34rem; }
.close-band .reach { display: grid; gap: 16px; justify-items: start; align-self: end; }
.close-band .tel { font: 600 clamp(40px, 4.4vw, 60px)/1 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.close-band .or { font-size: 15px; color: rgba(255, 255, 255, .86); }

/* ------------------------------------------------------------------ tables (the package's own, DESIGN.md 2.9) */
table.fin {
  border-collapse: separate;
  border-spacing: var(--gutter) 0;
  width: calc(100% + 2 * var(--gutter));
  margin: 0 calc(-1 * var(--gutter)) 4px;
  font-family: var(--doc);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums;
}
table.fin.compact { width: 100%; max-width: calc(100% + 2 * var(--gutter)); }
table.fin th, table.fin td { padding: 4px 0; vertical-align: baseline; text-align: left; font-weight: 400; }
table.fin thead th { font: 500 12.5px/1.25 var(--label); color: var(--meta); vertical-align: bottom; padding-bottom: 5px; border-bottom: 1px solid #1b1b1b; }
table.fin thead th:empty { border-bottom: none; }
table.fin thead th.num { text-align: right; white-space: nowrap; }
table.fin thead th.num::after { content: ")"; visibility: hidden; }
table.fin thead tr.col-nos th.num::after { content: none; }
table.fin thead tr.span th { text-align: center; padding-bottom: 2px; }
table.fin thead tr.col-nos th { font-weight: 500; border-bottom: none; padding-bottom: 1px; }
table.fin tbody tr:first-child > * { padding-top: 9px; }
table.fin thead th:first-child, table.fin tbody > tr > :first-child { width: 100%; }
table.fin td.num { text-align: right; white-space: nowrap; }
table.fin td.num::after { content: ")"; visibility: hidden; }
table.fin td.num.neg::after, table.fin td.num.blank::after { content: none; }
table.fin tr.subtotal > * { padding-top: 5px; }
table.fin tr.subtotal td.num { border-top: 1px solid #1b1b1b; }
table.fin tr.total > * { font-weight: 700; padding-top: 5px; }
table.fin tr.total td.num { border-top: 1px solid #1b1b1b; border-bottom: 3px double #1b1b1b; padding-bottom: 3px; }
table.fin tr.subtotal td.blank, table.fin tr.total td.blank { border: none; }
table.fin.schedule thead th { white-space: normal; }
table.fin.months { font-size: 14px; --gutter: 10px; }
table.fin.months thead th.num { white-space: normal; }
.flag, span.sub { display: block; font: 600 12.5px/1.3 var(--label); white-space: nowrap; }
span.sub { font-weight: 500; color: var(--meta); }
p.note, p.source, p.legend { font-size: 13.5px; line-height: 1.45; color: var(--meta); margin: 10px 0 0; max-width: 46rem; }
.sheet p.note, .sheet p.source { font-family: var(--doc); font-size: 12.5px; }
/* The first screen shows five of W-1's eleven columns; a narrower screen, three. */
.excerpt table th:nth-child(3), .excerpt table td:nth-child(3), .excerpt table th:nth-child(5), .excerpt table td:nth-child(5),
.excerpt table th:nth-child(6), .excerpt table td:nth-child(6), .excerpt table th:nth-child(8), .excerpt table td:nth-child(8),
.excerpt table th:nth-child(9), .excerpt table td:nth-child(9), .excerpt table th:nth-child(11), .excerpt table td:nth-child(11),
.excerpt p.note { display: none; }
.excerpt table tbody tr:nth-child(2) > * { background: var(--tint); box-shadow: calc(-1 * var(--gutter)) 0 0 var(--tint), var(--gutter) 0 0 var(--tint); }
/* G-2 on the site: step, due, done. */
.checklist table.fin td:nth-child(2), .checklist table.fin th:nth-child(2), .checklist table.fin td:nth-child(3), .checklist table.fin th:nth-child(3) { white-space: nowrap; text-align: right; }

/* Text tables (the steps, the levels): continuous row rules. */
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; vertical-align: top; padding: 12px 24px 13px 0; border-bottom: 1px solid var(--rule); font-weight: 400; font-size: 16.5px; line-height: 1.45; }
table.grid thead th { font: 500 13.5px/1.3 var(--label); color: var(--meta); border-bottom: 1px solid var(--ink); padding-bottom: 7px; vertical-align: bottom; }
table.grid th[scope="row"] { font: 600 21px/1.2 var(--display); white-space: nowrap; }
table.grid td:last-child, table.grid th:last-child { padding-right: 0; }
table.grid td.day { font: 600 18px/1.4 var(--label); color: var(--blue); white-space: nowrap; text-align: right; }
table.grid thead th.day { text-align: right; }
/* The 24 steps, twelve to a column. */
ol.steps24 { list-style: none; padding: 0; columns: 2; column-gap: var(--gut); counter-reset: step; border-top: 1px solid var(--ink); }
ol.steps24 li { counter-increment: step; break-inside: avoid; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 0 9px; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.4; align-items: baseline; }
ol.steps24 li::before { content: counter(step); color: var(--meta); font-variant-numeric: tabular-nums; }
ol.steps24 .day { font: 600 16.5px/1.4 var(--label); color: var(--blue); white-space: nowrap; }
/* The arithmetic between W-1's columns, as it is printed under the schedule. */
dl.sums { border-top: 1px solid var(--ink); font-family: var(--doc); font-variant-numeric: lining-nums tabular-nums; }
dl.sums > div { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0 14px; padding: 9px 0 10px; border-bottom: 1px solid var(--rule); align-items: baseline; font-size: 16px; line-height: 1.4; }
dl.sums dt { font: 600 15px/1.4 var(--label); color: var(--blue); }
dl.sums dd { margin: 0; }
dl.sums dd.f { white-space: nowrap; color: #1b1b1b; }

/* ------------------------------------------------------------------ the set as a catalogue (what you get) */
.catalog { border-top: 1px solid var(--ink); }
.catalog .item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 16px 0 18px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.catalog .name { grid-column: span 4; padding-right: var(--gut); display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: baseline; }
.catalog .what { grid-column: span 8; }
.catalog .what p { font-size: 16.5px; line-height: 1.5; }
.catalog .what .small { font-size: 15px; margin-top: 4px; }

/* ------------------------------------------------------------------ the set, read on the page (sample) */
.set { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
nav.sheets { grid-column: span 3; padding-right: var(--gut); position: sticky; top: 100px; }
nav.sheets ol { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
nav.sheets li a { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: 8px; padding: 7px 0 8px; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 16.5px/1.3 var(--label); align-items: baseline; }
nav.sheets li a:hover { color: var(--blue); }
nav.sheets .get { margin-top: 20px; }
.reading { grid-column: span 9; display: grid; gap: clamp(44px, 5.4vw, 80px); }
.reading article { scroll-margin-top: 96px; min-width: 0; }
.reading h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; display: flex; align-items: baseline; gap: 14px; }
.reading h2 .no { font-size: .8em; }
.reading .finding { font-family: var(--doc); font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.45; margin: 10px 0 20px; max-width: 46rem; }
.reading .page.narrow { max-width: 760px; }
.reading .open { margin-top: 12px; font: 500 14.5px/1.4 var(--label); color: var(--meta); }

/* Three documents on a shelf (the pieces to hand a client). */
.shelf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.shelf figure { grid-column: span 4; padding-right: var(--gut); min-width: 0; }
.shelf .page { max-width: 300px; }
.shelf figcaption { color: var(--ink); font: 600 19px/1.25 var(--label); margin-top: 16px; }
.shelf figcaption span.what { display: block; font: 400 16.5px/1.5 var(--text); margin-top: 6px; }

/* ------------------------------------------------------------------ forms */
form.ask .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
form.ask label { display: block; font: 600 14.5px/1.3 var(--label); margin: 16px 0 5px; }
form.ask label span { font-weight: 500; color: var(--meta); }
form.ask input, form.ask textarea, form.ask select {
  display: block; width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 2px; padding: 10px 12px; appearance: none;
}
form.ask select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 55%, calc(100% - 13px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
form.ask input:focus-visible, form.ask textarea:focus-visible, form.ask select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
form.ask textarea { min-height: 6.5em; resize: vertical; }
form.ask .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.ask button { margin-top: 22px; }
form.ask .small { margin-top: 12px; }
.panel { background: var(--paper); padding: clamp(22px, 3vw, 40px); box-shadow: 0 0 0 1px var(--rule), 0 1px 3px rgba(20, 24, 43, .1); }
.bigtel { font: 600 clamp(44px, 5vw, 68px)/1 var(--display); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--blue); }
p.mail { margin-top: 14px; }
p.hours { margin-top: 8px; }
h2.next { margin: 48px 0 16px; }

/* ------------------------------------------------------------------ footer (the title block again) */
footer.foot { padding: 0 0 36px; }
footer.foot .tb > div { padding-top: 16px; padding-bottom: 20px; }
footer.foot .wordmark svg { height: 21px; }
footer.foot .tb p, footer.foot .tb li { font-size: 15px; line-height: 1.6; }
footer.foot .tb ul { list-style: none; padding: 0; }
footer.foot .tb a { text-decoration: none; white-space: nowrap; }
footer.foot .tb li a { white-space: normal; }
footer.foot .tb a:hover { text-decoration: underline; }
footer.foot .desc { margin-top: 10px; color: var(--meta); max-width: 17rem; }
footer.foot .fine { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 12px; font: 500 13.5px/1.4 var(--label); color: var(--meta); }
footer.foot .fine a { text-decoration: underline; }
.field + footer.foot .tb { border-top-color: transparent; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1420px) {
  header.top .wrap { gap: 18px; }
  .wordmark svg { height: 24px; }
  nav.pages { gap: 16px; margin-left: 6px; }
  nav.pages a { font-size: 15.5px; }
  .top-phone { font-size: 16px; }
  header.top .btn { padding: 12px 15px 13px; font-size: 16px; }
}
/* Between a wide laptop and a tablet the first screen keeps two columns and the sheet drops
   two of its number columns; below that the sheet goes under the words. */
@media (min-width: 901px) and (max-width: 1344px) {
  .hero .g > .s5 { grid-column: span 6; }
  .hero .g > .s7 { grid-column: span 6; }
  .excerpt table th:nth-child(2), .excerpt table td:nth-child(2), .excerpt table th:nth-child(7), .excerpt table td:nth-child(7) { display: none; }
  .sheet-tb { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sheet-tb > div:first-child, .sheet-tb > div:nth-child(3) { display: none; }
  .sheet-tb > div:nth-child(2) { padding-left: 0; }
}
@media (max-width: 1260px) {
  nav.pages, .top-phone { display: none; }
  header.top .wrap { gap: 12px; }
  header.top .btn { margin-left: auto; }
  details.menu { display: block; position: relative; }
  details.menu summary { list-style: none; cursor: pointer; font: 600 16.5px/1 var(--text); padding: 13px 14px 14px; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 2px; }
  details.menu summary::-webkit-details-marker { display: none; }
  details.menu[open] summary { background: var(--ink); color: #fff; }
  header.top .btn.call { position: relative; z-index: 2; }      /* stays tappable over the layer below */
  details.menu[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 1; cursor: default; }   /* a tap anywhere else closes it; no script */
  details.menu .sheet-nav { z-index: 2; position: absolute; right: 0; top: calc(100% + 13px); width: min(22rem, calc(100vw - 2 * var(--pad))); max-height: calc(100vh - 96px); overflow-y: auto; background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -8px rgba(20, 24, 43, .35); border-top: 3px solid var(--blue); padding: 6px 20px 16px; }
  details.menu .sheet-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 18px/1.3 var(--text); }
  details.menu .sheet-nav a[aria-current="page"] { font-weight: 600; color: var(--blue); }
  details.menu .sheet-nav a.tel { font-weight: 600; border-bottom: 0; padding-bottom: 4px; font-variant-numeric: tabular-nums; }
}
@media (max-width: 1100px) {
  .ruler ul.due { display: none; }
  .ruler .ends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font: 500 14px/1.3 var(--label); color: var(--meta); margin-top: 30px; }
  .ruler .ends span:nth-child(2) { text-align: right; }
  .ruler .ends .key, .ruler .ends .yours { grid-column: 1 / -1; text-align: center; }
  .ruler .ends .yours { color: var(--ink); font-weight: 600; }
}
@media (max-width: 900px) {
  .pagehead dl.facts { display: none; }
  .g { grid-template-columns: minmax(0, 1fr); }
  .g > * { grid-column: 1 / -1; padding-right: 0; }
  .g > * + * { margin-top: var(--s); }
  .hero .g > * + * { margin-top: 0; }
  .hero-say { padding-bottom: 36px; }
  .hero h1 { max-width: 12ch; }
  .rows > li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0 18px; }
  .rows .say { grid-column: 1; padding-right: 0; }
  .rows .ref { grid-column: 2; grid-row: 1; }
  .rows .get, .rows.two .get { grid-column: 1 / -1; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: 24px 0; }
  .qa > div { padding-right: 0; }
  .tb, .tb.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb > div:nth-child(odd) { padding-left: 0; }
  .tb > div:nth-child(even) { border-right: 0; padding-right: 0; }
  .tb > div:nth-child(-n+2) { border-bottom: 1px solid var(--blue); }
  .tb.three, .tb.says { grid-template-columns: minmax(0, 1fr); }
  .tb.three > div, .tb.says > div { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--blue); }
  .tb.three > div:last-child, .tb.says > div:last-child { border-bottom: 0; }
  .memo-sheet .cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .catalog .name, .catalog .what { grid-column: 1 / -1; padding-right: 0; }
  .catalog .what { margin-top: 4px; }
  .set { grid-template-columns: minmax(0, 1fr); }
  nav.sheets, .reading { grid-column: 1 / -1; padding-right: 0; }
  nav.sheets { position: static; margin-bottom: var(--s); }
  nav.sheets ol { columns: 2; column-gap: 28px; }
  nav.sheets li { break-inside: avoid; }
  .shelf figure { grid-column: span 12; padding-right: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 20px; margin-bottom: 26px; }
  .shelf figcaption { margin-top: 0; }
  ul.trades { columns: 2; }
}
@media (max-width: 720px) {
  html { font-size: 17px; scroll-padding-top: 80px; }
  header.top .wrap { height: 66px; }
  .wordmark svg { height: 21px; }
  header.top .btn, details.menu summary { padding: 14px 13px 15px; font-size: 15.5px; }     /* 44 px to the thumb */
  .btn { font-size: 16.5px; padding: 15px 18px 16px; }
  .hero .after a { position: relative; }
  .hero .after a::after { content: ""; position: absolute; inset: -12px -4px; }
  .sheet, .hero .sheet, .hero .sheet table.fin { font-size: 13.5px; }
  .sheet-name { font-size: 16.5px; }
  .sheet .finding { font-size: 14.5px; }
  table.fin { font-size: 13px; --gutter: 8px; }
  table.fin thead th { font-size: 11.5px; }
  .excerpt table th:nth-child(2), .excerpt table td:nth-child(2), .excerpt table th:nth-child(7), .excerpt table td:nth-child(7) { display: none; }
  .sheet-tb { display: none; }
  /* S-1's months on a phone: the last four closed, then the forecast. */
  .months table thead tr.span, .months table th:nth-child(n+2):nth-child(-n+9), .months table td:nth-child(n+2):nth-child(-n+9) { display: none; }
  a.no { position: relative; }
  a.no::after { content: ""; position: absolute; inset: -10px -6px; }      /* 44 px to the thumb, no bigger to the eye */
  .sheet ol.cal { columns: 1; }
  nav.sheets, .btn .wide { display: none; }
  .sheetlist a { padding: 11px 0 12px; }      /* a 44 px row to the thumb */
  ol.days li { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 12px; }
  ol.days .c { display: none; }
  ol.steps24 { columns: 1; }
  dl.who > div { grid-template-columns: minmax(0, 1fr); }
  dl.sums > div { grid-template-columns: 2.4rem minmax(0, 1fr); }
  dl.sums dd.f { grid-column: 2; white-space: normal; color: var(--meta); font-size: 14.5px; }
  /* A sheet on a phone: its first sentence in type you can read, then the page itself in a
     frame you can move across. */
  .reading .frame { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; }
  .reading .frame .page, .reading .frame .page.narrow { width: 760px; max-width: none; }
  .reading .frame .page.land { width: 980px; }
  .shelf figure { grid-template-columns: 96px minmax(0, 1fr); }
  ul.trades { columns: 1; }
  form.ask .two { grid-template-columns: 1fr; }
  table.grid th, table.grid td { padding-right: 14px; font-size: 16px; }
  table.levels thead { display: none; }
  table.levels tr { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
  table.levels th, table.levels td { display: block; border: 0; padding: 0 0 6px; }
  table.levels td.day { text-align: left; }
  table.levels td[data-l]::before { content: attr(data-l) ": "; font: 500 13.5px/1.3 var(--label); color: var(--meta); }
  footer.foot .tb { grid-template-columns: minmax(0, 1fr); }
  footer.foot .tb > div { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--blue); }
  footer.foot .tb > div:last-child { border-bottom: 0; }
  footer.foot .tb li a, footer.foot .tb p a { display: inline-block; padding: 9px 0; }
  footer.foot .tb p br { display: none; }
  footer.foot .tb p a, footer.foot .tb p span { display: block; padding: 9px 0; }
}
@media (max-width: 400px) {
  :root { --pad: 16px; }
  header.top .wrap { gap: 8px; }
  .wordmark svg { height: 17.5px; }
  header.top .btn, details.menu summary { padding: 14px 10px 15px; font-size: 15px; }
  table.fin, .hero .sheet table.fin, table.fin.months { font-size: 12px; --gutter: 5px; }
  .flag, span.sub { white-space: normal; }
  .sheet { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 340px) {
  header.top .wrap { gap: 6px; }
  .wordmark svg { height: 15px; }
  header.top .btn, details.menu summary { padding: 14px 8px 15px; font-size: 14px; }
}

@media print {
  header.top, form.ask, .close-band, details.menu { display: none; }
  .field { background: none; color: var(--ink); }
}
