:root {
  --bidlab-blue: #3c5daa;
  --bidlab-blue-dark: #314e91;
  --bidlab-blue-hover: #314e91;
  --bidlab-navy: #162c4b;
  --bidlab-bg: #f6f8fc;
  --bidlab-border: #dde4ef;
  --bidlab-muted: #667085;
  --bidlab-content-max: 1180px;
  --bidlab-content-gutter: 56px;
  --header-height: 64px;
  --sticky-top: calc(var(--header-height) + 16px);
}

.portal-head .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.portal-head .portal-wrap {
  width: min(var(--bidlab-content-max), calc(100% - var(--bidlab-content-gutter)));
  margin: 0 auto;
}

.portal-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bidlab-border);
}

.portal-head .head-row {
  display: grid;
  grid-template-columns: minmax(248px, auto) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding: 12px 0;
}

.portal-head .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}

.portal-head .brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
  flex-shrink: 0;
}

.portal-head .brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.portal-head .brand-name {
  display: block;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--bidlab-navy);
}

.portal-head .brand-sub {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #5b6b82;
}

.portal-head .global-search {
  display: flex;
  width: min(440px, 100%);
  height: 46px;
  margin: 0 auto;
  border: 1px solid var(--bidlab-blue);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.portal-head .global-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.portal-head .global-search button {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  border: 0;
  padding: 0 14px;
  background: var(--bidlab-blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-head .global-search button:hover,
.portal-head .global-search button:focus-visible {
  background: var(--bidlab-blue-dark);
}

.portal-head .global-search button:focus-visible,
.portal-head .search-toggle:focus-visible,
.portal-head .menu-toggle:focus-visible,
.portal-head .util-links a:focus-visible,
.portal-head .gnb-nav .gnb-top:focus-visible,
.portal-head .gnb-tools a:focus-visible,
.portal-head .g2b-ticker__item:focus-visible {
  outline: 2px solid #f8d477;
  outline-offset: 2px;
}

.portal-head .search-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bidlab-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.portal-head .search-toggle:hover,
.portal-head .search-toggle:focus-visible {
  background: #f4f7ff;
}

.portal-head .util-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.portal-head .util-links a {
  color: #333;
}

.portal-head .util-links a.is-current {
  color: var(--bidlab-blue);
}

.portal-head .util-links a.util-admin {
  color: var(--bidlab-blue);
  padding: 4px 8px;
  border: 1px solid #c9d6f5;
  border-radius: 4px;
  background: #f4f7ff;
}

.portal-head .util-links .util-consult {
  color: #fff;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bidlab-blue);
  display: inline-flex;
  align-items: center;
}

.portal-head .util-links .util-consult:hover,
.portal-head .util-links .util-consult:focus-visible {
  background: var(--bidlab-blue-dark);
}

.portal-head .util-auth {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-head .util-hello {
  color: #3c5daa;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .portal-head .mobile-utils .util-auth {
    display: grid;
  }

  .portal-head .mobile-utils .util-hello {
    color: #fff;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
  }
}

.portal-head .gnb-auth {
  display: none;
}

.portal-head .gnb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 24px;
  overflow: visible;
  width: min(var(--bidlab-content-max), calc(100% - var(--bidlab-content-gutter)));
  margin: 0 auto;
  background: var(--bidlab-blue);
}

.portal-head .gnb-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow: visible;
}

.portal-head .gnb-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.portal-head .gnb-tools span {
  margin-right: 3px;
  color: #dbe7ff;
  font-size: 11px;
  font-weight: 600;
}

.portal-head .gnb-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.portal-head .gnb-tools a:hover,
.portal-head .gnb-tools a.is-current {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.portal-head .mobile-tools {
  display: none;
}

.portal-head .gnb-item {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
}

.portal-head .gnb-nav .gnb-top {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 10px;
  border: 0;
  display: block;
}

.portal-head .gnb-nav .gnb-top:hover {
  background: var(--bidlab-blue-hover);
}

.portal-head .gnb-nav .gnb-top.is-current {
  background: var(--bidlab-blue-hover);
}

.portal-head .mega-panel,
.portal-head .mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  width: max-content;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 8px 0;
  background: #ffffff;
  color: #222222;
  border: 1px solid var(--bidlab-border);
  opacity: 1;
  visibility: visible;
  z-index: 9999;
}

.portal-head .gnb-item:hover .mega-panel,
.portal-head .gnb-item:focus-within .mega-panel,
.portal-head .gnb-item.open .mega-panel {
  display: grid;
}

.portal-head .gnb-item:last-child .mega-panel {
  left: auto;
  right: 0;
}

@media (min-width: 1025px) {
  .portal-head .gnb-row {
    min-width: 0;
  }

  .portal-head .gnb-nav {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .portal-head .head-row {
    gap: 16px;
  }

  .portal-head .brand-name {
    font-size: 16px;
  }

  .portal-head .brand-sub {
    font-size: 11px;
  }

  .portal-head .global-search {
    width: min(360px, 100%);
  }

  .portal-head .gnb-nav .gnb-top {
    font-size: 13px;
    padding: 10px 8px;
  }

  .portal-head .gnb-tools span {
    display: none;
  }
}

@media (min-width: 1025px) {
  :root {
    --header-height: 156px;
  }

  .portal-head .mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }
}

.portal-head .mega-panel a,
.portal-head .mega-menu a {
  display: block;
  color: #333333 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  padding: 8px 16px;
  opacity: 1;
  visibility: visible;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
}

.portal-head .mega-panel a:hover,
.portal-head .mega-menu a:hover {
  background: #f5f7fb;
  color: var(--bidlab-blue) !important;
}

.portal-head .mega-panel a.is-current,
.portal-head .mega-menu a.is-current {
  color: var(--bidlab-blue) !important;
  font-weight: 600;
}

.portal-head .gnb-sns {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.portal-head .gnb-sns a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.portal-head .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.portal-head .menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--bidlab-blue);
  border-radius: 1px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.portal-head .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.portal-head .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.portal-head .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.portal-head .search-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bidlab-navy);
  cursor: pointer;
}

