:root {
  color-scheme: light;
  --ink: #17202f;
  --muted: #647086;
  --line: #d9e1ec;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --navy: #123a5f;
  --blue: #2b7abf;
  --sky: #d8ecfb;
  --olive: #586b46;
  --red: #bd3f45;
  --gold: #c39145;
  --shadow: 0 22px 60px rgba(18, 58, 95, 0.18);
  --radius: 8px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 236, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eef5fb;
  color: var(--navy);
}

.stats-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  padding: clamp(26px, 4vw, 64px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(255, 255, 255, 0.78) 72%,
      rgba(255, 255, 255, 0.96) 100%
    ),
    image-set(
      url("./assets/career-guidance-hero.webp") type("image/webp"),
      url("./assets/career-guidance-hero.png") type("image/png")
    );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(0deg, var(--soft), rgba(243, 247, 251, 0));
  content: "";
}

.hero-copy {
  max-width: 660px;
  padding-top: 12px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #10233a;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: #334359;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 58, 95, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: #29435f;
  font-size: 13px;
  font-weight: 800;
}

.quiz-panel,
.result-summary,
.match-card,
.directory-card,
.sponsor-card,
.reports-list-panel,
.report-form,
.report-card {
  border: 1px solid rgba(217, 225, 236, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quiz-panel {
  width: min(100%, 560px);
  justify-self: end;
  padding: clamp(20px, 3vw, 30px);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  margin: 12px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--olive), var(--red));
  transition: width 220ms ease;
}

