*{box-sizing:border-box}body{margin:0;background:#f6fafc;color:#162c38;font:16px/1.55 'Inter',system-ui,sans-serif}

header{background:#fff;color:#102d3a;border-bottom:1px solid #dce8ee}header div,main{max-width:1080px;margin:auto;padding:22px}

.brand{font-size:24px;font-weight:750}nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}

nav a{color:#17485c;text-decoration:none;padding:8px 12px;border-radius:6px}

nav a[aria-current]{background:#d6f3ed;color:#103733}a{color:#075f75}h1{font-size:clamp(2rem,6vw,3.4rem);margin:.35em 0 .1em}

main>p{max-width:65ch}.example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px}.example-card{background:white;border:1px solid #cedce4;border-radius:8px;padding:16px}.example-card a{overflow-wrap:anywhere}.example-card summary{cursor:pointer}ul.cards{padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:16px}

.cards a{display:block;height:100%;padding:20px;background:white;border:1px solid #cedce4;border-radius:8px;font-weight:650}

table{width:100%;border-collapse:collapse;text-align:left}caption{text-align:left;font-weight:650;margin:8px 0}th,td{padding:8px;border-bottom:1px solid #dce8ee}.cards small{display:block;margin-top:8px;color:#365562;font-size:.9rem;font-weight:400}.hero{display:grid;grid-template-columns:1fr 1.35fr;align-items:center;gap:30px;margin:20px 0 32px;background:#e9f8f7;border-radius:18px;padding:clamp(16px,4vw,36px);overflow:hidden}

.hero-image{perspective:1100px}.hero-image img{display:block;width:100%;border-radius:12px;box-shadow:0 14px 30px #27596b28;animation:depth 8s ease-in-out 2}

@keyframes depth{0%,100%{transform:rotateY(-3deg) translateZ(0)}50%{transform:rotateY(2deg) translateZ(10px)}}

.cards a,.example-card{transition:transform 180ms ease,box-shadow 180ms ease}

.cards a:hover,.cards a:focus-visible,.example-card:hover{transform:perspective(800px) translateZ(10px) translateY(-3px);box-shadow:0 12px 24px #27596b1f}

.equipment-chain{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0}.equipment-chain li{position:relative;flex:1 1 130px;background:#e9f8f7;border:1px solid #bbddd9;border-radius:8px;padding:10px}.equipment-chain small{display:block;color:#365562}

#wire-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px}#wire-form label{display:grid;gap:4px}

#wire-form input,#draw button{padding:8px;font:inherit}#draw button{cursor:pointer}

#drawing-preview{display:grid;gap:10px;margin:16px 0}

.wire-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,1fr) minmax(0,1fr) auto;align-items:center;gap:8px}

.wire-row span{overflow-wrap:anywhere}.terminal{border:1px solid #548294;border-radius:6px;padding:8px;background:#e7f7f6}.conductor{text-align:center;border-bottom:3px solid #078983}

@media print{body:has(#draw) header,body:has(#draw) main>*:not(#draw),#draw form,#draw button,.open-drawing,#drawing-status,#draw>p{display:none}#draw{border:0}}

@media(max-width:700px){.hero{grid-template-columns:1fr}}

@media(prefers-reduced-motion:reduce){.hero-image img{animation:none}.cards a,.example-card{transition:none}}


.quick-start{background:#e9f5ff;color:#15364c;padding:1rem max(1rem,calc((100% - 68rem)/2));display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem}.quick-start ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}.quick-start a{display:inline-block;padding:.45rem .75rem;background:#fff;color:#075584;border:1px solid #accfe2;border-radius:.5rem;text-decoration:none}.quick-start a:focus-visible,.quick-start a:hover{text-decoration:underline;outline-offset:2px}

.trainer-logo{display:inline-block;width:135px;height:auto;vertical-align:middle;margin-inline-start:.65rem}

.run-workflows ul{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;padding:0;list-style:none}.run-workflows a{color:#075584;text-decoration:underline;text-underline-offset:.2em}.run-workflows a:focus-visible{outline:2px solid currentColor;outline-offset:3px}main section[id]{scroll-margin-top:1rem}

/* Preserve the original proportions of photography and the official wordmark. */
.hero { grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); }
.hero-image { min-width:0; perspective:none; }
.hero-image img { height:auto; max-width:100%; animation:none; }
main img { max-width:100%; height:auto; }
.brand { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem 1rem; color:#103733; }
.trainer-logo { display:block; width:clamp(104px,15vw,132px); height:auto; margin:0; padding:4px 9px; background:#fff; border:1px solid #bbddd9; border-radius:8px; }
@media(max-width:700px) { .hero { grid-template-columns:minmax(0,1fr); } }

body { background:#f4f8f8; color:#152f38; }
header { border-top:5px solid #007e77; border-bottom-color:#a8c5c5; }
header > div, main { max-width:1240px; padding-inline:clamp(16px,4vw,48px); }
header > div { padding-block:18px; }
.brand { font-size:clamp(25px,4vw,34px); font-weight:800; letter-spacing:-.045em; }
.trainer-logo { padding:0 0 0 16px; width:148px; border:0; border-left:1px solid #aecac8; border-radius:0; }
header nav { gap:2px 8px; }
header nav a { border-radius:0; border-bottom:2px solid transparent; }
header nav a[aria-current], header nav a:hover { background:#e6f6f3; border-bottom-color:#007e77; }
.quick-start { background:#dfedee; border-bottom:1px solid #bed3d5; }
.quick-start a { background:#f5fbfa; border-color:#a7c5c5; border-radius:3px; }
.hero { background:#d8efeb; border-radius:4px; border-left:5px solid #00877e; gap:clamp(20px,4vw,56px); }
.hero h1 { max-width:12ch; line-height:1.01; letter-spacing:-.055em; }
.hero p { max-width:34ch; color:#274d54; }
.hero-image img { border-radius:3px; box-shadow:0 12px 26px #16474b26; }
main h2 { letter-spacing:-.025em; }
.cards a, .example-card { border-radius:4px; border-color:#bad1d1; }
.cards a { border-top:3px solid #00877e; text-decoration:none; color:#124a57; }
.cards a:hover,.cards a:focus-visible { background:#effaf8; text-decoration:underline; }
.cards small { line-height:1.45; }

.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.hero-actions a{display:inline-block;padding:10px 14px;background:#fff;border:1px solid #007e77;color:#124a57;text-decoration:none;font-weight:700;border-radius:4px}.hero-actions a:first-child{background:#006b65;color:#fff}.hero-actions a:hover,.hero-actions a:focus-visible{text-decoration:underline}
