/* MidWestTech store. Look from the Oct 7 design canvas: Archivo condensed, slate, yellow accent, riveted spec plate. */
:root {
  --ink: #1F2A33;
  --text: #33404A;
  --muted: #5A6670;
  --label: #46525C;
  --line: #B5BEC6;
  --line-soft: #CBD2D8;
  --plate: #DDE2E6;
  --plate-edge: #A3ADB6;
  --panel: #F2F4F6;
  --accent: #F4C20D;
  --page: #FFFFFF;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 16px/1.5 Archivo, 'Segoe UI', 'Helvetica Neue', sans-serif;
}
a { color: var(--ink); }
a:hover { color: #000; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { border-bottom: 3px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 14px; }
.brandmark { text-decoration: none; display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.brandmark b { font-size: 30px; line-height: 1; font-weight: 800; font-stretch: 75%; color: var(--ink); }
.brandmark span { font-size: 14px; color: var(--muted); }
.head-search { display: flex; flex: 1 1 280px; max-width: 420px; }
.head-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; font-size: 15px; border: 2px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; }
.head-search button { height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; border-radius: 0 4px 4px 0; cursor: pointer; }
.head-links { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.head-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.cart-count { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 14px; text-align: center; }
.shipbar { background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.shipbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; padding-top: 7px; padding-bottom: 7px; }

/* type */
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1; font-weight: 800; font-stretch: 75%; letter-spacing: -0.01em; }
h1.long { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
h2 { font-size: 28px; line-height: 1.1; font-weight: 800; font-stretch: 78%; }
h3 { font-size: 17px; font-weight: 700; }
main { padding: 26px 0 48px; }
main .wrap > * + * { margin-top: 38px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin-right: 4px; }
.crumbs a { color: var(--muted); }

/* product top */
.p-head { display: flex; flex-direction: column; gap: 10px; }
.p-sub { margin: 0; font-size: 20px; line-height: 1.35; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.price { font-size: 38px; line-height: 1; font-weight: 800; font-stretch: 85%; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 4px; background: var(--accent); color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover { background: #FFD43B; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2E3D49; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.buy-notes { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.buy-notes b { color: var(--ink); }
.added { font-size: 15px; font-weight: 700; color: var(--ink); }
.added a { margin-left: 6px; }

.p-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plate { flex: 3 1 420px; min-width: 0; position: relative; background: var(--plate); border: 1px solid var(--plate-edge); border-top: 6px solid var(--accent); border-radius: 8px; padding: 22px 5% 20px; }
.plate::before, .plate::after, .plate > .rv::before, .plate > .rv::after {
  content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #C4CBD1; border: 1px solid #8A959F;
}
.plate::before { top: 8px; left: 8px; } .plate::after { top: 8px; right: 8px; }
.plate > .rv::before { bottom: 8px; left: 8px; } .plate > .rv::after { bottom: 8px; right: 8px; }
.plate dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); column-gap: 16px; }
.plate dt, .plate dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plate dt:last-of-type, .plate dd:last-of-type { border-bottom: 0; }
.plate dt { font-size: 15px; color: var(--label); }
.plate dd { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.plate dd.mono { font-weight: 600; }
.plate dd ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.photo { flex: 2 1 280px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 4px; padding: 14px; min-height: 280px; }
.photo img { display: block; max-height: 460px; width: auto; object-fit: contain; }

.deal { align-self: flex-start; font-weight: 700; color: var(--ink); background: #FFF3C4; padding: 1px 6px; border-radius: 3px; }
.cart-sum .deal { align-self: flex-end; }
.deal:empty { display: none; }

/* what's inside (table of contents) */
.toc-pdf { font-weight: 700; }
.toc-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.toc-tools label { font-weight: 700; color: var(--ink); }
.toc-tools input { height: 44px; flex: 1 1 260px; max-width: 420px; padding: 0 12px; font: inherit; border: 2px solid var(--ink); border-radius: 4px; }
.toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 32px; align-items: start; border-bottom: 1px solid var(--line-soft); }
.toc-sec { border-top: 1px solid var(--line-soft); }
.toc-sec.solo { padding: 8px 0; font-weight: 600; color: var(--ink); }
.toc-sec summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 11px 0; font-weight: 700; color: var(--ink); }
.toc-sec summary::-webkit-details-marker { display: none; }
.toc-sec summary span { flex: 1; }
.toc-sec summary small { font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; }
.toc-sec summary::after { content: '+'; width: 1em; text-align: center; font-size: 20px; line-height: 1; color: var(--ink); }
.toc-sec[open] summary::after { content: '−'; }
.toc-sec ul, .toc-flat { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.toc-sec > ul { padding-bottom: 12px; }
.toc-sec li { margin: 3px 0; }
.toc-sec ul ul { font-size: 14px; color: var(--muted); }
.toc-flat { columns: 2 280px; column-gap: 32px; }
.toc-flat li { break-inside: avoid; margin: 2px 0; }
.toc-more summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 8px 0; }
.toc li[hidden], .toc .toc-sec[hidden] { display: none; }
mark { background: #FFE58A; color: inherit; padding: 0; }

/* complete set box */
.setbox { border: 2px solid var(--ink); border-top: 6px solid var(--accent); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.setbox > p { margin: 0; }
.set-model { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.set-model label { font-weight: 700; color: var(--ink); }
.set-model select { height: 44px; min-width: 220px; max-width: 100%; padding: 0 10px; font: inherit; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.set-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.set-group h3 { margin: 14px 0 2px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--label); }
.set-line { display: flex; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.set-line label { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.set-line input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.set-txt { flex: 1; min-width: 0; }
.set-serial { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.set-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.set-line > a { font-size: 14px; white-space: nowrap; }
.set-line.self { background: var(--panel); border: 0; border-radius: 4px; padding: 10px 12px; }
.set-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; }
.set-total { margin: 0; font-size: 17px; }
.set-total b { font-size: 22px; color: var(--ink); }

/* sections */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line-soft); border-radius: 4px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card.on { border: 2px solid var(--ink); }
.card h3 { font-size: 19px; font-weight: 800; font-stretch: 85%; }
.card p { margin: 0; font-size: 15px; line-height: 1.45; }
.tag { background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.sec { display: flex; flex-direction: column; gap: 16px; }
.sec > p { margin: 0; max-width: 700px; }
.ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
.ticks p { margin: 0; border-top: 2px solid var(--ink); padding-top: 10px; font-size: 15px; line-height: 1.45; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.note svg { flex: none; margin-top: 2px; }
.note p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 28px; background: var(--panel); padding: 22px 24px; border-radius: 4px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { flex: none; }
.fact h3 { margin-bottom: 4px; }
.fact p { margin: 0; font-size: 15px; line-height: 1.45; }

/* lists of manuals */
.list-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.list-tools label { font-weight: 700; color: var(--ink); }
.list-tools input { height: 44px; flex: 1 1 260px; max-width: 420px; padding: 0 12px; font: inherit; border: 2px solid var(--ink); border-radius: 4px; }
.list-tools .hint { flex-basis: 100%; margin: 0; }
.sec[hidden] { display: none; }   /* filtered-out manual groups (.sec is flex, which beats [hidden]) */   /* "Search all <brand> manuals" under the filter */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 6px 12px; border: 1px solid var(--plate-edge); border-radius: 20px; text-decoration: none; font-size: 15px; font-weight: 600; }
.tbl { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 4px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--ink); border-bottom: 2px solid var(--ink); background: var(--panel); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { text-align: right; white-space: nowrap; }
.tbl td a { font-weight: 700; }
.tbl table.fixed { table-layout: fixed; min-width: 760px; }
.tbl td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .tbl.stack { border: 0; overflow: visible; }
  .tbl.stack table, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; min-width: 0; width: auto; }
  .tbl.stack thead, .tbl.stack colgroup { display: none; }
  .tbl.stack tr { border: 1px solid var(--line-soft); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
  .tbl.stack tr[hidden] { display: none; }
  .tbl.stack td { border: 0; padding: 2px 0; text-align: left; }
  .tbl.stack td[data-l]::before { content: attr(data-l) ': '; color: var(--label); font-family: Archivo, 'Segoe UI', 'Helvetica Neue', sans-serif; }
}
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.related a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 4px; text-decoration: none; }
.related a:hover { border-color: var(--ink); }
.related b { color: var(--ink); line-height: 1.3; }
.related span { font-size: 14px; color: var(--muted); }

/* home */
main.home { padding-top: 0; }
main.home > .wrap { padding-top: 30px; }
.hero { background: var(--plate); border-bottom: 1px solid var(--plate-edge); }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.hero p { margin: 0; font-size: 19px; max-width: 640px; }
.bigsearch { display: flex; max-width: 680px; }
.bigsearch input { flex: 1; min-width: 0; height: 56px; padding: 0 16px; font: inherit; font-size: 18px; border: 2px solid var(--ink); border-right: 0; border-radius: 4px 0 0 4px; background: #fff; }
.bigsearch button { height: 56px; padding: 0 22px; border: 2px solid var(--ink); background: var(--accent); color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; border-radius: 0 4px 4px 0; cursor: pointer; }
.hint { font-size: 14px; color: var(--label); }
.results { display: flex; flex-direction: column; gap: 10px; }
.results:empty { display: none; }
.results .count { font-size: 15px; color: var(--label); }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.brands a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid var(--plate-edge); border-left: 6px solid var(--accent); border-radius: 4px; text-decoration: none; font-weight: 800; font-stretch: 85%; font-size: 18px; color: var(--ink); }
.brands a span { font-weight: 500; font-size: 14px; color: var(--muted); font-stretch: 100%; }
.brands a:hover { background: var(--panel); }
.brands.models { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.brands.models a { font-size: 16px; padding: 9px 12px; border-left-width: 4px; }

/* cart + text pages */
.cart-lines { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.cart-line { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .t { flex: 1 1 320px; min-width: 0; }
.cart-line .t a { font-weight: 700; }
.cart-line .t div { font-size: 14px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--plate-edge); border-radius: 4px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.linkbtn { border: 0; background: none; padding: 0 4px; min-height: 44px; font: inherit; font-size: 15px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.cart-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-sum .tot { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0; }
.cart-sum p { margin: 0; }
.sum { display: grid; grid-template-columns: auto auto; gap: 4px 24px; margin: 12px 0 0; text-align: right; }
.sum dt { color: var(--label); }
.sum dd { margin: 0; font-weight: 700; color: var(--ink); }
.sum [hidden] { display: none; }
.ret-note { margin: 22px 0 0; font-size: 14px; color: var(--label); max-width: 720px; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.prose p, .prose ul { margin: 0; }
.prose h2 { margin-top: 14px; }
.placeholder { background: #FFF3C4; padding: 0 4px; border-radius: 3px; }

/* footer */
.site-foot { border-top: 3px solid var(--ink); padding: 22px 0 34px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.site-foot nav a { color: var(--ink); }
.site-foot p { margin: 0; max-width: 560px; }

@media (max-width: 560px) {
  .plate dl { grid-template-columns: 1fr; }
  .plate dt { border-bottom: 0; padding-bottom: 0; }
  .plate dd { padding-top: 2px; }
  .price { font-size: 32px; }
  .buy .btn { flex: 1 1 100%; }
  .setbox { padding: 16px 14px; }
  .set-line { flex-wrap: wrap; }
  .set-line label { flex: 1 1 100%; }
  .set-line > a { margin-left: 34px; }
  .set-foot .btn { flex: 1 1 100%; }
}

/* inside this manual */
.inside .strip { display: block; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--panel); padding: 8px; }
.inside .strip img { display: block; height: 260px; width: auto; max-width: none; }
.inside-caps { margin: 0; padding-left: 18px; font-size: 15px; columns: 2 300px; column-gap: 32px; }
.inside-caps li { break-inside: avoid; margin: 3px 0; }

/* checkout */
.checkout { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 12px; }
.checkout h2 { font-size: 22px; margin-top: 8px; }
.ship-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.ship-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* first | last, street, apartment and city full width, state | ZIP: on phones too (two fewer rows to scroll) */
.ship-form label:nth-child(3), .ship-form label:nth-child(4), .ship-form label:nth-child(5) { grid-column: 1 / -1; }
.ship-form input, .ship-form select { width: 100%; min-width: 0; box-sizing: border-box; height: 44px; padding: 0 10px; font: inherit; font-weight: 400; border: 1px solid var(--plate-edge); border-radius: 4px; background: #fff; }
.pay-way { border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; }
.pay-way h3 { margin: 0 0 4px; }
.pay-way p { margin: 0 0 10px; font-size: 15px; }
/* Apple Pay / Google Pay (Nov 2026): full-width buttons, about as tall as PayPal's */
.wallet-btns { display: flex; flex-direction: column; gap: 10px; }
.wallet-btn { height: 48px; }
.wallet-btn[hidden] { display: none; }
.wallet-btn > * { width: 100%; height: 100%; }
.apple-pay-btn { display: block; width: 100%; height: 48px; border: 0; border-radius: 4px; cursor: pointer;
  -webkit-appearance: -apple-pay-button; -apple-pay-button-type: pay; -apple-pay-button-style: black; }
.co-msg { color: #9B1C1C; font-weight: 700; min-height: 1em; margin: 0; }
.cart-sum { align-items: stretch; }
.cart-sum .sum, .cart-sum .tot, .cart-sum .deal { align-self: flex-end; }
@media (max-width: 560px) { .ship-form { gap: 10px; } }

/* phones: 16px form text so iPhones do not zoom in when a field is tapped (review L4) */
@media (max-width: 640px) {
  .head-search input, .ship-form input, .ship-form select, .list-tools input, .toc-tools input, .set-model select { font-size: 16px; }
}

/* phones (Oct 31): logo and links on one row with the search below, no tagline, a slimmer shipping bar, and the
   photo of the printed manual before the spec table */
@media (max-width: 640px) {
  .site-head .wrap { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brandmark span { display: none; }
  .brandmark b { font-size: 24px; }
  .head-links { order: 2; gap: 10px; font-size: 15px; }
  .head-links a[href="/cart/"] { font-size: 0; gap: 4px; }   /* cart icon + count only; the word stays for screen readers */
  .head-links .cart-count { font-size: 13px; }
  .head-search { order: 3; flex: 1 1 100%; max-width: none; }
  .shipbar { font-size: 13px; }
  .shipbar .wrap { gap: 0 14px; padding-top: 5px; padding-bottom: 5px; }
  .p-row .photo { order: -1; min-height: 0; padding: 10px; }
  .p-row .photo img { max-height: 260px; }
}
