/* Mobile account controls and responsive website header. */
.mobile-access{display:none}
@media(max-width:820px){
  .topbar{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto 40px;gap:10px 8px;padding:12px 12px 10px;align-items:center}
  .topbar .brand{min-width:0;gap:8px;grid-column:1;grid-row:1}
  .topbar .brand-mark{width:34px;height:34px}
  .topbar .brand-copy b{font-size:26px;line-height:1;letter-spacing:.3px}
  .topbar .brand-copy small{display:none}
  .topbar .nav-actions{display:contents}
  .topbar .nav-actions>.country{display:flex;grid-column:2;grid-row:1;min-height:40px;padding:8px;font-size:11px;gap:5px;max-width:128px;border-radius:10px}
  .topbar .country svg{width:16px;height:16px;flex:none}
  .topbar .country::after{display:none}
  .topbar .nav-actions>#accountSignup,.topbar .nav-actions>#accountLogin{display:none}
  .topbar .menu{display:flex;grid-column:3;grid-row:1;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:10px;font-size:23px}
  .topbar .mobile-access{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .mobile-access button,.mobile-access a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 8px;text-align:center;border:1px solid var(--teal);border-radius:10px;color:#fff;background:rgba(36,226,206,.07);text-decoration:none;font-size:13px;font-weight:850;line-height:1.2}
  .mobile-access button:focus-visible,.mobile-access a:focus-visible,.topbar .menu:focus-visible{outline:3px solid #fff;outline-offset:2px}
  .topbar nav{top:100%;left:0;right:0;max-height:calc(100dvh - 130px);overflow-y:auto;padding:12px 16px;gap:4px;z-index:65}
  .topbar nav button{width:100%;padding:12px;text-align:left;white-space:normal;font-size:14px}
  .country-menu{top:62px;right:12px;max-width:calc(100vw - 24px)}
}

/* Keep account controls within the viewport at normal zoom and larger text sizes. */
@media (min-width:821px){
  .topbar{height:auto;min-height:96px;flex-wrap:wrap;gap:14px 20px;padding:16px clamp(20px,2vw,40px)}
  .topbar .brand{min-width:0;flex:0 1 auto}
  .topbar nav{min-width:0;flex-wrap:wrap;gap:10px}
  .topbar .nav-actions{min-width:0;flex-wrap:wrap;gap:10px;margin-left:auto}
  .topbar nav button{white-space:normal}
  .topbar .country-menu{top:100%;right:20px;max-width:calc(100vw - 40px)}
}
/* Two deliberate rows on laptops/tablets instead of clipping the last button. */
@media (min-width:821px) and (max-width:1500px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px 20px;padding:12px 24px;min-height:0}
  .topbar .brand{grid-column:1;grid-row:1;gap:10px}
  .topbar .brand-mark{width:48px;height:48px}
  .topbar .brand-copy b{font-size:32px}
  .topbar .brand-copy small{display:block;font-size:10px;white-space:normal;line-height:1.3}
  .topbar .nav-actions{grid-column:2;grid-row:1;justify-content:flex-end;margin:0}
  .topbar .nav-actions>button{font-size:14px;min-height:44px;padding:10px 13px}
  .topbar #mainNavigation{grid-column:1/-1;grid-row:2;display:flex;position:static;justify-content:center;gap:8px;padding:0;flex-direction:row}
  .topbar #mainNavigation button{min-height:44px;padding:10px 14px;font-size:14px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.055)}
}
