/* The Mac Specialist — "compatibility lab" theme. Graphite + paper + magenta, status colours always paired with icon + text. */
@font-face { font-family: "Familjen Grotesk"; src: url("/assets/fonts/familjen-grotesk-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/assets/fonts/fragment-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --graphite: #23262B;
  --graphite-2: #30343A;
  --graphite-3: #41464E;
  --paper: #F7F7F5;
  --sheet: #FFFFFF;
  --ink: #23262B;
  --ink-2: #4A4F57;
  --muted: #5C6370;
  --line: #D9DAD5;
  --line-2: #BFC1BB;
  --magenta: #D6246E;
  --magenta-ink: #B81D5E;
  --magenta-tint: #FBE8F0;
  --pink: #FF6FA5;
  --mint: #2BB673;
  --mint-ink: #1E7F52;
  --mint-tint: #E2F4EA;
  --amber: #F2A93B;
  --amber-ink: #8A5300;
  --amber-tint: #FCEFD8;
  --red: #E04848;
  --red-ink: #B3261E;
  --red-tint: #FBE4E4;
  --cable: var(--magenta);
  --sans: "Familjen Grotesk", Arial, "Segoe UI", Roboto, sans-serif;
  --mono: "Fragment Mono", Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --max: 1240px;
  --gut: 16px;
  --r: 6px;
}
@media (min-width: 700px) { :root { --gut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--magenta-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; letter-spacing: 0; }
.small { font-size: .85rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.2em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--magenta); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: 0 0 var(--r) var(--r); }
.skip:focus { top: 0; }

/* ------------------------------------------------------------ header */
.site-head { background: var(--graphite); color: var(--paper); position: relative; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--magenta) 0 38%, var(--graphite-3) 38% 39%, transparent 39%); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand-mark { width: 46px; height: 27px; color: var(--paper); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.05; }
.brand-sub { font-family: var(--mono); font-size: .68rem; color: #C9CBC6; letter-spacing: .02em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; color: var(--paper); text-decoration: none; font-weight: 600; border-radius: 4px; }
.main-nav a:hover { background: var(--graphite-2); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pink); }
.nav-search .ic { width: 1.25em; height: 1.25em; }
@media (max-width: 559px) { .main-nav { width: 100%; } .main-nav ul { justify-content: space-between; } .main-nav a { padding: 6px 7px; } }

