:root{font-family:Arial,Helvetica,sans-serif;color:#172334;background:#f2f4f6;color-scheme:light}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1400px;margin:auto;padding:18px 22px}header{display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:3px solid #315d81}.brand{font-size:25px;font-weight:bold;text-decoration:none;color:#234766}.brand span{display:inline;margin-left:14px;font-size:15px;font-weight:normal}nav{display:flex;gap:20px;font-size:14px}a{color:#245b85}.hero{padding:8px 0}.eyebrow,.badges{display:none}h1{font-size:25px;margin:12px 0 4px}h2{font-size:20px;margin:8px 0}p{line-height:1.5;font-size:14px;color:#485568;margin:8px 0}.hero p{display:none}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}label{display:block;font-size:13px;color:#263e55}input,select{font:inherit;font-size:14px;min-height:40px;background:#fff;color:#16283a;border:1px solid #9aa8b5;border-radius:3px;padding:7px;width:100%;margin-top:5px}button{font:inherit;font-size:14px;min-height:40px;background:#315d81;border:1px solid #315d81;border-radius:4px;color:#fff;padding:9px 14px;cursor:pointer}button:disabled{opacity:.5}input:focus,select:focus,button:focus-visible{outline:2px solid #1768ac;outline-offset:2px}.search{max-width:370px;margin:12px 0}.cards{overflow-x:auto;background:#fff;border:1px solid #9aabb9;border-radius:4px}.comparison{width:100%;border-collapse:collapse;min-width:1040px;font-size:14px}.comparison thead{background:#d9e5ee;color:#203c54}.comparison th,.comparison td{padding:9px 7px;border:1px solid #b8c5cf;text-align:center;white-space:nowrap}.comparison thead th{font-size:12px;padding:13px 7px}.comparison tbody th{font-weight:normal;font-size:12px}.comparison tbody:nth-child(odd){background:#f1f6f9}.comparison .cam-choice{width:230px;text-align:left;white-space:normal}.cam-choice select{font-size:14px;width:220px;background:#fffbd3;min-height:44px;margin:0}.cam-choice small{display:block;padding-top:8px;color:#516477}.comparison .derived{font-weight:bold;background:#e6eef5}.table-settings{width:140px}.table-settings label{text-align:left;font-size:11px;margin-bottom:6px}.table-settings select{font-size:12px;min-height:36px;margin-top:3px;padding:4px}.fine{font-size:12px;color:#667586;margin-top:10px}#manual{padding:18px 0;border-top:1px solid #b8c5cf;margin-top:22px}#timing-form{max-width:900px;grid-template-columns:repeat(4,1fr);align-items:end}#timing-form input{background:#fffbd3}#timing-form button{grid-column:1/-1;justify-self:start}.add{margin-top:20px;padding:15px;background:#fff;border:1px solid #bbc7d1;border-radius:4px}.add summary{cursor:pointer;font-weight:bold;min-height:30px}.add>div{max-width:850px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px 16px}#cam-form{max-width:850px}#cam-form>select{margin:14px 0}#cam-form>label{margin:14px 0;max-width:420px}#status,#save-status{color:#855018;font-size:13px}footer{font-size:12px;color:#6b7986;border-top:1px solid #bac6d0;margin-top:25px;line-height:1.5}.mobile-hint{font-size:12px;color:#61758a}@media(max-width:700px){header,main,footer{padding:12px}.brand span{display:block;margin:4px 0 0;font-size:12px}.section-head{align-items:flex-start;flex-direction:column;gap:4px}h1{font-size:22px}.form-grid,#timing-form{grid-template-columns:1fr 1fr}.comparison .cam-choice{position:sticky;left:0;z-index:1;background:#edf3f7;box-shadow:2px 0 3px #b8c5cf}.cam-choice select{width:175px}.comparison .cam-choice{width:190px}.comparison td,.comparison th{padding:8px 5px}nav{gap:12px}#compare>p{font-size:13px}}

.brand{color:#b51d25}header{border-bottom-color:#b51d25}button{background:#b51d25;border-color:#b51d25}#timing-form{display:block;max-width:650px}#timing-form>label{max-width:450px;margin:12px 0}.timing-table{border-collapse:collapse;width:100%;margin:12px 0;background:white}.timing-table td,.timing-table th{padding:8px;border:1px solid #bac7d0;text-align:left}.timing-table th{font-size:13px}.timing-table input{background:#fffbd3;min-width:0}.timing-table td{width:30%}.timing-table input{width:100%}.brand span{color:#31465a}

.custom-compare{max-width:650px;background:#fff;border:1px solid #bac7d0;padding:14px;margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.custom-compare h3,.custom-compare p{grid-column:1/-1;margin:0}.custom-compare h3{font-size:16px}.custom-compare button{align-self:end}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:58px;height:58px;object-fit:contain}.brand span{display:block;margin:5px 0 0;font-size:12px}@media(max-width:700px){.brand img{width:45px;height:45px}.brand{font-size:20px;gap:8px}}
#literature{border-top:1px solid #bbc7d1;padding:18px 0;margin-top:20px}#literature li{margin:12px 0}#literature li p{font-size:12px;margin:4px 0}.product-links{display:flex;gap:12px;flex-wrap:wrap;padding:14px 0}.cam-literature{display:block;font-size:12px;margin-top:8px}

.cam-choice small{line-height:1.4}.cam-fitment{font-weight:bold}.cam-choice{max-width:250px}
@media(max-width:700px){header{flex-wrap:wrap;gap:10px}header nav{flex-basis:100%;justify-content:flex-end}.cam-choice small{font-size:11px}}

.platform-picker{display:block;max-width:360px;font-weight:700;margin:16px 0}.platform-picker select{display:block;width:100%;padding:10px;margin-top:6px}
.manufacturer-verified{display:inline-block!important;color:#166534;background:#dcfce7;border-radius:4px;padding:3px 6px;font-weight:700}.manufacturer-conflict{display:inline-block!important;color:#92400e;background:#fef3c7;border-radius:4px;padding:3px 6px;font-weight:700}

.manufacturer-literature { border:1px solid #d7d7d7; border-radius:6px; margin:8px 0; padding:10px 14px; }
.manufacturer-literature summary { cursor:pointer; font-weight:600; }

.comparison .table-settings { width:160px; min-width:160px; white-space:normal; vertical-align:top; padding:12px; }
.table-settings label { display:block; width:100%; margin:0 0 12px; font-size:12px; }
.table-settings label:last-child { margin-bottom:0; }
.table-settings select { display:block; width:100%; max-width:100%; min-width:0; min-height:40px; margin:5px 0 0; padding:7px; }

.cam-source-notes { margin-top:8px; font-size:12px; white-space:normal; }
.cam-source-notes summary { cursor:pointer; color:#245b85; }

.brand h1 { font-size:12px; font-weight:normal; color:#31465a; margin:5px 0 0; }
.hero { padding:0; }

/* Keep cam selectors compact without covering specifications while panning. */
.comparison .cam-choice{width:160px;min-width:160px;max-width:160px;vertical-align:top}
.cam-choice select{width:100%;min-width:0;font-size:13px;min-height:36px;padding:5px}
@media(max-width:760px){
 .comparison .cam-choice{position:static;left:auto;z-index:auto;box-shadow:none;width:145px;min-width:145px;max-width:145px}
 .cam-choice select{width:100%;font-size:12px}
}
header{position:sticky;top:0;z-index:100;box-shadow:0 2px 5px #17233420}section{scroll-margin-top:150px}

.app-navigation{max-width:1400px;margin:auto;padding:12px 22px;justify-content:flex-end;background:#fff}header{justify-content:flex-start}section{scroll-margin-top:105px}@media(max-width:700px){.app-navigation{padding:10px 12px;gap:12px;flex-wrap:wrap}}

/* Phone comparison: preserve valve labels without a wide frozen selector. */
.comparison td input{width:68px;min-height:36px;padding:4px;margin:0;font-size:12px}
@media(max-width:760px){
 header{padding:5px 8px;gap:0}
 .brand{font-size:17px;gap:7px;letter-spacing:0}
 .brand img{width:34px;height:34px}
 .brand h1{font-size:11px;line-height:1.2;margin:2px 0 0;letter-spacing:0}
 main{padding:8px 4px}
 .cards{border:0;border-radius:0;gap:0}
 .comparison{min-width:0;font-size:12px;width:max-content}
 .comparison th,.comparison td{padding:5px 4px}
 .comparison thead th{padding:7px 4px;font-size:10px}
 .comparison tbody th{position:sticky;left:0;z-index:2;background:#edf3f7;font-size:11px;white-space:normal;width:1%;min-width:0;max-width:58px;line-height:1.2;box-shadow:1px 0 2px #b8c5cf}
 .comparison thead th:nth-child(2){width:1%}
 .comparison .cam-choice{width:125px;min-width:125px;max-width:125px}
 .comparison .table-settings{width:96px;min-width:96px;padding:5px}
 .table-settings select{font-size:11px;padding:4px;min-height:36px}
 .table-settings label{margin-bottom:7px}
 .cam-choice small{padding-top:4px}
 section{scroll-margin-top:65px}
}

/* Buick adaptation: same HDCTC table, public custom saves, independent valve ratios. */
:root{--red:#b51d25;--muted:#516477;--line:#b8c5cf}
header{justify-content:flex-start}.brand{letter-spacing:0}.brand h1{letter-spacing:0}.preview-tag,.eyebrow{display:none}
.app-navigation{flex-wrap:wrap}main{padding:18px 22px}.toolbar{display:block;margin-bottom:12px}.toolbar>label{max-width:360px;margin:16px 0;font-weight:700}.toolbar>label.filter{display:inline-block;max-width:260px;width:calc(50% - 8px);margin:8px 12px 8px 0;font-weight:normal}.toolbar button{margin:8px 8px 8px 0}
.table-wrap{overflow-x:auto;background:#fff;border:1px solid #9aabb9;border-radius:4px}.comparison{table-layout:auto}.comparison thead th{position:sticky;top:0;z-index:3}.comparison td{font-variant-numeric:tabular-nums}.comparison td input{width:68px}.comparison tbody:nth-of-type(even){background:#f1f6f9}.table-settings input{min-height:36px;font-size:12px;padding:4px;background:#fffbd3}.table-settings details{margin:6px 0}.table-settings summary{font-size:11px;white-space:normal}.cam-choice label{font-size:12px;margin:0 0 6px}.cam-choice small{font-size:11px}.cam-choice button{font-size:11px;padding:6px;margin:6px 0}.cam-choice details p{font-size:11px;white-space:normal}.cam-choice details a{font-size:11px}.cam-choice .custom-edit{display:grid;grid-template-columns:1fr;gap:8px}.cam-choice input{min-width:0;width:100%}.cam-choice details summary{font-size:12px;white-space:normal}.manufacturer-conflict{color:#92400e;background:#fef3c7;padding:3px 6px;font-weight:700}
.panel{border-top:1px solid #bbc7d1;padding:18px 0;margin-top:20px}details.panel{border:1px solid #bbc7d1;border-radius:4px;padding:12px;background:#fff}summary{cursor:pointer;font-size:13px}h2{font-size:20px}h3{font-size:16px}p.small{font-size:12px}.section-title{display:flex;align-items:center;justify-content:space-between}.badge{font-size:11px;color:#516477}.form-grid{max-width:850px}.form-grid label{margin-bottom:8px}.form-grid input{background:#fffbd3}form>button{margin:14px 8px 0 0}.check{display:flex;align-items:flex-start;gap:8px;max-width:850px;margin:14px 0;font-size:12px;line-height:1.5}.check input{width:16px;min-height:16px;margin-top:2px;flex:none}.result-grid{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0}.result-box{padding:12px;border:1px solid #b8c5cf;background:#fff}.result-box span{display:block;font-size:12px;color:#516477}.result-box strong{display:block;font-size:22px;margin-top:6px}.timing-output{font-size:13px;line-height:1.8;padding:12px;background:#fff;border:1px solid #b8c5cf}.document-grid{display:block}.document{display:block;margin:14px 0}.document strong{font-size:14px}.document span{display:block;font-size:12px;margin-top:4px;color:#516477}.accessory-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.accessory{padding:12px;border:1px solid #b8c5cf;background:white}.accessory p{font-size:12px}.warning{font-size:12px;color:#855018}.compact-list{font-size:12px;line-height:1.6}#storage-status{font-size:12px;color:#855018}footer button{margin-top:12px}
@media(max-width:760px){main{padding:8px 4px}.table-wrap{border:0;border-radius:0}.comparison{width:max-content;min-width:0}.comparison thead th{padding:7px 4px;font-size:10px}.comparison th,.comparison td{padding:5px 4px}.comparison .cam-choice{width:125px;min-width:125px;max-width:125px}.comparison .table-settings{width:96px;min-width:96px;padding:5px}.comparison tbody th{position:sticky;left:0;z-index:2;background:#edf3f7;font-size:11px;white-space:normal;max-width:58px;line-height:1.2;box-shadow:1px 0 2px #b8c5cf}.app-navigation{justify-content:flex-start;font-size:12px}.toolbar{padding:0 8px}.toolbar>label{margin:10px 0}.panel{padding:14px 8px}.accessory-list{grid-template-columns:1fr}.form-grid{gap:12px}.comparison td input{width:60px}.table-settings input{width:100%}.section-title{gap:12px}.result-grid{gap:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.library-options{margin:8px 0 12px;font-size:12px}.library-options summary{font-size:12px;color:#245b85}.library-options .filter{display:inline-block;width:220px;margin:12px 12px 12px 0}.toolbar>p{margin:16px 0}.toolbar>label{margin:16px 0}.cam-choice>select{margin-bottom:8px}.table-settings label{margin-bottom:8px}.table-settings input{width:100%!important}.app-navigation{padding:12px 22px;font-size:14px}.comparison thead th{background:#d9e5ee}.comparison .derived{font-weight:bold;background:#e6eef5}@media(max-width:760px){.app-navigation{padding:10px 12px;font-size:12px}.library-options .filter{width:calc(50% - 15px)}.toolbar>p{margin:12px 0}.table-settings label{font-size:11px;margin-bottom:6px}}

.calculated-value{color:#176340;font-weight:bold}
.engine-selection{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.engine-selection label{flex:1;max-width:620px;min-width:240px}.engine-selection select{width:100%;max-width:100%}.engine-selection button{margin:0 0 2px}#engine-reference-content{font-size:13px;line-height:1.5}.inventory-table{width:100%;font-size:12px;border-collapse:collapse}.inventory-table th,.inventory-table td{padding:9px;text-align:left;border-bottom:1px solid #d5dce3}.inventory-table th{background:#d9e5ee}.inventory-table small{display:block;color:#526271}.inventory-table td:first-child{min-width:280px}@media(max-width:760px){.engine-selection label{min-width:0;width:100%;flex-basis:100%}.engine-selection button{font-size:12px}}

/* Larger type and controls for customers reading specifications in the shop. */
p{font-size:16px;color:#344457}label{font-size:15px;font-weight:600}
input,select,button{font-size:16px;min-height:44px}summary{font-size:15px}
p.small,.compact-list,.warning,.document span,.accessory p,#engine-reference-content{font-size:14px}
.app-navigation{font-size:16px}.brand h1{font-size:14px}
.comparison{font-size:18px}.comparison td{font-weight:600}
.comparison th,.comparison td{padding:12px 10px}
.comparison thead th{font-size:14px;line-height:1.4;padding:14px 10px}
.comparison tbody th{font-size:15px;font-weight:700}
.comparison .cam-choice{width:220px;min-width:220px;max-width:220px}
.cam-choice select{font-size:16px;font-weight:600;min-height:44px;padding:8px}
.cam-choice label,.cam-choice small,.cam-choice details p,.cam-choice details a,.cam-choice details summary{font-size:14px;line-height:1.5}
.cam-choice button{font-size:14px;min-height:44px}
.comparison .table-settings{width:190px;min-width:190px;padding:12px}
.table-settings label{font-size:14px;font-weight:600;line-height:1.4;margin-bottom:12px}
.table-settings summary{font-size:14px;line-height:1.4}
.table-settings select,.table-settings input,.comparison td input{font-size:16px;min-height:44px;padding:8px}
.result-box span,.timing-table th,.library-options summary{font-size:14px}
@media(max-width:760px){
 .comparison{font-size:18px}.comparison thead th{font-size:14px;padding:12px 8px}
 .comparison th,.comparison td{padding:10px 8px}
 .comparison tbody th{font-size:14px;max-width:76px;line-height:1.4}
 .comparison .cam-choice{width:190px;min-width:190px;max-width:190px}
 .comparison .table-settings{width:170px;min-width:170px;padding:10px}
 .cam-choice select{font-size:16px}.cam-choice small{font-size:14px}
 .table-settings label{font-size:14px}.table-settings select,.table-settings input{font-size:16px;min-height:44px}
 .comparison td input{width:80px}.app-navigation{font-size:15px}
 .brand h1{font-size:13px}.engine-selection button{font-size:16px}
}

/* Compact desktop comparison without reducing specification text or touch targets. */
.comparison .table-settings label{margin-bottom:6px}
.comparison .table-settings label:last-child{margin-bottom:0}
.cam-choice small{padding-top:3px}
.cam-source-notes{margin-top:4px}
@media(min-width:761px){
 header{padding:4px 22px}
 .brand{font-size:22px;gap:10px}
 .brand img{width:44px;height:44px}
 .brand h1{margin:2px 0 0}
 .brand span{margin:2px 0 0}
 .app-navigation{padding:6px 22px}
 main{padding-top:6px}
 .toolbar{display:grid;grid-template-columns:minmax(240px,360px) 130px minmax(220px,1fr);align-items:end;gap:4px 18px;margin-bottom:10px}
 .toolbar>label{margin:0;max-width:none}
 .toolbar>label:first-child{grid-column:1;grid-row:1}
 .toolbar>label:nth-of-type(2){grid-column:2;grid-row:1}
 .toolbar>.library-options{grid-column:3;grid-row:1;margin:0;align-self:center}
 .toolbar>.library-options[open]{grid-column:1/-1;grid-row:3}
 .toolbar>#coverage{grid-column:1/-1;grid-row:2;margin:0}
 .comparison th,.comparison td{padding:5px 8px}
 .comparison thead th{padding:10px 8px}
 .comparison .table-settings{padding:6px 10px}
 .comparison .table-settings label{margin-bottom:4px}
 .comparison .table-settings label:last-child{margin-bottom:0}
 .table-settings select{margin-top:3px}
 .cam-choice label{margin-bottom:4px}
 .cam-choice>select{margin-bottom:3px}
 section{scroll-margin-top:85px}
}
#garage{scroll-margin-top:85px}
#garage button,#garage a{margin:4px 6px 4px 0;max-width:100%;overflow-wrap:anywhere}
#garage .form-grid{margin:12px 0}
#garage summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}
