/* Antenna Shapes. Workbench look: warm paper, copper wire, a blue feed point. */

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url(assets/fonts/Overpass-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/OverpassMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}

:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece4;
  --ink: #1c1b19;
  --ink-2: #5c5a55;
  --line: #e2ded4;
  --line-strong: #c9c4b7;
  --wire: #b5522a;
  --wire-soft: rgba(181, 82, 42, 0.12);
  --feed: #0b6bcb;
  --on-wire: #ffffff;
  --paper-grid: rgba(28, 27, 25, 0.055);
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.06), 0 6px 20px rgba(28, 27, 25, 0.06);
  --head: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 12px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121416;
    --surface: #1b1e22;
    --surface-2: #23272c;
    --ink: #f1efe9;
    --ink-2: #a5a29a;
    --line: #2c3036;
    --line-strong: #454a52;
    --wire: #cf7440;
    --wire-soft: rgba(207, 116, 64, 0.16);
    --feed: #3f8fe0;
    --on-wire: #121416;
    --paper-grid: rgba(241, 239, 233, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121416;
  --surface: #1b1e22;
  --surface-2: #23272c;
  --ink: #f1efe9;
  --ink-2: #a5a29a;
  --line: #2c3036;
  --line-strong: #454a52;
  --wire: #cf7440;
  --wire-soft: rgba(207, 116, 64, 0.16);
  --feed: #3f8fe0;
  --on-wire: #121416;
  --paper-grid: rgba(241, 239, 233, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
}
:root[data-theme='light'] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--wire);
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--feed);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Wire and feed point, shared by logo, cards, drawing and charts */
.wire {
  fill: none;
  stroke: var(--wire);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.feed {
  fill: var(--feed);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Header */
.top {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}
.brand .feed {
  stroke: var(--bg);
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
}
.top-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wire);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 54px);
  letter-spacing: -0.02em;
}
.lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
}
.hero-stats {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  min-height: 1.55em;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  aspect-ratio: 3 / 2;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-art .wire {
  vector-effect: none;
  stroke-width: 2.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s ease-out forwards;
}
.hero-art svg:nth-child(2) .wire {
  animation-delay: 0.12s;
}
.hero-art svg:nth-child(3) .wire {
  animation-delay: 0.24s;
}
.hero-art svg:nth-child(4) .wire {
  animation-delay: 0.36s;
}
.hero-art svg:nth-child(5) .wire {
  animation-delay: 0.48s;
}
.hero-art svg:nth-child(6) .wire {
  animation-delay: 0.6s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Controls */
.controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 20px;
  padding-top: 10px;
  padding-bottom: 12px;
}
.field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.field-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
select,
input[type='search'] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  max-width: 100%;
}
select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  text-overflow: ellipsis;
}
select:hover,
input[type='search']:hover {
  border-color: var(--ink-2);
}
#band {
  min-width: min(300px, 78vw);
  font-weight: 600;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}
.seg button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 18px;
}
.filters-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.chips button:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.chips button[aria-pressed='true'] {
  background: var(--wire-soft);
  border-color: var(--wire);
  color: var(--ink);
}
#search {
  width: 190px;
}
.count {
  margin: 16px 0 12px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Catalogue grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 12px;
  padding-bottom: 56px;
  min-height: 40vh;
  align-content: start;
}
.card {
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  color: var(--ink);
  border-color: var(--wire);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card svg {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 8px;
  overflow: visible;
}
.card-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
}
.card-size,
.card-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-2);
}

/* Detail */
.detail {
  padding-top: 18px;
  padding-bottom: 56px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.crumb:hover {
  color: var(--wire);
}
.d-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 6px 0 20px;
}
.d-head h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.02em;
}
.d-head h1:focus {
  outline: none;
}
.d-sub {
  margin-top: 6px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 14px;
}
.d-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 16px;
}
.d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.drawing {
  margin: 0;
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  overflow: hidden;
}
.drawing-box svg {
  display: block;
}
.drawing-box {
  min-height: 250px;
}
.key-dot {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 2px;
}
.drawing figcaption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
}
.dim line,
.dim path {
  stroke: var(--ink-2);
  stroke-width: 1;
  fill: none;
}
.dim text,
.feed-label {
  font-family: var(--mono);
  font-size: 12.5px;
  fill: var(--ink);
}
.feed-label {
  fill: var(--feed);
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.d-col {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.d-col h2,
.block h2 {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.sizes {
  display: grid;
  gap: 6px;
}
.size {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.size:hover {
  border-color: var(--ink-2);
}
.size[aria-pressed='true'] {
  border-color: var(--wire);
  background: var(--wire-soft);
  box-shadow: inset 0 0 0 1px var(--wire);
}
.size-name {
  font-family: var(--head);
  font-weight: 600;
}
.size-dim,
.size-swr {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--wire);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  vertical-align: 2px;
}
.facts {
  margin: 0;
  padding: 4px 16px;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--ink-2);
  font-size: 14.5px;
}
.facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.downloads {
  display: grid;
  gap: 10px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--wire);
  color: var(--on-wire);
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
}
.btn:hover {
  color: var(--on-wire);
  filter: brightness(1.08);
}
.btn small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  opacity: 0.9;
}
.files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.file {
  display: grid;
  gap: 1px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-decoration: none;
  background: var(--surface);
}
.file:hover {
  border-color: var(--wire);
  color: var(--ink);
}
.file b {
  font-weight: 600;
  font-size: 14.5px;
}
.file span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
details.zip-list {
  font-size: 14.5px;
  color: var(--ink-2);
}
details.zip-list summary {
  cursor: pointer;
  padding: 6px 0;
  color: var(--ink);
}
details.zip-list ul {
  margin: 4px 0 0;
  padding-left: 20px;
}
.block {
  margin-top: 28px;
}
.callouts {
  display: grid;
  gap: 10px;
}
.callout {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
}
.callout b {
  font-family: var(--head);
  font-weight: 600;
}
.callout.is-warn {
  border-left-color: var(--wire);
}

