/* Copyright © 2026 JenTronic. All rights reserved. */

:root {
  color-scheme: dark;
  --bg: #172235;
  --panel: #202e43;
  --text: #f7f9fc;
  --muted: #b5c1d2;
  --line: #3b4d67;
  --accent: #ff7057;
  --gold: #ffca70;
  --blue: #8bc5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 82% -10%,#3b5680 0,transparent 38%),var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);
  background-size: 32px 32px;
}

.shell {
  width: min(1120px,calc(100% - 40px));
  margin: auto;
}

.hero {
  padding: 48px 0 58px;
  max-width: 820px;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(3rem,8vw,6.6rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.hero>p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem,2vw,1.25rem);
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding: 17px 19px;
  border: 1px solid #66563a;
  border-radius: 15px;
  background: #29251c;
  color: #ead9b7;
}

.notice svg {
  flex: 0 0 20px;
  margin-top: 2px;
  color: var(--gold);
}

.notice strong {
  display: block;
  color: #fff4db;
}

.pinout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.72fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg,#26364cf2,#192538f5);
  box-shadow: 0 24px 80px #08101f52;
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.tag {
  padding: 5px 9px;
  border: 1px solid #334159;
  border-radius: 999px;
  color: var(--muted);
  font: 600 .7rem/1.2 ui-monospace,monospace;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 14px 18px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  background: #192538;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: center;
}

.partner:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}

.pin {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #52617a;
  border-radius: 9px;
  background: #0b1019;
  color: var(--gold);
  font: 800 .8rem/1 ui-monospace,monospace;
}

.power {
  color: #ff826b;
}

.speaker {
  color: var(--blue);
}

.connector-card {
  padding: 26px 46px;
}

.connector-card>p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.connectors {
  display: grid;
  gap: 30px;
  margin-top: 27px;
}

