/*
Theme Name: Equipment Notes
Description: A modular clinical engineering fieldbook.
Version: 1.1.2
*/
:root { --paper:#f6f9f8; --ink:#172e31; --teal:#164e50; --tile:#e7f1ef; --rule:#b9cecc; --muted:#405d5d }
* { box-sizing:border-box }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.58 system-ui,sans-serif }
a { color:inherit; text-underline-offset:.22em }
img { display:block; width:100%; height:auto }
:focus-visible { outline:3px solid #228584; outline-offset:4px }
.jump { position:absolute; left:-999px; z-index:50; background:var(--teal); color:white; padding:.75rem }
.jump:focus { left:1rem; top:1rem }
.subject-mast { background:white; border-bottom:1px solid var(--rule) }
.subject-rail,.subject-footer > div { width:min(1210px,100% - 7vw); margin:auto; min-height:69px; padding:.7rem 0; display:flex; align-items:center; justify-content:space-between; gap:.65rem 1.3rem; flex-wrap:wrap }
.brand-subject { text-decoration:none; display:flex; align-items:center; gap:.64rem; font-weight:810; letter-spacing:-.04em; font-size:1.16rem }
.brand-subject b { display:grid; place-items:center; width:33px; height:33px; color:white; background:var(--teal); font-size:1.23rem; border-radius:3px }
.subject-rail nav { display:flex; flex-wrap:wrap; gap:.5rem clamp(.75rem,2.7vw,1.9rem) }
.subject-rail nav a,.subject-footer a { color:var(--teal); font-weight:690; text-decoration:none; font-size:.91rem }
.subject-rail nav a:hover,.subject-footer a:hover { text-decoration:underline }
.clinical-cover {
    display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    grid-template-areas:"summary equipment" "summary reference";
    width:min(1210px,100% - 7vw); gap:1px; border:1px solid var(--rule); background:var(--rule);
    margin:clamp(1.55rem,4vw,3.4rem) auto 0;
}
.cover-summary { container-type:inline-size; grid-area:summary; align-content:center; background:var(--teal); color:white; padding:clamp(1.3rem,4.7vw,4.2rem) }
.subject-kicker { font-size:.78rem; font-weight:760; letter-spacing:.1em; text-transform:uppercase; margin:0 0 .6rem }
.cover-summary .subject-kicker { color:#b9e1d9 }
.cover-summary h1 { font-size:clamp(2.4rem,16.2cqw,5.55rem); font-weight:740; letter-spacing:-.09em; line-height:.92; margin:.4rem 0 1rem }
.cover-summary > p:not(.subject-kicker) { max-width:38ch; color:#d6e9e8; margin:.9rem 0 1.2rem }
.read-fieldbook { display:inline-flex; align-items:center; gap:.4rem; color:#14494a; background:#e6f6f1; padding:.5rem .68rem; text-decoration:none; font-weight:760 }
.read-fieldbook:hover { background:white }
.cover-equipment { grid-area:equipment; margin:0; background:#edf6f5; display:grid; place-items:center }
.cover-equipment img { aspect-ratio:2.03; object-fit:cover; object-position:center 55% }
.cover-reference { grid-area:reference; display:grid; grid-template-columns:1fr 1fr; gap:.48rem 1.1rem; background:var(--tile); padding:clamp(.85rem,2.32vw,1.5rem) }
.cover-reference h2 { font-size:.86rem; margin:0; grid-column:1/-1; letter-spacing:.045em; text-transform:uppercase }
.cover-reference a { display:flex; justify-content:space-between; gap:.3rem; padding:.43rem 0 .1rem; border-top:1px solid #a6c2be; text-decoration:none; color:var(--teal); font-size:.94rem; font-weight:680 }
.cover-reference a:hover span:first-child { text-decoration:underline }
.field-sheets { width:min(1210px,100% - 7vw); margin:clamp(2.2rem,4vw,3.5rem) auto 4.3rem }
.field-sheets h2 { font-size:clamp(2.15rem,4.9vw,3.9rem); line-height:1; font-weight:740; letter-spacing:-.073em; margin:0 0 .85rem }
.sheet-collection { background:var(--rule); padding:1px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px }
.sheet-collection article { display:grid; grid-template-columns:1fr; min-width:0; align-items:center; gap:1rem; padding:clamp(.85rem,2.5vw,1.75rem); background:white }
.sheet-collection article:has(img) { grid-template-columns:minmax(85px,.55fr) minmax(0,1fr); grid-column:1/-1 }
.sheet-collection img { aspect-ratio:2.6; height:100%; object-fit:cover; background:var(--tile) }
.sheet-subject { margin:0; font-size:.76rem; letter-spacing:.07em; text-transform:uppercase; font-weight:750; color:var(--teal) }
.sheet-collection h3 { margin:.25rem 0; font-size:clamp(1.22rem,2.4vw,1.75rem); line-height:1.12; letter-spacing:-.031em }
.sheet-collection h3 a { text-decoration:none }
.sheet-collection h3 a:hover { text-decoration:underline }
.sheet-collection p:last-child { color:var(--muted); margin:.45rem 0 0 }
.subject-footer { background:var(--tile); border-top:1px solid var(--rule) }
.subject-footer p { margin:0; color:var(--muted) }
.subject-reading { width:min(920px,100% - 8vw); margin:auto; padding:3.7rem 0 4.75rem }
.brief-title { border-bottom:1px solid var(--rule); padding-bottom:1rem }
.brief-title .subject-kicker,.brief-copy a,.reading-back { color:var(--teal) }
.brief-title h1,.subject-reading > h1 { font-size:clamp(2.55rem,7vw,5.15rem); font-weight:740; line-height:.94; letter-spacing:-.068em; margin:.75rem 0 }
.article-dek { color:var(--muted); font-size:1.18rem; margin:.6rem 0 0 }
.brief-copy { max-width:745px; font-size:1.1rem; line-height:1.7 }
.brief-copy h2 { font-size:clamp(1.6rem,3.6vw,2.1rem); line-height:1.13 }
.feature-image { margin:1.45rem 0; outline:1px solid var(--rule) }
@media (max-width:780px) {
    .clinical-cover { grid-template-columns:minmax(0,1fr); grid-template-areas:"summary" "equipment" "reference" }
    .sheet-collection article:has(img) { grid-template-columns:1fr }
    .sheet-collection img { height:auto }
}
@media (max-width:480px) {
    .subject-rail nav { flex-basis:100% }
    .cover-reference,.sheet-collection { grid-template-columns:1fr }
}
