/* ==========================================================================
   ENGINEERING DRAWING — one page. Loaded on a/engineering-drawing.html.

   Founder, 2026-09-26: the page is Annie's Claude artifact, shell excepted.
   White ground ruled as graph paper, an isometric assembly exploded along
   its centreline, numbered balloons keyed to a parts list, and exactly one
   orange accent (#E8641B) used as fill and stroke only. Orange TEXT fails
   AA on white, so any orange lettering is the darker #b8480c.

   The shell (rail, top bar, community drawer) is never restyled: every rule
   here is scoped to .ed-hero or .ed-rec, and the ground alone is set on
   `.ed-page main`. Plex Sans is variable (100–700), so 300/500/600 are real
   weights under the shell's font-synthesis:none. There is no italic face:
   nothing here is set in italic.
   ========================================================================== */
@font-face {
  font-family: "PlexSansX";
  src: url("fonts/plex-sans.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "PlexMonoX";
  src: url("fonts/plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "PlexMonoX";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

.ed-page {
  --ed-ink: #22262B;
  --ed-g1: #5C636B;
  --ed-g2: #A9B0B8;
  --ed-or: #E8641B;      /* THE accent: fill and stroke only */
  --ed-or-t: #b8480c;    /* the accent as text, AA on white */
  --ed-w: #FFFFFF;
  --ed-p1: #F4F6F8;
  --ed-p2: #DDE2E7;
  --ed-sans: "PlexSansX", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --ed-mono: "PlexMonoX", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: var(--paper);
}
/* The ground: white, ruled as graph paper. */
.ed-page main {
  background-color: var(--ed-w);
  background-image: linear-gradient(var(--ed-p1) 1px, transparent 1px), linear-gradient(90deg, var(--ed-p1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ed-hero, .ed-rec { font: 400 16px/1.6 var(--ed-sans); color: var(--ed-ink); }
.ed-hero a, .ed-rec a { color: var(--ed-ink); text-decoration: underline 1px; text-underline-offset: 3px; }
.ed-hero a:hover, .ed-rec a:hover { text-decoration-thickness: 2px; }
.ed-hero :focus-visible, .ed-rec :focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 3px; }
.ed-mono { font-family: var(--ed-mono); }
.ed-quiet { color: var(--ed-g1); }
.ed-rec em { font-style: normal; font-weight: 600; }

/* ---- HERO ----------------------------------------------------------------- */
.ed-hero__in, .ed-w { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.ed-hero__in {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px; align-items: center; padding-block: 34px 20px;
}
.ed-kicker { margin: 0; font: 400 12px/1.4 var(--ed-mono); color: var(--ed-g1); letter-spacing: .04em; overflow-wrap: anywhere; }
.ed-h1 { margin: 6px 0 0; font-weight: 300; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; letter-spacing: -.01em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.ed-sub { margin: 12px 0 0; color: var(--ed-g1); max-width: 40ch; }

.ed-fig svg { width: 100%; height: auto; display: block; }
.ed-fig text { font: 500 14px var(--ed-mono); fill: var(--ed-ink); stroke: none; text-anchor: middle; }
.ed-pt { transition: transform .9s cubic-bezier(.6, 0, .2, 1); }
.ed-fig--asm .ed-pt1 { transform: translateY(200px); }
.ed-fig--asm .ed-pt2 { transform: translateY(150px); }
.ed-fig--asm .ed-pt3 { transform: translateY(100px); }
.ed-fig--asm .ed-pt4 { transform: translateY(50px); }
.ed-balloons, .ed-axis { transition: opacity .6s; }
.ed-fig--asm .ed-balloons, .ed-fig--asm .ed-axis { opacity: .25; }
@media (prefers-reduced-motion: reduce) {
  .ed-pt, .ed-balloons, .ed-axis { transition: none; }
}

.ed-tog { margin: 18px 0 0; }
.ed-btn {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ed-ink); border-radius: 0;
  background: var(--ed-w); color: var(--ed-ink); font: 500 14px var(--ed-mono); cursor: pointer;
}
.ed-btn:hover, .ed-btn[aria-pressed="true"] { background: var(--ed-ink); color: var(--ed-w); }

.ed-bom { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 16px; background: var(--ed-w); }
.ed-bom th, .ed-bom td { border: 1px solid var(--ed-g2); padding: 0 8px; text-align: left; }
.ed-bom thead th { background: var(--ed-p1); font: 500 11px/1 var(--ed-mono); text-transform: uppercase; letter-spacing: .06em; padding-block: 7px; }
.ed-bom td:first-child { width: 44px; text-align: center; }
.ed-bom a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.ed-bom a:hover { text-decoration: underline; }

/* Balloons: the numbered circle, ink or (once per list) the accent. */
.ed-bal {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border: 1.5px solid var(--ed-ink); border-radius: 50%; background: var(--ed-w);
  font: 500 12px/1 var(--ed-mono); color: var(--ed-ink);
}
.ed-bal--or { border-color: var(--ed-or); color: var(--ed-or-t); }

/* ---- RECORD: every section a bordered part on a leader ------------------ */
.ed-rec { padding-bottom: 60px; }
.ed-rec p { margin: 0 0 12px; }
.ed-rec p:last-child { margin-bottom: 0; }
.ed-sec {
  position: relative; margin-top: 56px; min-width: 0;
  padding: 26px clamp(16px, 3vw, 30px) 26px clamp(56px, 6vw, 76px);
  background: var(--ed-w); border: 1.5px solid var(--ed-ink);
}
.ed-bal--sec { position: absolute; left: clamp(12px, 2vw, 22px); top: 24px; width: 34px; height: 34px; font-size: 14px; }
.ed-bal--sec::after { content: ""; position: absolute; left: 32px; top: 16px; width: clamp(8px, 2vw, 20px); border-top: 1px solid var(--ed-ink); }
.ed-sec h2 { margin: 0 0 14px; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.ed-sec h2 small { display: block; margin-bottom: 2px; font: 400 12px/1.4 var(--ed-mono); color: var(--ed-g1); letter-spacing: .06em; text-transform: uppercase; }

.ed-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ed-two--in { align-items: start; }

/* Catalogue entry: gridded meta cells. */
.ed-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid var(--ed-g2); border-top: 1px solid var(--ed-g2); }
.ed-meta div { padding: 8px 10px; border-right: 1px solid var(--ed-g2); border-bottom: 1px solid var(--ed-g2); min-width: 0; }
.ed-meta dt { font: 500 11px/1.4 var(--ed-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ed-g1); }
.ed-meta dd { margin: 0; overflow-wrap: anywhere; }

/* The refusal in a hidden-line frame; the diagnostic in the accent frame. */
.ed-hid { border: 1px dashed var(--ed-g2); padding: 10px 12px; }
.ed-dx { border: 2px solid var(--ed-or); padding: 12px 16px; margin: 14px 0 !important; font-weight: 500; }
.ed-dx__k { display: block; color: var(--ed-or-t); font: 500 12px/1.4 var(--ed-mono); text-transform: uppercase; letter-spacing: .06em; }

/* Tables: carries, research. */
.ed-tw { overflow-x: auto; }
.ed-ct, .ed-rt { width: 100%; border-collapse: collapse; font-size: 15px; }
.ed-ct th, .ed-ct td, .ed-rt th, .ed-rt td { border: 1px solid var(--ed-g2); padding: 6px 8px; text-align: left; vertical-align: top; }
.ed-ct th { width: 34%; font-weight: 500; }
.ed-ct th a { display: inline-flex; align-items: center; min-height: 44px; }
.ed-ct th small { display: block; font: 400 11px/1.3 var(--ed-mono); color: var(--ed-g1); }
.ed-rt thead th { background: var(--ed-p1); font: 500 11px/1.3 var(--ed-mono); text-transform: uppercase; letter-spacing: .04em; }
.ed-rt tbody th { font-weight: 500; }
.ed-none { color: var(--ed-g1); }
.ed-after { margin-top: 12px !important; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1px solid var(--ed-ink); text-decoration: none; }
.ed-swatch { display: flex; flex-wrap: wrap; margin: 0 0 4px 1px; }
.ed-swatch span { width: 80px; padding: 22px 4px 2px; font: 400 10px/1.2 var(--ed-mono); border: 1px solid var(--ed-g2); margin: -1px 0 0 -1px; }

/* Rules: n.i numbered notes by area. */
.ed-rules { list-style: none; margin: 0; padding: 0; }
.ed-rules li { display: grid; grid-template-columns: 40px 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ed-p2); }
.ed-rules--plain li { grid-template-columns: 130px minmax(0, 1fr); }
.ed-rn { font: 400 14px/1.6 var(--ed-mono); color: var(--ed-g1); }
.ed-ar { font-weight: 600; }
.ed-k { display: block; margin-bottom: 2px; font: 400 11px/1.4 var(--ed-mono); color: var(--ed-g1); text-transform: uppercase; letter-spacing: .04em; }
.ed-rules p { margin: 0; }
.ed-rules small { display: block; margin-top: 2px; font: 400 12px/1.5 var(--ed-mono); color: var(--ed-g1); }

/* The line-type legend, attached only to the rule that names line types. */
.ed-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; font: 400 12px/1.4 var(--ed-mono); color: var(--ed-g1); }
.ed-lines i { display: block; margin-bottom: 6px; }
.ed-l1 { border-top: 3px solid var(--ed-ink); }
.ed-l2 { border-top: 1px dashed var(--ed-ink); }
.ed-l3 { height: 1px; background: repeating-linear-gradient(90deg, var(--ed-ink) 0 14px, transparent 14px 18px, var(--ed-ink) 18px 21px, transparent 21px 25px); }

/* Confused-with, use it, footer. */
.ed-tap { display: inline-flex; align-items: center; min-height: 44px; }
.ed-nb + .ed-nb { margin-top: 14px; }
.ed-acts { display: grid; gap: 10px; }
.ed-acts a { display: block; padding: 14px; border: 1.5px solid var(--ed-ink); text-decoration: none; }
.ed-acts a b { display: block; font-weight: 600; }
.ed-acts a:hover { background: var(--ed-ink); color: var(--ed-w); }
.ed-mach { font-size: 13px; margin-top: 12px !important; overflow-wrap: anywhere; }
.ed-foot { margin-top: 34px !important; font-size: 14px; }

@media (max-width: 820px) {
  .ed-hero__in, .ed-two { grid-template-columns: minmax(0, 1fr); }
  .ed-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-rules li { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; }
  .ed-rules li > div { grid-column: 2; }
  .ed-rules--plain li { grid-template-columns: minmax(0, 1fr); }
  .ed-rules--plain li > div { grid-column: 1; }
  .ed-lines { grid-template-columns: minmax(0, 1fr); }
  .ed-ct th { width: auto; }
}
@media (max-width: 420px) {
  .ed-sec { padding-left: 52px; padding-right: 14px; }
  .ed-meta { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Design Completion (2026-09-29): the width series and the sheet ------ */
.ed-l1 { border-top-width: 2px; }
.ed-series { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 0 !important; font: 400 12px/1.4 var(--ed-mono); color: var(--ed-g1); }
.ed-series .ed-k { margin: 0; }
.ed-series__w { display: inline-grid; gap: 4px; width: 56px; }
.ed-series__w i { display: block; background: var(--ed-ink); }
.ed-s4 { height: 4px; } .ed-s2 { height: 2px; } .ed-s1 { height: 1px; }
.ed-sheet { margin: 18px 0 0; }
.ed-sheet svg { display: block; width: 100%; height: auto; }
.ed-sheet text { font-family: var(--ed-mono); fill: var(--ed-ink); stroke: none; }
.ed-sh__t text, .ed-sh__n text { text-anchor: middle; font-weight: 500; }
.ed-sh__k text { fill: var(--ed-g1); letter-spacing: .04em; }
.ed-sheet figcaption { margin-top: 8px; font-size: 14px; color: var(--ed-g1); }
.ed-sheet figcaption .ed-k { display: block; }
