/* Plasma CAD: a two-sheet drawing set. Shared styles for index.html and commercial.html. */

:root {
  /* Paper space: cool drafting film, graphite ink, one violet markup pen. */
  --paper: #f3f5f7;
  --paper-2: #e6eaee;
  --ink: #111419;
  --ink-2: #353c47;
  --ink-3: #555e6b;
  --rule-soft: #c3cad3;
  --markup: #5b1fd1;
  --markup-hover: #4a14b3;
  --markup-on: #ffffff;
  --markup-wash: rgba(91, 31, 209, 0.08);
  --face-top: #ffffff;
  --face-side: #e2e7ec;
  --face-end: #cfd6de;

  --u: 8px;
  --gutter: 24px;
  --frame: 2px;
  --max: 1360px;
  --sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}

/* Model space: dark theme reads like a CAD viewport. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1116;
    --paper-2: #161b23;
    --ink: #e6e9ee;
    --ink-2: #bcc3ce;
    --ink-3: #939cab;
    --rule-soft: #2c343f;
    --markup: #a98bff;
    --markup-hover: #c0a9ff;
    --markup-on: #0e1116;
    --markup-wash: rgba(169, 139, 255, 0.12);
    --face-top: #202733;
    --face-side: #171c25;
    --face-end: #11151c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--ink-3) var(--paper-2);
}

::selection { background: var(--markup); color: var(--markup-on); }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

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

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

p { margin: 0; }

/* ---------- the sheet frame ---------- */

.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.frame {
  position: relative;
  border-left: var(--frame) solid var(--ink);
  border-right: var(--frame) solid var(--ink);
  /* zone ticks down both edges, every 160px */
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 159px, var(--ink) 159px 160px),
    repeating-linear-gradient(to bottom, transparent 0 159px, var(--ink) 159px 160px);
  background-size: 8px 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.zones {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: var(--frame) solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  font-stretch: 80%;
  color: var(--ink-3);
  text-align: center;
  line-height: 22px;
}

.zones span + span { border-left: 1px solid var(--rule-soft); }

.zones.top { border-top: 0; }

.zones.bottom { border-top: 1px solid var(--ink); border-bottom: var(--frame) solid var(--ink); }

.zone-letters span {
  position: absolute;
  width: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-stretch: 80%;
  color: var(--ink-3);
  line-height: 16px;
}

.zone-letters.left span { left: -22px; }

.zone-letters.right span { right: -22px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- dimension lines used as layout ---------- */

.hdim {
  position: relative;
  display: flex;
  justify-content: center;
  height: 18px;
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-left: 1px solid var(--ink-2);
  border-right: 1px solid var(--ink-2);
}

.hdim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--ink-2);
}

.hdim::after {
  content: "";
  position: absolute;
  inset: calc(50% - 3px) 0 auto 0;
  height: 7px;
  background:
    conic-gradient(from 60deg at 0 50%, var(--ink-2) 0 60deg, transparent 0) left / 8px 7px no-repeat,
    conic-gradient(from 240deg at 100% 50%, var(--ink-2) 0 60deg, transparent 0) right / 8px 7px no-repeat;
}

.hdim > span {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  background: var(--paper);
  line-height: 18px;
}

.hdim .tbd { color: var(--markup); }

.rules .dimcol-h { width: 1%; padding: 0; border-right: 0; }

.rules .dimcol {
  position: relative;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-right: 0;
  border-top: 0;
  vertical-align: middle;
}

.rules tr.divide .dimcol { border-top: var(--frame) solid var(--ink); }

.vdim {
  position: absolute;
  inset: 8px 0;
  display: grid;
  place-items: center;
}

.vdim::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid var(--ink-2);
}

.vdim::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 3.5px);
  background:
    conic-gradient(from 150deg at 50% 0, var(--ink-2) 0 60deg, transparent 0) top / 7px 8px no-repeat,
    conic-gradient(from -30deg at 50% 100%, var(--ink-2) 0 60deg, transparent 0) bottom / 7px 8px no-repeat;
}

