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

/* Kei Truck Parts Catalog: a small-workshop parts catalog. Cream grid paper, rounded type, red stamp mark, folder tabs, chassis codes in boxes. */
:root { --paper: #fbf7ec; --grid: #ece5d2; --ink: #2b2a26; --soft: #77705f; --red: #c23a2b; --green: #3f6b3a; --card: #fffdf7; }
body { color: var(--ink); font: 16px/1.65 "Noto Sans", system-ui, sans-serif;
  background: var(--paper) linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 24px, var(--paper); background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
a { color: var(--green); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.bar { background: var(--card); border-bottom: 2px solid var(--ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.2rem; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font: 900 1.25rem/1.1 "Zen Maru Gothic", sans-serif; }
.brand svg { width: 2.4rem; height: 2.4rem; transform: rotate(-8deg); }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; } .nav a { color: var(--ink); text-decoration: none; font: 700 .95rem "Zen Maru Gothic", sans-serif; }
.nav a[aria-current] { color: var(--red); } .nav a:hover { text-decoration: underline wavy var(--red); }
h1, h2, h3 { font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; letter-spacing: 0; }
.intro { padding: 2.6rem 0 1.4rem; }
.intro h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; margin: 0 0 .7rem; max-width: 22ch; }
.sub { color: var(--soft); max-width: 42rem; margin: 0 0 1.2rem; }
.find { max-width: 28rem; } .find label { display: block; font: 700 .85rem "Zen Maru Gothic", sans-serif; margin-bottom: .3rem; }
.find input { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: .6rem .8rem; }
.find input:focus { outline: 3px solid #f2c9c3; }
.tabs .wrap { display: flex; gap: .3rem; overflow-x: auto; padding-top: .4rem; border-bottom: 2px solid var(--ink); }
.tabs a { flex: none; background: #efe6cf; color: var(--ink); text-decoration: none; padding: .55rem 1.1rem .45rem; border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; font: 700 .92rem "Zen Maru Gothic", sans-serif; position: relative; top: 2px; }
.tabs a:hover { background: var(--card); }
section { padding: 1.8rem 0; }
.group .wrap > .ghead, .group .tablewrap { background: var(--card); }
.ghead { border: 2px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 1rem 1.2rem .8rem; }
.ghead h2 { font-size: 1.45rem; margin: 0 0 .2rem; } .ghead h2 a { color: var(--ink); text-decoration: none; } .ghead p { margin: 0; color: var(--soft); font-size: .93rem; }
.group .tablewrap { border: 2px solid var(--ink); border-radius: 0 0 14px 14px; }
.hero-group + .group .tablewrap { border-radius: 14px; }
table.items th { background: var(--ink); color: var(--card); text-align: left; font: 700 .8rem "Zen Maru Gothic", sans-serif; padding: .55rem .8rem; }
table.items td { padding: .6rem .8rem; border-top: 1px dashed #d8ceb4; vertical-align: top; }
table.items td:nth-child(2) { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
table.items td:nth-child(2)::first-line { color: var(--red); }
td.name a { color: var(--ink); font-weight: 600; text-decoration: none; } td.name a:hover { color: var(--red); }
td.v { font-weight: 700; color: var(--green); } td.n { color: var(--soft); font-size: .85rem; }
.note-sec .prose { background: var(--card); border: 2px dashed var(--ink); border-radius: 14px; padding: .4rem 1.3rem; }
.prose { max-width: 44rem; } .prose h2 { font-size: 1.4rem; margin-top: 2rem; } .prose h3 { font-size: 1.1rem; }
.prose table, table.sales, .data table { background: var(--card); border: 2px solid var(--ink); font-size: .9rem; margin: 1rem 0; }
.prose th, table.sales th, .data th { text-align: left; background: #efe6cf; padding: .5rem .7rem; font-family: "Zen Maru Gothic", sans-serif; }
.prose td, table.sales td, .data td { padding: .5rem .7rem; border-top: 1px dashed #d8ceb4; vertical-align: top; }
code { font-family: ui-monospace, Menlo, monospace; background: #efe6cf; padding: .05rem .35rem; border-radius: 4px; }
.crumbs { font-size: .88rem; color: var(--soft); margin: 0 0 .4rem; }
.item { padding: 2.4rem 0 1rem; }
.item-stack { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.6rem 1.8rem 1.2rem; box-shadow: 6px 6px 0 var(--ink); }
.item h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 .8rem; }
.answer { font-weight: 600; margin: 0 0 .8rem; }
.buybox { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin: 1.2rem 0; padding: 1rem 0; border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.price { display: flex; flex-direction: column; } .p-label { font: 700 .82rem "Zen Maru Gothic", sans-serif; color: var(--soft); } .p-value { font: 900 2.4rem/1.1 "Zen Maru Gothic", sans-serif; color: var(--green); } .p-note, .p-range { font-size: .85rem; color: var(--soft); }
.cta { background: var(--red); color: #fff; text-decoration: none; padding: .75rem 1.3rem; border-radius: 12px; font: 700 1rem "Zen Maru Gothic", sans-serif; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cta:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.chart { flex-basis: 100%; margin: 0; color: var(--green); } .chart figcaption { font-size: .78rem; color: var(--soft); }
.specs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.specs div { border: 2px solid var(--ink); border-radius: 10px; padding: .4rem .8rem; background: var(--paper); } .specs dt { font: 700 .72rem "Zen Maru Gothic", sans-serif; color: var(--red); } .specs dd { margin: 0; font-weight: 600; }
.notes-sec h2, .checks-sec h2 { font-size: 1.3rem; margin: 1.4rem 0 .4rem; }
.checks { padding-left: 1.4rem; } .checks li { margin: .5rem 0; } .checks li::marker { color: var(--red); font-weight: 900; }
.related-sec h2, .sales-sec h2 { font-size: 1.3rem; }
.related-sec .tablewrap { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.guide-list a { display: block; height: 100%; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.guide-list a:hover { box-shadow: 4px 4px 0 var(--red); }
.g-title { display: block; font: 900 1.1rem/1.3 "Zen Maru Gothic", sans-serif; margin-bottom: .3rem; } .g-desc { color: var(--soft); font-size: .9rem; }
.guide { padding: 2.4rem 0 3rem; } .guide .wrap { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.8rem 2rem; max-width: 50rem; }
.guide h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: .3rem 0 .6rem; } .guide .meta { color: var(--soft); font-size: .85rem; }
.sources { font-size: .85rem; color: var(--soft); }
.tool { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.4rem 1.6rem; }
.tool label { display: block; font: 700 .9rem "Zen Maru Gothic", sans-serif; margin: .9rem 0 .3rem; }
.tool input, .tool select { border: 2px solid var(--ink); border-radius: 10px; padding: .5rem .7rem; background: var(--paper); }
.tool output { margin-top: 1.2rem; padding: 1rem 1.2rem; border: 2px dashed var(--red); border-radius: 12px; }
.tool hr { border: 0; border-top: 2px dashed var(--ink); margin: .9rem 0; }
.data h3 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; }
.small { color: var(--soft); font-size: .82rem; }
.foot { margin-top: 2.5rem; padding: 1.8rem 0 2.6rem; background: var(--ink); color: #e9e2cf; font-size: .88rem; } .foot a { color: #fff; } .foot p { margin: .35rem 0; max-width: 46rem; }
@media (max-width: 640px) { .item-stack { padding: 1.2rem; box-shadow: 4px 4px 0 var(--ink); } .guide .wrap { padding: 1.2rem; } }
