.technical-reference-page {
  --tr-ink: #17211e;
  --tr-muted: #5b6863;
  --tr-line: #d5ded9;
  --tr-paper: #f4f6f3;
  --tr-green: #176a49;
  --tr-deep: #10251d;
  --tr-gold: #b98b35;
  color: var(--tr-ink);
  background: #fff;
}

.technical-reference-page main { overflow: clip; }
.technical-reference-page ::selection { color: #fff; background: var(--tr-green); }
.technical-reference-page a:focus-visible,
.technical-reference-page summary:focus-visible,
.technical-reference-page [tabindex="0"]:focus-visible { outline: 3px solid #d85522; outline-offset: 4px; }

.tr-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.tr-narrow { max-width: 960px; }
.tr-section { padding: 72px 0; border-bottom: 1px solid var(--tr-line); }
.tr-heading { max-width: 740px; margin-bottom: 28px; }
.tr-heading-wide { max-width: 900px; }
.tr-heading h2,
.tr-related h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.tr-heading > p { margin: 12px 0 0; color: var(--tr-muted); font-size: 17px; line-height: 1.65; }

.tr-hero { padding: 48px 0 58px; background: var(--tr-paper); border-bottom: 1px solid var(--tr-line); }
.tr-hero-inner { max-width: 1100px; }
.tr-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #63706c; font-size: 14px; font-weight: 700; }
.tr-breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.tr-breadcrumb a:hover { text-decoration-color: currentColor; }
.tr-status { display: inline-flex; margin: 0 0 16px; padding: 7px 10px; color: #fff; background: var(--tr-green); border-radius: 4px; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.tr-hero h1 { max-width: 1000px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.01; letter-spacing: -.04em; text-wrap: balance; }
.tr-lead { max-width: 790px; margin: 24px 0 0; color: #43514c; font-size: 19px; line-height: 1.65; }
.tr-answer { display: grid; grid-template-columns: .7fr .8fr .85fr 1.65fr; margin: 34px 0 0; border-top: 1px solid #cbd4cf; border-bottom: 1px solid #cbd4cf; }
.tr-answer > div { min-width: 0; padding: 18px 22px 18px 0; }
.tr-answer > div + div { padding-left: 22px; border-left: 1px solid #cbd4cf; }
.tr-answer dt { margin-bottom: 5px; color: var(--tr-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tr-answer dd { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.35; }

.tr-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #cbd5d0; scrollbar-color: var(--tr-green) #edf1ee; }
.tr-table { width: 100%; min-width: 720px; border-collapse: collapse; color: #27342f; font-variant-numeric: tabular-nums; }
.tr-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tr-table th,
.tr-table td { padding: 16px 18px; border-top: 1px solid var(--tr-line); border-left: 1px solid var(--tr-line); text-align: left; vertical-align: top; line-height: 1.48; }
.tr-table tr:first-child th,
.tr-table tr:first-child td,
.tr-table thead + tbody tr:first-child td { border-top: 0; }
.tr-table th:first-child,
.tr-table td:first-child { border-left: 0; }
.tr-table tbody th { width: 28%; color: #26342f; background: #f7f9f7; font-size: 15px; }
.tr-table tbody td { color: #52605b; font-size: 15px; }
.tr-table thead th { color: #fff; background: var(--tr-deep); border-top: 0; border-left-color: rgba(255,255,255,.14); font-size: 14px; }
.tr-equipment-table { min-width: 900px; }
.tr-equipment-table thead th:nth-child(1) { width: 20%; }
.tr-equipment-table thead th:nth-child(2) { width: 25%; }
.tr-equipment-table thead th:nth-child(3) { width: 23%; }
.tr-equipment-table tbody tr:nth-child(even) td { background: #fbfcfb; }

.tr-process { background: #fbfcfb; }
.tr-route-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 34px; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.tr-route-summary p { margin: 0; padding: 19px 24px 21px 0; }
.tr-route-summary p + p { padding-left: 24px; border-left: 1px solid var(--tr-line); }
.tr-route-summary strong,
.tr-route-summary span { display: block; }
.tr-route-summary strong { margin-bottom: 7px; font-size: 16px; }
.tr-route-summary span { color: var(--tr-muted); font-size: 14px; line-height: 1.55; }
.tr-flowsheet { margin: 0; overflow: hidden; background: #fff; border: 1px solid #cbd5d0; border-radius: 12px; box-shadow: 0 16px 44px rgba(16,37,29,.08); }
.tr-flow-head { display: flex; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--tr-line); }
.tr-flow-head h3 { margin: 0; font-size: 22px; }
.tr-flow-head p { margin: 5px 0 0; color: var(--tr-muted); font-size: 14px; line-height: 1.5; }
.tr-flow-head > span { align-self: start; flex: 0 0 auto; color: #8a4b22; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tr-flow-scroll { overflow-x: auto; background: #fff; scrollbar-color: var(--tr-green) #edf1ee; }
.tr-flow-boundary { margin: 0; padding: 12px 22px; color: #6b5121; background: #fbf6eb; border-bottom: 1px solid #e6dac1; font-size: 14px; font-weight: 800; line-height: 1.5; }
.tr-flow-scroll picture { display: block; }
.tr-flow-scroll img { display: block; width: 100%; min-width: 1080px; height: auto; }
.tr-flowsheet figcaption { padding: 14px 22px 16px; color: #5e6a66; background: #f7f9f7; border-top: 1px solid var(--tr-line); font-size: 13px; line-height: 1.55; }

.tr-cad-evidence { background: #fff; }
.tr-cad-wrap { max-width: 1040px; }
.tr-cad-figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid #cbd5d0; border-radius: 12px; }
.tr-cad-preview { display: block; background: #fff; border-bottom: 1px solid var(--tr-line); }
.tr-cad-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4963 / 3509; object-fit: contain; }
.tr-cad-copy { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 18px 20px 20px; }
.tr-cad-copy figcaption { max-width: 710px; color: var(--tr-muted); font-size: 15px; line-height: 1.62; }
.tr-cad-view { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; color: var(--tr-green); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tr-cad-view:hover { color: #0f5036; }

.tr-auxiliary { margin-top: 18px; border-top: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.tr-auxiliary summary { padding: 17px 2px; color: var(--tr-green); font-weight: 800; cursor: pointer; }
.tr-auxiliary summary::marker { color: var(--tr-gold); }
.tr-aux-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; padding: 0 0 22px; }
.tr-aux-grid p { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; margin: 0; padding: 13px 0; border-top: 1px solid var(--tr-line); }
.tr-aux-grid strong { font-size: 14px; }
.tr-aux-grid span { color: var(--tr-muted); font-size: 14px; line-height: 1.5; }

.tr-works { background: var(--tr-paper); }
.tr-logic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 58px; border-top: 1px solid #ccd6d1; }
.tr-logic-list article { padding: 23px 0 25px; border-bottom: 1px solid #ccd6d1; }
.tr-logic-list h3 { margin: 0 0 11px; font-size: 21px; line-height: 1.25; }
.tr-logic-list p { margin: 7px 0 0; color: var(--tr-muted); font-size: 16px; line-height: 1.62; }
.tr-logic-list strong { color: #2c3b35; }

.tr-confirm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(42px, 7vw, 86px); align-items: start; }
.tr-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--tr-line); list-style: none; }
.tr-check-list li { padding: 14px 0; border-bottom: 1px solid var(--tr-line); font-weight: 700; }
.tr-check-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--tr-line); }
.tr-boundary { padding: 28px; color: #edf4f1; background: var(--tr-deep); border-radius: 12px; box-shadow: 0 16px 36px rgba(16,37,29,.16); }
.tr-boundary h2 { margin: 0 0 14px; color: #fff; font-size: 28px; line-height: 1.15; }
.tr-boundary p { margin: 12px 0 0; color: #c5d2cd; font-size: 15px; line-height: 1.65; }
.tr-boundary p:first-of-type { color: #fff; font-weight: 800; }

.tr-evidence { background: #fff; }
.tr-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tr-evidence figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--tr-line); border-radius: 12px; }
.tr-evidence img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tr-evidence figcaption { padding: 13px 15px; color: var(--tr-muted); font-size: 13px; line-height: 1.5; }

.tr-related { padding: 58px 0 64px; background: var(--tr-paper); }
.tr-related-links { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 26px; }
.tr-related-links a { color: var(--tr-green); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tr-related-links a:hover { color: #0f5036; }
.tr-related-links span { display: inline-block; margin-left: 4px; text-decoration: none; }
.technical-reference-page .mobile-menu-toggle { display: none; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; color: #1b2b34; background: #fff; border: 1px solid #c9d2d8; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 820px) {
  .tr-answer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-answer > div:nth-child(3) { padding-left: 0; border-top: 1px solid #cbd4cf; border-left: 0; }
  .tr-answer > div:nth-child(4) { border-top: 1px solid #cbd4cf; }
  .tr-route-summary { grid-template-columns: 1fr; }
  .tr-route-summary p { padding: 17px 0; }
  .tr-route-summary p + p { padding-left: 0; border-top: 1px solid var(--tr-line); border-left: 0; }
  .tr-confirm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .tr-wrap { width: min(100% - 32px, 1180px); }
  .tr-section { padding: 48px 0; }
  .tr-hero { padding: 30px 0 38px; }
  .tr-breadcrumb { margin-bottom: 18px; font-size: 12px; }
  .tr-status { margin-bottom: 13px; font-size: 11px; }
  .tr-hero h1 { font-size: clamp(36px, 10.2vw, 46px); line-height: 1.03; }
  .tr-lead { margin-top: 18px; font-size: 16px; line-height: 1.58; }
  .tr-answer { margin-top: 24px; }
  .tr-answer > div { padding: 14px 12px 14px 0; }
  .tr-answer > div + div { padding-left: 12px; }
  .tr-answer dd { font-size: 15px; }
  .tr-answer dt { font-size: 11px; }
  .tr-heading { margin-bottom: 22px; }
  .tr-heading h2,
  .tr-related h2 { font-size: 32px; }
  .tr-heading > p { margin-top: 9px; font-size: 16px; line-height: 1.58; }
  .tr-table th,
  .tr-table td { padding: 13px 14px; }
  .tr-table tbody th,
  .tr-table tbody td { font-size: 14px; }
  .tr-basis-table { min-width: 0; table-layout: fixed; }
  .tr-basis-table tbody th { width: 40%; }
  .tr-basis-table th,
  .tr-basis-table td { overflow-wrap: anywhere; }
  .tr-route-summary { margin-bottom: 24px; }
  .tr-route-summary span { font-size: 16px; line-height: 1.58; }
  .tr-flow-head { padding: 16px; }
  .tr-flow-head h3 { font-size: 19px; }
  .tr-flow-head p { display: none; }
  .tr-flow-boundary { padding: 13px 16px; font-size: 16px; line-height: 1.55; }
  .tr-flow-scroll { overflow-x: hidden; }
  .tr-flow-scroll img { width: 100%; min-width: 0; }
  .tr-flowsheet figcaption { padding: 14px 16px 16px; font-size: 16px; line-height: 1.58; }
  .tr-cad-copy { display: block; padding: 16px; }
  .tr-cad-copy figcaption { font-size: 16px; line-height: 1.58; }
  .tr-cad-view { margin-top: 14px; font-size: 16px; }
  .tr-aux-grid { grid-template-columns: 1fr; }
  .tr-aux-grid p { grid-template-columns: 1fr; gap: 5px; }
  .tr-aux-grid strong,
  .tr-aux-grid span { font-size: 16px; }
  .tr-logic-list { grid-template-columns: 1fr; }
  .tr-logic-list article { padding: 24px 0 28px; }
  .tr-logic-list h3 { font-size: 19px; }
  .tr-logic-list p { font-size: 16px; line-height: 1.62; }
  .tr-check-list { grid-template-columns: 1fr; }
  .tr-check-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .tr-boundary { padding: 23px 20px; }
  .tr-boundary p { font-size: 16px; }
  .tr-evidence-grid { grid-template-columns: 1fr; }
  .tr-evidence figcaption { font-size: 14px; }
  .tr-related { padding: 42px 0 48px; }
  .tr-related-links { display: grid; gap: 17px; }
  .tr-related-links a { width: fit-content; }
  .technical-reference-page .site-header.nav-ready { grid-template-columns: minmax(0, 1fr) auto auto; padding-bottom: 8px; }
  .technical-reference-page .site-header.nav-ready .mobile-menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .technical-reference-page * { scroll-behavior: auto !important; transition: none !important; }
}