.vdim b {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 6px 0;
  background: var(--paper);
  font-size: 11.5px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.proj { width: 44px; height: 20px; display: block; margin-top: 4px; }

.proj path, .proj circle { fill: none; stroke: var(--ink); stroke-width: 1.3; }

/* ---------- header: sheet tabs ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

.site-header .sheet { padding-top: 12px; background: var(--paper); }

.header-row {
  border: var(--frame) solid var(--ink);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: var(--frame) solid var(--ink);
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 19px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover { color: var(--ink); }

.brand svg { width: 24px; height: 24px; flex: none; }

.tabs { display: flex; align-items: stretch; }

.tabs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-left: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.tabs .no {
  font-size: 11px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 5.4vw, 80px);
  font-stretch: 72%;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

h1 .markup { color: var(--markup); display: inline-block; }

h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
}

.label {
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tbd { color: var(--markup); font-weight: 700; }

/* A placeholder that could pass for a real link gets a drafting "TBD" stamp. */
.tbd-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1.5px dashed var(--ink-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.08em;
  line-height: 16px;
  vertical-align: middle;
  text-decoration: none;
}

.cap { caption-side: top; text-align: left; padding: 0 0 6px; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "intro drawing"
    "parts drawing";
  align-items: start;
}

.intro {
  grid-area: intro;
  padding: 40px 40px 40px;
  display: grid;
  gap: 20px;
}

.drawing {
  grid-area: drawing;
  position: sticky;
  top: 74px;
  margin: 0;
  border-left: 1px solid var(--ink);
  padding: 24px 24px 20px;
}

.drawing svg { display: block; width: 100%; height: auto; overflow: visible; }

.drawing figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-top: 8px;
}

.edit-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.edit-dim { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.seg { display: inline-flex; border: 1px solid var(--ink); }

.seg button {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
}

.seg button + button { border-left: 1px solid var(--ink); }

.seg button:hover { background: var(--markup-wash); }

.seg button[aria-pressed="true"] { background: var(--markup); color: var(--markup-on); }

.rebuild-status { font-size: 14px; color: var(--ink-3); min-height: 1.5em; }

/* drawing strokes */
#drawing .v { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
#drawing .face-top { fill: var(--face-top); }
#drawing .face-side { fill: var(--face-side); }
#drawing .face-end { fill: var(--face-end); }
#drawing .face-hole { fill: var(--paper); }
#drawing .h { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 3; }
#drawing .c { fill: none; stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 14 3 2 3; }
#drawing .d { fill: none; stroke: var(--ink-2); stroke-width: 0.8; }
#drawing .ah { fill: var(--ink-2); }
#drawing text { font-family: var(--sans); fill: var(--ink); }
#drawing .dt { font-size: 12px; font-weight: 600; font-stretch: 85%; }
#drawing .dt-edit { fill: var(--markup); cursor: pointer; font-weight: 800; text-decoration: underline; }
#drawing .vl { font-size: 11px; font-weight: 700; font-stretch: 80%; letter-spacing: 0.12em; fill: var(--ink-3); }
#drawing .bcirc { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
#drawing .dot { fill: var(--ink); }
#drawing .bt { font-size: 11px; font-weight: 800; }

/* highlight from the parts list */
#drawing .hl .v, #drawing .v.hl, #drawing .hl .h, #drawing .hl .d { stroke: var(--markup); stroke-width: 2.4; }
#drawing .hl .ah, #drawing .hl .dot { fill: var(--markup); }
#drawing .hl text { fill: var(--markup); }
#drawing .bal.hl .bcirc { fill: var(--markup); stroke: var(--markup); }
#drawing .bal.hl .bt { fill: var(--markup-on); }
#drawing .bal.hl path { stroke: var(--markup); }

/* the one authored motion: the plotter draws the sheet */
#drawing.plotting .v {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
  animation: plot 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, fill 0.6s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 45ms), calc(900ms + var(--i, 0) * 20ms);
}
#drawing.plotting .h,
#drawing.plotting .c,
#drawing.plotting .d,
#drawing.plotting .ah,
#drawing.plotting text,
#drawing.plotting .balloons {
  opacity: 0;
  animation: appear 0.5s ease-out 1.1s forwards;
}
@keyframes plot { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; } }
@keyframes appear { to { opacity: 1; } }

/* after an edit, the rebuilt features flash in markup ink */
#drawing.rebuilt .v { animation: rebuilt 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
#drawing.rebuilt .dt-edit { animation: none; }
@keyframes rebuilt { 0%, 35% { stroke: var(--markup); stroke-width: 2.6; } 100% { stroke: var(--ink); } }