/* Charts */
.chart {
  position: relative;
  padding: 14px 14px 10px;
}
.chart h3 {
  font-size: 17px;
}
.chart .chart-note {
  margin: 2px 0 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.chart-foot {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.halo {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.plot svg[tabindex] {
  cursor: crosshair;
}
.plot {
  position: relative;
  touch-action: pan-y;
}
.plot svg {
  display: block;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.plot svg:focus-visible {
  outline-offset: 4px;
}
.axis text,
.ring-label {
  font-family: var(--mono);
  font-size: 11.5px;
  fill: var(--ink-2);
}
.gridline {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.refline {
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  fill: none;
}
.bandfill {
  fill: var(--ink);
  opacity: 0.07;
}
.bandmark {
  font-family: var(--mono);
  font-size: 11.5px;
  fill: var(--ink);
}
.series {
  fill: none;
  stroke: var(--wire);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.series-fill {
  fill: var(--wire);
  opacity: 0.1;
  stroke: none;
}
.cross {
  stroke: var(--ink-2);
  stroke-width: 1;
}
.dot {
  fill: var(--wire);
  stroke: var(--surface);
  stroke-width: 2;
}
.tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.tip b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.tip span {
  color: var(--ink-2);
}
.polars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.polar .plot {
  max-width: 300px;
  margin: 0 auto;
}
.polar svg {
  width: 100%;
  height: auto;
}

/* About */
.about {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 56px;
}
.about h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 18px;
}
.about h2:not(:first-child) {
  margin-top: 44px;
}
.about h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.about p {
  color: var(--ink-2);
  max-width: 44em;
}
.about a {
  color: var(--ink);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 2px solid var(--wire);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--wire);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}
.vna {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.vna img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.about .vna-tag {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vna-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}
.about .vna-links .btn {
  color: var(--on-wire);
  font-size: 16px;
  min-height: 46px;
}
.about .vna-links .btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.about .vna-links .btn-quiet:hover {
  color: var(--ink);
  border-color: var(--wire);
  filter: none;
}
.about .vna-note {
  font-size: 13px;
}
@media (max-width: 600px) {
  .vna {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .vna img {
    max-width: 200px;
  }
  .vna-links .btn {
    flex: 1 1 100%;
  }
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
}
.noscript {
  padding: 16px 20px;
  text-align: center;
  background: var(--surface-2);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    padding-bottom: 24px;
    gap: 22px;
  }
  .hero-art {
    aspect-ratio: 3 / 1;
    grid-template-columns: repeat(6, 1fr);
    padding: 12px;
  }
  .d-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  /* Auf schmalen Schirmen: Zeichnung, Größen, Kennwerte, dann Downloads */
  .d-col {
    display: contents;
  }
  .drawing {
    order: 1;
  }
  .d-sizes {
    order: 2;
  }
  .d-facts {
    order: 3;
  }
  .d-downloads {
    order: 4;
  }
  .steps,
  .notes-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
  .size {
    grid-template-columns: 1fr auto;
  }
  .size-name {
    grid-column: 1 / -1;
  }
  .top-nav a[href='#/'] {
    display: none;
  }
  .hero-art {
    grid-template-columns: repeat(3, 1fr);
    aspect-ratio: 3 / 1;
  }
  .hero-art svg:nth-child(n + 4) {
    display: none;
  }
  .controls-row {
    gap: 8px 12px;
  }
  .controls .field-label {
    display: none;
  }
  #band {
    min-width: 0;
    width: 100%;
  }
  .controls-row > .field:first-child {
    flex: 1 1 100%;
  }
  .seg {
    width: 100%;
  }
  .controls-row > .field {
    flex: 1 1 100%;
  }
  .seg button {
    flex: 1;
    padding: 0 8px;
  }
  .filters-right {
    width: 100%;
  }
  .filters-right .field {
    flex: 1 1 0;
  }
  #search,
  #sort {
    width: 100%;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -14px;
    padding: 2px 14px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    padding: 10px 12px 12px;
  }
  .steps,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .d-switch,
  .d-switch .field,
  .d-switch select {
    width: 100%;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .wire {
    animation: none;
    stroke-dashoffset: 0;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
@media print {
  .top,
  .controls,
  .filters,
  .foot,
  .hero-art {
    display: none;
  }
}