/* ------------------------------------------------------------ shared bits */
.kicker { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .6em; }
.kicker a { color: inherit; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.page { padding-top: 28px; padding-bottom: 64px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { max-width: 22ch; }
.narrow .page-head h1 { max-width: none; }
.fine { font-size: .85rem; color: var(--muted); }
.notice { background: var(--amber-tint); border-left: 4px solid var(--amber); padding: 10px 14px; }
.empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--sheet); }
.more { margin: 18px 0 0; font-weight: 600; }
.more a, .sg-more a, .kit-more a { display: inline-flex; gap: 6px; align-items: center; }
.plain-list { padding-left: 1.2em; }
.plain-list li { margin: .3em 0; }
.plain-list.cols { columns: 2 260px; }
.checked { font-size: .8rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

.btn-solid, .btn-line, .btn-plug, .btn-amazon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 4px; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn-solid { background: var(--graphite); color: var(--paper); border: 2px solid var(--graphite); }
.btn-solid:hover { background: var(--graphite-3); border-color: var(--graphite-3); }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover { background: var(--sheet); }
.btn-plug { background: var(--magenta); color: #fff; border: 0; padding-right: 14px; font-size: 1.05rem; }
.btn-plug:hover { background: var(--magenta-ink); }
.btn-plug .ic { width: 1.3em; height: 1.3em; }
.btn-amazon { background: var(--graphite); color: #fff; border: 0; flex-direction: column; gap: 0; padding: 8px 16px; }
.btn-amazon:hover { background: var(--magenta-ink); }
.btn-amazon .btn-sub { font: 400 .7rem/1.2 var(--mono); opacity: .85; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.btn-lg { width: 100%; min-height: 56px; font-size: 1.1rem; }

/* form fields */
label { font-weight: 600; }
select, input[type="search"], input[type="text"] { font: inherit; font-size: 1rem; min-height: 46px; padding: 8px 12px; border: 2px solid var(--graphite); border-radius: 4px; background: var(--sheet); color: var(--ink); width: 100%; max-width: 100%; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2323262B' stroke-width='2.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.ff-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff-field label { font-size: .9rem; }
.ff-check { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 44px; }
.ff-check input, .cmp-tick input { width: 22px; height: 22px; accent-color: var(--magenta); }

/* ------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 4px; font-weight: 700; font-size: .92rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.badge .ic { width: 22px; height: 22px; padding: 3px; border-radius: 3px; color: var(--graphite); }
.badge-works { background: var(--mint-tint); } .badge-works .ic { background: var(--mint); }
.badge-adapter { background: var(--amber-tint); } .badge-adapter .ic { background: var(--amber); }
.badge-no { background: var(--red-tint); } .badge-no .ic { background: var(--red); }
.badge-sm { font-size: .8rem; padding-right: 7px; } .badge-sm .ic { width: 18px; height: 18px; padding: 2px; }
.badge-lg { font-size: 1.15rem; padding: 4px 14px 4px 4px; } .badge-lg .ic { width: 30px; height: 30px; padding: 4px; }

/* family strip under product cards */
.cstrip { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.cs { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 1px 5px; font-size: .7rem; min-width: 0; line-height: 1.15; text-align: center; border-left: 1px solid var(--line); background: var(--sheet); }
.cs:first-child { border-left: 0; }
.cs-mark { width: 18px; height: 18px; padding: 2px; border-radius: 3px; color: var(--graphite); }
.cs-works .cs-mark { background: var(--mint); } .cs-adapter .cs-mark { background: var(--amber); } .cs-no .cs-mark { background: #E4E5E1; color: var(--muted); }
.cs-no { color: var(--muted); }
.cs-f { font-weight: 700; }
.cs-n { font-size: .7rem; color: var(--muted); }

/* connectors */
.conns { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
.conn { display: inline-flex; align-items: center; gap: 5px; font: .78rem/1.3 var(--mono); color: var(--ink-2); margin-right: 8px; }
.conn .ic { width: 18px; height: 18px; color: var(--cable); }

/* ------------------------------------------------------------ home hero */
.hero { position: relative; padding: 28px 0 40px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; } }
.socket { background: var(--graphite); color: var(--paper); border-radius: var(--r); padding: 26px 22px 24px; position: relative; z-index: 1; }
@media (min-width: 900px) { .socket { padding: 40px 40px 34px; border-radius: var(--r) 0 0 var(--r); } }
.socket .kicker { color: #C9CBC6; }
.socket h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); max-width: 14ch; }
.socket .lede { color: #E1E2DE; font-size: 1.08rem; }
.socket .lede strong { color: #fff; }
.finder-form { display: grid; gap: 14px; margin: 22px 0 18px; }
@media (min-width: 560px) { .finder-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.socket .ff-field label { color: #E1E2DE; }
.socket select { border-color: var(--paper); }
.quick { font-size: .92rem; color: #C9CBC6; margin: 0; }
.quick a { color: #fff; }
.quick .mono { color: var(--pink); margin-right: 6px; }
.hero-photo { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--graphite-2); min-height: 240px; }
@media (min-width: 900px) { .hero-photo { border-radius: 0 var(--r) var(--r) 0; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; background: rgba(35, 38, 43, .86); color: #fff; padding: 4px 10px; font-size: .74rem; border-top-left-radius: 4px; }
.hero-photo figcaption a { color: #fff; }
.hero-cable { position: absolute; left: -2px; top: 18%; width: 46%; height: 60px; pointer-events: none; }
@media (max-width: 899px) { .hero-cable { display: none; } }
.hero-photo .cat-art { width: 100%; height: 100%; }

/* section headings */
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: .35em; }
.sec-n { font-size: .85rem; color: var(--magenta-ink); border: 1.5px solid var(--magenta); border-radius: 3px; padding: 1px 6px; position: relative; top: -.2em; }
.sec-sub { color: var(--ink-2); max-width: 66ch; }
.rack, .cats, .kits, .picks, .labnotes { padding: 44px 0 8px; }

/* device rack (patch panel) */
.rack-panel { list-style: none; margin: 16px 0 0; padding: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--graphite); border-radius: var(--r); }
.port { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: 4px; background: var(--graphite-2); color: var(--paper); text-decoration: none; height: 100%; }
.port:hover { background: var(--graphite-3); }
.port-hole { grid-row: span 2; width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--graphite); box-shadow: inset 0 0 0 2px var(--graphite-3), inset 0 0 0 5px var(--graphite); }
.port-hole .ic { width: 26px; height: 26px; color: var(--pink); }
.port-name { font-weight: 700; font-size: 1.05rem; }
.port-meta { font-size: .72rem; color: #C9CBC6; }

/* category cable rack */
.cable-rack { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 760px) { .cable-rack { grid-template-columns: 1fr 1fr; } }
.cable-rack li { border-top: 1px solid var(--line); }
.cable-rack a { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "end name n" "end short short"; column-gap: 12px; padding: 14px 4px 14px 0; color: var(--ink); text-decoration: none; position: relative; }
.cable-rack a:hover .cr-name { color: var(--magenta-ink); text-decoration: underline; }
.cable-end { grid-area: end; position: relative; align-self: stretch; }
.cable-end::before { content: ""; position: absolute; left: 13px; top: -15px; bottom: -15px; width: 7px; background: var(--cable); border-radius: 0; }
.cable-end::after { content: ""; position: absolute; left: 5px; top: 8px; width: 23px; height: 14px; border-radius: 7px; background: var(--sheet); border: 3px solid var(--graphite); }
.cr-name { grid-area: name; font-weight: 700; font-size: 1.1rem; }
.cr-short { grid-area: short; color: var(--ink-2); font-size: .94rem; }
.cr-n { grid-area: n; color: var(--muted); font-size: .76rem; align-self: center; }
.cr-art { display: none; }
.cable-rack-big a { grid-template-columns: 34px 92px 1fr auto; grid-template-areas: "end art name n" "end art short short"; align-items: start; }
.cable-rack-big .cr-art { display: block; grid-area: art; width: 92px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; }
@media (max-width: 420px) { .cable-rack-big a { grid-template-columns: 34px 64px 1fr; grid-template-areas: "end art name" "end art short" "end art n"; } .cable-rack-big .cr-art { width: 64px; } .cr-n { justify-self: start; } }

/* kits */
.kit-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 16px; }
.kit { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.kit-head { padding: 16px 18px 10px; border-bottom: 1px dashed var(--line-2); }
.kit-h { font-size: 1.2rem; margin: 0; }
.kit-h a { color: var(--ink); text-decoration: none; }
.kit-h a:hover { color: var(--magenta-ink); text-decoration: underline; }
.kit-items { list-style: none; margin: 0; padding: 8px 18px; flex: 1; }
.kit-items li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #EDEDEA; position: relative; }
.kit-items li:last-child { border-bottom: 0; }
.ki-role { font-size: .72rem; color: var(--muted); text-transform: uppercase; border-left: 4px solid var(--cable); padding-left: 7px; }
.ki-name { font-size: .95rem; }
.ki-mark .ic { width: 20px; height: 20px; padding: 2px; border-radius: 3px; color: var(--graphite); }
.ki-works .ic { background: var(--mint); } .ki-adapter .ic { background: var(--amber); } .ki-no .ic { background: var(--red); }
.kit-more { margin: 0; padding: 12px 18px; background: #FAFAF8; border-top: 1px solid var(--line); font-weight: 600; }

/* product grid + spec-sheet card */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); margin-top: 16px; }
.pcard { background: var(--sheet); border: 1px solid var(--line); border-top: 5px solid var(--cable); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.pcard-vis { display: block; border-bottom: 1px solid #EDEDEA; background: #FBFBF9; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-h { font-size: 1.08rem; margin: 0 0 8px; letter-spacing: -.01em; }
.pcard-h a { color: var(--ink); text-decoration: none; }
.pcard-h a:hover { color: var(--magenta-ink); text-decoration: underline; }
.pcard .kicker { margin-bottom: 4px; font-size: .7rem; }
.specs { margin: 0 0 4px; font-family: var(--mono); font-size: .76rem; }
.specs div { display: flex; gap: 8px; padding: 4px 0; border-top: 1px dotted var(--line-2); }
.specs dt { color: var(--muted); flex: 0 0 42%; }
.specs dd { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pcard-fit { margin-top: 10px; padding: 10px; border-radius: 4px; background: #FAFAF8; border: 1px solid #EDEDEA; }
.fit-for { font-size: .72rem; color: var(--muted); margin: 0 0 6px; }
.fit-note { font-size: .84rem; color: var(--ink-2); margin: 6px 0 0; }
.pcard-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.cmp-tick { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; min-height: 44px; }

/* product visuals */
.pv { margin: 0; position: relative; }
.pv img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pv figcaption { position: absolute; right: 0; bottom: 0; background: rgba(35, 38, 43, .85); color: #fff; padding: 2px 7px; font-size: .68rem; max-width: 100%; }
.pv figcaption a { color: #fff; }
.pv-art { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(0deg, transparent 0 23px, #EFEFEC 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #EFEFEC 23px 24px), #FBFBF9; }
.cat-art { width: 62%; height: auto; max-height: 100%; }
.pcard .pv-art .cat-art { width: 50%; }

/* ------------------------------------------------------------ lab notes list */
.notes-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--graphite); }
.notes-list li { border-bottom: 1px solid var(--line); }
.notes-list a { display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "n t" "n s"; column-gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); }
@media (min-width: 900px) { .notes-list a { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "n t s"; align-items: baseline; } }
.nl-n { grid-area: n; color: var(--magenta-ink); font-size: 1rem; }
.nl-t { grid-area: t; font-weight: 700; font-size: 1.1rem; }
.nl-s { grid-area: s; color: var(--ink-2); font-size: .95rem; }
.notes-list a:hover .nl-t { color: var(--magenta-ink); text-decoration: underline; }

/* independence band */
.indie { margin-top: 56px; background: var(--graphite); color: #E1E2DE; padding: 36px 0; }
.indie-in { max-width: 900px; }
.indie-h { font-size: 1.5rem; font-weight: 700; color: #fff; }
.indie a { color: #fff; }

/* ------------------------------------------------------------ finder + plugboard */
.finder-bar { display: grid; gap: 12px; padding: 16px; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--magenta); border-radius: 4px; }
@media (min-width: 900px) { .finder-bar { grid-template-columns: 1.3fr 1fr auto auto; align-items: end; } }
.plugboard { display: grid; gap: 24px; margin-top: 10px; }
@media (min-width: 980px) { .plugboard { grid-template-columns: 360px minmax(0, 1fr); gap: 0; align-items: start; } .plug-left { position: sticky; top: 16px; } }
.dsheet { background: var(--graphite); color: #E8E9E5; border-radius: var(--r); padding: 20px; position: relative; }
@media (min-width: 980px) { .dsheet { border-radius: var(--r) 0 var(--r) var(--r); } }
.dsheet-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dsheet-glyph { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite-2); box-shadow: inset 0 0 0 2px var(--graphite-3); flex: none; }
.dsheet-glyph .ic { width: 28px; height: 28px; color: var(--pink); }
.dsheet .kicker { color: #BFC1BB; margin: 0 0 2px; font-size: .7rem; }
.dsheet-name { font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.15; }
.dsheet-rows { margin: 0; }
.dsheet-rows div { padding: 9px 0; border-top: 1px solid var(--graphite-3); }
.dsheet-rows dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #BFC1BB; display: flex; gap: 6px; align-items: center; }
.dsheet-rows dt .ic { color: var(--pink); width: 16px; height: 16px; }
.dsheet-rows dd { margin: 3px 0 0; font-size: .93rem; color: #F2F2EF; }
.dsheet-src { font-size: .72rem; color: #BFC1BB; margin: 12px 0 0; }
.dsheet-src p { margin: 0; }
.dsheet-src summary { cursor: pointer; margin-top: 6px; color: #fff; }
.dsheet-src ul { margin: 6px 0 0; padding-left: 1.1em; }
.dsheet-src li { margin: 3px 0; }
.dsheet-src a { color: #fff; }
.dsheet-port { display: none; }
@media (min-width: 980px) {
  .dsheet-port { display: block; position: absolute; right: -14px; top: 28px; width: 28px; height: 16px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 3px var(--graphite); }
}
.dsheet-compact .dsheet-rows dd { font-size: .88rem; }
.tally { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; margin: 12px 0 0; }
.tally span { display: inline-flex; gap: 5px; align-items: center; }
.tally .ic { width: 18px; height: 18px; padding: 2px; border-radius: 3px; color: var(--graphite); }
.t-works .ic { background: var(--mint); } .t-adapter .ic { background: var(--amber); } .t-no .ic { background: var(--red); }
.plug-right { min-width: 0; }
@media (min-width: 980px) { .plug-right { padding-left: 34px; border-left: 4px solid var(--magenta); margin-top: 34px; } }
.socket-group { margin-bottom: 30px; }
.sg-h { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 10px; }
.sg-dot { display: inline-block; width: 22px; height: 12px; border-radius: 6px; background: var(--cable); flex: none; }
.kicker .sg-dot { width: 16px; height: 9px; margin-right: 6px; vertical-align: 0; }
.sg-n { font-size: .8rem; color: var(--muted); }
.sg-more { font-size: .92rem; font-weight: 600; margin: 8px 0 0; }
.prows { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 4px solid var(--cable); }
.prow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 14px; padding: 12px 12px 12px 0; position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; margin: 0 0 10px; padding-left: 12px; }
@media (min-width: 640px) { .prow { grid-template-columns: 96px minmax(0, 1fr) auto; } }
.prow-plug { position: absolute; left: -22px; top: 26px; width: 22px; height: 4px; background: var(--cable); }
.prow-plug::after { content: ""; position: absolute; right: -2px; top: -5px; width: 10px; height: 14px; border-radius: 3px; background: var(--graphite); }
.prow-vis { grid-row: span 2; }
@media (min-width: 640px) { .prow-vis { grid-row: auto; } }
.prow-vis .pv figcaption { display: none; }
.prow-h { font-size: 1.02rem; margin: 0 0 4px; }
.prow-h a { color: var(--ink); text-decoration: none; }
.prow-h a:hover { color: var(--magenta-ink); text-decoration: underline; }
.prow .kicker { font-size: .68rem; margin-bottom: 2px; }
.prow-specs { font-size: .74rem; color: var(--ink-2); margin: 0; }
.prow-side { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; grid-column: 2; }
@media (min-width: 640px) { .prow-side { grid-column: 3; flex-direction: column; align-items: flex-end; justify-content: center; } }
.prow-no { opacity: .78; }
@media (prefers-reduced-motion: no-preference) {
  .js .prow { animation: snap .4s cubic-bezier(.2, .9, .3, 1.25); }
  .js .prow:nth-child(2) { animation-duration: .5s; } .js .prow:nth-child(3) { animation-duration: .6s; } .js .prow:nth-child(n+4) { animation-duration: .7s; }
  @keyframes snap { from { transform: translateX(22px); } to { transform: none; } }
}
.page-tools { margin: 0; }
.kit-callout { background: var(--magenta-tint); border-left: 6px solid var(--magenta); padding: 12px 16px; margin: 0 0 24px; border-radius: 0 4px 4px 0; }
.kit-callout p { margin: 0; }
.kit-callout .kicker { margin-bottom: 2px; }
.nofit { margin-top: 30px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; }
.nofit summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.nofit summary .ic { width: 20px; height: 20px; padding: 2px; background: var(--red); border-radius: 3px; color: var(--graphite); }
.nofit li { margin: 4px 0; }

/* device index */
.dindex { display: grid; gap: 34px; }
.dfam-h { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; border-bottom: 3px solid var(--graphite); padding-bottom: 8px; }
.dfam-h .ic { width: 30px; height: 30px; color: var(--magenta); }
.dfam-h .mono { font-size: .9rem; color: var(--muted); font-weight: 400; }
.dlines { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dline-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; font-weight: 400; }
.dline ul { list-style: none; margin: 0; padding: 0; }
.dline li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.dline li a { font-weight: 600; color: var(--ink); }
.dline li a:hover { color: var(--magenta-ink); }
.dl-meta { font-size: .72rem; color: var(--muted); }

/* ------------------------------------------------------------ category page */
.cat-head { display: grid; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 5px solid var(--cable); }
@media (min-width: 820px) { .cat-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }
.cat-head-vis { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: var(--sheet); border: 1px solid var(--line); display: grid; place-items: center; min-height: 180px; }
.cat-head-vis img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cat-head-vis figcaption { position: absolute; right: 0; bottom: 0; background: rgba(35, 38, 43, .85); color: #fff; padding: 2px 8px; font-size: .72rem; }
.cat-head-vis figcaption a { color: #fff; }
.cat-head-vis .cat-art { width: 60%; }
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: end; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.filters-act { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count { color: var(--muted); font-size: .8rem; margin: 14px 0 0; }
.cmp-bar { position: sticky; bottom: 0; margin-top: 18px; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); display: flex; gap: 12px; align-items: center; z-index: 5; }
.tips { margin-top: 36px; background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--cable); padding: 18px 22px; border-radius: 4px; }
.tips ul { margin: 0; padding-left: 1.2em; }
.tips li { margin: .4em 0; }

/* ------------------------------------------------------------ product page */
.prod { display: grid; gap: 28px; }
@media (min-width: 900px) { .prod { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; } .prod-vis { position: sticky; top: 16px; } }
.prod-vis .pv { border: 1px solid var(--line); border-top: 6px solid var(--cable); border-radius: 4px; overflow: hidden; background: var(--sheet); }
.buybox { margin-top: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.buybox .fine { margin: 10px 0 0; }
.buy-alt { margin: 8px 0 0; font-size: .92rem; }
.prod-head { margin-bottom: 18px; }
.prod-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); max-width: 28ch; margin-bottom: 0; }
.prod-main > .fitbox:first-child, .prod-main > .check-form:first-child { margin-top: 0; }
.h-sm { font-size: 1.2rem; margin-top: 1.4em; }
.fitbox { padding: 14px 16px; border-radius: 4px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--sheet); border-left: 6px solid var(--line-2); }
.fit-works { border-left-color: var(--mint); } .fit-adapter { border-left-color: var(--amber); } .fit-no { border-left-color: var(--red); }
.fit-more { margin: 8px 0 0; font-size: .9rem; }
.check-form { background: var(--sheet); border: 1px dashed var(--line-2); border-radius: 4px; padding: 12px 14px; }
.check-form label { display: block; margin-bottom: 6px; font-size: .92rem; }
.check-row { display: flex; gap: 8px; }
.check-row select { flex: 1; min-width: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--sheet); }
.spec-table th, .spec-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--graphite); color: #fff; font-weight: 600; }
.spec-table tbody th { font-weight: 600; width: 38%; color: var(--ink-2); }
.sheet { border-top: 2px solid var(--graphite); }
.sheet td { font-family: var(--mono); font-size: .85rem; }
.sheet .conn { margin: 2px 10px 2px 0; }
.compat-all { margin-top: 44px; }
.rule-line { color: var(--ink-2); font-size: .95rem; max-width: 80ch; }
.compat-all > .cstrip { max-width: 520px; margin-bottom: 18px; }
.cfam { border-top: 1px solid var(--line); padding: 10px 0; }
.cfam summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-height: 40px; }
.cfam summary .ic { color: var(--magenta); width: 24px; height: 24px; }
.cfam summary .mono { font-weight: 400; color: var(--muted); font-size: .78rem; }
.cgrid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cgrid li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dotted var(--line-2); }
.cgrid li a { color: var(--ink); font-weight: 500; }
.cg-no a { color: var(--muted); }
.cg-note { flex-basis: 100%; font-size: .8rem; color: var(--ink-2); }
.sources { margin-top: 36px; padding-top: 14px; border-top: 2px solid var(--graphite); }
.sources-h { font-size: 1rem; }
.sources-h .mono { font-weight: 400; color: var(--muted); font-size: .75rem; margin-left: 6px; }
.sources ul { padding-left: 1.2em; margin: 0; font-size: .92rem; }
.sources li { margin: .3em 0; }
.host { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.also { margin-top: 40px; }

/* compare */
.cmp-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: end; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin-bottom: 26px; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--sheet); }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .92rem; }
.cmp-table thead th { border-top: 6px solid var(--cable, var(--graphite)); font-size: 1rem; }
.cmp-table thead th:first-child { border-top-color: transparent; }
.cmp-table tbody th { width: 160px; color: var(--ink-2); font-weight: 600; background: #FAFAF8; }
.cmp-vis { width: 30%; }
.cmp-vis .pv { max-width: 220px; }
.cmp-remove { display: block; font-size: .8rem; font-weight: 400; margin-top: 4px; }

/* search */
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; }
.sres { margin-top: 30px; }
.sres h2 .mono { color: var(--muted); font-weight: 400; font-size: .9rem; }

/* bundles */
.kit-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ks-role { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.ks-role span { background: var(--graphite); color: #fff; padding: 2px 6px; border-radius: 3px; }
.ks-note { color: var(--ink-2); font-size: .95rem; margin: 0 0 8px; }
.kit-steps .pcard { flex-direction: row; flex-wrap: wrap; }
.kit-steps .pcard-vis { flex: 1 1 200px; max-width: 260px; border-bottom: 0; border-right: 1px solid #EDEDEA; }
.kit-steps .pcard-body { flex: 2 1 280px; }
@media (max-width: 520px) { .kit-steps .pcard-vis { max-width: none; border-right: 0; } }
.lede-prose p { font-size: 1.1rem; color: var(--ink-2); }
.wide-photo { margin: 0 0 24px; position: relative; }
.wide-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; }
.wide-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* brands */
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); }
.brand-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bl-name { font-weight: 700; font-size: 1.1rem; }
.brand-list a:hover .bl-name { color: var(--magenta-ink); text-decoration: underline; }
.brand-list .mono { color: var(--muted); font-size: .76rem; }

/* guides + prose */
.guide { max-width: 860px; min-width: 0; }
.guide-wrap { display: grid; gap: 32px; }
@media (min-width: 1100px) { .guide-wrap { grid-template-columns: minmax(0, 860px) minmax(0, 300px); justify-content: space-between; } .guide-side { position: sticky; top: 16px; align-self: start; } }
.toc { background: var(--sheet); border: 1px solid var(--line); border-left: 5px solid var(--magenta); border-radius: 0 4px 4px 0; padding: 14px 16px; margin-bottom: 16px; font-size: .92rem; }
.toc ol, .toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin: .35em 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--magenta-ink); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }
.guide-head h1 { max-width: 20ch; }
.guide-photo { margin: 0 0 24px; position: relative; }
.guide-photo img { width: 100%; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.inshort { background: var(--graphite); color: #EDEEEA; border-radius: 4px; padding: 16px 20px; margin: 0 0 28px; }
.inshort .kicker { color: var(--pink); }
.inshort ul { margin: 0; padding-left: 1.2em; }
.inshort li { margin: .35em 0; }
.inshort a { color: #fff; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose .table-wrap { margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: 4px; }
.prose .spec-table { font-size: .9rem; min-width: 520px; }
.note { background: var(--sheet); border-left: 5px solid var(--magenta); padding: 12px 16px; margin: 1em 0; border-radius: 0 4px 4px 0; }
.note-warn { border-left-color: var(--amber); background: var(--amber-tint); }
.note p { margin: 0; }
.indep { background: var(--sheet); border: 1px solid var(--line); border-left: 6px solid var(--graphite); padding: 14px 18px; margin: 0 0 24px; border-radius: 0 4px 4px 0; }
.indep p:last-child { margin: 0; }
.big-mail { font-size: 1.3rem; font-weight: 700; }

/* FAQ + glossary */
.faq-sec { margin-top: 26px; }
.faq { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--magenta-ink); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq .prose { padding: 0 16px 6px; }
.faq-src { font-size: .75rem; color: var(--muted); padding: 0 16px 12px; margin: 0; }
.gloss div { border-top: 1px solid var(--line); padding: 14px 0; scroll-margin-top: 12px; }
.gloss dt { font-weight: 700; font-size: 1.15rem; }
.gloss dd { margin: 4px 0 0; }
.gloss dd p { margin: 0 0 .5em; }
.gloss .faq-src { padding: 0; }
.gloss div:target { background: var(--magenta-tint); }

/* how */
.rules-list { display: grid; gap: 10px; margin: 10px 0 28px; max-width: 72ch; }
.rule { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; }
.rule h3 { margin: 0 0 4px; }
.rule p { margin: 0 0 6px; color: var(--ink-2); }
.rule pre { white-space: pre-wrap; background: #F1F1EE; padding: 10px; border-radius: 4px; font-size: .8rem; overflow-x: auto; }
.rule summary { cursor: pointer; font-size: .9rem; color: var(--magenta-ink); }

/* credits */
.credits { list-style: none; padding: 0; display: grid; gap: 16px; }
.credits li { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; }
.credits img { width: 200px; flex: none; border-radius: 4px; }
.cr-cap { font-weight: 600; margin: 0 0 4px; }
@media (max-width: 520px) { .credits li { flex-direction: column; } .credits img { width: 100%; } }

/* ------------------------------------------------------------ footer */
.site-foot { background: var(--graphite); color: #D6D7D2; margin-top: 0; padding: 40px 0 24px; font-size: .92rem; }
body:not(.home) .site-foot { margin-top: 40px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.foot-about { grid-column: 1 / -1; max-width: 70ch; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }
.foot-brand { font-weight: 700; font-size: 1.2rem; color: #fff; }
.foot-h { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pink); }
.foot-nav ul { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin: 0 0 6px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; border-top: 1px solid var(--graphite-3); margin-top: 26px; padding-top: 16px; font-size: .82rem; color: #BFC1BB; }
.foot-base p { margin: 0; }
.foot-base .mono { font-size: .72rem; }

/* kit photo credits page fallback */
.kit-credits h1 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot, .filters, .cmp-bar, .finder-bar, .check-form { display: none; }
}

/* ---------------------------------------------------------------- ads (5od) + cookie choice */
.ad-slot[hidden], .cookie-bar[hidden] { display: none !important; }
.ad-slot { display: block; margin: 1.4rem auto; }
.ad-slot:has(ins[data-fiveod="empty"], ins[data-fiveod="error"], ins[data-fiveod="nofit"]) { display: none !important; }
.ad-in { display: flex; justify-content: center; }
.ad-head { margin-top: 1.2rem; margin-bottom: 0; }
.ad-inline { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--graphite); color: var(--paper);
  border-top: 4px solid var(--magenta); box-shadow: 0 -6px 24px rgba(35, 38, 43, .35); padding: 1rem 0 1.1rem; max-height: 80vh; overflow-y: auto; }
.cookie-in { display: grid; gap: .8rem 2rem; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font: 700 1.4rem/1.15 var(--sans); color: #fff; margin: 0 0 .35rem; }
.cookie-txt p { margin: 0 0 .4rem; font-size: .97rem; }
.cookie-bar a { color: #fff; font-weight: 700; }
.cookie-bar a:hover { color: var(--pink); }
.cookie-now { font-weight: 700; color: var(--pink); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; font: 700 1rem/1.2 var(--sans); padding: 9px 18px; border-radius: 4px;
  background: var(--paper); color: var(--graphite); border: 2px solid var(--paper); cursor: pointer; }
.cookie-btn:hover { background: #fff; border-color: var(--pink); }
.cookie-bar :focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--pink); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media print { .cookie-bar, .ad-slot { display: none !important; } }

/* Device photo (Commons, credited) beside the page heading */
.page-head.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 28px; align-items: start; }
.device-photo { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.device-photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; margin: 0 auto; }
.device-photo figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.device-photo .photo-caption { color: var(--ink-2); }
.device-photo .photo-caption::after { content: " ·"; color: var(--muted); }
@media (max-width: 800px) {
  .page-head.has-photo { grid-template-columns: 1fr; gap: 16px; }
  .device-photo img { max-height: 280px; }
}
