/* Special reports: the travel-work report is set as a set of construction
   drawings, a deliberate departure from the Atlas pages. Ink on drafting
   paper, a desk around the sheets, red reserved for the revision cloud. */

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --desk: #262d33;
  --desk-ink: #c3cbd0;
  --paper: #f4f1e8;
  --paper-2: #ece7da;
  --ink: #1e2b38;
  --ink-2: #4a5866;
  --ink-3: #7b8691;
  --fine: rgba(30, 43, 56, 0.28);
  --grid: rgba(30, 43, 56, 0.05);
  --red: #c4441a;
  --red-soft: rgba(196, 68, 26, 0.06);
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html.dw-doc { background: var(--desk); }

body.dw {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-text-size-adjust: 100%;
}

.dw a { color: inherit; }

.dw-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 6px 10px;
  z-index: 2;
}
.dw-skip:focus { left: 8px; }

/* The desk bar back to the site. */
.dw-desk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1352px;
  margin: 0 auto;
  padding: 12px 16px;
  color: var(--desk-ink);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dw-desk a { text-decoration: none; }
.dw-desk a:hover, .dw-desk a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dw-desk-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.dw-desk-links { display: flex; gap: 20px; }
.dw-desk-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "home end" "nav nav";
  gap: 16px 32px;
  margin-top: 6px;
  padding: 22px 16px 40px;
  border-top: 1px solid rgba(195, 203, 208, 0.2);
}
.dw-desk-foot .dw-desk-home { grid-area: home; }
.dw-desk-foot nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; border-top: 1px dotted rgba(195, 203, 208, 0.25); }
.dw-foot-end { grid-area: end; display: flex; align-items: center; gap: 20px; }
.dw-foot-linkedin { display: inline-flex; }
.dw-foot-gxp { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 1040px) {
  .dw-desk-foot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "home" "nav" "end"; align-items: start; }
}

.dw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.dw-set {
  display: grid;
  justify-items: center;
  gap: 30px;
  padding: 4px 16px 36px;
}

/* A sheet: paper, an outer trim line, the heavy border, grid marks between
   them, and the title block down the right edge. */
.dw-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  width: min(100%, 1320px);
  padding: 26px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 25px 25px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 20px 44px rgba(0, 0, 0, 0.38);
  scroll-margin-top: 16px;
}
.dw-sheet::before,
.dw-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.dw-sheet::before { inset: 24px; border: 2px solid var(--ink); }
.dw-sheet::after { inset: 8px; border: 1px solid var(--fine); }

.dw-marks {
  position: absolute;
  display: flex;
  color: var(--ink-2);
  font: 500 10px/1 var(--mono);
}
.dw-marks span { flex: 1; display: grid; place-items: center; }
.dw-marks-x { top: 8px; left: 26px; right: 26px; height: 16px; }
.dw-marks-x span + span { border-left: 1px solid var(--fine); }
.dw-marks-y { top: 26px; bottom: 26px; left: 8px; width: 16px; flex-direction: column; }
.dw-marks-y span + span { border-top: 1px solid var(--fine); }

.dw-field {
  min-width: 0;
  padding: 22px 26px 24px;
}

