/* Functional rules only (no look): box model, overflow, accessibility, hidden state. Each site's site.css owns every visual choice. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; padding: .5rem 1rem; background: #fff; color: #000; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose table { display: block; overflow-x: auto; }
input, select, button, textarea { font: inherit; color: inherit; }
.tool input, .tool select { width: 100%; max-width: 24rem; }
.tool output, .tool .result { display: block; }
.tool .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 1.5rem; }
.find input { width: 100%; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Local AI Hardware: developer documentation. Dark by default with a light mode, left sidebar with every card listed, compact data tables, mono accents. */
:root { --bg: #0e0f14; --side: #13141b; --panel: #171822; --ink: #e8e8ef; --dim: #9a9aae; --line: #262838; --violet: #8b6dff; --code: #1d1f2c; }
@media (prefers-color-scheme: light) { :root { --bg: #fbfbfd; --side: #f3f3f7; --panel: #ffffff; --ink: #16161d; --dim: #5d5d70; --line: #e3e3ec; --violet: #6a48f0; --code: #f1f0f7; } }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.65 Inter, system-ui, sans-serif; }
a { color: var(--violet); text-decoration: none; } a:hover { text-decoration: underline; }
.frame { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); padding: 1.2rem 1rem 2rem; font-size: .88rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; }
.brand svg { width: 1.6rem; height: 1.6rem; }
.tagline { color: var(--dim); font-size: .8rem; margin: .6rem 0 1rem; }
.nav { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.nav a { color: var(--ink); padding: .32rem .5rem; border-radius: 6px; }
.nav a[aria-current] { background: var(--code); color: var(--violet); font-weight: 600; } .nav a:hover { background: var(--code); text-decoration: none; }
.ix { margin-bottom: 1rem; }
.ix-h { display: block; font: 600 .7rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 0 .5rem; margin-bottom: .2rem; }
.side-index ul { list-style: none; margin: 0; padding: 0; } .side-index li a { display: block; color: var(--dim); padding: .18rem .5rem; border-radius: 5px; font-size: .84rem; } .side-index li a:hover { color: var(--ink); background: var(--code); text-decoration: none; }
.main-col { min-width: 0; }
.wrap { max-width: 54rem; padding: 0 2.4rem; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; margin: 0 0 .7rem; }
h2 { font-size: 1.25rem; font-weight: 650; margin: 0 0 .6rem; } h2 a { color: var(--ink); }
.intro { padding: 2.6rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.sub { color: var(--dim); max-width: 42rem; margin: 0 0 1.2rem; }
.find { max-width: 24rem; position: relative; } .find label { position: absolute; left: -999px; }
.find input { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem .55rem 2rem; font-size: .92rem; }
.find::before { content: "/"; position: absolute; left: .8rem; top: .5rem; color: var(--dim); font-family: "JetBrains Mono", monospace; }
.find input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
section { padding: 1.6rem 0; }
.ghead h2::before { content: "#"; color: var(--violet); margin-right: .4rem; font-family: "JetBrains Mono", monospace; }
.ghead p { color: var(--dim); margin: 0 0 .8rem; font-size: .93rem; }
.tablewrap { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
th { text-align: left; font: 600 .72rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); padding: .55rem .75rem; border-bottom: 1px solid var(--line); background: var(--code); }
td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; } tbody tr:last-child td { border-bottom: 0; }
td.name a { color: var(--ink); font-weight: 600; } td.v, td.n { font-family: "JetBrains Mono", monospace; font-size: .82rem; } td.n, .muted { color: var(--dim); }
.prose { max-width: 44rem; } .prose h2 { margin-top: 2.2rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); } .prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.prose table { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; font-size: .88rem; }
code { font: .86em "JetBrains Mono", monospace; background: var(--code); padding: .1rem .35rem; border-radius: 4px; }
.crumbs { font: .78rem "JetBrains Mono", monospace; color: var(--dim); margin: 0 0 .6rem; } .crumbs a { color: var(--dim); }
.item { padding: 2.4rem 0 1rem; }
.item-split { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.2rem; align-items: start; }
.answer { background: var(--code); border-left: 3px solid var(--violet); padding: .7rem .9rem; border-radius: 0 8px 8px 0; margin: 0 0 1rem; font-size: .95rem; }
.buybox { position: sticky; top: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 1rem; font-size: .9rem; }
.price { display: flex; flex-direction: column; gap: .2rem; } .p-label { font: 600 .7rem "JetBrains Mono", monospace; text-transform: uppercase; color: var(--dim); } .p-value { font: 700 1.9rem "JetBrains Mono", monospace; } .p-note { color: var(--dim); font-size: .8rem; } .p-ext { font-weight: 600; }
.cta { display: block; margin-top: .9rem; text-align: center; padding: .6rem; border-radius: 8px; background: var(--violet); color: #fff; font-weight: 600; font-size: .9rem; }
.cta:hover { text-decoration: none; filter: brightness(1.1); }
.chart { margin: .8rem 0 0; color: var(--violet); } .chart figcaption { color: var(--dim); font-size: .75rem; }
.specs { display: grid; grid-template-columns: 11rem 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 1.2rem 0; background: var(--panel); } .specs div { display: contents; }
.specs dt, .specs dd { margin: 0; padding: .5rem .8rem; border-bottom: 1px solid var(--line); } .specs dt { color: var(--dim); font: .78rem "JetBrains Mono", monospace; background: var(--code); } .specs dd { font-family: "JetBrains Mono", monospace; font-size: .86rem; }
.notes-sec, .checks-sec, .bench-sec { margin-top: 1.6rem; }
.checks { padding-left: 1.3rem; } .checks li { margin: .45rem 0; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.guide-list a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; background: var(--panel); }
.guide-list a:hover { border-color: var(--violet); text-decoration: none; }
.g-title { display: block; color: var(--ink); font-weight: 600; } .g-desc { display: block; color: var(--dim); font-size: .88rem; }
.guide { padding: 2.4rem 0 3rem; } .guide .meta { font: .78rem "JetBrains Mono", monospace; color: var(--dim); margin-bottom: 1.6rem; }
.sources { font-size: .85rem; color: var(--dim); }
.tool { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; background: var(--panel); }
.tool label { display: block; font: 600 .75rem "JetBrains Mono", monospace; color: var(--dim); text-transform: uppercase; margin: .9rem 0 .3rem; }
.tool input, .tool select { background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: .5rem .65rem; }
.tool output { margin-top: 1.1rem; font-family: "JetBrains Mono", monospace; font-size: .9rem; background: var(--code); border-radius: 8px; padding: .9rem 1rem; }
.tool .tablewrap { margin-top: .6rem; }
.data h3 { font-size: .95rem; margin: 1.4rem 0 .4rem; }
.small, .callout { color: var(--dim); font-size: .82rem; }
.foot { border-top: 1px solid var(--line); margin-top: 2.4rem; padding: 1.4rem 0 2.6rem; color: var(--dim); font-size: .82rem; } .foot p { margin: .3rem 0; }
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; } .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } .side-index { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; } .wrap { padding: 0 1.1rem; } .item-split { grid-template-columns: 1fr; } .buybox { position: static; }
}