.quiz-panel h2 {
  min-height: 76px;
  margin: 0 0 22px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-button {
  display: grid;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(43, 122, 191, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.option-button.selected {
  border-color: var(--navy);
  background: #eff6fc;
}

.option-button span:last-child {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.option-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #edf3f8;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.button {
  padding: 0 18px;
  border: 1px solid transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  background: var(--navy);
  color: #fff;
}

.button.secondary {
  width: 100%;
  margin-top: 18px;
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.button.danger {
  border-color: #e6b7bb;
  background: #fff2f3;
  color: #9c2730;
}

.privacy-note,
.fine-print,
.check-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.privacy-note {
  margin: 16px 0 0;
}

.intro-band,
.result-band,
.sponsor-band,
.content-band,
.method-band {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.intro-band {
  background: #fff;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 14px;
  color: #405169;
  font-size: 17px;
  line-height: 1.8;
}

.intro-copy p {
  margin: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.intro-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.intro-grid span {
  color: var(--red);
  font-weight: 900;
}

.intro-grid h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.intro-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.result-summary {
  align-self: start;
  padding: 24px;
}

.result-code {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: #10233a;
  color: #fff;
  font-weight: 900;
}

.result-summary h3,
.match-card h3,
.directory-card h3,
.method-grid h3 {
  margin: 14px 0 8px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.result-summary p,
.match-card p,
.directory-card p,
.method-grid p {
  color: #526075;
  line-height: 1.65;
}

.trait-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.trait-row {
  display: grid;
  grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}

.trait-meter {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf4;
}

.trait-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.match-card,
.directory-card,
.sponsor-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
}

.match-card-header {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 8px;
}

.match-card-header strong {
  justify-self: end;
  color: var(--red);
  font-size: 24px;
}

.rank-badge,
.branch-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  background: var(--navy);
  color: #fff;
}

.branch-pill {
  width: fit-content;
  background: #eaf2f8;
  color: var(--navy);
}

.category-pill {
  width: fit-content;
  background: #f1e7d6;
  color: #6f4b14;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.keyword-block {
  display: grid;
  gap: 7px;
  margin: 8px 0 12px;
}

.keyword-block strong {
  color: var(--navy);
  font-size: 13px;
}

.keyword-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #edf3f8;
  color: #29435f;
  font-size: 12px;
  font-weight: 900;
}

.check-note {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #42536a;
  font-weight: 700;
}

.source-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.source-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.ad-label {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: #f1e7d6;
  color: #6f4b14;
  font-weight: 900;
}

.sponsor-band {
  background: #fff;
}

.sponsor-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-card h3 {
  margin: 16px 0 8px;
  font-size: 21px;
}

.sponsor-card strong {
  color: var(--navy);
}

.sponsor-card p {
  color: var(--muted);
  line-height: 1.65;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: end;
  margin-bottom: 22px;
}

.directory-tools .field-label {
  grid-column: 1 / -1;
}

.directory-tools input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.directory-tools span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.filter-button {
  min-width: 72px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.directory-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.link-button {
  align-self: flex-start;
  min-height: 36px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.reports-band {
  background: #edf4f8;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
}

.reports-list-panel,
.report-form {
  padding: 22px;
}

.reports-list-panel select,
.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 44px;
  margin: 7px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.report-form textarea {
  min-height: 150px;
  resize: vertical;
}

.field-label {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.check-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.report-card {
  padding: 16px;
  box-shadow: none;
}

.report-card.own-report {
  border-color: rgba(43, 122, 191, 0.42);
  background: #f4f9fd;
}

.report-card p,
.empty-state,
.form-status {
  color: var(--muted);
  line-height: 1.65;
}

.report-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.report-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: #edf3f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.report-form h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.report-form p {
  color: var(--muted);
  line-height: 1.65;
}

.method-band {
  background: #152a3f;
  color: #fff;
}

.method-band .section-kicker {
  color: #f0ba67;
}

.method-band .section-heading p {
  color: #cad7e5;
}

.method-grid article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.method-grid span {
  color: #f0ba67;
  font-weight: 900;
}

.method-grid p {
  color: #dbe5ef;
}

.sources-band {
  background: #fff;
}

.operations-band {
  background: #f8fafc;
}

.ops-grid article {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ops-grid strong {
  display: block;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.ops-grid span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 900;
}

.ops-grid p,
.policy-link {
  color: var(--muted);
  line-height: 1.65;
}

.policy-link {
  margin: 18px 0 0;
}

.policy-link a,
.site-footer a {
  color: inherit;
  font-weight: 900;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-group {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.source-group h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
}

.source-group ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible,
.source-links a:hover,
.source-links a:focus-visible {
  text-decoration: underline;
}

.source-list p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 24px clamp(18px, 5vw, 72px);
  background: #0f1f30;
  color: #d7e0ea;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.admin-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.policy-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.contact-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.contact-panel {
  max-width: 780px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-panel dt {
  color: var(--navy);
  font-weight: 900;
}

.contact-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.contact-panel a {
  color: var(--blue);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.policy-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.policy-grid h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.policy-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-steps {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.moderation-reason {
  width: 100%;
  min-height: 82px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
}

.moderation-note {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff8e8;
  color: #6f4b14;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-media {
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.78) 58%,
        rgba(255, 255, 255, 0.96) 100%
      ),
      image-set(
        url("./assets/career-guidance-hero.webp") type("image/webp"),
        url("./assets/career-guidance-hero.png") type("image/png")
      );
  }

  .quiz-panel {
    justify-self: stretch;
    width: 100%;
  }

  .match-grid,
  .intro-grid,
  .sponsor-grid,
  .directory-grid,
  .ops-grid,
  .method-grid,
  .policy-grid,
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 28px 18px 46px;
  }

  .hero-copy {
    padding-top: 8px;
  }

  .quiz-panel h2 {
    min-height: auto;
  }

  .option-button {
    min-height: 72px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stats-pill {
    width: 100%;
    justify-content: center;
  }

  .result-layout,
  .intro-layout,
  .reports-layout,
  .directory-tools,
  .match-grid,
  .intro-grid,
  .sponsor-grid,
  .directory-grid,
  .ops-grid,
  .method-grid,
  .policy-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .trait-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
