/* 24a.li: Rack Elevation. One unit (1U) governs spacing and panel height. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* One stepped enclosure ramp. Nothing off-ramp. */
  --g0: #f4f6f5; /* drawing paper */
  --g1: #e2e6e4; /* device face */
  --g2: #cbd0cc; /* RAL 7035 enclosure */
  --g3: #afb5b2; /* seam */
  --g4: #858b88; /* dim silkscreen */
  --g5: #525855; /* secondary ink */
  --g6: #2a2e2e; /* rail, switch face */
  --g7: #171a1a; /* silkscreen ink */

  --led: #23a646;
  --led-glow: rgb(35 166 70 / 0.55);
  --amber: #e39b16;
  --amber-soft: rgb(227 155 22 / 0.22);
  --tag: #f1c232;

  --u: 2.75rem; /* 1U = 44px */
  --rail: 4.25rem;
  --rail-r: 2rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--g5) var(--g2);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--g2);
  color: var(--g7);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--amber);
  color: var(--g7);
}

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

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--g7);
  outline-offset: 3px;
  border-radius: 1px;
}

/* On the dark switch and plinth the ink ring disappears, amber carries focus there */
.uplinks :focus-visible,
.plinth :focus-visible {
  outline-color: var(--amber);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--g7);
  color: var(--g0);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.rack:focus {
  outline: none;
}

/* Silkscreen: condensed caps, the label voice of the whole page. */
.silk {
  font-family: var(--sans);
  font-variation-settings: "wdth" 72;
  font-weight: 650;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 85;
}

/* ---------- Page layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 92rem;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(var(--u) * 2);
}

@media (min-width: 70rem) {
  .layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
    padding-top: 1.5rem;
  }
}

/* ---------- Elevation drawing (desktop map) ---------- */

.elevation {
  display: none;
}

@media (min-width: 70rem) {
  .elevation {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 1.5rem;
    height: calc(100svh - 3rem);
    max-height: 62rem;
    background: var(--g0);
    border: 1px solid var(--g7);
    box-shadow: 0 1px 0 var(--g3), 0 14px 28px -18px rgb(24 26 26 / 0.45);
  }
}

.elev-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0.7rem 0.45rem;
  border-bottom: 1px solid var(--g7);
}

.elev-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.9rem 2.5rem minmax(0, 1fr);
  grid-template-rows: repeat(42, minmax(0, 1fr));
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  min-height: 0;
}

.elev-u,
.elev-y {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 80;
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--g5);
}

.elev-u {
  justify-content: flex-end;
  padding-right: 0.45rem;
}

.elev-y {
  color: var(--g7);
}

.elev-block {
  grid-column: 3;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
  margin-top: -1px;
  padding: 0 0.45rem;
  border: 1px solid var(--g7);
  background: var(--g1);
  color: var(--g7);
  text-decoration: none;
  overflow: hidden;
  transition: background-color 220ms var(--ease-out);
}

.elev-block[data-kind="edu"] {
  background: var(--g0);
}

.elev-block[data-kind="uplink"] {
  background: var(--tag);
}

.elev-block[data-kind="uplink"] .elev-label {
  color: var(--g7);
}

.elev-block .elev-label {
  font-family: var(--sans);
  font-variation-settings: "wdth" 66;
  font-weight: 650;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.elev-block[data-n="1"] .elev-label {
  line-height: 1;
}

.elev-block:hover,
.elev-block.is-hot {
  background: var(--amber-soft);
}

.elev-block.in-view {
  background: var(--amber);
}

.elev-led {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--g3);
  border: 1px solid var(--g5);
}

.elev-block[data-current] .elev-led {
  background: var(--led);
  border-color: #137a2f;
  box-shadow: 0 0 5px var(--led-glow);
}

.elev-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--g7);
}

.elev-title > div {
  padding: 0.35rem 0.6rem 0.4rem;
  border-right: 1px solid var(--g7);
  border-bottom: 1px solid var(--g7);
}

.elev-title > div:nth-child(2n) {
  border-right: 0;
}

.elev-title > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.elev-title dt {
  font-size: 0.6875rem;
  color: var(--g5);
}

.elev-title dd {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
}

