/* 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; } }

/* Engine Code Price List: a parts-counter price sheet. Paper, black ink, yellow highlighter, a fixed index of codes down the left. */
:root { --paper: #f3eedf; --ink: #111; --rule: #c9c1aa; --soft: #6b6555; --hl: #fde047; --red: #b42318; }
body { background: var(--paper); color: var(--ink); font: 15px/1.55 "IBM Plex Sans", Arial, sans-serif; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 2px; }
a:hover { background: var(--hl); }
.frame { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #e9e4d4; padding: 1.25rem 1rem 2rem; }
.side a { color: #e9e4d4; text-decoration: none; }
.side a:hover { background: transparent; color: var(--hl); }
.brand { display: flex; gap: .6rem; align-items: center; font: 1.05rem/1.1 "Archivo Black", sans-serif; text-transform: uppercase; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; outline: 2px solid var(--hl); }
.tagline { font: .78rem/1.4 "IBM Plex Mono", monospace; color: #a9a291; margin: .8rem 0 1rem; }
.nav { display: flex; flex-direction: column; border-top: 1px solid #333; border-bottom: 1px solid #333; padding: .5rem 0; margin-bottom: 1rem; }
.nav a { font: 600 .85rem/2 "IBM Plex Mono", monospace; }
.nav a[aria-current] { color: var(--hl); }
.nav a[aria-current]::before { content: "> "; }
.side-index .ix { margin-bottom: 1rem; }
.ix-h { display: block; font: .7rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .1em; color: #8d8676 !important; margin-bottom: .3rem; }
.side-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .55rem; }
.side-index li a { font: .8rem/1.6 "IBM Plex Mono", monospace; }
.main-col { min-width: 0; }
.wrap { max-width: 60rem; padding: 0 2rem; }
h1, h2 { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 .7rem; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h2 a { text-decoration: none; }
.intro { padding: 2.2rem 0 1rem; border-bottom: 3px double var(--ink); }
.sub { max-width: 40rem; margin: 0 0 1rem; color: #36322a; }
.find { max-width: 26rem; display: flex; align-items: center; gap: .6rem; }
.find label { font: 600 .78rem "IBM Plex Mono", monospace; white-space: nowrap; }
.find input { border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: .35rem 0; font-family: "IBM Plex Mono", monospace; }
.find input:focus { outline: none; background: var(--hl); }
section { padding: 1.6rem 0; }
.ghead p { margin: 0 0 .8rem; color: var(--soft); max-width: 44rem; font-size: .93rem; }
table.items, table.sales, .data table { font: .86rem/1.4 "IBM Plex Mono", monospace; }
th { text-align: left; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding: .45rem .5rem; }
td { padding: .42rem .5rem; border-bottom: 1px dotted var(--rule); vertical-align: top; }
tbody tr:hover td { background: rgba(253, 224, 71, .35); }
td.name a { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; text-decoration: none; }
td.v { font-weight: 600; } td.n { color: var(--soft); }
.muted { color: var(--soft); }
.note-sec { border-bottom: 1px dotted var(--rule); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; } .prose h3 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.prose table { font: .85rem/1.45 "IBM Plex Mono", monospace; margin: 1rem 0; }
.prose th, .prose td { border-bottom: 1px dotted var(--rule); }
.crumbs { font: .78rem "IBM Plex Mono", monospace; color: var(--soft); margin: 0 0 .6rem; }
.item { padding: 2rem 0 1rem; }
.item-split { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.5rem; align-items: start; }
.answer { background: var(--hl); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: .1rem .25rem; line-height: 1.9; }
.item-main .sub { margin-top: 1rem; }
/* The price block is a yard tag: manila card, punched hole, string. */
.buybox { position: sticky; top: 1.5rem; }
.price { position: relative; background: #e9d9a6; border: 1px solid #a8945a; padding: 2.2rem 1rem 1rem; clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); display: flex; flex-direction: column; gap: .2rem; }
.price::before { content: ""; position: absolute; top: .7rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #a8945a; }
.p-label { font: 600 .7rem "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.p-value { font: 2.4rem/1 "Archivo Black", sans-serif; }
.p-range, .p-note { font: .78rem/1.4 "IBM Plex Mono", monospace; } .p-note { color: #5b4f2e; }
.price.blank .p-label { font-size: .85rem; }
.cta { display: block; margin-top: .9rem; background: var(--ink); color: var(--hl); text-align: center; font: 600 .85rem "IBM Plex Mono", monospace; padding: .8rem; text-decoration: none; }
.cta:hover { background: var(--red); color: #fff; }
.chart { margin: 1rem 0 0; color: var(--red); } .chart svg { background: #fffdf5; border: 1px solid var(--rule); } .chart figcaption { font: .72rem "IBM Plex Mono", monospace; color: var(--soft); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 1.4rem 0; font: .86rem "IBM Plex Mono", monospace; border-top: 2px solid var(--ink); }
.specs div { display: contents; }
.specs dt, .specs dd { padding: .4rem .6rem .4rem 0; border-bottom: 1px dotted var(--rule); margin: 0; }
.specs dt { color: var(--soft); text-transform: uppercase; font-size: .72rem; padding-top: .55rem; }
.notes-sec, .checks-sec { padding: 1rem 0; }
.checks { padding-left: 1.4rem; } .checks li { margin: .5rem 0; } .checks li::marker { font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.guide-list a { display: block; padding: .8rem 0; border-bottom: 1px dotted var(--rule); text-decoration: none; }
.g-title { display: block; font-weight: 600; } .g-desc { display: block; color: var(--soft); font-size: .9rem; }
.guide { padding: 2rem 0 3rem; } .guide .meta { font: .78rem "IBM Plex Mono", monospace; color: var(--soft); }
.sources { font-size: .85rem; margin-top: 2rem; border-top: 1px dotted var(--rule); }
.tool label { display: block; font: 600 .75rem "IBM Plex Mono", monospace; text-transform: uppercase; margin: 1rem 0 .3rem; }
.tool input, .tool select { border: 1px solid var(--ink); background: #fffdf5; padding: .5rem .6rem; border-radius: 0; }
.tool small { display: block; color: var(--soft); font-size: .78rem; margin-top: .2rem; }
.tool output { margin-top: 1.4rem; padding: 1rem; background: var(--hl); border: 2px solid var(--ink); max-width: 40rem; }
.data h3 { font-family: "IBM Plex Mono", monospace; font-size: .8rem; text-transform: uppercase; margin: 1.4rem 0 .4rem; }
.small, .foot { font-size: .8rem; color: var(--soft); }
.foot { border-top: 3px double var(--ink); padding: 1.4rem 0 2.4rem; margin-top: 2rem; } .foot p { margin: .3rem 0; max-width: 44rem; }
@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .side { position: static; height: auto; } .side-index { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
  .wrap { padding: 0 1rem; }
  .item-split { grid-template-columns: 1fr; } .buybox { position: static; max-width: 20rem; }
}
