/* Camera Data Hub shared header and navigation */
.site-header{position:relative;z-index:20;overflow:visible;box-sizing:border-box;min-height:328px;padding:32px max(2.5vw,calc((100vw - 1280px)/2)) 38px;background:#0e1c33;color:#fff}
.site-header-inner{box-sizing:border-box;width:95vw;max-width:1240px;min-height:258px;margin:0 auto;padding:0;display:flex;flex-direction:column}
.site-header .header-top-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:32px;min-height:132px}
.site-header .site-logo-link{display:block;width:max-content;max-width:100%}
.site-header .site-logo{display:block;width:clamp(150px,18vw,230px);height:auto;max-height:82px;object-fit:contain;object-position:left top}
.site-header .header-menu{justify-self:end;align-self:start;display:flex;align-items:center;justify-content:flex-end;gap:clamp(16px,2.2vw,30px);padding-top:4px;margin-right:22px}
.site-header .header-menu>a,.site-header .classic-menu-button{color:#edf0f2;text-decoration:none;font:500 16px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap}
.site-header .header-menu>a:hover,.site-header .header-menu>a:focus-visible,.site-header .classic-menu-button:hover,.site-header .classic-menu-button:focus-visible{color:#ffdc00}
.site-header .classic-menu{position:relative}
.site-header .classic-menu-button{display:inline-flex;align-items:center;gap:7px;border:0;padding:4px 0;background:transparent;cursor:pointer}
.site-header .classic-menu-chevron{font-size:12px;transition:transform .16s ease}
.site-header .classic-menu[aria-expanded="true"] .classic-menu-chevron{transform:rotate(180deg)}
.site-header .classic-menu-panel{position:absolute;z-index:30;top:calc(100% + 10px);right:0;width:max-content;min-width:220px;max-width:min(320px,90vw);padding:6px;background:#fff;border:1px solid #dfe3e8;border-radius:10px;box-shadow:0 12px 28px #10182038}
.site-header .classic-menu-panel[hidden]{display:none}
.site-header .classic-menu-panel a{display:block;padding:9px 11px;border-radius:6px;color:#20252c;text-decoration:none;font-size:14px;line-height:1.35;white-space:normal}
.site-header .classic-menu-panel a:link,.site-header .classic-menu-panel a:visited,.site-header .classic-menu-panel a:active{color:#20252c!important;-webkit-text-fill-color:#20252c!important;opacity:1!important}
.site-header .classic-menu-panel a:hover,.site-header .classic-menu-panel a:focus-visible{background:#f1f3f5;color:#20252c}
.site-header .header-bottom-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;margin-top:auto;padding:16px clamp(72px,6vw,100px) 0 0}
.site-header .header-title-block{margin-left:22px}
.site-header .header-title-block h1{font-size:clamp(30px,4vw,44px);line-height:1.06;letter-spacing:-.035em;margin:0 0 8px;color:#fff}
.site-header .camera-profile-subline,.site-header .catalog-count-highlight{margin:0;color:#ffdd04;font-size:19px;line-height:1.3;font-weight:500;letter-spacing:.04em}
.site-header .catalog-count-highlight{letter-spacing:0}
.site-header .catalog-count-highlight strong{font-weight:500}
.site-header .header-coffee{position:relative;inset:auto;justify-self:end;align-self:start;display:block;box-sizing:border-box;width:clamp(204px,22.8vw,292px);height:auto;aspect-ratio:722/196;max-width:calc(100vw - 32px);margin:0;overflow:hidden;border:0;border-radius:8px;background:transparent;transform:rotate(-3deg);transform-origin:50% 50%;animation:coffee-wobble-header-tilted 180s ease-in-out infinite}
.site-header .header-coffee img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .18s,visibility .18s}
.site-header .header-coffee .bmc-default-image{opacity:1;visibility:visible}
.site-header .header-coffee .bmc-hover-image{opacity:0;visibility:hidden}
.site-header .header-coffee:hover .bmc-default-image,.site-header .header-coffee:focus-visible .bmc-default-image{opacity:0;visibility:hidden}
.site-header .header-coffee:hover .bmc-hover-image,.site-header .header-coffee:focus-visible .bmc-hover-image{opacity:1;visibility:visible}
@keyframes coffee-wobble-header-tilted{0%,16.55%,17.2%,100%{transform:rotate(-3deg)}16.6667%{transform:rotate(-8deg)}16.8%{transform:rotate(2deg)}16.93%{transform:rotate(-7deg)}17.05%{transform:rotate(0)}17.15%{transform:rotate(-4deg)}}
@media(prefers-reduced-motion:reduce){.site-header .header-coffee{animation:none}.site-header .classic-menu-chevron{transition:none}}
@media(max-width:760px){
 .site-header{min-height:0;padding:20px 0 54px}
 .site-header-inner{width:calc(100vw - 32px);max-width:1240px;min-height:0;margin:0 auto;padding:0}
 .site-header .header-top-row{grid-template-columns:minmax(0,1fr);gap:14px;min-height:0}
 .site-header .site-logo{width:min(55vw,190px);max-height:68px}
 .site-header .header-menu{justify-self:end;padding:0;gap:clamp(14px,4vw,24px);margin-right:0}
 .site-header .header-bottom-row{margin-top:32px;padding:0 clamp(36px,6vw,60px) 0 0;gap:14px}
 .site-header .header-title-block{margin-left:0}
 .site-header .header-title-block h1{font-size:clamp(26px,7vw,38px)}
 .site-header .camera-profile-subline,.site-header .catalog-count-highlight{font-size:clamp(13px,4vw,17px)}
 .site-header .header-coffee{width:min(240px,50.4vw);height:auto;aspect-ratio:722/196}
}
@media(max-width:520px){.site-header .header-menu{gap:clamp(10px,3vw,16px)}.site-header .header-menu>a,.site-header .classic-menu-button{font-size:14px}.site-header .classic-menu-panel{right:-8px}}
@media(max-width:420px){.site-header .header-bottom-row{padding-right:8vw}.site-header .header-coffee{width:min(192px,48vw);height:auto;aspect-ratio:722/196}}
.comparison-intro{max-width:980px;margin:28px 0 30px;color:#434a53;font-size:16px;line-height:1.5;text-align:left}
/* Keep Search + birthday at the same measure as the header content; Results stays independent. */
.wrap>.search-stage{width:min(95vw,1240px);margin-left:auto;margin-right:auto}
.comparison-intro{margin-left:22px}
@media(max-width:760px){.wrap>.search-stage{width:calc(100vw - 32px)}.comparison-intro{margin-left:0}}
.wrap>.search-title:not(.results-title),.wrap>.results-title-row{margin-left:22px}
@media(max-width:760px){.wrap>.search-title:not(.results-title),.wrap>.results-title-row{margin-left:0}}
/* Mobile navigation: full-screen, centered overlay with an accessible hamburger toggle. */
.mobile-menu-toggle{display:none}
.mobile-menu-toggle span{display:block;width:23px;height:2px;border-radius:2px;background:#fff;transition:transform .18s,opacity .18s}
@media(max-width:760px){
 .site-header .header-top-row{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
 .site-header .mobile-menu-toggle{position:relative;z-index:1002;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:0;border:1px solid #ffffff55;border-radius:8px;background:transparent;color:#fff;cursor:pointer}
 .site-header .mobile-menu-toggle[aria-expanded="true"]{position:fixed;top:18px;right:18px;background:#0e1c33}
 .site-header .mobile-menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(7px) rotate(45deg)}
 .site-header .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
 .site-header .mobile-menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .site-header .header-menu{display:none}
 .site-header .header-menu.is-open{position:fixed;inset:0;z-index:1000;box-sizing:border-box;width:100vw;height:100vh;height:100dvh;margin:0;padding:80px 24px 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;background:#0e1c33;color:#fff;text-align:center;overflow:auto}
 .site-header .header-menu.is-open>a,.site-header .header-menu.is-open .classic-menu-button{color:#fff;font-size:clamp(19px,5vw,24px);font-weight:500;text-align:center}
 .site-header .header-menu.is-open .classic-menu{display:flex;flex-direction:column;align-items:center}
 .site-header .header-menu.is-open .classic-menu-button{justify-content:center}
 .site-header .header-menu.is-open .classic-menu-panel{position:static;width:auto;min-width:0;max-width:90vw;margin-top:12px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:center}
 .site-header .header-menu.is-open .classic-menu-panel a,.site-header .header-menu.is-open .classic-menu-panel a:link,.site-header .header-menu.is-open .classic-menu-panel a:visited{padding:8px 12px;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;font-size:17px;text-align:center}
 .site-header .header-menu.is-open .classic-menu-panel a:hover,.site-header .header-menu.is-open .classic-menu-panel a:focus-visible{background:#ffffff12;color:#ffdc00}
 .site-header .header-bottom-row{grid-template-columns:minmax(0,1fr);padding:0;margin-top:32px}
 .site-header .header-coffee{display:none!important}
 body.mobile-menu-open{overflow:hidden}
}
@media(max-width:760px){
 .site-header{z-index:99999!important}
 .site-header .header-menu.is-open{z-index:100000!important}
 body.mobile-menu-open main,body.mobile-menu-open .crumbs,body.mobile-menu-open .bottom-notices{visibility:hidden!important}
}
/* Wikimedia Commons image canvases use clean white backgrounds. */
.gallery-drawing,.photo-gallery,.gallery-photo-link,.photo-frame{background:#fff!important}
.site-header .header-menu>a[aria-current="page"],.site-header .classic-menu-button.is-active{color:#ffdc00!important}
.site-header .comparison-count-subline{font-size:19px;line-height:1.3;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
.site-header .comparison-count-subline strong{font-weight:500;text-transform:uppercase}
@media(max-width:760px){.site-header .comparison-count-subline{font-size:clamp(13px,4vw,17px)}}
.site-header .comparison-count-subline,.site-header .comparison-count-subline strong{text-transform:uppercase}
.comparison-intro{max-width:none;white-space:nowrap;font-size:clamp(13px,1.1vw,16px)}
@media(max-width:760px){.comparison-intro{white-space:normal}}
/* Keep the coffee button at identical header coordinates regardless of title/subtitle height. */
.site-header-inner{position:relative}
.site-header .header-coffee{position:absolute;top:184px;right:clamp(72px,6vw,100px);inset-inline-start:auto;justify-self:auto;align-self:auto}
@media(max-width:760px){.site-header .header-coffee{display:none!important}}
/* Prevent the one-line intro from widening the document on medium viewports. */
.comparison-intro{white-space:normal}
@media(min-width:1150px){.comparison-intro{white-space:nowrap}}
.comparison-intro{white-space:normal;margin-bottom:42px}
@media (min-width:651px) and (max-width:760px){.wrap{padding-left:16px;padding-right:16px}}
/* Clip accidental page-level overflow while preserving the Results gallery's own scroller. */
html{max-width:100%;overflow-x:hidden}
@supports (overflow-x:clip){html{overflow-x:clip}}
/* The Results header had a viewport width plus an added left indent, causing page overflow. */
.wrap>.results-title-row{box-sizing:border-box;width:calc(100% - 22px);max-width:100%;margin-left:22px;margin-right:0}
@media(max-width:760px){.wrap>.results-title-row{width:100%;margin-left:0;margin-right:0}}
/* Keep the scroll hint beside Results so it cannot drift to or clip at the far edge. */
.wrap>.results-title-row{justify-content:flex-start;gap:14px;overflow:visible}
.wrap>.results-title-row .scroll-hint{position:static;align-self:center;justify-self:start;max-width:100%;white-space:nowrap;overflow:visible}
@media(max-width:900px){.wrap>.results-title-row .scroll-hint{align-self:flex-start}}
/* Match the scroll-hint's right edge to the Results comparison field below. */
.wrap>.results-title-row{box-sizing:border-box;width:95vw;max-width:95vw;margin:30px 0 12px calc(50% - 47.5vw);padding-left:22px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;overflow:visible}
.wrap>.results-title-row .scroll-hint{margin-left:auto;align-self:center}
@media(max-width:760px){.wrap>.results-title-row{width:95vw;max-width:95vw;margin-left:calc(50% - 47.5vw);padding-left:0}.wrap>.results-title-row .scroll-hint{align-self:center}}
/* Use the site ink color for text links throughout all pages. */
body a:not(.site-header a):not(.bmc-button):not(.site-logo-link):not(.footer-support-link){color:#20252c!important}
/* Keep comparison profile links yellow on dark blue despite the global ink-color rule. */
body a:not(.site-header a):not(.bmc-button):not(.site-logo-link):not(.footer-support-link).camera-detail-link:hover,body a:not(.site-header a):not(.bmc-button):not(.site-logo-link):not(.footer-support-link).camera-detail-link:focus-visible{background:#0e1c33!important;color:#ffd800!important;-webkit-text-fill-color:#ffd800!important;border:0!important;outline:0!important;box-shadow:none!important;text-decoration:none!important}
/* Raise the coffee button by 50px consistently on every page using this shared header. */
.site-header .header-coffee{translate:0 -50px!important}
/* WordPress theme edge reset for full-width Camera Data Hub pages. */
body{margin:0!important;padding:0!important}
.wp-site-blocks{padding-left:0!important;padding-right:0!important}
/* Hide only nested interface scrollbars; keep the browser's page scrollbar visible. */
.site-header .header-menu.is-open,.site-header .classic-menu-panel,.suggestions,.year-options,.manufacturer-options,.filter-results,.comparison-scroll,.gallery-scroll,.table-wrap,.camera-profile-carousel-viewport,.manufacturer-story-buttons-viewport,.cdh-privacy-notice{scrollbar-width:none;-ms-overflow-style:none}
.site-header .header-menu.is-open::-webkit-scrollbar,.site-header .classic-menu-panel::-webkit-scrollbar,.suggestions::-webkit-scrollbar,.year-options::-webkit-scrollbar,.manufacturer-options::-webkit-scrollbar,.filter-results::-webkit-scrollbar,.comparison-scroll::-webkit-scrollbar,.gallery-scroll::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.camera-profile-carousel-viewport::-webkit-scrollbar,.manufacturer-story-buttons-viewport::-webkit-scrollbar,.cdh-privacy-notice::-webkit-scrollbar{display:none;width:0;height:0}
