:root {
  --ink: #17202a;
  --muted: #5d6874;
  --line: #d8e0e7;
  --soft: #f6f8fb;
  --surface: #fff;
  --canvas: #edf2f6;
  --head: #263342;
  --green: #176044;
  --green-soft: #e7f4ec;
  --blue: #135f88;
  --blue-soft: #e8f2f8;
  --warn: #8a4b08;
  --warn-soft: #fff4df;
  --red: #8b2f2f;
  --red-soft: #fff0f0;
  --tab-active: #8f5145;
  --tab-active-hover: #7d443a;
  --go3-font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

body,
button,
input,
select,
textarea { font-family: var(--go3-font); }

body { font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font-size: inherit; }

/* Keep the public shell and strategy shell visually interchangeable. */
.site-header .nav-wrap,
.app-shell-nav {
  width: min(1320px, calc(100vw - 24px));
  min-height: 64px;
  margin: 0 auto;
  gap: 16px;
}

.app-shell-nav {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
}

.site-header .brand,
.app-shell-brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0;
}

.site-header .desktop-nav a,
.app-shell-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  padding: 9px 11px;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-header .desktop-nav a[aria-current="page"],
.app-shell-links a:hover,
.app-shell-links a:focus-visible,
.app-shell-links a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
  outline: none;
}

.site-header .desktop-nav .dashboard-link,
.app-shell-links a[data-route="dashboard"] {
  color: #fff;
  background: var(--blue);
}

.site-header .desktop-nav .dashboard-link:hover,
.site-header .desktop-nav .dashboard-link:focus-visible,
.app-shell-links a[data-route="dashboard"]:hover,
.app-shell-links a[data-route="dashboard"]:focus-visible {
  color: #fff;
  background: #0d527a;
}

.app-shell-mobile-nav { display: none; position: relative; }
.app-shell-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.app-shell-mobile-nav summary::-webkit-details-marker { display: none; }
.app-shell-mobile-links {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 43px;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(21, 36, 53, .12);
}
.app-shell-mobile-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  padding: 9px;
}
.app-shell-mobile-links a:hover,
.app-shell-mobile-links a:focus-visible { color: var(--blue); background: var(--blue-soft); outline: none; }

/* Windows browsers make 10-11px Korean UI look materially lighter than macOS. */
.go3-strategy {
  font-size: 15px;
  line-height: 1.52;
}

.go3-strategy .profile-choice strong { font-size: 13px; }
.go3-strategy .profile-choice-summary,
.go3-strategy .profile-choice.personal > button:first-child span,
.go3-strategy .profile-choice.personal-locked span { font-size: 12px; }
.go3-strategy aside h2,
.go3-strategy .panel h2 { font-size: 15px; }
.go3-strategy .control-group h3,
.go3-strategy .filter-head h3 { font-size: 13px; }
.go3-strategy label,
.go3-strategy .check,
.go3-strategy .choice-label { font-size: 12.5px; }
.go3-strategy input,
.go3-strategy select,
.go3-strategy .choice-button { font-size: 13px; }
.go3-strategy .score-column-labels { font-size: 12px; }
.go3-strategy table { font-size: 12.5px; }
.go3-strategy .option-school { font-size: 13px; }
.go3-strategy .option-type,
.go3-strategy .option-major { font-size: 12px; }
.go3-strategy .fit-badge,
.go3-strategy .admission-badge { font-size: 11.5px; }
.go3-strategy .source-line { font-size: 12px; }
.go3-strategy .summary-title { font-size: 13.5px; }
.go3-strategy .metric strong { font-size: 16px; }
.go3-strategy .metric span { font-size: 12px; }
.go3-strategy .tab-button { font-size: 13px; }

@media (max-width: 640px) {
  .site-header .nav-wrap,
  .app-shell-nav {
    width: min(100% - 16px, 1320px);
    min-height: 56px;
  }

  .site-header .brand,
  .app-shell-brand { font-size: 17px; }

  .app-shell-nav { flex-wrap: wrap; padding: 8px 9px; gap: 6px; }
  .app-shell-brand { width: 100%; white-space: normal; line-height: 1.25; }
  .app-shell-links { display: none; }
  .app-shell-mobile-nav { display: block; }
  .app-shell-actions { width: 100%; justify-content: flex-end; gap: 6px; }
}