/* Power-on sweep: LEDs only, bottom to top, once. Content is never hidden. */
@media (prefers-reduced-motion: no-preference) {
  .elevation.is-booting .elev-led {
    animation: power-on 520ms var(--ease-out) both;
    animation-delay: calc(var(--i) * 28ms);
  }
}

@keyframes power-on {
  0% {
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
  }
  100% {
  }
}

/* ---------- Mobile strip map ---------- */

.strip {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0.5rem var(--gutter) 0.55rem;
  background: var(--g6);
  color: var(--g1);
  box-shadow: 0 8px 18px -12px rgb(24 26 26 / 0.6);
}

@media (min-width: 70rem) {
  .strip {
    display: none;
  }
}

.strip-ticks {
  display: grid;
  grid-template-columns: repeat(42, minmax(0, 1fr));
  gap: 2px;
  height: 0.6rem;
}

.strip-tick {
  background: var(--g5);
  transition: background-color 220ms var(--ease-out);
}

.strip-tick[data-kind="uplink"] {
  background: #8f7a2b;
}

.strip-tick[data-kind="edu"] {
  background: var(--g4);
}

.strip-tick.is-start {
  margin-left: 2px;
}

.strip-tick[data-current] {
  background: var(--led);
}

.strip-tick.in-view {
  background: var(--amber);
}

.strip-readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  color: var(--g2);
}

.strip-readout .num {
  font-size: 0.6875rem;
  color: var(--g3);
}

/* ---------- Rack ---------- */

.rack {
  min-width: 0;
  background: var(--g6);
  padding: 0 0 0.5rem;
  box-shadow: 0 30px 60px -40px rgb(24 26 26 / 0.7);
}

/* A unit: left rail with years, face, right rail with U numbers. */
.unit {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail-r);
  min-height: calc(var(--u) * var(--n, 1));
  scroll-margin-top: 4.5rem;
}

@media (min-width: 70rem) {
  .unit {
    scroll-margin-top: 1.5rem;
  }
}

.rail {
  display: grid;
  overflow: hidden;
  grid-template-rows: repeat(var(--n, 1), minmax(0, 1fr));
  color: var(--g4);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 80;
  font-size: 0.6875rem;
  line-height: 1;
}

.rail span {
  display: flex;
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.rail-l span {
  justify-content: flex-start;
  padding-left: 0.85rem;
  color: var(--g3);
}

.rail-r span {
  justify-content: center;
  color: var(--g4);
  font-size: 0.6875rem;
}

.face {
  position: relative;
  min-width: 0;
  background: var(--g1);
  border-top: 1px solid #f6f8f7;
  border-bottom: 1px solid var(--g3);
  box-shadow: inset 0 -2px 0 rgb(24 26 26 / 0.06);
}

/* ---------- Crown: the nameplate above U42 ---------- */

.crown {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail-r);
}

.crown .face {
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3rem);
  border-top: 0;
}

.crown-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--g3);
  color: var(--g5);
}

.crown-bar > p.silk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* Language switch: two flat positions */
.rocker {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--g7);
}

.rocker a {
  min-width: 2.75rem;
  padding: 0.3rem 0.6rem;
  text-align: center;
  text-decoration: none;
  color: var(--g5);
}

.rocker a[aria-current="page"] {
  background: var(--g7);
  color: var(--g0);
}

.rocker a:not([aria-current]):hover {
  color: var(--g7);
  background: var(--g2);
}

.crown-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 52rem) {
  .crown-grid {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    align-items: start;
  }
}

