/* NewOldManuals.com - older-catalog look (2026-11-18). Paper, ink, tractor red, TechMedia blue. */
:root {
  --paper: #f3ead6;
  --paper-2: #ebdfc4;
  --card: #fbf6ea;
  --ink: #2a2118;
  --ink-2: #5a4c3b;
  --rule: #c8b48c;
  --red: #a3271b;
  --red-dark: #7e1d14;
  --blue: #1d3f86;
  --ok: #2f5d2a;
  --slab: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--blue); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--slab); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
.smallcaps { font-variant: small-caps; letter-spacing: .06em; }

/* top strip + masthead */
.strip { background: var(--ink); color: #f3ead6; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.strip a { color: #f3ead6; text-decoration: none; }
.mast { border-bottom: 3px double var(--ink); background: var(--paper); }
.mast .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.mast .logo img { display: block; width: 104px; height: auto; }
.brand { text-decoration: none; color: var(--ink); }
.brand .name { font-family: var(--slab); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; display: block; }
.brand .name em { font-style: normal; color: var(--red); }
.brand .tag { display: block; font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.mast-tools { display: flex; gap: 10px; align-items: center; }
.search { display: flex; border: 2px solid var(--ink); background: var(--card); }
.search input { border: 0; background: transparent; font: inherit; padding: 8px 10px; width: 210px; color: var(--ink); }
.search button { border: 0; background: var(--ink); color: var(--paper); font: 600 15px var(--sans); padding: 0 14px; cursor: pointer; }
.cart-link { display: inline-block; text-decoration: none; color: var(--paper); background: var(--red); padding: 9px 14px; font-weight: 700; border: 2px solid var(--red-dark); white-space: nowrap; }
.cart-link:hover { background: var(--red-dark); color: var(--paper); }
.sale { background: var(--red); color: #fff7e6; text-align: center; font-family: var(--slab); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; font-size: 16px; border-bottom: 1px solid var(--red-dark); }
.sale span { opacity: .9; font-weight: 500; letter-spacing: .04em; }
.nav { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.nav .wrap { padding-top: 6px; padding-bottom: 6px; font-size: 16px; }
.navrow { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; padding: 3px 0; }
.nav b { font-family: var(--slab); color: var(--ink-2); font-weight: 600; min-width: 46px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--red); text-decoration: underline; }
.nav .sep { width: 1px; height: 18px; background: var(--rule); }

/* layout pieces */
main { padding: 26px 0 40px; }
.crumbs { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.crumbs a { color: var(--ink-2); }
.panel { background: var(--card); border: 1px solid var(--rule); box-shadow: 0 1px 0 #fff inset; padding: 18px 20px; }
.rule-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.rule-title h2 { margin: 0; white-space: nowrap; }
.rule-title::after { content: ""; flex: 1; border-top: 3px double var(--rule); }
.btn { display: inline-block; font: 700 17px var(--sans); text-decoration: none; padding: 11px 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.red { background: var(--red); border-color: var(--red-dark); color: #fff; }
.btn.red:hover { background: var(--red-dark); }

/* plates: line drawings sit on the paper (white turns to paper) */
.plate { background: var(--card); border: 1px solid var(--rule); padding: 10px; text-align: center; }
.plate img { mix-blend-mode: multiply; display: block; margin: 0 auto; }
.plate figcaption, .fig { font-family: var(--slab); font-size: 14px; color: var(--ink-2); margin-top: 8px; font-style: italic; }

/* home */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 38em; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.make { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); padding: 14px 16px; }
.make:hover { border-color: var(--ink); color: var(--ink); }
.make b { font-family: var(--slab); font-size: 22px; display: block; }
.make span { font-size: 15px; color: var(--ink-2); }
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.assure div { border-top: 3px solid var(--ink); padding-top: 8px; font-size: 15px; color: var(--ink-2); }
.assure b { display: block; font-family: var(--slab); color: var(--ink); font-size: 18px; }

/* product cards (grid) and catalog rows (lists) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--rule); padding: 12px; display: flex; flex-direction: column; }
.card .pic { height: 150px; display: flex; align-items: center; justify-content: center; }
.card .pic img { max-height: 150px; width: auto; mix-blend-mode: multiply; }
.card h3 { font-size: 17px; margin: 10px 0 4px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); text-decoration: underline; }
.card .meta { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.card .price { margin-top: auto; }
.rows { border-top: 3px double var(--rule); }
.row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px dotted var(--rule); }
.row .pic img { width: 96px; height: auto; mix-blend-mode: multiply; display: block; }
.row h3 { font-size: 18px; margin: 0 0 2px; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--red); text-decoration: underline; }
.row .meta { font-size: 14px; color: var(--ink-2); }
.row .buy { text-align: right; }
.price { font-family: var(--slab); }
.price .was { text-decoration: line-through; color: var(--ink-2); font-size: 15px; margin-right: 6px; }
.price .now { color: var(--red); font-weight: 700; font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.chip { border: 1px solid var(--ink); padding: 4px 10px; text-decoration: none; color: var(--ink); font-size: 15px; background: var(--card); }
.chip.on, .chip:hover { background: var(--ink); color: var(--paper); }
.count-note { color: var(--ink-2); margin: 0 0 8px; }

/* product page */
.prod { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 28px; align-items: start; }
.prod .plate img { max-height: 380px; width: auto; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--rule); background: var(--card); cursor: pointer; }
.thumbs button.on, .thumbs button:hover { border-color: var(--ink); }
.thumbs img { width: 64px; display: block; mix-blend-mode: multiply; }
.buybox { margin-bottom: 16px; }
.ident { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 16px; background: var(--card); border: 1px solid var(--rule); font-size: 16px; }
.specs th { text-align: left; font-family: var(--slab); font-weight: 600; width: 34%; padding: 7px 12px; border-bottom: 1px dotted var(--rule); color: var(--ink-2); }
.specs td { padding: 7px 12px; border-bottom: 1px dotted var(--rule); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.buybox { border: 2px solid var(--ink); background: var(--card); padding: 16px 18px; }
.buybox .price .now { font-size: 34px; }
.buybox .save { color: var(--ok); font-weight: 700; font-size: 15px; margin: 2px 0 12px; }
.qty { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty input { width: 64px; font: inherit; padding: 9px; border: 2px solid var(--ink); background: #fff; }
.added { color: var(--ok); font-weight: 700; margin-top: 10px; display: none; }
.added.show { display: block; }
.fine { list-style: none; padding: 0; margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.fine li { padding-left: 20px; position: relative; margin: 4px 0; }
.fine li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.toc { column-width: 300px; column-gap: 34px; font-size: 16px; }
.toc p { margin: 0 0 10px; break-inside: avoid; }
.desc { max-width: 52em; }

/* cart */
.cart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.cart-items { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); }
.cart-items td { padding: 10px; border-bottom: 1px dotted var(--rule); vertical-align: middle; }
.cart-items img { width: 64px; mix-blend-mode: multiply; }
.cart-items .x { background: none; border: 0; color: var(--red); cursor: pointer; font: 600 14px var(--sans); text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label { font-size: 14px; font-weight: 700; display: block; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid select { width: 100%; font: inherit; padding: 9px; border: 1px solid var(--ink-2); background: #fff; }
.summary { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.summary td { padding: 5px 0; }
.summary td:last-child { text-align: right; font-family: var(--slab); }
.summary .total td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 20px; padding-top: 8px; }
.pay-note { font-size: 15px; color: var(--ink-2); margin: 8px 0; }
.pay-way { margin: 10px 0 14px; }
.pay-way h3 { font-size: 17px; margin-bottom: 4px; }
.co-msg { color: var(--red-dark); font-weight: 700; margin: 6px 0; }
.co-msg:empty { display: none; }
.form-grid input:invalid:focus, .form-grid select:invalid:focus { outline: 2px solid var(--red); }
.pay-placeholder { border: 2px dashed var(--rule); padding: 14px; text-align: center; color: var(--ink-2); margin: 8px 0; }
.empty { padding: 30px; text-align: center; }

/* footer */
.foot { background: var(--ink); color: #e9dfc8; margin-top: 30px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.foot h4 { font-family: var(--slab); color: #fff7e6; margin: 0 0 8px; font-size: 18px; }
.foot a { color: #e9dfc8; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 3px 0; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #5a4c3b; padding-top: 12px; font-size: 13px; color: #c9bb9c; }

@media (max-width: 860px) {
  .mast .wrap { grid-template-columns: auto 1fr; }
  .mast-tools { grid-column: 1 / -1; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .hero, .prod, .cart-grid { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .navrow { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .navrow::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .strip { font-size: 12px; }
  .strip .wrap { gap: 2px 12px; }
  .strip span:nth-child(2) { display: none; }
  .sale { font-size: 14px; }
  .sale span { display: none; }
  .mast .logo img { width: 72px; }
  .brand .tag { font-size: 13px; }
  .row { grid-template-columns: 64px 1fr; }
  .row .pic img { width: 64px; }
  .row .buy { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr; }
}
