:root {
  color-scheme: light;
  font-family: Pretendard, "Pretendard Variable", SUIT, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #ffffff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #ffffff;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: #0f172a;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.public-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: #ffffff;
}

.public-shell-header {
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
}

.public-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.public-shell-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.public-shell-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.public-shell-nav a {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 11px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.public-shell-nav a:hover,
.public-shell-nav a[aria-current="page"] {
  color: #1d4ed8;
  background: #eff6ff;
}

.public-shell-consultation {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 12px;
  color: #ffffff;
  background: #1d4ed8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.public-shell-consultation:hover {
  background: #1e40af;
}

.public-shell-brand:focus-visible,
.public-shell-nav a:focus-visible,
.public-shell-consultation:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

.public-shell-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.public-shell-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 820px) {
  .public-shell-header {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    min-height: 112px;
    padding: 8px 14px 10px;
  }

  .public-shell-brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
  }

  .public-shell-brand img {
    width: 30px;
    height: 30px;
  }

  .public-shell-consultation {
    grid-column: 2;
    grid-row: 1;
    min-height: 40px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .public-shell-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-shell-nav::-webkit-scrollbar {
    display: none;
  }

  .public-shell-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
