:root {
    --ink: #59435f;
    --muted: #765d7e;
    --accent: #93506b;
    --coral: #c77977;
    --paper: #fcf9fd;
    --wash: #f0e7f3;
    --rose: #fae9e9;
    --line: #dfcfe3;
    --white: #fff;
    --width: 1220px;
    --gap: 24px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; }
a { color: #954263; text-decoration: none; }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #a35479; outline-offset: 3px; }
p { font-size: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
h1,h2,h3 { line-height: 1.2; margin: 0; font-weight: 400; overflow-wrap: anywhere; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 28px; letter-spacing: -.018em; margin-bottom: 20px; }
h3 { font-size: 19px; margin-bottom: 9px; color: var(--accent); }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--white); border-top: 5px solid var(--coral); border-bottom: 1px solid var(--line); }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 23px; letter-spacing: -.03em; color: var(--ink); }
.brand-mark { width: 31px; height: 35px; border: 2px solid var(--accent); border-radius: 6px; position: relative; background: var(--rose); }
.brand-mark::before { content: ''; position: absolute; width: 18px; height: 18px; left: 4px; top: 10px; border: 2px solid var(--accent); border-radius: 50%; background: var(--white); }
.brand-mark::after { content: ''; position: absolute; width: 12px; height: 2px; left: 4px; top: 5px; background: var(--accent); }
nav { display: flex; gap: 10px; align-items: center; }
nav a { padding: 8px 13px; border-radius: 5px; }
nav a:hover { background: var(--rose); }
main.wrap { padding-block: 28px 44px; }
.feature { margin-bottom: 28px; border-radius: 12px; background: var(--wash); overflow: clip; }
.feature .duo { gap: 0; align-items: center; }
.hero-copy { padding: 30px 34px; }
.hero-copy h1, .article-lead h1 { margin-bottom: 14px; }
.hero-copy p { font-size: 16px; max-width: 64ch; }
.lead-home { background: var(--rose); }
.article-lead { padding: 22px 28px; margin-bottom: 26px; background: var(--wash); border-left: 5px solid var(--coral); border-radius: 0 8px 8px 0; }
.article-lead p { max-width: 95ch; }
.chapters { display: flex; flex-direction: column; gap: 24px; }
.chapter { padding: 25px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.chapter:nth-child(2n) { background: #f8f2f8; }
.duo { display: grid; gap: var(--gap); align-items: start; }
.duo > * { min-width: 0; }
.half { grid-template-columns: repeat(2, minmax(0,1fr)); }
.right-small { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
.left-small { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.half > .copy + .copy { border-left: 1px solid var(--line); padding-left: 24px; }
.panel, .figure { padding: 18px 20px; border-radius: 6px; background: var(--rose); border-top: 3px solid var(--coral); }
.figure { background: var(--wash); border-color: #9e78ae; }
.number { font-size: clamp(32px,4vw,48px); line-height: 1.14; letter-spacing: -.04em; color: #8d527e; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.number span { font-size: 18px; letter-spacing: normal; }
.table-wrap { max-width: 100%; }
table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 15px; line-height: 1.45; }
th,td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-weight: 400; }
th { background: #e8d9ed; color: var(--ink); }
tbody tr:nth-child(even) { background: #f6edf7; }
.related { border-top: 2px solid var(--coral); padding-top: 20px; margin-top: 28px; }
.related-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 10px; }
.related-links a { display: flex; align-items: center; padding: 12px 15px; background: var(--wash); border-left: 3px solid #a77bb3; border-radius: 4px; }
.related-links a:hover { background: var(--rose); }
.references { margin-top: 28px; padding: 20px 24px; background: #f4edf6; border-radius: 8px; }
.references h2 { margin-bottom: 12px; }
.references p { color: var(--muted); }
.site-footer { background: #eaddeb; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; padding-block: 27px; }
.footer-group { min-width: 0; }
.footer-group a { display: block; padding-block: 3px; }
.tool { background: #f4eaf5; border: 1px solid var(--line); border-radius: 8px; padding: 17px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tool label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.tool label[hidden], [hidden] { display: none !important; }
.diagnosis > label { margin-bottom: 12px; }
input, select, button { font: inherit; max-width: 100%; }
input,select { width: 100%; min-width: 0; background: var(--white); border: 1px solid #bca3c4; border-radius: 5px; padding: 9px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
button { color: #fff; background: #92506f; border: 1px solid #92506f; border-radius: 5px; padding: 8px 15px; cursor: pointer; }
button:hover { background: #804362; }
button.secondary { color: var(--accent); background: var(--white); border-color: #bda2c4; }
button.secondary:hover { background: var(--rose); }
output { display: block; padding: 12px; margin-top: 12px; background: var(--white); border-left: 3px solid var(--coral); white-space: pre-line; overflow-wrap: anywhere; }
.art { display: grid; place-items: center; padding: 20px; position: relative; }
.washer-art { background: radial-gradient(ellipse at 50% 40%,#fff5f5,#e5cde5); }
.machine { width: 170px; aspect-ratio: 3 / 4; position: relative; border-radius: 10px 10px 6px 6px; background: linear-gradient(105deg,#fff 0%,#f1e7f2 63%,#bca9c4 100%); box-shadow: 12px 13px 0 -2px #ad94b7, 15px 20px 20px #a890ad66; border: 1px solid #b8a2c2; margin-bottom: 10px; }
.console { position: absolute; inset: 5% 4% auto; height: 17%; border-bottom: 1px solid #c0abc5; display: flex; align-items: center; justify-content: space-around; background: linear-gradient(#fff,#e4d7e8); border-radius: 4px; }
.drawer { width: 30%; height: 55%; border: 1px solid #c0afc6; border-radius: 3px; background: linear-gradient(#fff,#e3d6e5); box-shadow: inset 0 -4px 0 #c6b3cd; }
.dial { width: 22%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#fdfaff,#b5a2bd,#fff,#b6a2be,#fdfaff); border: 2px solid #bba8c1; position: relative; box-shadow: 1px 2px 3px #a58ead; }
.dial::after { content: ''; position: absolute; left: 47%; top: 8%; width: 6%; height: 27%; background: #97526c; }
.display { width: 29%; height: 42%; display: flex; justify-content: center; align-items: center; gap: 3px; border-radius: 3px; background: #79577e; }
.display i { width: 3px; height: 8px; background: #f8d6cf; box-shadow: 2px 0 #f8d6cf; }
.door { position: absolute; top: 29%; left: 9%; width: 82%; aspect-ratio: 1; border-radius: 50%; padding: 9%; background: conic-gradient(#fff,#b8a3c1,#f9f4f9,#b6a2be,#fff); box-shadow: 2px 4px 7px #9d80a5aa, inset 0 0 0 1px #b5a1bc; }
.gasket { height: 100%; width: 100%; border-radius: 50%; padding: 10%; background: #93799d; box-shadow: inset 2px 2px 6px #735d81; }
.drum { width: 100%; height: 100%; position: relative; border-radius: 50%; overflow: hidden; background: radial-gradient(circle,#d5c5df 1px,transparent 2px) 0 0/7px 7px,radial-gradient(circle,#8c719c,#6c547e); }
.cloth { position: absolute; bottom: -7%; width: 68%; height: 58%; border-radius: 45% 55% 40% 40%; box-shadow: inset -7px -8px 9px #8f547966; }
.c1 { left: -12%; background: #e8a4a0; transform: rotate(30deg); }
.c2 { left: 31%; background: #bc91c6; transform: rotate(-24deg); }
.c3 { left: 19%; bottom: -22%; background: #efc0c0; transform: rotate(8deg); }
.glass { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg,#fff9,transparent 43%,#f5dafa44 65%,#fff5); box-shadow: inset 0 0 8px #f7e8f4; }
.grip { position: absolute; top: 38%; right: 3%; height: 24%; width: 6%; background: #fdfaff; border-radius: 4px; }
.service-cover { position: absolute; bottom: 5%; right: 7%; width: 19%; height: 10%; border: 1px solid #c0afc6; border-radius: 4px; box-shadow: inset 0 1px 2px #fff; }
.foot { position: absolute; bottom: -4%; width: 15%; height: 4%; background: #9b84a7; border-radius: 0 0 3px 3px; }
.foot.left { left: 8%; } .foot.right { right: 8%; }
.mechanism-art { background: radial-gradient(ellipse at center,#fffcff,#e9d8ec); }
.cutaway { width: 218px; height: 210px; position: relative; border-bottom: 4px solid #b29bbd; }
.tub { position: absolute; top: 14%; left: 14%; width: 72%; aspect-ratio: 1; padding: 8%; border: 2px solid #b69ac4; border-radius: 50%; background: conic-gradient(#f7f0f8,#b8a1c5,#f9f0f9,#d4bddc,#f7f0f8); box-shadow: 4px 5px 8px #997ba566; }
.perforated { height: 100%; width: 100%; border-radius: 50%; position: relative; overflow: hidden; background: radial-gradient(circle,#927da4 1px,transparent 2px) 0 0/8px 8px,radial-gradient(circle,#f9f4fb,#bda7c9); border: 5px solid #f3e8f5; }
.rib { position: absolute; left: 44%; top: 2%; width: 12%; height: 37%; transform-origin: center 130%; background: linear-gradient(90deg,#ae94bb,#fff,#b39ac0); border-radius: 40%; }
.r2 { transform: rotate(120deg); } .r3 { transform: rotate(240deg); }
.hub { position: absolute; width: 19%; aspect-ratio: 1; top: 40.5%; left: 40.5%; border-radius: 50%; background: radial-gradient(#f9f0f8,#b29ac0); border: 2px solid #9a7fac; }
.spring { position: absolute; top: 0; height: 26%; width: 12px; background: repeating-linear-gradient(165deg,transparent 0 4px,#ac91b8 5px 8px,transparent 9px 11px); border-inline: 1px solid #cbb8d1; }
.s1 { left: 23%; transform: rotate(-19deg); } .s2 { right: 23%; transform: rotate(19deg); }
.damper { position: absolute; width: 10px; height: 29%; bottom: 1%; border-radius: 4px; background: linear-gradient(#d7c6de 0 40%,#9f82ae 40%); }
.d1 { left: 25%; transform: rotate(25deg); } .d2 { right: 25%; transform: rotate(-25deg); }
.weight { position: absolute; left: 34%; top: 9%; width: 32%; height: 10%; border-radius: 20% 20% 4px 4px; background: linear-gradient(#dac7de,#a58bb1); }
.motor { position: absolute; bottom: 0; left: 42%; width: 33%; height: 15%; border: 2px solid #a38bae; border-radius: 7px; background: repeating-linear-gradient(90deg,#c7b1d0 0 5px,#e6d9e9 5px 9px); }
.motor span { position: absolute; right: -9%; top: 21%; height: 60%; width: 10%; background: #ab8cb9; border-radius: 3px; }
.belt { position: absolute; bottom: 9%; right: 20%; width: 9%; height: 32%; border: 3px solid #926d9d; border-radius: 50%; transform: rotate(-20deg); }
@media (min-width: 1024px) { .chapter .duo.right-small:has(.tool) { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); } }
@media (max-width: 950px) { .wrap { width: calc(100% - 40px); } .chapter { padding: 22px; } .duo { gap: 18px; } .right-small,.left-small { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-copy { padding: 25px; } }
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) { .masthead nav { display: none; } .wrap { width: calc(100% - 28px); } .duo,.right-small,.left-small,.half,.footer-layout { grid-template-columns: minmax(0,1fr); } .half > .copy + .copy { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; } .chapter,.article-lead,.hero-copy { padding: 18px; } .feature .duo { gap: 0; } main.wrap { padding-block: 18px 30px; } h2 { margin-bottom: 15px; } .references { padding: 16px; } th,td { font-size: 13px; padding: 8px 5px; } .footer-layout { gap: 18px; } }
@media (max-width: 390px) { .fields { grid-template-columns: minmax(0,1fr); } .tool { padding: 12px; } .number { font-size: 34px; } .panel,.figure { padding: 14px; } .art { padding: 14px; } .cutaway { max-width: 100%; } }
@media (min-width: 1024px) {
    .chapter .duo:has([data-calc="cost"]) { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
    [data-calc="cost"] .fields { grid-template-columns: repeat(6,minmax(0,1fr)); }
    [data-calc="cost"] .fields label { grid-column: span 2; }
    [data-calc="cost"] .fields label:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 951px) { .table-split { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); } }
@media (min-width: 701px) and (max-width: 950px) and (min-height: 501px) { .table-split { grid-template-columns: repeat(2,minmax(0,1fr)); } }