/* Lettering. */
.dw-label {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
  font: 700 10.5px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dw-eyebrow {
  margin: 0 0 10px;
  color: var(--ink-2);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dw-title {
  margin: 0;
  font: 800 clamp(42px, 5.6vw, 80px)/0.9 var(--sans);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.dw-title span {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.dw-dek {
  max-width: 58ch;
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
}
.dw-dek strong { font-weight: 750; }

/* The cover: title and key plan on the left; notes, quantities and the sheet
   index on the right. */
.dw-cover .dw-field {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 28px;
}
.dw-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.dw-notes ol { margin: 0; padding: 0; list-style: none; counter-reset: dw-note; }
.dw-notes li {
  counter-increment: dw-note;
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}
.dw-notes li::before {
  content: counter(dw-note) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font: 700 12px/1.45 var(--mono);
}

/* The revision cloud: the one red mark on the cover. */
.dw-notes .dw-cloud {
  position: relative;
  margin: 4px 0 14px;
  padding: 6px 12px 8px;
  border: 10px solid transparent;
  border-image: url("/assets/special-cloud.svg") 10 round;
  background: var(--red-soft);
  background-clip: padding-box;
  color: var(--ink);
}
.dw-cloud .dw-delta { position: absolute; top: -18px; right: -16px; }
.dw-cloud p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; }
.dw-cloud .dw-cloud-title { margin-bottom: 2px; font: 750 16px/1.25 var(--sans); }
.dw-cloud-link {
  display: inline-block;
  margin: 0 0 4px;
  color: var(--red) !important;
  font: 750 15px/1.35 var(--sans);
  text-wrap: balance;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.dw-nowrap { white-space: nowrap; }
.dw-cloud-link:hover, .dw-cloud-link:focus-visible { text-decoration-thickness: 2.5px; }
.dw-cloud .dw-cloud-price { margin: 0; color: var(--ink-3); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.02em; }

.dw-delta {
  display: inline-grid;
  place-items: end center;
  width: 26px;
  height: 23px;
  padding-bottom: 3px;
  background: url("/assets/special-delta.svg") center / 26px 23px no-repeat;
  color: var(--red);
  font: 700 10.5px/1 var(--mono);
  font-style: normal;
}

/* Key plan. */
.dw-keyplan { margin: 0; }
.dw-keyplan svg { display: block; width: 100%; height: auto; overflow: visible; }
.dw-nation { fill: rgba(30, 43, 56, 0.035); stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.dw-states { fill: none; stroke: var(--ink-3); stroke-width: 0.7; stroke-dasharray: 9 3 2 3; vector-effect: non-scaling-stroke; }
.dw-pin-ring { fill: rgba(30, 43, 56, 0.07); stroke: var(--ink); stroke-width: 1.3; }
.dw-pin-dot { fill: var(--ink); }
.dw-pin-count { fill: var(--ink); font: 700 13px var(--mono); }
.dw-map-label { fill: var(--ink); font: 600 14.5px var(--mono); letter-spacing: 0.02em; text-transform: uppercase; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.dw-north circle { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dw-north path { fill: var(--ink); }
.dw-north text { fill: var(--ink); font: 700 14px var(--mono); }
.dw-keyplan figcaption { margin-top: 10px; color: var(--ink-2); font: 500 11.5px/1.5 var(--mono); }
.dw-keyplan figcaption .dw-label { display: inline; margin-right: 8px; padding: 0 0 1px; }
.dw-metros { display: none; }

/* Quantities and the sheet index. */
.dw-quantities table { width: 100%; border-collapse: collapse; font: 500 12px/1.3 var(--mono); }
.dw-quantities th, .dw-quantities td { padding: 6px 0; border-bottom: 1px solid var(--fine); text-align: left; font-weight: 500; }
.dw-quantities th svg { margin-right: 8px; vertical-align: -1px; }
.dw-quantities td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dw-quantities td:nth-child(2) { font-weight: 700; color: var(--ink); }
.dw-quantities td:last-child { width: 48px; color: var(--ink-2); }

.dw-index ol { margin: 0; padding: 0; list-style: none; }
.dw-index li { border-bottom: 1px solid var(--fine); font-size: 13px; }
.dw-index li > a, .dw-index li.dw-index-draft {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
}
.dw-index a:hover span, .dw-index a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.dw-index b { font: 700 12px var(--mono); }
.dw-index .dw-index-draft { color: var(--ink-3); }
.dw-index em { font: italic 500 10px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hatches and fills, shared by every chart. */
.dw-fill-road { fill: var(--ink); }
.dw-fill-some { fill: url(#dw-hatch); stroke: var(--ink); stroke-width: 0.6; }
.dw-fill-reloc { fill: url(#dw-dots); stroke: var(--ink); stroke-width: 0.6; }
.dw-hatch-line { stroke: var(--ink); stroke-width: 1.3; }
.dw-dot { fill: var(--ink); }
.dw-bar-frame { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }

/* Sheet headings: a section bubble and the sheet's subject. */
.dw-sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.dw-sheet-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 800 clamp(24px, 2.6vw, 34px)/1.05 var(--sans); text-transform: uppercase; letter-spacing: 0; }
.dw-sheet-head p { margin: 0; color: var(--ink-2); font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.dw-tag {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  font: 700 14px/1 var(--mono);
  font-style: normal;
}
.dw-chart-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 750 15px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.02em; }
.dw-chart-title .dw-tag { width: 24px; height: 24px; font-size: 12px; }

/* Bar charts. */
.dw-field-chart {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 1fr);
  grid-template-areas: "head head" "trades notes" "kinds notes";
  align-content: start;
  gap: 0 34px;
}
.dw-field-chart .dw-sheet-head { grid-area: head; }
.dw-chart-trades { grid-area: trades; }
.dw-chart-kinds { grid-area: kinds; }
.dw-field-chart .dw-keynotes { grid-area: notes; }
.dw-chart { margin: 0 0 22px; min-width: 0; }
.dw-chart figcaption { margin-top: 8px; color: var(--ink-3); font: 500 10.5px/1.45 var(--mono); }

.dw-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.dw-legend li { display: inline-flex; align-items: center; gap: 7px; }

.dw-bars { margin: 0; padding: 0; list-style: none; }
.dw-bars li, .dw-scale-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
}
.dw-bars li { padding: 5px 0; border-bottom: 1px dotted var(--fine); }
.dw-bar-label { font: 600 13.5px/1.2 var(--sans); }
.dw-bar { display: block; overflow: visible; }
.dw-bar-value { font: 500 11.5px/1.2 var(--mono); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dw-bar-value b { display: inline-block; min-width: 38px; color: var(--ink); font-size: 13px; }
.dw-scale { display: block; overflow: visible; }
.dw-scale line { stroke: var(--ink); stroke-width: 1; }
.dw-scale text { fill: var(--ink-2); font: 500 10px var(--mono); }

.dw-chart-sectors { margin: 22px 0 0; }
.dw-bars.dw-bars-compact li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; gap: 4px 10px; margin: 0; padding: 6px 0; }
.dw-bars-compact .dw-bar-label { grid-area: label; }
.dw-bars-compact .dw-bar-value { grid-area: value; }
.dw-bars-compact .dw-bar { grid-area: bar; }

/* Keynotes: hexagon tags, as on a drawing. */
.dw-keynotes { min-width: 0; }
.dw-keynotes ol { margin: 0; padding: 0; list-style: none; }
.dw-keynotes li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; margin-bottom: 12px; }
.dw-keynotes li p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.45; }
.dw-hex {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 23px;
  background: url("/assets/special-hex.svg") center / 26px 23px no-repeat;
  font: 700 11px/1 var(--mono);
  font-style: normal;
}
.dw-aside-note { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid var(--fine); color: var(--ink-2); font: 500 11.5px/1.5 var(--mono); }

/* Range charts (P-201): each bar spans the middle half of posted rates and a
   tick marks the median; road work is solid, no travel is outlined. */
.dw-field-pay {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  grid-template-areas: "head head" "charts notes" "trades notes";
  align-content: start;
  gap: 0 34px;
}
.dw-field-pay .dw-sheet-head { grid-area: head; }
.dw-pay-charts { grid-area: charts; min-width: 0; }
.dw-pay-trades { grid-area: trades; min-width: 0; margin-top: 4px; }
.dw-field-pay .dw-keynotes { grid-area: notes; }
.dw-range-chart { margin: 0 0 14px; }
.dw-range-chart .dw-label { margin-bottom: 2px; }
.dw-range-chart figcaption { margin-top: 6px; }
.dw-ranges { margin: 0; padding: 0; list-style: none; }
.dw-range-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 216px; align-items: center; gap: 12px; }
.dw-ranges li { padding: 2px 0; }
.dw-ranges li.dw-range-first { margin-top: 2px; padding-top: 5px; border-top: 1px dotted var(--fine); }
.dw-ranges li:first-child { margin-top: 0; border-top: 0; }
.dw-range-label { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); font: 500 11px/1.2 var(--mono); }
.dw-range-label b { color: var(--ink); font: 650 13px/1.2 var(--sans); }
.dw-range { display: block; overflow: visible; }
.dw-range-axis { stroke: var(--fine); stroke-width: 1; stroke-dasharray: 2 3; }
.dw-range-road { fill: var(--ink); }
.dw-range-local { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.dw-range-mid { stroke-width: 2.5; }
.dw-range-mid-road { stroke: var(--paper); }
.dw-range-mid-local { stroke: var(--ink); }
.dw-range-value { color: var(--ink-2); font: 500 11px/1.2 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dw-range-value b { display: inline-block; min-width: 66px; color: var(--ink); font-size: 13px; }
.dw-pay-trades .dw-chart-title { margin-bottom: 8px; }
.dw-pay-schedule caption.dw-legend-note { padding: 0 0 6px; color: var(--ink-3); font: 500 10.5px/1.4 var(--mono); text-align: left; }
.dw-pay-schedule td b { font-size: 13px; }
.dw-pay-schedule td small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.dw-pay-schedule tbody th { min-width: 0; }
.dw-pay-schedule th, .dw-pay-schedule td { padding-top: 4px; padding-bottom: 4px; }
.dw-pay-schedule .dw-diff { font-weight: 700; }
.dw-quantities-tight { margin-top: 14px; }
.dw-quantities th.dw-q-sub { padding-left: 22px; color: var(--ink-2); }
.dw-quantities-tight table { font-size: 11.5px; }
.dw-quantities .dw-quantities-tight th, .dw-quantities-tight th, .dw-quantities-tight td { padding: 4px 0; }

/* Sector columns (S-301). */
.dw-field-sectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(230px, 0.85fr);
  grid-template-areas: "head head head" "legend legend legend" "dc fab notes";
  align-content: start;
  gap: 0 28px;
}
.dw-field-sectors .dw-sheet-head { grid-area: head; }
.dw-field-sectors > .dw-legend { grid-area: legend; margin-bottom: 16px; }
.dw-sector-data-center { grid-area: dc; }
.dw-sector-semiconductor-fab { grid-area: fab; }
.dw-field-sectors .dw-keynotes { grid-area: notes; }
.dw-sector { min-width: 0; }
.dw-sector .dw-chart-title { margin-bottom: 10px; }
.dw-sector-bar { margin-bottom: 4px; }
.dw-sector .dw-quantities-tight { margin-top: 6px; }
.dw-sector h4.dw-label { margin-top: 16px; }
.dw-sector .dw-bars-compact .dw-bar-label { font-size: 12.5px; }
.dw-sector-employers { width: 100%; border-collapse: collapse; font: 500 11.5px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.dw-sector-employers th { padding: 4px 0; border-bottom: 1px solid var(--fine); text-align: left; font: 600 12.5px/1.25 var(--sans); }
.dw-sector-employers td { padding: 4px 0 4px 10px; border-bottom: 1px solid var(--fine); text-align: right; white-space: nowrap; }
.dw-sector-employers td:last-child { width: 36px; color: var(--ink-2); }

/* The method strip (G-901): a short appendix rather than a full sheet. */
.dw-field-method { padding-top: 18px; padding-bottom: 18px; }
.dw-method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; margin: 8px 0 0; }
.dw-method dt { font: 700 10px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dw-method dd { margin: 3px 0 0; color: var(--ink-2); font: 500 11px/1.5 var(--mono); }
.dw-sheet-strip .dw-tb-project, .dw-sheet-strip .dw-tb-source, .dw-sheet-strip .dw-tb-rev { display: none; }
.dw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The employer schedule. */
.dw-field-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-areas: "head head" "table notes";
  align-content: start;
  gap: 0 30px;
}
.dw-field-schedule .dw-sheet-head { grid-area: head; }
.dw-schedule { grid-area: table; width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); font: 500 12px/1.25 var(--mono); font-variant-numeric: tabular-nums; }
.dw-field-schedule .dw-keynotes { grid-area: notes; }
.dw-schedule caption { padding: 0 0 8px; text-align: left; }
/* The schedule's key sits on the caption line, beside its label. */
.dw-schedule-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.dw-schedule-cap .dw-label { margin: 0; }
.dw-schedule-cap .dw-legend { margin: 0; }
.dw-legend .dw-legend-note { color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dw-schedule th, .dw-schedule td { padding: 6px 8px; border: 1px solid var(--fine); text-align: left; vertical-align: middle; }
.dw-schedule thead th { border-bottom: 1.5px solid var(--ink); background: var(--paper-2); color: var(--ink); font: 700 9.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.dw-schedule tbody th { font: 650 13px/1.25 var(--sans); }
.dw-schedule tbody th a { text-decoration-color: var(--fine); text-underline-offset: 3px; }
.dw-schedule tbody th a:hover, .dw-schedule tbody th a:focus-visible { text-decoration-color: var(--ink); }
.dw-schedule .dw-mark { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.dw-schedule .dw-num { text-align: right; white-space: nowrap; }
.dw-schedule td.dw-wide:not(.dw-num) { color: var(--ink-2); font-size: 11px; }
.dw-schedule td.dw-share { width: 22%; min-width: 150px; }
.dw-schedule td.dw-share > div { display: grid; grid-template-columns: minmax(50px, 1fr) 36px; align-items: center; gap: 8px; }
.dw-schedule td.dw-share span { text-align: right; font-weight: 700; }
.dw-schedule td.dw-share svg { display: block; overflow: visible; }
.dw-schedule tbody th { min-width: 150px; }
.dw-schedule tbody tr:nth-child(even) td, .dw-schedule tbody tr:nth-child(even) th { background: rgba(30, 43, 56, 0.025); }

/* Title block. */
.dw-tb {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 2px solid var(--ink);
  font-size: 12px;
}
.dw-tb > * { padding: 9px 12px; border-bottom: 1px solid var(--ink); }
.dw-tb .dw-k { display: block; margin-bottom: 3px; color: var(--ink-3); font: 600 9px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dw-tb b { display: block; font: 750 13px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.01em; }
.dw-tb-cell > span:not(.dw-k) { display: block; margin-top: 2px; color: var(--ink-2); font: 500 10.5px/1.35 var(--mono); }
.dw-tb-firm { display: flex; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 12px; }
.dw-tb-firm p { margin: 0; }
/* The brand mark is drawn for a dark ground: it sits on its own ink tile. */
.dw-tb-firm img { flex: none; width: 30px; height: 30px; padding: 3px; border-radius: 4px; background: var(--ink); }
.dw-tb-firm b { font-size: 13.5px; }
.dw-tb-firm span { display: block; color: var(--ink-2); font: 600 9.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dw-tb-project b { font-size: 15px; line-height: 1.15; }
.dw-tb-rev p { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; align-items: center; margin: 0; font: 500 10.5px/1.3 var(--mono); }
.dw-tb-rev p span:last-child { grid-column: 2; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.dw-tb-rev .dw-delta { grid-row: span 2; }
.dw-tb-title { flex: 1; }
/* The cover's key facts take the block's spare height; the sheet title then
   sits beside the sheet number, as on a printed title block. */
.dw-tb-facts { flex: 1; }
.dw-tb-facts ~ .dw-tb-title { flex: none; }
.dw-tb-facts dl { margin: 4px 0 0; }
.dw-tb-facts dl > div { padding: 6px 0 7px; border-top: 1px dotted var(--fine); }
.dw-tb-facts dl > div:first-child { padding-top: 2px; border-top: 0; }
.dw-tb-facts dt { color: var(--ink-2); font: 500 10px/1.3 var(--mono); }
.dw-tb-facts dd { margin: 3px 0 0; }
.dw-tb-facts dd b { font-size: 13px; line-height: 1.2; }
.dw-tb-facts dd span { display: block; margin-top: 2px; color: var(--ink-2); font: 500 10.5px/1.3 var(--mono); }
.dw-tb-title b { font-size: 16px; line-height: 1.15; }
.dw-tb-number { border-bottom: 0; padding-bottom: 12px; }
.dw-tb-number b { font: 800 40px/1 var(--sans); letter-spacing: -0.01em; }
.dw-tb-number > span:not(.dw-k) { display: block; margin-top: 4px; color: var(--ink-2); font: 600 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

.dw a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* A full sheet on a wide screen keeps the drawing's proportion. */
@media (min-width: 1180px) {
  .dw-sheet { aspect-ratio: 3 / 2; }
  .dw-sheet.dw-sheet-strip { aspect-ratio: auto; }
}

/* Tablet: the title block becomes a band along the bottom. */
@media (max-width: 1040px) {
  .dw-sheet { grid-template-columns: minmax(0, 1fr); }
  .dw-tb { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 2px solid var(--ink); }
  .dw-tb > * { border-bottom: 0; border-right: 1px solid var(--ink); }
  .dw-tb-firm { flex: 1 1 200px; }
  .dw-tb-project, .dw-tb-source, .dw-tb-rev { flex: 1 1 150px; }
  .dw-tb-title { flex: 1 1 160px; }
  .dw-tb-number { flex: 0 0 auto; border-right: 0; padding-top: 9px; }
  .dw-tb-number b { font-size: 30px; }
  .dw-tb-facts { order: -1; flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--ink); }
  .dw-tb-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
  .dw-tb-facts dl > div, .dw-tb-facts dl > div:first-child { padding: 6px 0 8px; border-top: 1px dotted var(--fine); }
  .dw-field-schedule { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "table" "notes"; }
  .dw-field-schedule .dw-keynotes { margin-top: 20px; }
  .dw-field-pay { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "charts" "trades" "notes"; }
  .dw-field-pay .dw-keynotes { margin-top: 20px; }
  .dw-field-sectors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "legend legend" "dc fab" "notes notes"; }
  .dw-field-sectors .dw-keynotes { margin-top: 20px; }
  .dw-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: one column, no grid marks, the band trimmed to firm, title and
   sheet number. */
@media (max-width: 760px) {
  .dw-set { gap: 18px; padding: 0 0 24px; }
  .dw-sheet { width: 100%; padding: 12px; background-position: 11px 11px; }
  .dw-sheet::before { inset: 10px; border-width: 1.5px; }
  .dw-sheet::after { display: none; }
  .dw-marks { display: none; }
  .dw-field { padding: 16px 14px 18px; }
  .dw-title { font-size: clamp(38px, 12vw, 54px); }
  .dw-dek { font-size: 15.5px; }

  .dw-cover .dw-field { display: flex; flex-direction: column; gap: 20px; }
  .dw-col { display: contents; }
  .dw-cover-head { order: 1; }
  .dw-notes { order: 2; }
  .dw-quantities { order: 3; }
  .dw-keyplan { order: 4; }
  .dw-index { order: 5; }
  .dw-map-label { display: none; }
  .dw-pin-count { font-size: 22px; }
  .dw-north { display: none; }
  .dw-metros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font: 500 11.5px/1.3 var(--mono);
  }
  .dw-metros li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--fine); }
  .dw-metros b { font-variant-numeric: tabular-nums; }
  .dw-cloud .dw-delta { right: -12px; }

  .dw-field-chart { display: block; }
  .dw-bars li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; gap: 4px 10px; padding: 7px 0; }
  .dw-bar-label { grid-area: label; }
  .dw-bar-value { grid-area: value; }
  .dw-bars .dw-bar { grid-area: bar; }
  .dw-scale-row { grid-template-columns: minmax(0, 1fr); }
  .dw-scale-row > span { display: none; }
  .dw-keynotes { margin-top: 6px; }

  .dw-schedule { font-size: 11.5px; }
  .dw-schedule .dw-wide { display: none; }
  .dw-schedule th, .dw-schedule td { padding: 6px 5px; }
  .dw-schedule tbody th { font-size: 12.5px; }
  .dw-schedule tbody th { min-width: 0; }
  .dw-schedule td.dw-share { width: auto; min-width: 0; }
  .dw-schedule td.dw-share > div { grid-template-columns: minmax(28px, 1fr) 30px; gap: 4px; }
  .dw-schedule thead th { font-size: 8.5px; letter-spacing: 0.04em; }

  .dw-tb-project, .dw-tb-source, .dw-tb-rev, .dw-tb-firm p span { display: none; }
  .dw-tb-firm { flex: 0 0 auto; }
  .dw-tb-firm p { display: none; }
  .dw-tb > * { padding: 8px 10px; }
  .dw-tb-title b { font-size: 13.5px; }
  .dw-tb-number b { font-size: 24px; }
  .dw-tb-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

  .dw-range-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; gap: 3px 10px; }
  .dw-range-label { grid-area: label; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .dw-range-value { grid-area: value; }
  .dw-range-value b { min-width: 0; }
  .dw-range { grid-area: bar; }
  .dw-range-scale { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar"; }
  .dw-range-scale > span { display: none; }
  .dw-range-scale .dw-scale { grid-area: bar; }
  .dw-pay-schedule td small { display: none; }
  .dw-pay-schedule th, .dw-pay-schedule td { padding: 6px 3px; }
  .dw-pay-schedule td, .dw-pay-schedule td b { font-size: 11px; }
  .dw-pay-schedule tbody th { font-size: 12px; }
  .dw-field-sectors { display: block; }
  .dw-sector { margin-top: 22px; }
  .dw-method { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  html.dw-doc, body.dw { background: #fff; }
  .dw-desk { display: none; }
  .dw-sheet { box-shadow: none; break-after: page; }
}
