/* /technical_reference - standalone spec-sheet design (Claude Design
   handoff 2026-09-08, tmp/design/design_handoff_technical_reference/).
   Deliberately shares nothing with the site's Soft UI system. */

@font-face {
  font-family: 'D-DIN';
  src: url('/fonts/D-DIN.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #FDFDFC;
  --ink: #17191C;
  --body: #3B4048;
  --body-alt: #4A5058;
  --muted: #6E747C;
  --meta: #5A6068;
  --meta-port: #5F656D;
  --toc-rest: #767C85;
  --placeholder: #C3C1BB;
  --accent: #EC6952;
  --accent-link: #B4482F;
  --panel: #F4F3F0;
  --rule: #E3E1DC;
  --rule-soft: #E9E7E2;
  --sans: 'D-DIN', 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.tr {
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.tr a { color: var(--accent-link); text-decoration: underline; text-underline-offset: 2px; }
.tr a:hover { color: var(--accent); }

.tr-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px 120px; }

/* sticky top bar */
.tr-bar {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 28px;
  background: rgba(253, 253, 252, 0.94);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; gap: 18px;
}
.tr-bar .tr-home { font-size: 15px; color: var(--ink); text-decoration: none; }
.tr-bar .tr-crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--meta);
}

/* header */
.tr-header { padding: 64px 0 34px; max-width: 760px; }
.tr-header h1 {
  font-size: 46px; font-weight: 400; line-height: 1.06;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px;
}
.tr-purpose {
  font-size: 19px; line-height: 1.5; color: var(--body);
  max-width: 640px; text-wrap: pretty; margin-bottom: 28px;
}
.tr-banner {
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 9px 0; font-family: var(--mono); font-size: 12px;
  line-height: 1.7; color: var(--muted);
}

/* body: TOC + main */
.tr-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.tr-toc { flex: 0 0 196px; position: sticky; top: 60px; }
.tr-main { flex: 1 1 560px; min-width: 0; }

.tr-toc-head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--meta);
  padding-bottom: 9px; border-bottom: 1px solid var(--rule); margin-bottom: 12px;
}
.tr-toc a {
  display: flex; gap: 9px; font-size: 14px; line-height: 1.3;
  padding: 3px 0 3px 10px; margin-left: -12px;
  border-left: 2px solid transparent;
  color: var(--toc-rest); text-decoration: none;
}
.tr-toc a .n { font-family: var(--mono); font-size: 11.5px; color: var(--meta); min-width: 18px; }
.tr-toc a:hover { color: var(--ink); }
.tr-toc a.active { color: var(--ink); border-left-color: var(--accent); }

/* mobile jump menu */
.tr-jump { display: none; }

/* section shell */
.tr-main section {
  max-width: 760px; padding-top: 26px; margin-bottom: 52px;
  border-top: 1px solid var(--rule);
}
.tr-main section.full { max-width: none; }
.tr-num {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: .08em; margin-bottom: 6px;
}
.tr-main h2 {
  font-size: 29px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.005em; margin-bottom: 20px;
}
.tr-main h3 { font-size: 19px; font-weight: 400; line-height: 1.35; color: var(--ink); }
.tr-main p, .tr-main li { font-size: 16.5px; line-height: 1.65; }
.tr-main p { text-wrap: pretty; margin-bottom: 14px; }
.tr-main ul { padding-left: 20px; margin-bottom: 14px; }
.tr-main li { margin-bottom: 8px; }

