:root {
    --ink: #46516d;
    --heading: #41488c;
    --accent: #535cb3;
    --accent-strong: #454d9d;
    --wash: #eff0fa;
    --paper: #fff;
    --line: #d7dbea;
    --yellow: #f0c353;
    --space: 28px;
    --width: 1190px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f6f7fc; font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.17; font-weight: 400; overflow-wrap: anywhere; }
h1 { font-size: 40px; font-weight: 650; letter-spacing: -.035em; margin-bottom: 20px; }
h2 { font-size: 28px; letter-spacing: -.024em; margin-bottom: 21px; }
h3 { font-size: 19px; margin-bottom: 12px; }
p { font-size: 16px; overflow-wrap: anywhere; }
p + p { margin-top: 12px; }
a { color: var(--accent-strong); text-decoration: none; font-weight: 400; }
a:hover { background-color: #e6e8fa; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #aa7215; outline-offset: 3px; }
.mast { background: white; border-bottom: 1px solid var(--line); }
.mast-inner { max-width: var(--width); margin: auto; padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 22px; letter-spacing: -.04em; line-height: 1; padding: 5px 0; }
.brand-icon { width: 35px; height: 40px; border: 2px solid var(--accent); border-radius: 6px; position: relative; background: #f4f4ff; }
.brand-icon::before { content: ''; position: absolute; width: 19px; height: 19px; border-radius: 50%; border: 3px solid var(--accent); background: var(--yellow); top: 10px; left: 6px; }
.brand-icon i { position: absolute; width: 14px; height: 3px; top: 4px; left: 4px; background: #8790d0; border-radius: 2px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
nav a { font-size: 15px; padding: 6px 4px; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--yellow); }
main { max-width: var(--width); margin: 0 auto; padding: 28px 30px 44px; }
.intro { border-top: 5px solid var(--yellow); background: white; border-radius: 4px 4px 18px 18px; box-shadow: 0 7px 25px #4d56a10b; padding: 28px; }
.intro-grid, .split { display: grid; align-items: start; gap: var(--space); }
.intro-grid { align-items: center; }
.wide { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.third { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
.equal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.intro-grid > *, .split > * { min-width: 0; }
.intro-copy p:first-of-type { color: #47557b; }
.landing .intro { background: linear-gradient(105deg, #fff 54%, #eff0fb 54%); }
.construction .intro { background: linear-gradient(105deg, #edf0fc 35%, #fff 35%); }
.landing .intro-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0,1fr); }
.construction .intro-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); }
.chapters { margin-top: 18px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.chapter { padding: 25px 28px 27px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter h2::before { content: ''; display: inline-block; vertical-align: .13em; width: 17px; height: 7px; background: var(--yellow); border-radius: 2px; margin-right: 12px; }
.chapter.wash { background: #f2f3fb; }
.inset { padding: 17px 19px; border-left: 4px solid #a1a7de; background: #eef0fb; border-radius: 3px 11px 11px 3px; }
.wash .inset { background: white; }
.inset h3 { color: var(--heading); }
.metric { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; line-height: 1.35; }
.metric + .metric { border-top: 1px solid #cdd1e8; }
.metric .number { font-size: clamp(29px, 3.2vw, 41px); color: var(--accent-strong); font-weight: 400; letter-spacing: -.035em; }
.equation { padding: 12px 15px; border-left: 3px solid var(--yellow); background: #fff; color: var(--heading); font-size: 18px; line-height: 1.4; margin: 0 0 12px; border-radius: 0 7px 7px 0; overflow-wrap: anywhere; }
.chapter:not(.wash) .equation { background: var(--wash); }
.source { font-size: 16px; line-height: 1.45; color: #626d89; margin-top: 12px; }
.route-list { display: grid; gap: 7px; margin-top: 13px; }
.route-list a { background: #f4f5fd; border: 1px solid #dfe1f2; border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.route-list a:hover { background: #e3e5fa; }
.route-list span { font-size: 24px; line-height: 1; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 15px; line-height: 1.45; }
th, td { padding: 11px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; overflow-wrap: anywhere; }
thead th { background: #e5e8f8; color: var(--heading); }
tbody th { color: var(--heading); }
tbody tr:nth-child(even) { background: #f7f8fd; }
tbody tr:nth-child(odd) { background: white; }
tbody tr:last-child > * { border-bottom: 0; }
.bars { display: grid; gap: 13px; }
.bars > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 15px; align-items: center; }
.track { grid-column: 1 / -1; height: 14px; background: #e2e4f2; border-radius: 4px; }
.bar { height: 100%; display: block; border-radius: 4px; }
.b37 { width: 37.037%; background: #626bc0; }
.b100 { width: 100%; background: #e2b447; }
.bars > div > span:last-child { grid-row: 1; grid-column: 2; }
.calculator { background: white; border: 1px solid #cdd2ec; border-radius: 12px; padding: 17px; }
.fields { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 9px 13px; align-items: center; margin-bottom: 14px; }
label { font-size: 15px; line-height: 1.35; color: #4a5478; overflow-wrap: anywhere; }
input, select { font: inherit; width: 100%; min-width: 0; padding: 7px 9px; color: var(--ink); background: #f8f9ff; border: 1px solid #aab1d9; border-radius: 5px; }
button { border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 8px 14px; font: inherit; border-radius: 6px; cursor: pointer; margin-right: 6px; margin-bottom: 5px; }
button:hover { background: #41488c; }
button.quiet { color: var(--accent-strong); background: white; }
button.quiet:hover { background: var(--wash); }
output { display: block; padding: 12px 13px; margin-top: 8px; border-left: 3px solid var(--yellow); border-radius: 3px; background: #eff0fa; overflow-wrap: anywhere; white-space: pre-line; font-size: 16px; }
footer { background: #e9ebf8; border-top: 1px solid #d6daee; }
.footer-inner { max-width: var(--width); margin: auto; padding: 25px 30px 32px; display: grid; grid-template-columns: 2fr 3fr; gap: 32px; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 16px; }
.footer-links a { font-size: 15px; line-height: 1.4; padding: 4px 0; }
/* device illustration */
.dryer-stage { display: grid; justify-items: center; padding: 5px 10px 0; }
.dryer-machine { position: relative; width: min(100%, 258px); aspect-ratio: 1 / 1.21; background: linear-gradient(100deg,#c7cde2 0%,#fdfdff 10%,#f7f8fe 78%,#c2c8e0 100%); border: 1px solid #a6acc8; border-radius: 12px 12px 8px 8px; box-shadow: 8px 10px 0 #d9ddee, 0 16px 21px #505b9223, inset 0 1px 3px #fff; }
.fascia { position: absolute; top: 0; width: 100%; height: 19%; border-radius: 11px 11px 0 0; border-bottom: 1px solid #b0b7d1; background: linear-gradient(#fdfdff,#e1e4f1); }
.tank-handle { position: absolute; left: 6%; top: 23%; width: 32%; height: 54%; border: 1px solid #b9c0d8; border-radius: 4px; box-shadow: inset 0 2px 3px #a5acc044; }
.tank-handle::after { content: ''; position: absolute; left: 15%; top: 60%; width: 70%; height: 20%; border-radius: 4px; background: #bac0d7; }
.dial { position: absolute; left: 46%; top: 18%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 25deg,#f7f7fb,#8f98bc,#f9f9ff,#b9c0d8,#f7f7fb); border: 2px solid #b1b8d2; box-shadow: 1px 2px 3px #8892b7; }
.dial::after { content: ''; position: absolute; top: 4%; left: 46%; width: 8%; height: 32%; background: #515ca0; border-radius: 3px; }
.display { position: absolute; top: 25%; right: 6%; width: 25%; height: 48%; border-radius: 4px; background: #6874aa; display: flex; align-items: center; justify-content: center; gap: 6px; }
.display i { width: 19%; height: 37%; border: 2px solid #f5d477; border-left-width: 1px; border-right-width: 1px; }
.door-rim { position: absolute; left: 13%; top: 25%; width: 74%; aspect-ratio: 1; border-radius: 50%; padding: 5%; background: conic-gradient(#f4f5fb,#b3bbd5,#e7e9f4,#a4acc9,#f4f5fb); box-shadow: 2px 5px 8px #8491b45c, inset 0 0 0 1px #b1b9d1; }
.door-inner { height: 100%; position: relative; overflow: hidden; border-radius: 50%; background: radial-gradient(ellipse at 48% 43%,#8c99cb 0%,#6878b1 52%,#56649d 75%); border: 5px solid #a7b0d1; box-shadow: inset 4px 5px 13px #465585aa; }
.drum-perfs { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle,#d5ddf6 1.1px,transparent 1.7px) 0 0/9px 9px; opacity: .8; }
.laundry { position: absolute; bottom: 4%; height: 43%; width: 63%; border-radius: 45% 26% 38% 30%; box-shadow: inset 0 -7px 10px #6f6b9b36; }
.laundry-one { background: linear-gradient(125deg,#d9d9f4,#8b93c4); left: -3%; transform: rotate(16deg); }
.laundry-two { background: repeating-linear-gradient(154deg,#eac773 0 10px,#f6dc94 10px 21px); right: -2%; transform: rotate(-15deg); }
.laundry-three { background: linear-gradient(30deg,#b2bce4,#f2f2ff); bottom: -7%; left: 20%; height: 31%; transform: rotate(7deg); }
.reflection { position: absolute; inset: 0; background: linear-gradient(135deg,#fff3 7%,#fff5 27%,transparent 35%,transparent 74%,#ffffff15 85%); }
.bottom-panel { position: absolute; bottom: 0; width: 100%; height: 15%; border-top: 1px solid #c3c9df; }
.grille { position: absolute; top: 20%; left: 8%; width: 34%; height: 53%; border: 1px solid #bac1da; border-radius: 3px; background: repeating-linear-gradient(0deg,#aeb7d1 0 2px,#e9ebf6 2px 5px); }
.service-cover { position: absolute; top: 12%; right: 7%; width: 39%; height: 73%; border: 1px solid #b5bed8; border-radius: 4px; }
.machine-feet { display: flex; width: min(80%,210px); justify-content: space-between; }
.machine-feet i { width: 14%; height: 6px; background: #7d89b1; border-radius: 0 0 3px 3px; }
/* separate construction illustration */
.cutaway { width: min(100%, 290px); margin: auto; }
.cut-shell { position: relative; aspect-ratio: 1 / 1.08; border: 2px solid #9fa8d4; border-radius: 12px; background: linear-gradient(135deg,#eef1fb,#f9faff 65%,#ccd4ee); box-shadow: 6px 6px 0 #d7ddf2; overflow: hidden; }
.cut-drum { position: absolute; left: 10%; top: 7%; width: 70%; height: 57%; background: linear-gradient(90deg,#acb7d7,#eff0fb 30%,#909dc6 80%); border-radius: 50% 30% 30% 50%; border: 2px solid #8794c0; overflow: hidden; }
.cut-metal { position: absolute; left: 5%; top: 3%; height: 94%; width: 62%; background: radial-gradient(circle,#dbe2f7 1px, transparent 2px) 0 0/8px 8px,linear-gradient(125deg,#7685b6,#9faad0); border-radius: 50%; border: 6px solid #c5cce4; }
.cut-drum i { position: absolute; right: 0; width: 40%; height: 5%; background: #c4cce7; border-radius: 5px; }
.cut-drum i:nth-of-type(1) { top: 24%; }.cut-drum i:nth-of-type(2) { top: 48%; }.cut-drum i:nth-of-type(3) { top: 72%; }
.duct-top { position: absolute; right: 8%; top: 6%; width: 29%; height: 13%; border: 4px solid #c4a24e; border-radius: 0 12px 0 0; background: #f4d893; }
.duct-side { position: absolute; right: 8%; top: 16%; width: 11%; height: 51%; border: 3px solid #b0b9dc; background: linear-gradient(#f3d37e,#a8b8e4); border-radius: 0 0 8px 8px; }
.heat-exch { position: absolute; bottom: 18%; width: 30%; height: 16%; border: 2px solid #8291c5; background: repeating-linear-gradient(90deg,#8497d1 0 2px,#e2e9fa 2px 6px); border-radius: 3px; box-shadow: 2px 3px 0 #b5c2e0; }
.heat-exch.cold { left: 8%; }.heat-exch.warm { left: 42%; border-color: #b19a53; background: repeating-linear-gradient(90deg,#c4a650 0 2px,#f6e1aa 2px 6px); }
.heat-exch i { position: absolute; left: -3%; right: -3%; height: 7%; background: #e7edf9; top: 28%; }.heat-exch i+i { top: 68%; }
.compressor { position: absolute; right: 7%; bottom: 5%; width: 20%; height: 25%; border-radius: 42% 42% 23% 23%; background: linear-gradient(90deg,#7684b1,#b7c1dc 45%,#7582af); border: 2px solid #8390b7; }
.compressor::after { content: ''; position: absolute; top: 28%; left: -3%; width: 106%; height: 2px; background: #d8dff2; }
.pipe { position: absolute; border: 3px solid #c49a46; border-radius: 10px; }.pipe-a { bottom: 6%; left: 20%; width: 58%; height: 11%; border-top: 0; }.pipe-b { right: 17%; bottom: 24%; width: 29%; height: 13%; border-bottom: 0; }
.water-tray { position: absolute; left: 8%; width: 30%; height: 6%; bottom: 9%; border: 1px solid #8a9bcb; background: #b1c6ed; border-radius: 2px; }
.motor { position: absolute; left: 42%; bottom: 4%; width: 24%; height: 10%; border: 2px solid #8a96bd; background: repeating-linear-gradient(90deg,#c6cee6 0 3px,#97a5ce 3px 6px); border-radius: 5px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 15px; padding: 11px 0 0; font-size: 13px; justify-content: center; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }.swatch.blue { background: #8797d2; }.swatch.amber { background: #d9ac42; }
@media (max-width: 1050px) {
    :root { --space: 22px; }
    .mast-inner, main, .footer-inner { padding-left: 22px; padding-right: 22px; }
    .chapter, .intro { padding: 22px; }
    .wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    .third { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
}
@media (max-width: 800px) {
    .mast-inner { gap: 12px; }
    nav { gap: 9px; }
    .intro-grid, .split, .landing .intro-grid, .construction .intro-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .construction .intro-grid { display: flex; flex-direction: column-reverse; align-items: stretch; }
    .landing .intro, .construction .intro { background: white; }
    .dryer-machine { width: min(100%, 230px); }
    .cutaway { max-width: 240px; }
    .footer-inner { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
@media (max-width: 700px), (max-height: 500px) and (max-width: 950px) and (orientation: landscape) {
    nav { display: none; }
    .mast-inner { padding-top: 10px; padding-bottom: 10px; }
    main { padding: 16px 12px 28px; }
    .chapter, .intro { padding: 19px 15px; }
    .chapter h2::before { width: 12px; margin-right: 8px; }
    .fields { grid-template-columns: minmax(0,1fr); gap: 6px; }
    .fields input, .fields select { margin-bottom: 5px; }
    table { font-size: 13px; }
    th, td { padding: 8px 6px; }
    .footer-inner { padding: 20px 17px; }
}
@media (max-width: 360px) {
    main { padding-left: 9px; padding-right: 9px; }
    .chapter, .intro { padding: 16px 12px; }
    .inset, .calculator { padding: 12px; }
}
.dryer-machine { width: min(100%, 215px); }
.cutaway { width: min(100%, 220px); }
.compact .fields { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; align-items: end; }
.compact .field { grid-column: span 2; display: grid; gap: 5px; }
.compact .field-count-5 .field:nth-last-child(-n+2) { grid-column: span 3; }
@media (max-width: 1050px) {
    .compact .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .compact .field, .compact .field-count-5 .field:nth-last-child(-n+2) { grid-column: span 1; }
    .compact .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .compact .fields { grid-template-columns: minmax(0,1fr); }
}