.portal-head .search-toggle__icon {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.portal-head .search-toggle__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .portal-head .brand img,
  .portal-head .brand img {
    height: 36px;
  }

  .portal-head .brand-copy {
    display: flex;
  }

  .portal-head .brand-name {
    display: block;
    font-size: 16px;
  }

  .portal-head .brand-sub {
    display: none;
  }

  .portal-head .brand img {
    height: 28px;
  }

  .portal-head .head-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    min-height: 64px;
    gap: 8px;
    padding: 10px 0;
  }

  .portal-head .util-links {
    display: contents;
  }

  .portal-head .util-auth {
    display: none;
  }

  .portal-head .util-links a,
  .portal-head .util-links .util-consult,
  .portal-head .util-links .util-admin {
    display: none !important;
  }

  .portal-head .global-search {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .portal-head.search-open .global-search {
    display: flex;
  }

  .portal-head .global-search input,
  .portal-head .global-search button {
    width: 100%;
    min-height: 44px;
  }

  .portal-head .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .portal-head .search-toggle {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .portal-head .util-links {
    gap: 4px;
  }

  .portal-head .gnb-sns {
    display: none;
  }

  .portal-head .gnb-tools {
    display: none;
  }

  .portal-head .gnb {
    min-height: 0;
  }

  .portal-head .gnb-row {
    min-height: 0;
    height: 0;
    overflow: visible;
    gap: 0;
  }

  .portal-head .gnb-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 64px);
    bottom: var(--mobile-tab-h, 0px);
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: auto;
    overflow-x: hidden;
    background: var(--bidlab-blue-dark);
    flex-direction: column;
    z-index: 70;
  }

  .portal-head .gnb-nav.open {
    display: flex;
  }

  .portal-head .gnb-nav .gnb-top,
  .portal-head .gnb-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 16px;
  }

  .portal-head .mega-panel {
    position: static;
    border: 0;
    background: #16348a;
    min-width: 0;
    padding: 0 0 8px;
  }

  .portal-head .mega-panel a {
    color: #dbe7ff !important;
    min-height: 44px;
    padding: 12px 24px;
  }

  .portal-head .gnb-item:hover .mega-panel {
    display: none;
  }

  .portal-head .gnb-item.open .mega-panel {
    display: grid;
  }

  .portal-head .mobile-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: #102d7c;
  }

  .portal-head .mobile-tools span {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0 0 8px;
    color: #b9cdfd;
    font-size: 12px;
    font-weight: 700;
  }

  .portal-head .mobile-tools a {
    min-height: 44px;
    padding: 8px 10px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
  }
}

.portal-head .g2b-ticker {
  --ticker-bg: #162c4b;
  background: transparent;
  color: #fff;
  border-top: 0;
}

.portal-head .g2b-ticker[hidden] {
  display: none;
}

.portal-head .g2b-ticker__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  width: min(var(--bidlab-content-max), calc(100% - var(--bidlab-content-gutter)));
  min-width: 0;
  margin: 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--ticker-bg);
  color: #fff;
}

