/* HomePartsDex design system (2026-11-15). Brand: a house-shaped rating plate with rivets.
   Colour jobs: navy = brand and ink; label red = key numbers and replaced-number marks; aluminium = plate surfaces;
   amber = the Amazon action only; family colours tint machine stages only. */
@import url("/fonts/fonts.css");
:root {
  --navy: #12355B; --navy-deep: #0A2140; --navy-2: #1C4A7E; --red: #C8102E; --red-on-dark: #FF8A8F; --key: #D72F38;
  --ink: #0E1B2C; --mute: #4A5A70; --faint: #6A788A; --line: #DCE3EC; --tint: #F2F5F9; --sky: #9CC4F0;
  --alu-1: #F6F8FA; --alu-2: #E3E9EF; --alu-3: #C6D0DB; --alu-edge: #98A5B4; --buy: #F5B21B; --buy-edge: #A46F00;
  --disp: "Hubot Sans", system-ui, sans-serif; --text: "Atkinson Hyperlegible Next", system-ui, sans-serif; --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --alu: linear-gradient(180deg, rgb(255 255 255 / .8), rgb(255 255 255 / 0) 45%), repeating-linear-gradient(0deg, rgb(255 255 255 / .2) 0 1px, rgb(0 0 0 / .025) 1px 2px), linear-gradient(180deg, var(--alu-1), var(--alu-2) 60%, var(--alu-3));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.55 var(--text); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap > *, .hero > *, .mgrid > *, .two > * { min-width: 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
main :focus-visible { outline-color: var(--navy); }

/* navy band: header + page title on every page */
.band { position: relative; color: #fff; overflow: hidden; background: radial-gradient(55% 75% at 74% 46%, #2D6098 0%, rgb(45 96 152 / 0) 62%), radial-gradient(40% 60% at 6% 0%, #1A4573 0%, rgb(26 69 115 / 0) 70%), linear-gradient(180deg, #102F53, var(--navy-deep)); }
.band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(156 196 240 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(156 196 240 / .07) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent); pointer-events: none; }
.top { position: relative; z-index: 5; } .top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; border-bottom: 1px solid rgb(156 196 240 / .16); }
.logo { display: block; } .logo img { height: 34px; width: auto; display: block; }
.nav { margin-left: auto; display: flex; gap: 24px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; color: #DCE8F7; } .nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.menu { display: none; margin-left: auto; border: 1px solid rgb(156 196 240 / .45); background: none; color: #fff; border-radius: 10px; padding: 8px 12px; font: 700 15px var(--text); cursor: pointer; }
.crumb { padding-top: 24px; color: #CFE0F3; font-size: 15px; } .crumb a { color: #fff; font-weight: 700; }
.ptitle { position: relative; z-index: 2; padding-bottom: 40px; }
h1 { font: 800 clamp(36px, 4.8vw, 62px)/1.02 var(--disp); font-stretch: 108%; letter-spacing: -.03em; margin: 10px 0 12px; text-wrap: balance; }
.lede { font-size: 20px; color: #CFE0F3; margin: 0; max-width: 46ch; }
main .lede { color: var(--mute); }

/* plate parts */
.plate { position: relative; border-radius: 16px; background: var(--alu); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--alu-edge), 0 22px 44px rgb(18 53 91 / .16); color: var(--ink); }
.band .plate { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--alu-edge), 0 24px 48px rgb(2 12 28 / .5); }
.rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #C9D2DC 40%, #7E8B9A); box-shadow: 0 1px 1px rgb(0 0 0 / .35); }
.rivet.tl { left: 9px; top: 9px; } .rivet.tr { right: 9px; top: 9px; } .rivet.bl { left: 9px; bottom: 9px; } .rivet.br { right: 9px; bottom: 9px; }
.etch { font: 700 10px var(--disp); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.field { display: block; background: #fff; border: 1.5px solid var(--navy); border-radius: 9px; padding: 6px 12px 7px; box-shadow: inset 0 2px 3px rgb(18 53 91 / .07); }
.field .etch { display: block; margin-bottom: 1px; }
.field input, .field b { display: block; width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: none; font: 700 20px/1.35 var(--mono); color: var(--ink); letter-spacing: .01em; overflow-wrap: anywhere; }
.field input::placeholder { color: #93A0AF; font-weight: 600; }
.field:focus-within { box-shadow: 0 0 0 3px rgb(18 53 91 / .25); }
.search { padding: 18px 18px 14px; max-width: 580px; }
.search form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 4px 6px 0; }
.search small { display: block; margin: 10px 6px 0; color: var(--mute); font-size: 14px; } .search small a { color: var(--navy); font-weight: 700; }
.key { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--key); color: var(--key); background: #fff; font: 700 12px var(--mono); }
.pn { font: 700 15px var(--mono); color: var(--navy); background: #fff; border: 1.5px solid var(--navy); border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.was { font: 600 13px var(--mono); color: var(--faint); text-decoration: line-through; text-decoration-color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 17px var(--text); border-radius: 11px; padding: 14px 20px; transition: transform .16s var(--ease); text-align: center; }
.btn-buy { position: relative; overflow: hidden; color: #2B1B00; background: linear-gradient(180deg, #FFD25E, var(--buy) 55%, #E39C00); box-shadow: inset 0 1px 0 rgb(255 255 255 / .65), 0 0 0 1.5px var(--buy-edge), 0 8px 18px rgb(164 111 0 / .25); }
.btn-buy::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn-buy:hover { transform: translateY(-1px); } .btn-buy:hover::after { left: 130%; } .btn-buy:active { transform: translateY(1px); }
.btn-quiet { color: var(--navy); background: #fff; box-shadow: 0 0 0 1.5px var(--navy); }

/* home hero + exploded stage (the signature) */
.hero { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: center; padding-block: 46px 78px; }
.stage { position: relative; height: 540px; }
.switch { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgb(8 26 50 / .55); border: 1px solid rgb(156 196 240 / .25); backdrop-filter: blur(8px); z-index: 4; }
.switch button { border: 0; background: none; color: #CFE0F3; font: 600 14px var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.switch button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.machine { position: absolute; left: 50%; top: 46%; width: 210px; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 30px 40px rgb(2 12 28 / .55)); z-index: 2; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.lines line { stroke: #FF7B7F; stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.pt { position: absolute; z-index: 3; width: 160px; transform: translate(-50%, -50%); text-align: center; }
.pt img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 14px 18px rgb(2 12 28 / .45)); }
.pt .lab { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; max-width: 170px; margin-top: -6px; padding: 5px 10px 5px 5px; border-radius: 16px; background: rgb(8 26 50 / .72); border: 1px solid rgb(156 196 240 / .22); backdrop-filter: blur(6px); font: 600 14px/1.25 var(--text); color: #fff; }
.pt .lab code { font: 600 12px var(--mono); color: #CFE0F3; }
.pt .key { width: 26px; height: 26px; border-width: 2px; }

/* white sections */
.sec { padding: 60px 0; } .sec + .sec { border-top: 1px solid var(--line); }
h2 { font: 800 clamp(28px, 3.3vw, 40px)/1.06 var(--disp); font-stretch: 108%; letter-spacing: -.02em; color: var(--navy); margin: 0 0 8px; text-wrap: balance; }
h3 { font: 800 20px/1.2 var(--disp); color: var(--navy); margin: 0 0 4px; }
.sub { color: var(--mute); margin: 0 0 26px; max-width: 64ch; }

/* where is my model number */
.finder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 13px 7px 9px; font: 600 15px var(--text); cursor: pointer; }
.chip svg { width: 20px; height: 20px; }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.where { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; }
.where .pic { position: relative; width: 76px; height: 76px; color: var(--navy); }
.where .pic svg { width: 76px; height: 76px; stroke-width: 1.3; }
.where .pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(200 16 46 / .2); }
.where p { margin: 0; font-size: 17px; }

/* machine tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { --fam: #3D7BFF; display: grid; grid-template-rows: 150px auto; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile .st { display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 30%, #fff 0%, color-mix(in srgb, var(--fam) 10%, #EEF2F7) 70%); border-bottom: 1px solid var(--line); }
.tile img { width: 128px; height: 128px; object-fit: contain; transition: transform .45s var(--ease); filter: drop-shadow(0 10px 12px rgb(14 27 46 / .18)); }
.tile .tx { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; }
.tile b { font: 700 17px/1.2 var(--text); } .tile .c { font: 600 13px var(--mono); color: var(--mute); white-space: nowrap; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgb(14 27 46 / .14); } .tile:hover img { transform: scale(1.08) translateY(-4px); }

/* lists: brands, models, parts */
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.grid-list a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.grid-list a:hover { border-color: var(--navy); box-shadow: 0 8px 18px rgb(14 27 46 / .08); }
.grid-list b { font-weight: 700; } .grid-list span { font: 600 13px var(--mono); color: var(--mute); }
.grid-list.mono b { font: 700 15px var(--mono); color: var(--navy); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; } .pager a, .pager span { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; font: 600 14px var(--mono); } .pager span { background: var(--navy); color: #fff; border-color: var(--navy); }

/* model page */
.mplate { padding: 22px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; margin: -34px 0 30px; z-index: 3; }
.mplate .field b { font-size: 16px; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.diagram { position: sticky; top: 20px; height: 500px; border-radius: 22px; background: radial-gradient(60% 70% at 50% 45%, #fff, #E9EFF6); border: 1px solid var(--line); overflow: hidden; }
.diagram::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(18 53 91 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(18 53 91 / .06) 1px, transparent 1px); background-size: 28px 28px; }
.diagram .machine { filter: drop-shadow(0 22px 26px rgb(14 27 46 / .25)); width: 190px; }
.diagram .lines line { stroke: var(--key); }
.diagram .pt .lab { background: #fff; color: var(--ink); border-color: var(--line); backdrop-filter: none; } .diagram .pt .lab code { color: var(--navy); }
.diagram .pt img { transition: transform .3s var(--ease); } .diagram .pt.on img { transform: scale(1.12); }
.plist { display: grid; gap: 12px; }
.prow { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.prow.on, .prow:hover { border-color: var(--navy); box-shadow: 0 10px 24px rgb(14 27 46 / .1); }
.prow > div { min-width: 0; }
.prow h3 { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; font-size: 20px; }
.prow p { margin: 4px 0 10px; color: var(--mute); font-size: 16px; }
.prow .btn { padding: 11px 16px; font-size: 15px; }
.prow .more { font-size: 14px; color: var(--mute); margin-left: 10px; } .prow .more a { color: var(--navy); font-weight: 700; }
.note { margin: 26px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--tint); color: var(--mute); font-size: 15px; } .note b { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.box p { margin: 0; color: var(--mute); font-size: 16px; }
.xlink { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: #EEF6F6; border: 1px solid #CFE3E3; margin-top: 18px; font-size: 16px; } .xlink a { color: #0A6A70; font-weight: 700; }

/* part page */
.parthead { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.parthead .pic { width: 150px; height: 150px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(70% 80% at 50% 30%, #fff, #E6EDF5); box-shadow: 0 18px 36px rgb(2 12 28 / .35); }
.parthead .pic img { width: 132px; height: 132px; object-fit: contain; }

/* facts and replaced numbers */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; } .facts h3 { margin-top: 10px; } .facts p { margin: 0; color: var(--mute); font-size: 16px; }
.rep { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; background: var(--tint); border-radius: 22px; padding: 40px; }
.chain { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.chain .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.chain .card b { display: block; font: 700 20px var(--mono); color: var(--navy); } .chain .old b { text-decoration: line-through; text-decoration-color: var(--red); color: var(--mute); }
.chain .arrow { width: 54px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 11px); position: relative; }
.chain .arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--red); }
.prose { max-width: 70ch; } .prose p, .prose li { color: var(--mute); } .prose h2 { margin-top: 34px; font-size: 28px; }

footer { background: var(--navy-deep); color: #B9C9DD; padding: 44px 0 50px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px 36px; align-items: start; }
footer .logo img { height: 30px; } footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; } footer nav a { color: #DCE8F7; text-decoration: none; font-weight: 600; } footer nav a:hover { text-decoration: underline; }
footer p { grid-column: 1 / -1; margin: 6px 0 0; max-width: 90ch; }

@media (prefers-reduced-motion: no-preference) {
  .pt { transition: transform 1s var(--ease), opacity .6s var(--ease); }
  .closed .pt { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.35); opacity: 0; }
  .lines line { transition: opacity .6s .4s; } .closed .lines line { opacity: 0; }
  .ptitle h1 { animation: rise .8s var(--ease) both; } @keyframes rise { from { transform: translateY(12px); opacity: 0; } }
  .prow { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
}
@media (max-width: 1000px) { .hero, .finder, .rep, .mgrid { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } .mplate { grid-template-columns: 1fr 1fr; } .diagram { position: relative; top: 0; } }
@media (max-width: 640px) {
  body { font-size: 16px; } .wrap { padding: 0 16px; } .nav { display: none; } .menu { display: block; } .logo img { height: 26px; }
  .nav-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 70px; background: #fff; padding: 6px 16px 12px; box-shadow: 0 16px 30px rgb(0 0 0 / .2); }
  .nav-open .nav a { color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hero { padding-block: 26px 52px; } .lede { font-size: 17px; } .search form { grid-template-columns: 1fr; }
  .stage { height: 400px; } .machine { width: 150px; } .pt { width: 112px; } .pt img { width: 74px; height: 74px; } .pt .lab code { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { grid-template-rows: 110px auto; } .tile img { width: 92px; height: 92px; } .tile .tx { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .facts, .two { grid-template-columns: 1fr; } .rep { padding: 24px 18px; } .chain { grid-template-columns: 1fr; } .chain .arrow { transform: rotate(90deg); justify-self: center; margin: 10px 0; }
  .mplate { grid-template-columns: 1fr; padding: 20px 16px; } .diagram { height: 400px; } .diagram .machine { width: 140px; }
  .parthead { grid-template-columns: 1fr; } .parthead .pic { width: 120px; height: 120px; } .parthead .pic img { width: 104px; height: 104px; }
  footer .wrap { grid-template-columns: 1fr; }
}

/* ---- review round 1 fixes (2026-11-15) ---- */
p, li { text-wrap: pretty; }
h3 { letter-spacing: 0; }
.btn-go { color: #fff; background: linear-gradient(180deg, #1F4D80, var(--navy) 60%, #0D2A4A); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 0 0 1.5px #0A2140, 0 6px 14px rgb(10 33 64 / .25); }
.btn-go:hover { transform: translateY(-1px); }
.search .hint { margin: 10px 26px 2px 6px; color: var(--mute); font-size: 14px; }
.search .hint a { display: inline-block; padding: 10px 0; color: var(--navy); font-weight: 700; }
.menu { min-height: 44px; min-width: 64px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.crumb a { display: inline-block; padding: 10px 0; }
h1.big { font-size: clamp(42px, 6vw, 84px); }
.ptitle { padding-bottom: 40px; } .hero .ptitle { padding: 0; }

/* drawing: switcher above it, link under it */
.stagewrap { position: relative; }
.stagewrap .switch { position: static; transform: none; margin: 0 auto 6px; width: max-content; max-width: 100%; overflow-x: auto; }
.switch button { min-height: 40px; }
.stagelink { display: block; width: max-content; margin: 4px auto 0; padding: 10px 6px; color: #DCE8F7; font-weight: 700; font-size: 15px; }
.stage { height: 470px; }
.stage.small { height: 400px; } .stage.small .machine { width: 170px; } .stage.small .pt img { width: 86px; height: 86px; }
.pt { width: 200px; }
.pt .lab { max-width: 200px; flex-wrap: nowrap; padding: 5px 12px 5px 5px; border-radius: 999px; }
.pt .lab .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.pt .lab code { display: none; }
.hub .stage.small .pt .lab code { display: none; }

/* machine catalogue, grouped by family */
.group { margin-top: 26px; }
.gh { font: 700 13px var(--disp); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.gh::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mrows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mrow { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.mrow .mi { grid-row: span 2; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 12px; background: radial-gradient(70% 80% at 50% 30%, #fff, color-mix(in srgb, var(--fam) 12%, #EEF2F7)); }
.mrow .mi img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(14 27 46 / .18)); transition: transform .4s var(--ease); }
.mrow b { align-self: end; font: 700 17px/1.2 var(--text); } .mrow .c { align-self: start; font: 600 13px var(--mono); color: var(--mute); }
.mrow:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: 0 12px 24px rgb(14 27 46 / .1); } .mrow:hover img { transform: scale(1.08); }
.sec.alt { background: #F6F8FB; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chip { min-height: 44px; }

/* model page: one stamped line, parts first */
.mtitle { padding-bottom: 34px; }
.stamp-line { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 0; font: 700 11px var(--disp); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: #CFE0F3; }
.stamp-line span { padding: 7px 11px; border-radius: 8px; border: 1px solid rgb(156 196 240 / .35); background: rgb(255 255 255 / .06); }
.mgrid { grid-template-columns: 1.12fr .88fr; margin-top: 30px; }
.diagram { position: sticky; top: 20px; height: 520px; }
.prow { grid-template-columns: auto 1fr; row-gap: 10px; padding: 18px; }
.prow .pbody { min-width: 0; }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pn.big { font: 700 20px var(--mono); padding: 5px 11px; cursor: copy; position: relative; }
.pn.big:hover { background: var(--tint); }
.pn.copied::after { content: "Copied"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); background: var(--navy); color: #fff; font: 700 12px var(--text); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.prow h3 { font-size: 20px; margin: 0; }
.prow p { margin: 6px 0 0; }
.replaces { color: #A50E24; font-weight: 700; font-size: 15px; }
.prow .btn { grid-column: 1 / -1; width: 100%; }
.prow .fits { grid-column: 1 / -1; display: flex; align-items: center; min-height: 44px; margin: -4px 0 -8px; color: var(--navy); font-weight: 700; font-size: 15px; }
.note b { color: inherit; font-weight: inherit; }

/* part page and lists */
h1 .mono { font-family: var(--mono); font-weight: 700; font-size: .78em; letter-spacing: 0; white-space: nowrap; }
.grid-list.models a { flex-direction: column; align-items: flex-start; gap: 2px; }
.grid-list.models code { font: 700 15px var(--mono); color: var(--navy); white-space: nowrap; }
.grid-list.models span { font: 400 14px var(--text); color: var(--mute); }
.grid-list.parts a { justify-content: flex-start; gap: 12px; align-items: center; }
.grid-list.parts .pi { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); }
.grid-list.parts .pi img { width: 48px; height: 48px; }
.grid-list.parts b { display: block; font-weight: 700; } .grid-list.parts code { display: block; font: 700 14px var(--mono); color: var(--navy); } .grid-list.parts small { color: var(--mute); font-size: 13px; }

@media (max-width: 1000px) { .mrows { grid-template-columns: repeat(2, 1fr); } .mgrid { grid-template-columns: 1fr; } .diagram { position: relative; top: 0; } }
@media (max-width: 640px) {
  h1.big { font-size: 40px; }
  .mrows { grid-template-columns: 1fr; gap: 8px; } .mrow { grid-template-columns: 56px 1fr; padding: 8px 12px 8px 8px; } .mrow .mi { width: 56px; height: 56px; } .mrow .mi img { width: 52px; height: 52px; }
  .stage { height: 380px; } .pt { width: 130px; } .pt .lab .nm { max-width: 92px; } .pt .lab { font-size: 13px; }
  .stagewrap .switch { margin: 18px 0 8px; } .switch button { padding: 8px 12px; }
  .diagram { height: 380px; }
  .search .hint { margin-right: 18px; }
}
@media (max-width: 640px) { .diagram .pt[data-i="4"], .diagram .pt[data-i="5"], .diagram .lines line:nth-child(n+5) { display: none; } }
@media (max-width: 640px) { .stage .pt[data-i="1"], .stage .pt[data-i="2"], .diagram .pt[data-i="1"], .diagram .pt[data-i="2"] { left: 74% !important; } .stage .pt[data-i="0"], .stage .pt[data-i="3"], .diagram .pt[data-i="0"], .diagram .pt[data-i="3"] { left: 26% !important; } }

/* ---- review round 2 fixes ---- */
.srcline { margin-top: 4px; font-size: 16px; color: #CFE0F3; }
.pn.big { font-size: 28px; border-color: transparent; background: var(--tint); padding: 4px 12px; display: inline-flex; align-items: baseline; gap: 10px; }
.pn.big .cp { font: 700 12px var(--text); color: var(--mute); letter-spacing: .02em; }
.pn.big:hover .cp { color: var(--navy); }
.prow h3 { font-size: 19px; }
.mrow .c, .grid-list span, .grid-list.parts small, .tile .c { font-family: var(--text); font-weight: 400; font-size: 14px; }
.grid-list.parts b { font-weight: 600; font-size: 15px; } .grid-list.parts code { font-size: 16px; }
.mrow b { text-wrap: balance; }
.chain .card .replaces { display: block; margin-top: 4px; font-size: 13px; }
.nowrap { white-space: nowrap; }
.switch button { min-height: 44px; }
@media (min-width: 1001px) { h1.big { font-size: clamp(42px, 5.4vw, 78px); } .hero { grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 640px) {
  .mrows { gap: 0; border-top: 1px solid var(--line); } .mrow { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 4px; box-shadow: none !important; transform: none !important; }
  .mrow .mi { width: 48px; height: 48px; } .mrow .mi img { width: 46px; height: 46px; } .mrow { grid-template-columns: 48px 1fr; }
  .pn.big { font-size: 24px; }
}
