/* GlobaPlace 3.3 Batch B: mobile/header/navigation/link-bridge polish */

:root {
  --gp33-yellow: #f3c80f;
  --gp33-yellow-dark: #d8a72f;
  --gp33-ink: #151611;
  --gp33-muted: rgba(21, 22, 17, .66);
  --gp33-line: rgba(21, 22, 17, .12);
  --gp33-card: #fff;
  --gp33-soft: #f6f4ec;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

.gp-uh-shell,
.gp-global-footer {
  max-width: 100vw;
}

.gp-uh-deptbar-inner a[aria-current="page"],
.gp-footer-placebar a[aria-current="page"],
.gp33-link-bridge a[aria-current="page"] {
  background: rgba(255,255,255,.42);
  border-color: rgba(0,0,0,.18);
}

.gp-uh-deptbar-inner a,
.gp-footer-placebar a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
}

.gp-uh-meta a,
.gp-uh-action,
.gp-uh-deptbar a,
.gp-global-footer a,
.gp33-link-bridge a {
  text-underline-offset: 3px;
}

.gp-uh-meta a:focus-visible,
.gp-uh-action:focus-visible,
.gp-uh-deptbar a:focus-visible,
.gp-global-footer a:focus-visible,
.gp33-link-bridge a:focus-visible,
.gp-btn:focus-visible {
  outline: 3px solid rgba(21,22,17,.72);
  outline-offset: 3px;
}

.gp33-link-bridge {
  width: min(1480px, calc(100vw - 36px));
  margin: 18px auto 34px;
  border: 1px solid var(--gp33-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(243,200,15,.22), transparent 28%),
    linear-gradient(135deg, #ffffff, #fbfaf5);
  box-shadow: 0 20px 54px rgba(21,22,17,.08);
  color: var(--gp33-ink);
  overflow: hidden;
}

.gp33-link-bridge-inner {
  padding: clamp(20px, 3vw, 34px);
}

.gp33-link-bridge-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}

.gp33-link-bridge-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff3bf;
  border: 1px solid rgba(243,200,15,.50);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gp33-link-bridge h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.gp33-link-bridge p {
  margin: 0;
  max-width: 760px;
  color: var(--gp33-muted);
  line-height: 1.55;
}

.gp33-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.gp33-link-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--gp33-line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: var(--gp33-ink);
}

.gp33-link-card strong {
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.gp33-link-card span {
  color: var(--gp33-muted);
  font-size: 13px;
  line-height: 1.42;
}

.gp33-link-card em {
  align-self: end;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: #8a6513;
}

.gp33-runtime-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(243,200,15,.45);
  border-radius: 16px;
  background: #fff8d7;
  color: rgba(21,22,17,.72);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .gp33-link-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .gp-uh-sitebar .gp-uh-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .gp-uh-search-wrap,
  .gp-uh-search {
    width: 100%;
  }

  .gp-uh-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .gp-uh-shell {
    position: sticky;
    top: 0;
  }

  .gp-uh-inner,
  .gp-uh-deptbar-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .gp-uh-meta .gp-uh-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .gp-uh-meta-left,
  .gp-uh-meta-center,
  .gp-uh-meta-right {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
  }

  .gp-uh-welcome {
    white-space: normal;
    line-height: 1.25;
  }

  .gp-uh-dd-panel {
    position: fixed;
    left: 10px !important;
    right: 10px !important;
    top: auto;
    max-height: 70vh;
    overflow: auto;
    min-width: 0;
  }

  .gp-uh-brand {
    align-items: center;
  }

  .gp-uh-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 18px;
    flex: 0 0 auto;
  }

  .gp-uh-brand-main {
    font-size: 30px !important;
  }

  .gp-uh-current-place {
    display: none;
  }

  .gp-uh-search {
    grid-template-columns: 1fr;
    border-radius: 18px;
    overflow: hidden;
  }

  .gp-uh-search select,
  .gp-uh-search input,
  .gp-uh-search button {
    width: 100%;
    height: 42px;
  }

  .gp-uh-search select {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
  }

  .gp-uh-search button {
    margin: 0;
    border-radius: 0;
  }

  .gp-uh-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    width: 100%;
  }

  .gp-uh-page-label {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .gp-uh-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gp-uh-deptbar-inner {
    align-items: stretch;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .gp-uh-deptbar-inner a,
  .gp-header-placebar-label {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .gp33-link-bridge {
    width: min(100% - 22px, 1480px);
    border-radius: 20px;
  }

  .gp33-link-bridge-head {
    display: grid;
  }

  .gp33-link-grid {
    grid-template-columns: 1fr;
  }

  .gp33-link-card {
    min-height: 0;
  }
}
