/* Shared visual system for every route, including generated product pages. */
:root{--bg:#f7f8fa;--paper:#f7f8fa;--surface:#fff;--surface-2:#edf0f4;--ink:#17202e;--muted:#505c6c;--line:#dce1e8;--accent:#245cdb;--accent-ink:#245cdb;--blue:#245cdb;--orange:#245cdb;--orange-bright:#245cdb;--dark:#edf0f4;--white:#fff;--photo-bg:#fff;--chart-a:#245cdb;--chart-b:#b25d17;--chart-c:#8054b5;--chart-d:#217e76;--radius:6px;--shadow:0 8px 24px #17202e08;--sans:'DM Sans',Arial,sans-serif;--mono:'DM Sans',Arial,sans-serif}
:root[data-theme=dark]{--bg:#101319;--paper:#101319;--surface:#191e26;--surface-2:#222a35;--ink:#f0f3f8;--muted:#b1bbc9;--line:#343d4a;--accent:#91b8ff;--accent-ink:#91b8ff;--blue:#91b8ff;--orange:#91b8ff;--orange-bright:#91b8ff;--dark:#222a35;--white:#191e26;--photo-bg:#fff;--chart-a:#91b8ff;--chart-b:#f3b173;--chart-c:#c7a4f0;--chart-d:#78d4c6;--shadow:0 8px 24px #0002}
body{background:var(--bg);color:var(--ink);font-family:var(--sans)}
body h1,body h2,body h3{font-family:var(--sans);font-weight:700;letter-spacing:-.035em;line-height:1.2;text-wrap:balance}
body h1{font-size:clamp(1.9rem,3.1vw,2.75rem)}body h2{font-size:1.4rem}body h3{font-size:1.125rem}
::selection{background:#245cdb;color:#fff}a,button,input,select,summary{outline-color:var(--accent-ink)}
body .site-header,body[data-page=builder] .site-header{height:84px;min-height:84px;max-width:1440px;background:var(--bg);gap:28px}
body .brand-mark{background:var(--ink);color:var(--bg);border-radius:6px}
body .brand-sub{color:var(--muted);letter-spacing:0}
body .site-header nav{border:0;background:transparent;box-shadow:none;border-radius:6px;height:auto}
body .site-header nav a,body[data-page=builder] .site-header nav a{color:var(--ink);font-weight:600;height:auto;border-radius:5px;justify-content:center}
:root:not([data-theme=dark]) body .site-header nav a,:root:not([data-theme=dark]) body .theme-toggle{color:var(--ink)}
:root:not([data-theme=dark]) body .brand-sub{color:var(--muted)}
body .site-header nav a[aria-current=page]{background:var(--surface-2);color:var(--accent-ink)}
body .nav-indicator{border-radius:5px;box-shadow:none}
body .theme-toggle{border-radius:6px;color:var(--ink)}
body .site-footer{margin-top:48px;padding-top:24px}.site-footer a:hover{color:var(--accent-ink)}
body .page-heading,body[data-page=builder] .builder-heading{padding:34px 0 26px;margin-bottom:26px;border-bottom:1px solid var(--line);gap:24px}
body .page-heading h1,body[data-page=builder] .builder-heading h1{font-size:clamp(1.9rem,3.1vw,2.75rem);font-weight:700;letter-spacing:-.035em;line-height:1.2;max-width:30ch}
body .page-heading p,body[data-page=builder] .builder-heading p{font-size:1rem;line-height:1.6;color:var(--muted);margin-top:10px;max-width:65ch}
body .section-heading{padding-bottom:14px;border-bottom:2px solid var(--ink);margin-bottom:20px;gap:16px}
body .section-heading h2{font-size:1.4rem;font-weight:700}
body .button,body button,body select,body input{border-radius:5px}
body .button{min-height:46px;font-weight:600;gap:16px;box-shadow:none}
body .primary{background:#245cdb;color:#fff;border-color:#245cdb}
body .primary:hover{background:#174ab9;color:#fff}
body .secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
body .secondary:hover{border-color:var(--accent-ink)}
body .button:before,body .guide-card:before{display:none}
body .eyebrow,.part-brand{font-weight:700;letter-spacing:.09em;color:var(--accent-ink)}
body .subtle-link,body .text-button{color:var(--accent-ink)}
/* Comparison: clear product columns and restrained specification charts. */
.compare-controls{gap:18px}.segmented{border-radius:5px;background:var(--surface-2);padding:4px}.segmented button{border-radius:3px;font-weight:600}.segmented button.active{color:var(--accent-ink);box-shadow:none}
.category-menu>summary{border-radius:5px;box-shadow:none}.category-menu>summary:hover{box-shadow:none;transform:none}.category-menu-icon,.category-option-icon{border-radius:4px}.category-menu-panel{border-radius:6px;background:var(--surface);backdrop-filter:none;box-shadow:0 16px 40px #0003}.category-menu-options button{border-radius:4px}.category-menu-copy small,.category-menu-options small,.category-option-count{font-size:.75rem}
.product-card{border-radius:5px;border-top:3px solid var(--series);box-shadow:none}.product-card:before{display:none}.product-top{padding:16px 22px 0}.product-index{font-weight:700;letter-spacing:.08em}.product-image{height:215px;padding:18px 22px 0}.product-image img{border-radius:4px;background:#fff}.product-heading{padding:18px 22px 24px}.product-heading h2{font-weight:700;letter-spacing:-.035em}.product-meta{padding:13px 22px;background:var(--surface-2);line-height:1.5}.change-product{border-radius:4px;background:var(--surface);font-weight:600}.change-product:hover{border-color:var(--accent-ink)}
.empty-product{border-radius:5px;background:var(--surface)}.metric-card{border-radius:5px;box-shadow:none;padding:22px}.metric-card h3{font-weight:600}.metric-row strong{font-family:var(--sans);font-weight:700}.metric-track{height:6px}.source-caption{border-radius:4px}.table-scroll{border-radius:5px;box-shadow:none}thead th{font-size:.8125rem;font-weight:700;color:var(--ink)}tbody tr:hover{background:color-mix(in srgb,var(--surface-2) 45%,transparent)}.notice{border-radius:4px}.source-details{background:none}
/* Catalog: a compact filter bar above an easy-to-scan product index. */
.catalog-tools{border-radius:5px;box-shadow:none;padding:16px;background:var(--surface)}.catalog-tools select{border-radius:4px}.search-field input{font-size:1rem}.catalog-meta{padding:20px 0}.catalog-photo,.picker-photo{border:1px solid var(--line);border-radius:4px;background:#fff}.catalog-product-copy>strong{font-weight:700}.hardware-table td strong{font-weight:600}.hardware-table th,.hardware-table td{padding:17px 20px}.catalog-add{border-radius:4px;font-weight:600}.catalog-add.chosen{color:var(--accent-ink);background:var(--surface-2)}.selection-link{font-weight:600}
/* Guides: editorial sections with the existing animated technical icons. */
.guide-grid{gap:24px}.guide-card{border-radius:5px;border-top:3px solid var(--accent);padding:26px;min-height:245px;box-shadow:none}.guide-card:hover{transform:translateY(-3px);box-shadow:none}.guide-card-top{margin-bottom:22px;align-items:center}.guide-icon{border-radius:5px;background:var(--surface-2);box-shadow:none;border:1px solid var(--line);width:58px;height:58px}.guide-icon svg{width:36px;height:36px}.guide-card h2{font-size:1.6rem}.guide-card p{max-width:42ch;margin:10px 0 24px}.guide-number{font-weight:600;letter-spacing:.08em;padding:0}.guide-link{color:var(--accent-ink);font-weight:600;border-top:1px solid var(--line);padding-top:16px}.guide-heading-icon .guide-icon{width:66px;height:66px;border-radius:5px}.guide-heading-icon .guide-icon svg{width:42px;height:42px}.guide-reading{gap:48px}.guide-terms h2{font-size:1.35rem}.guide-terms p{font-size:1rem;line-height:1.8}.guide-term-number{font-family:var(--sans);font-weight:700}.guide-reading aside{border-radius:5px;border-top:3px solid var(--accent);padding:24px}.library-callout{margin-top:32px}.method-grid{max-width:1000px;gap:16px}.method-grid details{border-radius:5px;padding:24px;background:var(--surface)}.method-grid summary{font-weight:700}.method-grid details[open]{border-top:3px solid var(--accent)}
/* Product pages use the same photo treatment and section hierarchy. */
.breadcrumbs{padding-top:25px}.part-hero{gap:40px;padding:28px 0 34px}.part-visual{border-radius:5px;min-height:320px;padding:24px;box-shadow:none}.part-visual .hardware-photo img{border-radius:4px;background:#fff;height:245px}.part-title h1{font-size:clamp(1.9rem,3.1vw,2.75rem);font-weight:700;letter-spacing:-.035em;line-height:1.2}.part-title>p{font-size:1rem;line-height:1.7}.part-tags>span{border-radius:4px;background:var(--surface);color:var(--muted)}.record-detail{gap:40px}.record-detail>div{padding:24px;border-radius:5px}.record-detail h2{font-size:1.4rem;padding-bottom:14px;border-bottom:2px solid var(--ink)}.record-detail table th{font-size:.9375rem}.record-detail table td{font-weight:600}.record-detail aside{padding-top:24px}.photo-attribution summary{font-weight:600}.not-found{padding:70px 0}.error-number{font-family:var(--sans);font-weight:700}
/* Builder retains its controls and compatibility semantics in the shared theme. */
body[data-page=builder] .builder-shell{border-radius:5px;box-shadow:none;background:var(--surface);border:1px solid var(--line)}
body[data-page=builder] .builder-column-head{background:var(--surface-2);font-weight:700;letter-spacing:.06em;color:var(--muted)}
body[data-page=builder] .builder-row{background:var(--surface)}body[data-page=builder] .builder-row.is-linked{background:var(--surface-2);box-shadow:inset 3px 0 var(--accent-ink)}
body[data-page=builder] .builder-type strong{font-weight:700;color:var(--ink)}body[data-page=builder] .builder-type svg{color:var(--accent-ink)}
body[data-page=builder] .builder-row select{background-color:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:4px;font-family:var(--sans);font-size:.875rem}
body[data-page=builder] .builder-photo .hardware-photo{border-radius:4px;background:#fff;border:1px solid var(--line)}
body[data-page=builder] .builder-rail,body[data-page=builder] .builder-analysis{background:var(--surface-2);color:var(--ink)}
body[data-page=builder] .builder-selected-item{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:4px}
body[data-page=builder] .builder-selected-item button{color:var(--muted);background:var(--surface-2)}
body[data-page=builder] .verdict-code{font-size:.75rem;font-weight:700;letter-spacing:.09em;color:var(--muted)}
body[data-page=builder] .verdict-line strong{font-family:var(--sans);font-weight:700;font-size:1.35rem;line-height:1.3;letter-spacing:-.025em}
body[data-page=builder] #build-verdict>p{font-size:.9375rem;line-height:1.7;color:var(--muted)}
body[data-page=builder] .analysis-block summary,body[data-page=builder] .assembly-details>summary{font-size:.9375rem;font-weight:600;color:var(--ink)}
body[data-page=builder] .analysis-block{border-color:var(--line)}body[data-page=builder] .check-row strong{color:var(--ink);font-weight:600;font-size:.875rem}body[data-page=builder] .check-row p{color:var(--muted);font-size:.875rem;line-height:1.6}
body[data-page=builder] .build-spec{border-color:var(--line);font-size:.875rem;color:var(--muted)}body[data-page=builder] .build-spec strong{color:var(--ink)}body[data-page=builder] .builder-limit{font-size:.875rem;color:var(--muted)}
dialog{border-radius:6px;box-shadow:0 20px 60px #0004}#picker-query{border-radius:4px}#picker-results button{border-radius:4px}#picker-results strong{font-weight:600}#toast{border-radius:5px}
@media(max-width:900px) and (min-width:701px){body .site-header,body[data-page=builder] .site-header{gap:14px;flex-wrap:nowrap;padding-top:0;padding-bottom:0}body .site-header nav{order:initial;width:auto;margin:auto}body .site-header nav a{padding:8px 12px}}
@media(max-width:820px){.guide-reading{gap:28px}.part-hero,.record-detail{gap:28px}body[data-page=builder] .builder-heading h1{font-size:clamp(1.9rem,5vw,2.75rem)}}
@media(max-width:700px){body .site-header,body[data-page=builder] .site-header{height:auto;min-height:110px;padding-top:15px;padding-bottom:10px;gap:12px;flex-wrap:wrap}body .site-header nav{order:3;width:100%;margin:0;justify-content:space-between}body .site-header nav a{flex:1;text-align:center;justify-content:center;padding:9px 6px}body .page-heading,body[data-page=builder] .builder-heading{padding:26px 0 22px;margin-bottom:22px;align-items:flex-start}body .page-heading h1,body[data-page=builder] .builder-heading h1{font-size:2rem}.guide-grid{gap:16px}.guide-card{padding:22px;min-height:225px}.guide-reading{grid-template-columns:minmax(0,1fr)}.guide-reading aside{position:static}.part-hero,.record-detail{grid-template-columns:minmax(0,1fr)}.part-visual{min-height:0;padding:18px}.part-visual .hardware-photo img{height:230px}.record-detail>div{padding:18px}.record-detail aside{padding-top:0}.hardware-table td{padding:0}.hardware-table th{padding:0}.catalog-tools{padding:14px}.category-menu-panel{border-radius:5px}.product-heading{padding:18px 20px 22px}.product-meta{padding:13px 20px;flex-wrap:wrap}.section-heading{flex-wrap:wrap}.site-footer>div{flex-wrap:wrap}.guide-terms section{gap:12px;grid-template-columns:30px minmax(0,1fr)}}
@media(max-width:440px){.guide-grid{grid-template-columns:minmax(0,1fr)}.guide-card{min-height:0}.guide-card p{margin-bottom:20px}.catalog-tools{gap:10px}.metric-card{padding:20px}.category-menu-copy small{font-size:.75rem}.product-image{height:220px}.method-grid details{padding:20px}.record-detail th,.record-detail td{padding:13px 8px;overflow-wrap:anywhere}.part-title h1{font-size:1.9rem}.not-found>div{flex-wrap:wrap}.segmented{border-radius:5px}}
