/* The same account actions fit each public page shell, including the manual. */
html[data-theme] body .site-auth-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}
html[data-theme] body .site-auth-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid #d4dfeb;
  border-radius: 7px;
  color: #18304f;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
html[data-theme] body .site-auth-actions :is(.site-auth-register, .site-auth-center) { border-color: #2166be; color: #fff; background: #2166be; }
html[data-theme] body .site-auth-actions a:hover { border-color: #2166be; background: #edf4ff; }
html[data-theme] body .site-auth-actions :is(.site-auth-register, .site-auth-center):hover { border-color: #19549f; background: #19549f; }
html[data-theme] body .site-auth-actions a:focus-visible { outline: 3px solid #438bff; outline-offset: 3px; }
html[data-theme="dark"] body .site-auth-actions a { border-color: #405574; color: #eef5ff; background: #1c304b; }
html[data-theme="dark"] body .site-auth-actions :is(.site-auth-register, .site-auth-center) { border-color: #438bff; background: #2465c1; }
html[data-theme="dark"] body .site-auth-actions a:hover { border-color: #85b5ff; background: #294c7c; }

html[data-theme] body .portal-header .site-auth-header { width: min(1440px, calc(100% - 64px)); }
html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) { gap: 20px; margin-right: 24px; }
html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) a { color: #526984; }
html[data-theme="dark"] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) a { color: #d8e5f5; }
html[data-theme] body .portal-header .site-auth-header .site-auth-download { display: none; }
html[data-theme] body :is(.account-header-inner, .legal-header-inner).site-auth-header { gap: 16px; }
html[data-theme] body .site-auth-header :is(.account-back, .legal-back) { margin-left: auto; }

html[data-theme] body .purchase-header .site-auth-header { flex-wrap: wrap; gap: 12px 20px; padding-block: 14px; }
html[data-theme] body .purchase-header .site-auth-header .purchase-site-nav { order: 3; flex-basis: 100%; justify-content: center; }
html[data-theme] body .purchase-header .site-auth-header .purchase-nav { margin-left: auto; }
html[data-theme] body .purchase-header .site-auth-header .site-auth-actions { margin-left: 0; }

@media (max-width: 1280px) {
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) {
    position: absolute;
    top: 78px;
    right: 24px;
    left: 24px;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--panel, #fff);
    box-shadow: 0 12px 24px rgba(25, 50, 80, .12);
  }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav).open { display: grid; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) a { display: grid; place-items: center; min-height: 42px; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) a::after { display: none; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-menu, .manual-menu-button) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  html[data-theme] body .portal-header .site-auth-header .portal-download { margin-left: auto; }
  html[data-theme] body .portal-header .site-auth-header .site-auth-actions { margin-left: auto; }
  html[data-theme] body .portal-header .site-auth-header .portal-download ~ .site-auth-actions { margin-left: 18px; }
  html[data-theme] body .manual-site-header .site-auth-header .portal-nav { top: 72px; }
}
@media (max-width: 760px) {
  html[data-theme] body .portal-header .site-auth-header { width: calc(100% - 24px); gap: 8px; }
  html[data-theme] body .portal-header .site-auth-header .brand img[src*="/assets/brand/gom-logo-"] { width: clamp(112px, 36vw, 165px); }
  html[data-theme] body .portal-header .site-auth-header .portal-download { display: none; }
  html[data-theme] body .portal-header .site-auth-header .site-auth-actions,
  html[data-theme] body .portal-header .site-auth-header .portal-download ~ .site-auth-actions { margin-left: auto; }
  html[data-theme] body .site-auth-actions { gap: 6px; }
  html[data-theme] body .site-auth-actions a { min-height: 34px; padding: 7px 12px; font-size: 12px; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-menu, .manual-menu-button) { min-width: 40px; min-height: 34px; height: 36px; margin-left: 0; padding: 6px; font-size: 12px; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav) { top: 68px; left: 12px; right: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme] body .manual-site-header .site-auth-header .portal-nav { top: 72px; }
  html[data-theme] body .portal-header .site-auth-header :is(.portal-nav, .download-nav).open .site-auth-download { display: grid; }
  html[data-theme] body :is(.account-header-inner, .legal-header-inner).site-auth-header { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  html[data-theme] body .account-header:has(.site-auth-header) { height: auto; }
  html[data-theme] body :is(.account-header-inner, .legal-header-inner).site-auth-header :is(.account-back, .legal-back) { order: 3; flex-basis: 100%; margin: 0; }
  html[data-theme] body :is(.account-header-inner, .legal-header-inner).site-auth-header .site-auth-actions { margin-left: auto; }
  html[data-theme] body :is(.account-header, .legal-header, .purchase-header) .site-auth-header :is(.brand, .legal-brand) img { width: clamp(112px, 36vw, 140px); }
  html[data-theme] body .purchase-header .site-auth-header .site-auth-actions { margin-left: auto; }
  html[data-theme] body .purchase-header .site-auth-header .purchase-nav { order: 4; flex-basis: 100%; justify-content: flex-end; padding: 0; }
}