/* "In short" callout */
.tr-inshort {
  border-left: 2px solid var(--accent);
  padding: 1px 0 1px 18px; margin-bottom: 22px;
}
.tr-inshort .label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.tr-inshort .text { font-size: 17px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* stub for unwritten sections */
.tr-stub { font-family: var(--mono); font-size: 12.5px; color: var(--meta); }

/* troubleshooting entries */
.tr-ts { border-top: 1px solid var(--rule); padding: 20px 0 4px; margin-top: 22px; }
.tr-ts p { font-size: 16px; line-height: 1.6; margin-top: 12px; }
.tr-ts b { color: var(--ink); }
.tr-ts .why { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* code */
.tr-main pre {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 15px 16px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: #22252A; border-radius: 0; margin-bottom: 14px;
}
.tr-main code {
  font-family: var(--mono); font-size: 14px;
  background: var(--panel); padding: 1px 4px; border-radius: 0;
}
.tr-main pre code { font-size: inherit; background: none; padding: 0; }
.tr-annotations { padding-left: 22px; }
.tr-annotations li { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }

/* prose tables */
.tr-tablewrap { overflow-x: auto; margin-bottom: 14px; }
.tr-tablewrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.tr-tablewrap th {
  text-align: left; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--meta);
  font-weight: 400; padding: 0 16px 8px 0; border-bottom: 1px solid var(--ink);
}
.tr-tablewrap td {
  padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule-soft);
  vertical-align: top; line-height: 1.55;
}
.tr-tablewrap td.key { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.tr-tablewrap td.type { color: var(--muted); }

/* the emphasized "not contained" block */
.tr-notcontained {
  background: var(--panel); border-top: 2px solid var(--ink);
  padding: 18px 20px; margin-bottom: 14px;
}
.tr-notcontained p { font-size: 16.5px; line-height: 1.6; color: var(--ink); margin: 0; }
.tr-notcontained code { background: #FFFFFF; }

/* worked example figure */
.tr-example { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.tr-example pre { flex: 1 1 380px; min-width: 0; }
.tr-example figure { flex: 0 1 262px; min-width: 200px; }
.tr-example figure img { width: 100%; height: 210px; object-fit: contain; }
.tr-example figcaption {
  font-family: var(--mono); font-size: 11px; line-height: 1.5;
  color: var(--meta); margin-top: 8px;
}

/* node appendix */
.tr-appendix-intro { color: var(--muted); }
.tr-controls { display: flex; gap: 16px; margin-bottom: 12px; align-items: center; }
.tr-filter {
  flex: 0 1 320px; font-family: var(--mono); font-size: 12.5px;
  padding: 8px 10px; border: 1px solid #D6D4CE; background: #FFFFFF;
  border-radius: 0; outline: none;
}
.tr-filter:focus { border-color: var(--ink); }
.tr-count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--meta);
}
.tr-appendixwrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.tr-appendixwrap table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.tr-appendixwrap th {
  text-align: left; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--meta);
  font-weight: 400; padding: 10px 16px 9px 0; border-bottom: 1px solid #B9B7B1;
}
.tr-appendixwrap th.c-node { width: 170px; }
.tr-appendixwrap th.c-class { width: 210px; }
.tr-appendixwrap tr { border-bottom: 1px solid #EDEBE6; }
.tr-appendixwrap tbody tr:hover { background: #F7F6F3; }
.tr-appendixwrap td { vertical-align: top; padding: 12px 16px 12px 0; }
.tr-node-label a { font-size: 15px; color: var(--ink); text-decoration: none; }
.tr-node-meta { font-family: var(--mono); font-size: 11px; color: var(--meta); margin-top: 2px; }
.tr-node-class { font-family: var(--mono); font-size: 12px; color: var(--body-alt); word-break: break-word; }
.tr-main ul.tr-ports { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 0; }
.tr-main .tr-ports .port { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink); white-space: nowrap; margin: 0; }
.tr-ports .ptype { font-size: 10.5px; color: var(--meta-port); }
.tr-fields { font-family: var(--mono); font-size: 12px; color: var(--body-alt); line-height: 1.5; }
.tr-fields .dv { color: var(--meta); }
.tr-dash { color: var(--placeholder); }
.tr-empty { font-family: var(--mono); font-size: 12.5px; color: var(--meta); padding: 16px 0; }

/* footer */
.tr-footer {
  margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.8;
  color: var(--meta); max-width: 760px;
}

/* narrow viewports. Handoff said 860px, but the row needs 196+56+560
   + 2*28 padding = 868px - anything between wraps the sidebar and its
   sticky positioning overlays the wrapped content. 900 clears the zone. */
@media (max-width: 900px) {
  .tr-toc { display: none; }
  .tr-jump {
    display: block; border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--rule); margin-bottom: 8px;
  }
  .tr-jump summary {
    font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink); padding: 11px 0;
    cursor: pointer; list-style: none;
  }
  .tr-jump summary::-webkit-details-marker { display: none; }
  .tr-jump[open] { padding-bottom: 10px; }
  .tr-jump a {
    display: block; font-size: 15px; color: var(--body);
    text-decoration: none; margin-bottom: 7px;
  }
  .tr-jump a .n { font-family: var(--mono); color: var(--meta); margin-right: 8px; }
}
