:root {
    --ink: #51454a;
    --muted: #6a6066;
    --rust: #a34a34;
    --rust-deep: #8b3e31;
    --steel: #5e7086;
    --wash: #eef0f4;
    --rose: #f7e9e5;
    --paper: #fff;
    --line: #dfd6d7;
    --gap: 24px;
    --width: 1220px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f4f6; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--rust-deep); text-decoration: none; font-weight: 400; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #aa614b; outline-offset: 3px; }
p { font-size: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.18; overflow-wrap: anywhere; font-weight: 400; }
h1 { font-size: 40px; font-weight: 650; color: var(--rust-deep); letter-spacing: -0.035em; }
h2 { font-size: 28px; letter-spacing: -0.025em; color: var(--rust-deep); }
h3 { font-size: 20px; color: var(--steel); }
.top { background: white; border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--width); margin: auto; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; letter-spacing: -.025em; }
.brand-mark { width: 31px; height: 35px; border: 2px solid var(--rust); border-radius: 5px; background: linear-gradient(var(--rust) 0 4px,transparent 4px 7px,var(--rose) 7px); position: relative; flex: none; }
.brand-mark:after { content: ''; position: absolute; inset: 12px 4px 5px; background: repeating-linear-gradient(0deg,transparent 0 4px,var(--rust) 4px 5px); border: 1px solid var(--rust); border-radius: 2px; }
nav { display: flex; gap: 25px; flex-wrap: wrap; }
nav a { font-size: 15px; color: var(--rust-deep); border-bottom: 1px solid transparent; }
nav a:hover { border-bottom-color: var(--rust); }
.shell { max-width: var(--width); margin: auto; padding: 26px 26px 42px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 26px; padding: 28px 30px; background: var(--paper); border-top: 5px solid var(--rust); border-bottom: 1px solid var(--line); }
.hero-copy, .hero-side, .module { min-width: 0; }
.hero-side { display: grid; gap: 14px; align-content: center; }
.front .hero { background: linear-gradient(110deg,#fff 0%,#fff 61%,#f3ded8 61%); grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.front .hero-copy { max-width: 650px; }
.mechanic .hero { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); background: #f9f0ed; border-top-color: var(--steel); }
.chapter { margin-top: 22px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 24px 30px; }
.chapter h2 { margin-bottom: 17px; }
.split { display: grid; gap: var(--gap); align-items: start; }
.split.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.split.wide { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); }
.split.reverse { grid-template-columns: minmax(0,1fr) minmax(0,1.65fr); }
.split .companion { border-left: 1px solid var(--line); padding-left: 23px; }
.chapter:nth-of-type(even) { background: #faf4f2; }
.note { padding: 16px 18px; border-left: 4px solid var(--rust); background: var(--rose); margin-bottom: 12px; }
.note:last-child { margin-bottom: 0; }
.note h3 { color: var(--rust-deep); font-size: 19px; margin-bottom: 8px; }
.metric { background: var(--wash); padding: 15px 20px; border-left: 4px solid var(--steel); margin-bottom: 10px; }
.metric:last-child { margin-bottom: 0; }
.value { display: block; color: var(--steel); font-size: clamp(24px,3vw,37px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 7px; }
.source, .bibliography p { color: var(--muted); font-size: 16px; }
.bibliography { margin-top: 25px; padding: 20px 30px; background: #eae8ed; border-left: 4px solid var(--steel); }
.table-wrap { max-width: 100%; }
table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 15px; }
th,td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-weight: 400; }
th { background: #e5e9f0; color: #4b5c72; }
tr:nth-child(even) td { background: #f3f1f3; }
.bars { display: grid; gap: 13px; margin-bottom: 12px; }
.barrow { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(86px,auto); gap: 10px; align-items: center; font-size: 15px; }
.track { height: 17px; background: #e7dfe0; border-radius: 2px; }
.bar { display: block; height: 100%; background: linear-gradient(90deg,#c77960,#a34a34); border-radius: 2px; }
.calculator { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px 14px; align-items: center; margin-bottom: 12px; padding: 17px; background: #fff; border: 1px solid var(--line); }
.calculator label { font-size: 15px; line-height: 1.35; }
.calculator input,.calculator select { width: 100%; min-width: 0; border: 1px solid #aeb1bd; background: #fff; padding: 8px 10px; font: inherit; color: var(--ink); border-radius: 3px; }
.calculator button { grid-column: 1 / -1; justify-self: start; background: var(--rust-deep); color: white; border: none; padding: 9px 22px; font: inherit; cursor: pointer; border-radius: 3px; }
.calculator button:hover { background: #a34a34; }
.calculator output { grid-column: 1 / -1; background: var(--wash); padding: 12px; border-left: 3px solid var(--steel); overflow-wrap: anywhere; }
footer { background: #e8e4e9; border-top: 3px solid #b96c57; }
.footer-inner { max-width: var(--width); margin: auto; padding: 25px 26px; display: flex; align-items: start; gap: 22px; justify-content: space-between; }
.footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 22px; flex: 1; }
.footer-links a,.parent { font-size: 15px; }
/* Product illustration, schematic, not a particular model */
.machine-scene { display: grid; justify-items: center; align-items: center; padding: 6px 12px 12px; }
.dishwasher { width: min(100%, 256px); position: relative; padding: 10px 12px 0; background: linear-gradient(100deg,#aeb4c2,#eff0f3 15%,#d1d5df 50%,#f3f3f5 80%,#a7afbe); border: 1px solid #9fa4b2; border-radius: 8px 8px 4px 4px; box-shadow: 12px 12px 20px #81513c25; }
.control { display: flex; align-items: center; justify-content: flex-end; gap: 7px; height: 26px; padding: 4px 8px; border-bottom: 2px solid #9da2af; }
.control span { margin-right: auto; width: 55px; height: 13px; background: #667387; box-shadow: inset 0 0 0 2px #8392a4; border-radius: 2px; }
.control i { width: 7px; height: 7px; border-radius: 50%; background: #b16b50; }
.tub { height: 172px; position: relative; background: linear-gradient(100deg,#7f8a9e,#d5dce5 13%,#a3afbf 51%,#e0e5eb 86%,#7f8a9e); border: 5px solid #939daf; border-radius: 6px 6px 14px 14px; box-shadow: inset 0 4px 10px #758197; overflow: hidden; }
.rack { position: absolute; height: 48px; left: 10px; right: 10px; border: 2px solid #77859a; background: repeating-linear-gradient(90deg,transparent 0 12px,#78869a 12px 14px); border-radius: 3px; display: flex; align-items: end; justify-content: space-evenly; gap: 2px; z-index: 1; }
.rack:after { content: ''; position: absolute; left: 0; right: 0; bottom: 7px; border-top: 2px solid #77859a; }
.rack.upper { top: 23px; }
.rack.lower { top: 99px; height: 52px; }
.upper i { height: 35px; width: 20px; background: linear-gradient(90deg,#dfdce0,#fff,#a9b5c5); border: 1px solid #a5a8b3; border-radius: 3px 3px 8px 8px; }
.lower i { width: 19px; height: 64px; background: linear-gradient(90deg,#beb9c0,#f6f1ef 27%,#fff 65%,#c2b9bc); border: 1px solid #aaa5ad; border-radius: 50%; transform: rotate(-9deg); }
.sprayer { position: absolute; top: 82px; height: 8px; left: 28px; right: 28px; background: #63758b; border-radius: 50%; transform: rotate(-8deg); }
.door { position: relative; height: 50px; margin: -1px -14px 0; transform: perspective(350px) rotateX(29deg); transform-origin: top; background: linear-gradient(0deg,#a8afbe,#e7e9ed 20%,#b5bdcc 94%); border: 2px solid #9ba4b5; border-radius: 0 0 8px 8px; padding: 7px 15px; }
.door div { border: 1px solid #8997aa; border-radius: 5px; height: 24px; background: linear-gradient(90deg,#a9b5c4,#dbe0e6,#9da8b9); }
.door span { position: absolute; width: 45px; height: 15px; top: 12px; right: 28px; border: 1px solid #8995a8; background: #d7dce5; border-radius: 2px; }
.rotor-scene { display: grid; place-items: center; padding: 4px; }
.basin { position: relative; width: min(100%,300px); aspect-ratio: 1.7; border-radius: 22px; background: radial-gradient(ellipse at center,#a4aebf 0 20%,#e6e9f0 60%,#a8b0bf 95%); border: 8px solid #b6bdc9; box-shadow: inset 0 0 0 3px #8997a9,0 6px 13px #7f7c8a25; }
.filter { position: absolute; width: 28%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 5px solid #7a8a9f; border-radius: 50%; background: repeating-linear-gradient(0deg,transparent 0 4px,#718096 4px 5px), repeating-linear-gradient(90deg,#a8b2c1 0 4px,#6e8096 4px 5px); }
.arm { position: absolute; top: 50%; left: 8%; width: 84%; height: 24px; background: linear-gradient(#e9edf1,#91a2b9 48%,#61738a); border: 1px solid #78879b; border-radius: 45% 45% 40% 40%; transform: translateY(-50%) rotate(-24deg); box-shadow: 1px 5px 6px #67768c65; display: flex; align-items: center; justify-content: space-evenly; }
.arm i { width: 6px; height: 6px; border-radius: 50%; background: #596e85; box-shadow: 0 1px 0 #e7ecf2; }
.hub { position: absolute; width: 28px; height: 28px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle,#d4dde7,#8796ad); border: 2px solid #78889d; border-radius: 50%; }
@media (max-width: 1023px) {
    .shell { padding: 20px 20px 30px; }
    .hero,.chapter { padding: 22px; }
    .split { gap: 18px; }
    .split .companion { padding-left: 17px; }
    .split.wide,.split.reverse { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px), (max-width: 950px) and (max-height: 500px) {
    nav { display: none; }
    .top-inner { padding: 13px 15px; }
    .shell { padding: 14px 12px 24px; }
    .hero,.front .hero,.mechanic .hero { grid-template-columns: minmax(0,1fr); padding: 21px 16px; gap: 14px; background: #fff; }
    .chapter { margin-top: 14px; padding: 20px 16px; }
    .split.equal,.split.wide,.split.reverse { grid-template-columns: minmax(0,1fr); gap: 13px; }
    .split .companion { padding: 13px 0 0; border-left: none; border-top: 1px solid var(--line); }
    .bibliography { padding: 16px; }
    .footer-inner { padding: 20px 16px; flex-direction: column; }
    .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
    .calculator { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 6px; }
    .calculator input,.calculator select { margin-bottom: 6px; }
    .barrow { grid-template-columns: 40px minmax(0,1fr) minmax(75px,auto); gap: 6px; }
    th,td { padding: 8px 5px; }
}
/* Exact bar ratios based on the displayed source values. */
.bar[data-width="100.00"] { width: 100%; }
.bar[data-width="56.13"] { width: 56.13%; }
.bar[data-width="32.84"] { width: 32.84%; }
.calculator[data-calc] { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
.field { min-width: 0; display: grid; gap: 5px; }
.calculator[data-calc="cost"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.calculator[data-calc="hard"] { grid-template-columns: minmax(0,1fr); }
@media (max-width: 1023px) {
    .calculator[data-calc="cost"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px), (max-width: 950px) and (max-height: 500px) {
    .calculator[data-calc], .calculator[data-calc="cost"] { grid-template-columns: minmax(0,1fr); }
}
.split.single { grid-template-columns: minmax(0,1fr); gap: 12px; }
.split.single .companion { border: none; padding: 0; }
.split.single .calculator[data-calc="premium"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
.related { display: grid; gap: 5px; }
.related a { border-bottom: 1px solid var(--line); padding: 3px 0; }
@media (max-width: 767px), (max-width: 950px) and (max-height: 500px) {
    .split.single .calculator[data-calc="premium"] { grid-template-columns: minmax(0,1fr); }
}