.portal-head .g2b-ticker__line {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin: 0;
  min-width: 0;
  min-height: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.portal-head .g2b-ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.portal-head .g2b-ticker__item:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.portal-head .g2b-ticker__name {
  color: #e8eef8;
  font-weight: 600;
}

.portal-head .g2b-ticker__num {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.portal-head .g2b-ticker__dot {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  padding: 0 6px;
}

.portal-head .g2b-ticker__status {
  color: #cbd5e1;
  font-weight: 600;
}

.portal-head .g2b-ticker__asof {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 40px;
  color: #cbd5e1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.portal-head .g2b-ticker__asof[hidden] {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --bidlab-content-gutter: 24px;
  }

  .portal-head .g2b-ticker__inner {
    min-height: 44px;
    padding: 4px 0;
  }

  .portal-head .g2b-ticker__line,
  .portal-head .g2b-ticker__item {
    font-size: 12px;
  }

  .portal-head .g2b-ticker__num {
    font-size: 13px;
  }
}

/* Compact reading header: keep article space and the existing category layout. */
.portal-head .head-row { min-height: 64px; padding: 6px 0; }
.portal-head .global-search { height: 40px; }
.portal-head .g2b-ticker__inner { min-height: 32px; padding: 2px 16px; }
.portal-head .g2b-ticker__asof { min-height: 28px; }
.portal-head.is-compact { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 2px 8px #162c4b12; }
.portal-head.is-compact .g2b-ticker { display: none; }
@media (min-width: 1025px) {
  .portal-head.is-compact { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; align-items: center; column-gap: 16px; padding: 0 max(28px, calc((100% - 1180px) / 2)); min-height: 60px; }
  .portal-head.is-compact .head-row { display: contents; }
  .portal-head.is-compact .brand { grid-column: 1; grid-row: 1; gap: 8px; }
  .portal-head.is-compact .brand img { height: 30px; }
  .portal-head.is-compact .brand-name { font-size: 17px; }
  .portal-head.is-compact .brand-sub { display: none; }
  .portal-head.is-compact .gnb { grid-column: 2; grid-row: 1; min-width: 0; }
  .portal-head.is-compact .gnb-row { width: 100%; }
  .portal-head.is-compact .util-links { grid-column: 3; grid-row: 1; }
  .portal-head.is-compact .util-links > a,
  .portal-head.is-compact .util-links > .util-auth { display: none; }
  .portal-head.is-compact .search-toggle { display: grid; }
  .portal-head.is-compact .global-search { display: none; }
  .portal-head.is-compact.search-open .global-search { display: flex; grid-column: 1 / -1; grid-row: 2; margin: 0 auto 8px; width: min(600px, 100%); }
}
@media (max-width: 1024px) {
  .portal-head .head-row { min-height: 56px; padding: 6px 0; }
  .portal-head .g2b-ticker__inner { flex-wrap: nowrap; }
  .portal-head .g2b-ticker__line { flex-wrap: nowrap; overflow-x: auto; gap: 12px; }
  .portal-head .g2b-ticker__asof { display: none; }
  .portal-head.search-open .global-search { height: auto; }
}

/* Keep the public mobile brand centered independently of menu controls. */
@media(max-width:720px){
 body #top.portal-head .head-row{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;min-height:64px!important}
 body #top.portal-head .head-row>.brand{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center!important;width:auto!important;height:auto!important;max-width:100%!important;margin:0!important;left:auto!important;right:auto!important;transform:none!important;background:none!important}
 body #top.portal-head .brand img{position:static!important;width:32px!important;height:32px!important;overflow:visible!important;clip-path:none!important}
 body #top.portal-head .brand-copy{position:static!important;display:flex!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important}
 body #top.portal-head .brand-name{font-size:16px!important;letter-spacing:-0.04em;white-space:nowrap}
 body #top.portal-head .brand-sub{display:block!important;font-size:10px!important;white-space:nowrap}
 body #top.portal-head .util-links{display:contents!important}
 body #top.portal-head .menu-toggle{grid-column:3!important;grid-row:1!important}
 body #top.portal-head .search-toggle,body #top.portal-head .global-search{display:none!important}
}

/* Match the main page's white navigation across public boards. */
body .portal-head .gnb-row { background: #fff; }
body .portal-head .gnb-nav .gnb-top {
  position: relative; color: #172d49 !important; background: transparent;
  font-weight: 500; line-height: 1.5;
}
body .portal-head .gnb-nav .gnb-top:hover,
body .portal-head .gnb-nav .gnb-top.is-current { background: transparent; color: #162c4b !important; }
body .portal-head .gnb-nav .gnb-top.is-current { font-weight: 700; }
body .portal-head .gnb-nav .gnb-top.is-current::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 7px;
  height: 2px; background: #3c5daa; border-radius: 1px;
}
body .portal-head .gnb-tools span { color: #64748b; }
body .portal-head .gnb-tools a { color: #172d49; border-color: #dbe3ee; background: #fff; }
body .portal-head .gnb-tools a:hover,
body .portal-head .gnb-tools a.is-current { color: #3155a5; background: #f4f7fc; border-color: #b9cbe7; }
@media(min-width: 1025px) { body .portal-head .gnb-nav .gnb-top { font-size: 15px; padding: 14px 10px; } }
