/* 280Z Rebuild — Shop Mode
   A late-90s auto-parts catalog look (system fonts, beveled buttons, ruled tables),
   built to be fast, readable across a garage, and usable offline. */
:root {
  --navy: #1a2a6c;
  --paper: #f7f3e6;
  --rule: #9c9078;
  --ink: #111;
  --link: #0033cc;
  --red: #c8102e;
  --yellow: #ffd23f;
  --orange: #e8742a;
  --mustard: #e3a72f;
  --size: 18px;
}
* { box-sizing: border-box; }
html { font-size: var(--size); }
body {
  margin: 0; background: #b9b3a3 repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 2px, transparent 2px 6px);
  color: var(--ink); font-family: Verdana, Tahoma, "Segoe UI", Geneva, sans-serif; line-height: 1.4;
}
a { color: var(--link); }
a:visited { color: #551a8b; }
.page { max-width: 1100px; margin: 0 auto; background: var(--paper); border-left: 2px solid #777; border-right: 2px solid #777; min-height: 100vh; }

/* masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--navy); color: #fff; padding: .7rem 1rem; }
.mast-left { display: flex; align-items: center; gap: .9rem; }
.mast-logo {
  font-family: "Arial Black", Impact, sans-serif; font-size: 1.25rem; line-height: .95; text-align: center;
  background: var(--yellow); color: var(--navy); padding: .45rem .6rem; border: 3px outset #fff3a8;
}
.mast-logo span { font-size: .7rem; letter-spacing: .12em; }
.masthead h1 { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: 1.35rem; letter-spacing: .03em; font-style: italic; }
.mast-sub { margin: .1rem 0 0; font-size: .72rem; color: #c9d3ff; }
.back { color: var(--yellow) !important; font-weight: bold; font-size: .8rem; white-space: nowrap; }
.stripe { display: grid; grid-template-rows: repeat(3, 6px); }
.stripe i:nth-child(1) { background: var(--orange); }
.stripe i:nth-child(2) { background: var(--red); }
.stripe i:nth-child(3) { background: var(--mustard); }

/* toolbar */
.toolbar { width: 100%; border-collapse: collapse; background: #e6e0cf; border-bottom: 1px solid var(--rule); }
.toolbar td { padding: .5rem .8rem; vertical-align: middle; }
.search-cell { display: flex; align-items: center; gap: .5rem; }
#q { flex: 1; min-width: 0; font-size: 1rem; padding: .4rem .5rem; border: 2px inset #ddd; background: #fff; font-family: inherit; }
.tools { text-align: right; white-space: nowrap; }
.bevel {
  font-family: inherit; font-size: .8rem; font-weight: bold; padding: .35rem .6rem; margin-left: .2rem; cursor: pointer;
  background: #d4d0c8; color: #000; border: 2px outset #fff;
}
.bevel:active, .bevel[aria-pressed="true"] { border-style: inset; background: var(--yellow); }

/* tabs */
.tabs { display: flex; gap: 0; border-bottom: 3px solid var(--navy); padding: .6rem .8rem 0; background: var(--paper); position: sticky; top: 0; z-index: 5; }
.tabs a {
  font-family: "Arial Black", Impact, sans-serif; font-size: .82rem; text-decoration: none; color: var(--navy) !important;
  padding: .45rem .9rem; border: 2px solid var(--navy); border-bottom: none; margin-right: .25rem; background: #e6e0cf;
}
.tabs a.active { background: var(--navy); color: #fff !important; }

/* content */
.content { padding: 1rem; }
.sec-title {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--yellow); border: 2px solid var(--ink); padding: .25rem .6rem; margin: 1.1rem 0 .5rem;
}
.sec-title h2 { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: 1.05rem; color: var(--red); text-transform: uppercase; }
.sec-title .pg { font-size: .7rem; font-weight: bold; }
table.cat { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--ink); font-size: .95rem; }
table.cat th { background: var(--navy); color: #fff; text-align: left; font-size: .72rem; letter-spacing: .06em; padding: .35rem .5rem; }
table.cat td { border-top: 1px solid var(--rule); padding: .45rem .5rem; vertical-align: top; }
table.cat tr:nth-child(even) td { background: #f2eedf; }
table.cat td.val { font-family: "Courier New", Courier, monospace; font-weight: bold; font-size: 1.15rem; white-space: nowrap; color: var(--red); }
table.cat td.mono { font-family: "Courier New", Courier, monospace; white-space: nowrap; }
table.cat td.note { font-size: .78rem; color: #444; }
mark { background: var(--yellow); color: inherit; }
.empty { padding: 1rem; background: #fff; border: 2px dashed var(--rule); text-align: center; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }

/* checklist */
.check-progress { border: 2px inset #ccc; background: #fff; height: 1.4rem; position: relative; margin: .5rem 0 1rem; }
.check-progress div { height: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 10px, #2c46b8 10px 14px); width: 0; }
.check-progress span { position: absolute; inset: 0; text-align: center; font-size: .75rem; font-weight: bold; line-height: 1.4rem; mix-blend-mode: difference; color: #fff; }
ol.checks { list-style: none; padding: 0; margin: 0; counter-reset: c; }
ol.checks li { counter-increment: c; display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); cursor: pointer; background: #fff; }
ol.checks li:nth-child(even) { background: #f2eedf; }
ol.checks li::before { content: counter(c) "."; font-weight: bold; min-width: 1.6rem; }
ol.checks input { width: 1.4rem; height: 1.4rem; flex: none; accent-color: var(--navy); }
ol.checks li.done { color: #777; text-decoration: line-through; }
ol.checks .spec { display: block; font-family: "Courier New", monospace; color: var(--red); font-weight: bold; text-decoration: none; }

.foot { border-top: 3px double var(--ink); padding: .8rem 1rem 1.5rem; font-size: .75rem; text-align: center; }
.foot .small { font-size: .65rem; color: #555; }
.net { font-weight: bold; color: #187a1b; }
.net.off { color: var(--red); }

@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: flex-start; }
  .toolbar tr { display: flex; flex-direction: column; }
  .tools { text-align: left; white-space: normal; }
  .tabs { overflow-x: auto; }
}
@media print {
  .toolbar, .tabs, .back, .foot { display: none; }
  body, .page { background: #fff; border: none; }
}