.connector-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.connector {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 9px;
  padding: 17px;
  border: 2px solid var(--connector-outline,#71829a);
  border-radius: 9px;
  background: #121c2b;
  box-shadow: inset 0 0 0 5px #213047;
}

.connector:after {
  content: "";
  position: absolute;
  left: calc(-10% - 2px);
  bottom: auto;
  width: 10%;
  height: 20%;
  transform: none;
  border: 2px solid var(--connector-outline,#71829a);
  border-right: 0;
  background: #121c2b;
}

.connectors>div:first-child {
  --connector-outline: #ff826b;
}

.connectors>div:nth-child(2) {
  --connector-outline: var(--blue);
}

.socket {
  aspect-ratio: 1.05;
  display: grid;
  place-items: center;
  border: 1px solid #566982;
  border-radius: 5px;
  background: radial-gradient(circle,#0d1521 0 23%,#53647d 25% 31%,#223149 33%);
  color: #d2d9e4;
  font: 800 .9rem ui-monospace,monospace;
}

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-size: .75rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dot.blue {
  background: var(--blue);
}

.details {
  margin: 24px 0 72px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.detail {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #202e43d9;
}

.detail span {
  display: block;
  color: var(--accent);
  font: 700 .68rem/1 ui-monospace,monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.detail p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 42px;
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .78rem;
}

.print-reference {
  align-self: flex-end;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.print-reference:hover {
  color: var(--text);
}

.print-reference:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.partner {
  position: relative;
  display: block;
  width: 360px;
  aspect-ratio: 720/240;
  padding: 0;
  border: 1px solid #334159;
  border-radius: 11px;
  background: #0b1019;
  overflow: hidden;
  box-shadow: 0 10px 28px #0004;
  transition: .18s;
}

.partner:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px #0008;
}

@media(max-width:820px) {
  .hero {
    padding-top: 32px;
  }
  .pinout {
    grid-template-columns: 1fr;
  }
  .connector-card {
    order: -1;
    padding-left: 12%;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .footer-copy {
    flex-direction: column;
  }
}

@media(max-width:560px) {
  .shell {
    width: calc(100% - 24px);
  }
  .hero {
    padding: 32px 0 42px;
  }
  h1 {
    font-size: 3.6rem;
  }
  .card-head,.connector-card {
    padding: 20px;
  }
  th,td {
    padding: 13px 10px;
    font-size: .78rem;
  }
  .pin {
    width: 27px;
    height: 27px;
  }
}

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

 tbody tr:hover {
  background: #2b3d56;
}

.pinout>.card {
  height: 100%;
}

.pinout>.card:first-child {
  display: flex;
  flex-direction: column;
}

.pinout>.card:first-child .table-wrap {
  flex: 1;
  display: flex;
}

.pinout>.card:first-child table {
  height: 100%;
  table-layout: fixed;
}

.pinout>.card:first-child th:nth-child(2),
.pinout>.card:first-child td:nth-child(2) {
  width: 72px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.pinout>.card:first-child .pin {
  margin-inline: auto;
}

.pinout>.card:first-child th:nth-child(3),
.pinout>.card:first-child td:nth-child(3) {
  text-align: right;
}

.connectors>div:first-child .connector:after {
  bottom: 8px;
}

.connectors>div:nth-child(2) .connector:after {
  top: 50%;
  transform: translateY(-50%);
}

.partner:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff0d;
  pointer-events: none;
}

.partner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.footer-row {
  display: block;
}

.partners {
  display: grid;
  grid-template-columns: repeat(3,360px);
  justify-content: center;
  width: 100%;
  gap: 16px;
}

@media(max-width:1150px) {
  .partners {
    grid-template-columns: repeat(2,360px);
  }
}

@media(max-width:780px) {
  .partners {
    grid-template-columns: 360px;
  }
}

@media(max-width:560px) {
  .pinout>.card:first-child th:nth-child(2),.pinout>.card:first-child td:nth-child(2) {
    width: 48px;
  }
  .partners {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
  .partner {
    width: min(360px,100%);
  }
}

 @media(max-width:560px) {
  .connector-card {
    padding: 20px 44px 20px 12%;
  }
}

@media screen and (max-width:560px) {
  .card-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 12px;
  }
  th {
    letter-spacing: .02em;
    font-size: .65rem;
    line-height: 1.5;
  }
  td {
    font-size: .85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .pin {
    width: 32px;
    height: 32px;
    font-size: .95rem;
  }
  tbody tr:nth-child(even) {
    background: #ffffff05;
  }
  td:nth-child(2) {
    border-inline: 1px solid var(--line);
  }
}

@page {
  margin: 12mm;
}

@media print {
  .block-title {
    display: block;
  }
  .block-separator {
    display: none;
  }
  :root {
    color-scheme: light;
  }
  *, *:before, *:after {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-color: #777 !important;
  }
  body {
    background: #fff !important;
    font-size: 10pt;
    line-height: 1.35;
  }
  body:before, footer {
    display: none;
  }
  .shell {
    width: 100%;
  }
  .hero {
    padding: 0 0 12pt;
    max-width: none;
  }
  h1 {
    font-size: 28pt;
    line-height: 1.1;
    letter-spacing: -.03em;
  }
  h2 {
    font-size: 13pt;
  }
  .eyebrow {
    margin-bottom: 8pt;
  }
  .hero>p:last-child {
    margin-top: 8pt;
    font-size: 10pt;
  }
  .notice {
    padding: 8pt;
    margin-bottom: 12pt;
  }
  .pinout {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    gap: 12pt;
  }
  .card, .detail, .notice {
    border-radius: 0;
    break-inside: avoid;
  }
  .card-head {
    padding: 10pt;
    flex-wrap: wrap;
    gap: 6pt;
  }
  .connector-card {
    order: 0;
    padding: 10pt 18pt;
  }
  .table-wrap {
    overflow: visible;
  }
  th, td {
    padding: 7pt 6pt;
    font-size: 9pt;
    letter-spacing: 0;
  }
  .pinout>.card:first-child th:nth-child(2),
  .pinout>.card:first-child td:nth-child(2) {
    width: 30pt;
  }
  .pin {
    width: 22pt;
    height: 22pt;
  }
  .connectors {
    gap: 16pt;
    margin-top: 14pt;
  }
  .connector {
    gap: 6pt;
    padding: 10pt;
  }
  .connector-label {
    flex-wrap: wrap;
    gap: 4pt;
    font-size: 8pt;
  }
  .dot {
    border: 1px solid;
  }
  .details {
    grid-template-columns: repeat(3,1fr);
    gap: 8pt;
    margin: 12pt 0 0;
  }
  .detail {
    padding: 8pt;
  }
  .detail p {
    font-size: 9pt;
  }
}
