:root {
  --primary: #e79214;
  --primary-dark: #a85d00;
  --ink: #172033;
  --muted: #5d687b;
  --line: #dfe4ec;
  --soft: #f5f7fa;
  --navy: #0f172a;
  --navy-light: #17233d;
  --white: #fff;
  --success: #087f5b;
  --warning: #9a5b00;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: #785000; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 40px, 1120px);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand span { color: #f5a623; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a { color: #dce3ef; text-decoration: none; }
.site-nav a:hover { color: var(--white); }

.site-nav .nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f5a623;
  color: #201300;
}

.guide-hero {
  padding: 68px 20px 82px;
  background:
    radial-gradient(circle at 75% 20%, rgba(245, 166, 35, 0.2), transparent 35%),
    linear-gradient(145deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.hero-inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffc96f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.guide-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.hero-summary {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d5ddeb;
  font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: #b9c5d8;
  font-size: 14px;
}

.page-shell {
  width: min(100% - 40px, 1120px);
  margin: -34px auto 72px;
  position: relative;
}

.breadcrumb {
  margin-bottom: 16px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #9aa4b4;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.article,
.hub-panel {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.article > :first-child,
.hub-panel > :first-child { margin-top: 0; }

.article h2 {
  margin: 56px 0 16px;
  padding-top: 4px;
  color: var(--navy);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.article h3 {
  margin: 34px 0 10px;
  color: #263550;
  font-size: 21px;
  line-height: 1.45;
}

.article p { margin: 14px 0; }
.article ul, .article ol { padding-left: 24px; }
.article li + li { margin-top: 8px; }

.lead {
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: #35425a;
  font-size: 19px;
}

.toc {
  position: sticky;
  top: 86px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 15px;
}

.toc ol {
  margin: 0;
  padding-left: 21px;
  font-size: 14px;
  line-height: 1.55;
}

.toc li + li { margin-top: 9px; }
.toc a { color: #47546a; text-decoration: none; }
.toc a:hover { color: var(--primary-dark); text-decoration: underline; }

.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #fff7e8;
}

.callout strong { color: #734700; }
.callout.success { border-color: var(--success); background: #edf9f4; }
.callout.success strong { color: #056047; }
.callout.danger { border-color: var(--danger); background: #fff1f0; }
.callout.danger strong { color: #8e1c13; }

.check-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  min-height: 32px;
  padding: 4px 0 4px 38px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #aeb7c5;
  border-radius: 5px;
  background: var(--white);
}

.number-steps {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.number-steps > li {
  position: relative;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  counter-increment: guide-step;
}

.number-steps > li + li { margin-top: 12px; }

.number-steps > li::before {
  content: counter(guide-step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.number-steps strong { color: var(--navy); }

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: #eef2f7; color: var(--navy); }
tr:last-child td { border-bottom: 0; }

.template {
  margin: 22px 0;
  padding: 22px;
  border: 1px dashed #8792a5;
  border-radius: 12px;
  background: #fbfcfe;
}

.template p { margin: 7px 0; }
.template strong { display: inline-block; min-width: 130px; color: var(--navy); }

figure {
  margin: 34px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

figure img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto;
  border-radius: 9px;
}

figcaption {
  padding: 10px 6px 2px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15,23,42,0.07);
}

.guide-card .card-label {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.guide-card h2 {
  margin: 10px 0 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.guide-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.guide-card a { margin-top: auto; font-weight: 850; }

.hub-intro {
  max-width: 800px;
  margin: 0;
  color: #3e4b61;
  font-size: 19px;
}

.how-to-use {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.how-to-use div {
  padding: 18px;
  border-radius: 12px;
  background: var(--soft);
}

.how-to-use strong { display: block; color: var(--navy); }
.how-to-use span { color: var(--muted); font-size: 14px; }

.related {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related h2 { margin-top: 0; font-size: 24px; }
.related ul { display: grid; gap: 8px; }

.quote-cta {
  margin-top: 34px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), #243657);
  color: var(--white);
}

.quote-cta h2 { margin: 0 0 8px; padding: 0; color: var(--white); font-size: 25px; }
.quote-cta p { margin: 0 0 18px; color: #d3dbea; }
.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  background: #f5a623;
  color: #241500;
  font-weight: 900;
  text-decoration: none;
}
.button-link:hover { background: #ffc05d; color: #241500; }

.site-footer {
  padding: 30px 20px;
  background: var(--navy);
  color: #b7c1d2;
  font-size: 14px;
}

.footer-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a { color: #e8edf5; }

@media (max-width: 860px) {
  body { font-size: 16px; word-break: normal; }
  .header-inner { width: min(100% - 28px, 1120px); }
  .site-nav a:not(.nav-cta) { display: none; }
  .guide-hero { padding: 52px 18px 68px; }
  .page-shell { width: min(100% - 24px, 1120px); margin-top: -26px; }
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .guide-grid { grid-template-columns: 1fr; }
  .how-to-use { grid-template-columns: 1fr; }
  .article, .hub-panel { padding: 26px 20px; border-radius: 14px; }
  .article h2 { margin-top: 44px; }
  .template strong { display: block; min-width: 0; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .guide-hero, .breadcrumb, .toc, .quote-cta, .site-footer, .related { display: none !important; }
  .page-shell { width: 100%; margin: 0; }
  .content-layout { display: block; }
  .article { padding: 0; border: 0; box-shadow: none; }
  .article h2 { break-after: avoid; margin-top: 28px; }
  .callout, .number-steps > li, .template { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