/* ---------- title block (the call to action lives here) ---------- */

.title-block {
  border: var(--frame) solid var(--ink);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.tb-cta {
  grid-column: 1 / -1;
  padding: 16px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
}

.tb-cell {
  grid-column: span 2;
  padding: 8px 12px 10px;
  border-right: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  min-width: 0;
  margin: 0;
}

.tb-cell.wide { grid-column: span 4; }

.tb-cell.s1 { grid-column: span 1; padding: 8px 8px 10px; }

.tb-cell.end { border-right: 0; }

.tb-cell.r1 { border-top: 0; }

.tb-cell .val {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 0 20px;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--markup);
  color: var(--markup-on);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover { background: var(--markup-hover); color: var(--markup-on); }

.btn svg { width: 22px; height: 22px; flex: none; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }

.btn:hover svg { transform: translateY(2px); }

.btn.mail:hover svg { transform: translateX(3px); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--rule-soft);
}

.btn-line:hover { text-decoration-color: currentColor; }

.cta-note { font-size: 14px; color: var(--ink-3); }

.send-link { display: none; }

/* ---------- sections ---------- */

.section {
  border-top: var(--frame) solid var(--ink);
  padding: 72px 40px 80px;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 44em;
  margin-bottom: 40px;
}

.section-head p { color: var(--ink-2); }

.parts {
  grid-area: parts;
  padding: 16px 40px 56px;
}

.parts h2 { margin-bottom: 20px; font-size: clamp(26px, 2.6vw, 36px); }

/* ---------- drafting tables ---------- */

.dtable {
  width: 100%;
  border-collapse: collapse;
  border: var(--frame) solid var(--ink);
  font-size: 16px;
}

.dtable th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 12px;
  border-bottom: var(--frame) solid var(--ink);
  border-right: 1px solid var(--ink);
}

.dtable td {
  padding: 12px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  vertical-align: top;
}

.dtable tbody th {
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  width: 1%;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 15px;
}

.dtable tbody tr:first-child th, .dtable tbody tr:first-child td { border-top: 0; }

.dtable thead + tbody tr:first-child td { border-top: 0; }

.section-head.flush { margin-bottom: 0; }

.dtable th:last-child, .dtable td:last-child { border-right: 0; }

.dtable .strong { font-weight: 700; display: block; }

.dtable .desc { color: var(--ink-2); font-size: 15px; }

.dtable .ref {
  font-size: 12px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.balloon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}

tr[data-ref-row] { cursor: default; }

tr[data-ref-row]:hover td,
tr[data-ref-row]:focus-within td,
tr[data-ref-row]:focus td { background: var(--markup-wash); }

tr[data-ref-row]:hover .balloon,
tr[data-ref-row]:focus .balloon { background: var(--markup); border-color: var(--markup); color: var(--markup-on); }

tr[data-ref-row]:focus { outline: 2px solid var(--markup); outline-offset: -2px; }

/* license rules */
.rules td:last-child { width: 1%; white-space: nowrap; }

.lic {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
}

.lic.com { background: var(--markup); border-color: var(--markup); color: var(--markup-on); }

.rules tr.divide td { border-top: var(--frame) solid var(--ink); }

.rules-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

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

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

.download-grid .stack { display: grid; gap: 24px; }

.agree { font-size: 15px; color: var(--ink-2); }

/* ---------- commercial: request for quote ---------- */

.hero-com {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-areas: "intro rfq";
}

.rfq-wrap {
  grid-area: rfq;
  padding: 48px 40px 48px;
  border-left: 1px solid var(--ink);
  align-self: stretch;
}

.title-block-com { border-top: 0; }


.rfq { border: var(--frame) solid var(--ink); }

.rfq-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: var(--frame) solid var(--ink);
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rfq-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}

.rfq-row .n {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  font-weight: 800;
}

.rfq-row div { padding: 10px 14px; }

.rfq-row strong { display: block; }

.rfq-row span { color: var(--ink-2); font-size: 15px; }

.rfq-send { padding: 16px; display: grid; gap: 12px; }

