.logo{display:inline-flex!important;align-items:center!important;gap:10px!important;font-size:0!important;color:#fff!important;text-decoration:none!important;white-space:nowrap;flex:0 0 auto}.logo::before{content:"";display:block;width:40px;height:40px;flex:0 0 40px;background:url('/logo.svg') center/contain no-repeat;filter:drop-shadow(0 4px 9px #0007);transition:transform .18s ease,filter .18s ease}.logo::after{content:"PC Board Repair";font-size:20px;line-height:1;font-weight:900;color:#f3f9ff;letter-spacing:.15px}.logo:hover::before{transform:translateY(-1px) scale(1.04);filter:drop-shadow(0 5px 12px #20bdf244)}.logo:hover::after{color:#69ddff}

/* Two rows on every page: brand and controls first, navigation below. */
header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto auto;
  grid-template-areas:"brand theme language account" "nav nav nav nav";
  padding:8px clamp(14px,3vw,46px)!important;
  gap:6px 14px!important;
  align-items:center!important;
  min-height:0;
}
header>.logo{grid-area:brand;justify-self:start;min-width:0;max-width:100%;overflow:hidden}
header>.logo::after{min-width:0;overflow:hidden;text-overflow:ellipsis}
header>.pcbrThemeToggle{grid-area:theme;justify-self:end}
header>.languageBox{grid-area:language;justify-self:end;min-width:0}
header>.accountBox{grid-area:account;justify-self:end;min-width:0}
header>nav{
  grid-area:nav;
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(12px,2vw,26px)!important;
  flex-wrap:nowrap!important;
  white-space:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
  border-top:1px solid #223653;
  padding:7px 2px 2px!important;
  scroll-padding-inline:4px;
}
header>nav::-webkit-scrollbar{display:none}
header>nav>a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:5px 3px!important;font-size:15px;line-height:1.4}
header>nav>a[data-pcbr-youtube-channel]{padding-inline:10px!important;color:#fff!important}
:root[data-theme="light"] header>nav>a[data-pcbr-youtube-channel]{color:#fff!important}
:root[data-theme="light"] header>.logo{color:#17324d!important}
:root[data-theme="light"] header>nav{border-top-color:#d6e0eb}

/* Prominent visual in the homepage hero */
.hero{position:relative;overflow:hidden}.hero::before{content:"";display:block;width:clamp(96px,8vw,128px);height:clamp(96px,8vw,128px);margin:0 auto 20px;background:url('/logo.svg') center/contain no-repeat;filter:drop-shadow(0 12px 28px #0008) drop-shadow(0 0 25px #20bdf233)}.hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 0 8%,#20bdf20a 8% 8.15%,transparent 8.15% 91.8%,#20bdf20a 91.8% 92%,transparent 92%),linear-gradient(0deg,transparent 0 18%,#20bdf207 18% 18.15%,transparent 18.15% 81.8%,#20bdf207 81.8% 82%,transparent 82%);opacity:.8}.hero>*{position:relative;z-index:1}

@media(max-width:1100px){.logo::after{font-size:18px}.logo::before{width:37px;height:37px;flex-basis:37px}}

/* Navigation scrolls on smaller screens; all controls keep their own cell. */
@media(max-width:820px){header{gap:5px 10px!important;padding:8px 12px!important}header>nav{justify-content:flex-start!important;gap:18px!important}header>nav>a{font-size:14px}.hero{padding-top:34px!important}.hero::before{width:92px;height:92px;margin-bottom:15px}}

@media(max-width:560px){
  header{gap:5px 6px!important;padding:7px 9px!important}
  header>.logo{gap:6px!important}
  header>.logo::before{width:32px!important;height:32px!important;flex-basis:32px!important}
  header>.logo::after{font-size:13px!important;letter-spacing:0!important}
  header>.pcbrThemeToggle{min-width:34px;width:34px;height:36px;padding:0}
  header>.pcbrThemeToggle .pcbrThemeText{display:none}
  header>.languageBox{gap:0}
  header .languageSelect{max-width:70px;padding:6px 3px;font-size:12px}
  header .accountLogin{padding:8px;font-size:12px;white-space:nowrap}
  header>.accountBox{gap:5px}
  .hero::before{width:82px;height:82px}.hero h1{font-size:clamp(29px,9vw,42px)}
}