.name {
  margin: 0;
  font-family: var(--sans);
  font-variation-settings: "wdth" 64;
  font-weight: 800;
  font-size: clamp(3.4rem, 8.4vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.role {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: clamp(1rem, 2.5vw, 1.5rem) 0 0;
  font-variation-settings: "wdth" 90;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  text-wrap: balance;
}

.led {
  flex: none;
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8ef0a6, var(--led) 55%, #137a2f);
  box-shadow: 0 0 8px var(--led-glow);
  transform: translateY(-0.05em);
}

@media (prefers-reduced-motion: no-preference) {
  .led {
    animation: led-breathe 2.8s ease-in-out infinite;
  }
}

@keyframes led-breathe {
  50% {
    box-shadow: 0 0 2px rgb(35 166 70 / 0.25);
    filter: brightness(0.82);
  }
}

.employer {
  margin: 0.55rem 0 0 1.45rem;
  color: var(--g5);
}

.lede {
  max-width: 38rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Ports: contact jacks */
.ports {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.port {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  text-decoration: none;
  color: var(--g7);
}

.jack {
  grid-row: span 2;
  position: relative;
  width: 2.6rem;
  height: 2.3rem;
  color: var(--g6);
}

.jack svg {
  width: 100%;
  height: 100%;
}

.jack::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--g3);
  border: 1px solid var(--g5);
  transition: background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.port:hover .jack::after,
.port:focus-visible .jack::after,
.port[data-primary] .jack::after {
  background: var(--led);
  border-color: #137a2f;
  box-shadow: 0 0 6px var(--led-glow);
}

.port .silk {
  color: var(--g5);
}

.port-value {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--g4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.port:hover .port-value {
  text-decoration-color: var(--g7);
}

.port[data-primary] .port-value {
  font-size: 1.15rem;
}

/* Display window with portrait */
.window {
  margin: 0;
  padding: 0.45rem;
  background: var(--g6);
  border-radius: 3px;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.6), 0 1px 0 #f8faf9;
}

.window img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 1px;
}

@media (max-width: 51.99rem) {
  .crown-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .crown-side .window {
    max-width: 13rem;
  }
}

/* Rating plate */
.plate {
  margin: 1rem 0 0;
  background: var(--g0);
  border: 1px solid var(--g7);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 51.99rem) {
  .plate {
    margin: 0;
  }
}

.plate > div {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  border-top: 1px solid var(--g3);
}

.plate > div:first-child {
  border-top: 0;
}

.plate dt {
  padding: 0.45rem 0.55rem;
  border-right: 1px solid var(--g3);
  color: var(--g5);
  font-size: 0.6875rem;
}

.plate dd {
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.4rem 0.6rem;
}

/* ---------- Uplinks: top-of-rack switch ---------- */

.uplinks .face {
  background: var(--g6);
  color: var(--g1);
  border-top-color: #3d4141;
  border-bottom-color: #0e0f0f;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0.85rem clamp(1rem, 2.5vw, 1.75rem);
  gap: 0.75rem 1.5rem;
}

@media (min-width: 52rem) {
  .uplinks .face {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}

.uplinks h2 {
  margin: 0;
  align-self: start;
  padding-top: 0.2rem;
  color: var(--g3);
}

.uplink-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uplink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
  text-decoration: none;
  color: var(--g1);
}

.uplink .jack {
  width: 2rem;
  height: 1.8rem;
  color: var(--g4);
  margin-top: 0.1rem;
}

.uplink .jack::after {
  border-color: #0e0f0f;
  background: #3d4141;
}

.uplink:hover .jack::after,
.uplink:focus-visible .jack::after {
  background: var(--led);
  box-shadow: 0 0 6px var(--led-glow);
}

.tag {
  justify-self: start;
  display: inline-block;
  padding: 0.12rem 0.4rem 0.1rem;
  background: var(--tag);
  color: var(--g7);
  border-radius: 1px;
}

.uplink-desc {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--g3);
}

.uplink:hover .uplink-desc {
  color: var(--g0);
}

@media (min-width: 80rem) {
  .uplink-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plate dd.num {
  font-size: 0.75rem;
}

/* ---------- Devices ---------- */

.device .face {
  display: grid;
  align-content: start;
  gap: 1rem 2.5rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.25rem, 3vw, 2.25rem);
}

@media (min-width: 52rem) {
  .device .face {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

/* Map and panel answer each other on hover */
.unit.is-hot > .face,
.face.is-hot {
  box-shadow: inset 0 0 0 2px var(--amber);
}

.dev-head h2,
.dev-head h3 {
  margin: 0;
  font-variation-settings: "wdth" 66;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.dev-head .title {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  font-variation-settings: "wdth" 92;
}

.dev-head .meta {
  margin: 0.45rem 0 0;
  color: var(--g5);
}

.dev-body {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.dev-body p {
  margin: 0;
  text-wrap: pretty;
}

.specs {
  display: grid;
  gap: 0.35rem;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
}

.specs > div {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.75rem;
}

.specs dt {
  padding-top: 0.12rem;
  color: var(--g5);
  font-size: 0.6875rem;
}

.specs dd {
  margin: 0;
}

/* Compact 1U to 3U devices: one line where the steel allows it */
.device.compact .face {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 52rem) {
  .device.compact .face {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
  .device.compact .dev-head h2,
  .device.compact .dev-head h3 {
    font-size: 1.35rem;
  }
}

/* 1U: a single silkscreened line */
.device.oneline .face {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  gap: 0.1rem 1rem;
  padding-block: 0.55rem;
}

.device.oneline h2 {
  margin: 0;
  font-variation-settings: "wdth" 66;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.device.oneline .title {
  margin: 0;
  font-weight: 600;
}

.device.oneline .meta {
  margin: 0;
  color: var(--g5);
}

.edu .face {
  background: var(--g0);
}

/* ---------- Blade chassis (Ärztekasse) ----------
   Each blade is a 2U row with its own rails, newest on top.
   Desktop: the chassis label runs down a side column. */

.chassis {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail-r);
  scroll-margin-top: 4.5rem;
}

.chassis-bezel {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem) 0.9rem;
  background: var(--g1);
  border-top: 1px solid #f6f8f7;
  border-bottom: 1px solid var(--g3);
}

.chassis::before,
.chassis::after {
  content: "";
  grid-row: 1;
  background: var(--g6);
}

.chassis::before {
  grid-column: 1;
}

.chassis::after {
  grid-column: 3;
}

.chassis-bezel h2 {
  margin: 0;
  font-variation-settings: "wdth" 66;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.chassis-bezel p {
  margin: 0;
  color: var(--g5);
}

.blade {
  display: contents;
}

.blade:nth-child(2) { --r: 1; }
.blade:nth-child(3) { --r: 2; }
.blade:nth-child(4) { --r: 3; }
.blade:nth-child(5) { --r: 4; }

.blade > * {
  grid-row: calc(var(--r) + 1);
}

.blade > .rail-l { grid-column: 1; }
.blade > .face { grid-column: 2; }
.blade > .rail-r { grid-column: 3; }

.blade > .face {
  display: grid;
  align-content: center;
  gap: 0.75rem 2.5rem;
  min-height: calc(var(--u) * 2);
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  scroll-margin-top: 4.5rem;
}

.blade .dev-head h3 {
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
  text-wrap: balance;
}

.blade .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blade .dev-body p {
  font-size: 0.95rem;
}

.blade .stack {
  margin-top: 0.5rem;
  color: var(--g5);
}

.blade[data-current] > .face {
  background: #eaeeec;
}

.blade[data-current] .elev-led {
  background: var(--led);
  border-color: #137a2f;
  box-shadow: 0 0 6px var(--led-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .blade[data-current] .elev-led {
    animation: led-breathe 2.8s ease-in-out infinite;
  }
}

@media (min-width: 52rem) {
  .chassis {
    grid-template-columns: var(--rail) 14rem minmax(0, 1fr) var(--rail-r);
  }
  .chassis-bezel {
    min-width: 0;
    padding-inline: 1.25rem;
  }
  .chassis-bezel h2 {
    font-size: 1.85rem;
  }
  .chassis-bezel {
    grid-column: 2;
    grid-row: 1 / span 4;
    border-right: 1px solid var(--g3);
    border-bottom: 1px solid var(--g3);
  }
  .chassis::before,
  .chassis::after {
    display: none;
  }
  .blade > * {
    grid-row: var(--r);
  }
  .blade > .face {
    grid-column: 3;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 0.25rem 1.75rem;
    padding-block: 0.4rem;
  }
  .blade .dev-body {
    display: contents;
  }
  .blade .dev-head h3 {
    font-size: 1.05rem;
  }
  .blade .meta {
    margin-top: 0.3rem;
  }
  .blade .dev-body p {
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .blade .stack {
    margin-top: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--g3);
  }
  .blade > .rail-r {
    grid-column: 4;
  }
}

@media (min-width: 52rem) and (max-width: 99.99rem) {
  .chassis {
    grid-template-columns: var(--rail) 10.5rem minmax(0, 1fr) var(--rail-r);
  }
  .chassis-bezel {
    padding-inline: 1rem;
  }
  .chassis-bezel h2 {
    font-size: 1.5rem;
  }
  .blade > .face {
    padding-inline: 1.25rem;
    gap: 0.25rem 1.25rem;
  }
}

@media (min-width: 70rem) {
  .chassis {
    scroll-margin-top: 1.5rem;
  }
  .blade > .face {
    scroll-margin-top: 1.5rem;
  }
}

/* ---------- Plinth ---------- */

.plinth {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail-r);
  margin-top: 0.5rem;
  background: var(--g7);
  color: var(--g3);
}

.plinth-inner {
  display: grid;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
}

@media (min-width: 52rem) {
  .plinth-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.plinth h2 {
  margin: 0;
  color: var(--g0);
  font-variation-settings: "wdth" 66;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.plinth p {
  margin: 0.6rem 0 0;
  max-width: 36rem;
}

.plinth a {
  color: var(--g0);
}

.plinth .port {
  margin-top: 1.25rem;
  color: var(--g0);
}

.plinth .jack {
  color: var(--g2);
}

.plinth .port .silk {
  color: var(--g3);
}

.plinth .port-value {
  text-decoration-color: var(--g4);
}

.plinth .jack::after {
  border-color: #0e0f0f;
}

.plinth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plinth-meta a {
  color: var(--g2);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 51.99rem) {
  :root {
    --u: 2.5rem;
    --rail: 2.9rem;
    --rail-r: 0.6rem;
  }
  .rail-l span {
    padding-left: 0.4rem;
    font-size: 0.6875rem;
    font-variation-settings: "wdth" 75;
  }
  .rail-r span {
    visibility: hidden;
  }
}

/* ---------- Document page (privacy) ---------- */

.doc .face {
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.doc-body {
  max-width: 42rem;
}

.doc-body h1 {
  margin: 0;
  font-variation-settings: "wdth" 64;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.doc-body h2 {
  margin: 2.5rem 0 0.5rem;
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 1.25rem;
}

.doc-body p,
.doc-body ul {
  margin: 0.6rem 0 0;
}

.doc-body .meta {
  margin-top: 1rem;
  color: var(--g5);
}

/* ---------- Touch targets, pressed and keyboard parity ---------- */

/* Small text links keep their look but get a 44px hit area */
.rocker a,
.plinth-meta a,
.crown-bar nav a {
  position: relative;
}

.rocker a::after,
.plinth-meta a::after,
.crown-bar nav a::after {
  content: "";
  position: absolute;
  inset: -10px 0;
}

.plinth-meta a::after,
.crown-bar nav a::after {
  inset: -16px -4px;
}

.port {
  min-height: 2.75rem;
}

/* Pressed: the control seats one pixel, like a key going in */
.rocker a:active,
.port:active,
.uplink:active,
.plinth-meta a:active,
.crown-bar nav a:active {
  transform: translateY(1px);
}

.elev-block:active {
  background: var(--amber);
}

/* Keyboard focus gets what hover gets */
.port:focus-visible .port-value {
  text-decoration-color: var(--g7);
}

.uplink:focus-visible .uplink-desc {
  color: var(--g0);
}

.elev-block:focus-visible {
  background: var(--amber-soft);
}

.elev-block.in-view:hover,
.elev-block.in-view:focus-visible,
.elev-block.in-view.is-hot {
  box-shadow: inset 0 0 0 2px var(--g7);
}

/* On the ink plinth the hover underline must stay visible */
.plinth .port:hover .port-value,
.plinth .port:focus-visible .port-value {
  text-decoration-color: var(--g0);
}

/* Tag line under a device body */
.dev-body .stack {
  margin: 0.6rem 0 0;
  color: var(--g5);
}

/* Long words break with hyphens rather than overflow */
.specs dd,
.dev-body p {
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Without JavaScript the map stays empty, so hide it and give the rack the width */
html:not(.js) .elevation {
  display: none;
}

@media (min-width: 70rem) {
  html:not(.js) .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