.address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.address {
  font-weight: 700;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.copy-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  min-width: 72px;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.copy-btn:hover { background: var(--markup-wash); }

.copy-status { font-size: 14px; color: var(--ink-3); }

/* notes (FAQ) */
.notes { max-width: 820px; counter-reset: note; border-top: 1px solid var(--ink); }

.notes details { border-bottom: 1px solid var(--ink); counter-increment: note; }

.notes summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
}

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

.notes summary::before { content: counter(note) "."; color: var(--ink-3); font-weight: 800; }

.notes summary::after {
  content: "";
  width: 12px;
  height: 12px;
  justify-self: end;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes details[open] summary::after { transform: rotate(45deg); }

.notes details p { padding: 0 32px 20px 48px; color: var(--ink-2); max-width: 62ch; }

/* closing strip */
.close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
}

/* ---------- footer title strip ---------- */

.site-footer .strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  border-top: var(--frame) solid var(--ink);
}

.site-footer .strip > div {
  padding: 10px 16px 14px;
  border-right: 1px solid var(--ink);
  min-width: 0;
}

.site-footer .strip > div:last-child { border-right: 0; }

.site-footer .val { display: block; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }

.site-footer .val a { text-decoration-color: var(--rule-soft); }

.bottom-pad { height: 32px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .intro { padding: 40px 28px 32px; }
  .parts { padding: 8px 28px 48px; }
  .section { padding: 64px 28px 72px; }
}

@media (max-width: 900px) {
  :root { --gutter: 12px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "drawing" "parts";
  }
  .hero-com { grid-template-areas: "intro" "rfq"; }
  .rfq-wrap { border-left: 0; border-top: 1px solid var(--ink); padding: 32px 28px 40px; }
  .drawing { position: static; border-left: 0; border-top: 1px solid var(--ink); padding: 16px 12px 16px; }
  .download-grid, .close { grid-template-columns: minmax(0, 1fr); }
  .site-footer .strip { grid-template-columns: 1fr 1fr; }
  .site-footer .strip > div:nth-child(2) { border-right: 0; }
  .site-footer .strip > div:nth-child(n + 3) { border-top: 1px solid var(--ink); }
}

@media (max-width: 640px) {
  :root { --gutter: 8px; }
  body { font-size: 16px; }
  .intro { padding: 28px 16px 24px; gap: 20px; }
  .parts { padding: 8px 12px 40px; }
  .rfq-wrap { padding: 24px 12px 32px; }
  .section { padding: 48px 12px 56px; }
  .lede { font-size: 17px; }
  .zones { grid-template-columns: repeat(4, 1fr); }
  .zones span:nth-child(n + 5) { display: none; }
  .brand { padding: 0 10px; font-size: 16px; gap: 8px; }
  .tabs a { padding: 0 12px; font-size: 14px; }
  .tabs .no, .hide-sm { display: none; }
  .btn { font-size: 17px; min-height: 56px; padding: 0 14px; white-space: nowrap; }
  .tb-cta { padding: 12px; }
  .title-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cell { grid-column: span 1; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
  .tb-cell.wide { grid-column: 1 / -1; border-right: 0; }
  .tb-cell.wide.r1 { border-top: 0; }
  .tb-cell.m-end { border-right: 0; }
  .tb-cell.r1:not(.wide) { border-top: 1px solid var(--ink); }
  .tb-cell.end:not(.m-end):not(.wide):not(.wide-m) { border-right: 1px solid var(--ink); }
  .tb-cell.wide-m { grid-column: 1 / -1; border-right: 0; }
  .tb-stack .tb-cell { grid-column: 1 / -1; border-right: 0; }
  .tb-stack .tb-cell.end { border-top: 1px solid var(--ink); }
  .title-block.tb-stack .tb-cell.end:not(.m-end):not(.wide):not(.wide-m) { border-right: 0; }
  .tb-cell.s1 { grid-column: span 1; padding: 8px 12px 10px; }
  .zone-letters { display: none; }
  .rules .dimcol { width: 32px; min-width: 32px; }
  .dtable { font-size: 15px; }
  .dtable td, .dtable th { padding: 10px 8px; }
  .dtable .col-ref { display: none; }
  .notes details p { padding: 0 8px 18px 48px; }
}

/* A phone can't run the installer; offer to send the link to a PC. */
@media (pointer: coarse) and (max-width: 900px) {
  .send-link { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
