:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --line: #dbe6f2;
  --line-strong: #c9d8ea;
  --text: #14325d;
  --muted: #657892;
  --blue: #1f65b8;
  --blue-deep: #174f97;
  --blue-soft: #dfeeff;
  --navy: #0f3e79;
  --green: #36aa7b;
  --peach: #ef9a5a;
  --lavender: #8b77e8;
  --shadow: 0 16px 32px rgba(34, 69, 117, 0.08);
  --shadow-soft: 0 8px 20px rgba(34, 69, 117, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-shell { min-height: 100vh; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; color: #6f87a5; letter-spacing: .08em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dfe7f1;
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  flex: none;
}
.brand-logo {
  width: 46px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2586ed, #1256af);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(27, 94, 171, 0.18);
}
.brand-logo span {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
}
.brand-logo span:nth-child(1) { top: 8px; }
.brand-logo span:nth-child(2) { top: 15px; width: 65%; }
.brand-logo span:nth-child(3) { top: 22px; width: 82%; }
.brand-copy strong { display: block; font-size: 15px; font-weight: 900; }
.brand-copy small { display: block; font-size: 12px; color: #4a678b; font-weight: 700; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.main-nav-item {
  border: 0;
  background: transparent;
  color: #213d66;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
.main-nav-item:hover,
.main-nav-item.active {
  background: #e6f0fb;
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #415f86;
  font-size: 20px;
}
.login-button {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(145deg, #1a5aa8, #0f4d93);
  color: #fff;
  font-weight: 800;
}

.page-wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  background: #dceefe;
  border: 1px solid #c8ddf3;
  border-radius: 34px;
  padding: 42px 44px 32px;
}
.hero-left { padding-top: 14px; }
.hero-pill {
  display: inline-block;
  background: rgba(255,255,255,.6);
  color: #5c7aa0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}
.hero-left h1 {
  margin: 18px 0 16px;
  font-size: 66px;
  line-height: 1.03;
  letter-spacing: -2.5px;
  color: #143462;
}
.hero-left h1 em { color: #2b6ecc; font-style: normal; }
.hero-left p {
  margin: 0;
  font-size: 28px;
  line-height: 1.55;
  color: #546d8f;
}
.hero-point-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  color: #245b9e;
  font-size: 18px;
  font-weight: 800;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  min-height: 340px;
}
.hero-card {
  position: absolute;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-card-back {
  width: 230px;
  height: 280px;
  background: #ffd5b3;
  right: 170px;
  top: 48px;
  transform: rotate(-10deg);
}
.hero-card-front {
  width: 280px;
  height: 320px;
  background: linear-gradient(145deg, #2d6fbe, #124e99);
  right: 90px;
  top: 18px;
  transform: rotate(5deg);
}
.hero-line,
.hero-check { position: absolute; display: block; }
.hero-line { height: 12px; border-radius: 999px; background: rgba(255,255,255,.65); left: 76px; }
.hero-line.w1 { top: 66px; width: 130px; }
.hero-line.w2 { top: 110px; width: 150px; }
.hero-line.w3 { top: 154px; width: 112px; }
.hero-check {
  left: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7ad38c;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.2);
}
.hero-check.c1 { top: 56px; }
.hero-check.c2 { top: 100px; background: #64c6ff; }
.hero-check.c3 { top: 144px; background: #f2b15d; }
.hero-bubble {
  position: absolute;
  right: 12px;
  top: 32px;
  width: 122px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #4580be;
  letter-spacing: 6px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.hero-bubble::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -12px;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.hero-mini-card {
  position: absolute;
  left: 30px;
  top: 140px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-soft);
}
.hero-leaf {
  position: absolute;
  left: 50px;
  bottom: 60px;
  width: 70px;
  height: 96px;
}
.hero-leaf::before,
.hero-leaf::after {
  content: "";
  position: absolute;
  background: linear-gradient(145deg, #7bd692, #2ba969);
  border-radius: 100px 100px 0 100px;
}
.hero-leaf::before {
  width: 34px;
  height: 72px;
  left: 0;
  bottom: 0;
  transform: rotate(-16deg);
}
.hero-leaf::after {
  width: 34px;
  height: 62px;
  right: 0;
  bottom: 8px;
  transform: scaleX(-1) rotate(-12deg);
}
.hero-lens {
  position: absolute;
  left: 150px;
  bottom: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 18px solid #4d89ca;
  background: rgba(255,255,255,.22);
  box-shadow: 0 10px 18px rgba(31,79,139,.12);
}
.hero-lens::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 86px;
  border-radius: 999px;
  background: #e59c4f;
  right: -22px;
  bottom: -54px;
  transform: rotate(35deg);
}
.hero-robot {
  position: absolute;
  right: 58px;
  bottom: 8px;
  width: 160px;
  height: 208px;
}
.robot-antenna {
  position: absolute;
  top: 2px;
  left: 76px;
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: #e2a848;
}
.robot-antenna::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: -4px;
  top: -12px;
  border-radius: 50%;
  background: #ffd16a;
}
.hero-robot-head {
  position: absolute;
  top: 24px;
  left: 18px;
  width: 122px;
  height: 92px;
  border-radius: 32px;
  background: linear-gradient(145deg, #9fd1ff, #61acef);
  border: 10px solid #f1f8ff;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.hero-robot-head i,
.ask-bot-head i,
.detail-bot-avatar i,
.drawer-robot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #143d7a;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
}
.hero-robot-body {
  position: absolute;
  left: 38px;
  top: 110px;
  width: 84px;
  height: 82px;
  border-radius: 22px;
  background: #eff7ff;
  border: 10px solid #f9fcff;
  box-shadow: var(--shadow-soft);
}
.hero-robot-body::before,
.ask-bot-body::before {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  color: #1f65b8;
}
.hero-robot-arm {
  position: absolute;
  top: 128px;
  width: 36px;
  height: 12px;
  border-radius: 999px;
  background: #7cb8f0;
}
.hero-robot-arm.left { left: 0; transform: rotate(35deg); }
.hero-robot-arm.right { right: 0; transform: rotate(-35deg); }

.hero-search-panel {
  margin-top: 18px;
  background: transparent;
}
.main-search {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 88px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 0 16px 0 28px;
}
.search-mark { font-size: 30px; color: #6985a8; }
.main-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 26px;
  color: var(--text);
}
.main-search input::placeholder { color: #8ca0b8; }
.main-search button {
  height: 60px;
  border-radius: 999px;
  border: 0;
  padding: 0 32px;
  background: linear-gradient(145deg, #2067ba, #0e4f98);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.keyword-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 6px 0;
}
.keyword-row strong { font-size: 16px; color: #29486d; }
.keyword-chip {
  border: 1px solid #d7e3f0;
  background: #fff;
  color: #2a5e9f;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.shortcut-card {
  position: relative;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  padding: 36px 24px 34px;
  min-height: 310px;
  background: #fff;
}
.shortcut-card.blue { background: #eaf3fd; }
.shortcut-card.peach { background: #fff0e4; }
.shortcut-card.green { background: #e8f6ef; }
.shortcut-card.purple { background: #efeafb; }
.shortcut-icon {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  font-size: 42px;
  margin: 0 auto 20px;
}
.shortcut-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.shortcut-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #596d8a;
}
.circle-arrow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2a76d0, #1359a6);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 18px rgba(24, 97, 177, 0.18);
}

.home-section { margin-top: 42px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.section-heading h2 { margin: 0; font-size: 32px; letter-spacing: -1px; }
.link-button {
  border: 0;
  background: transparent;
  color: #516d90;
  font-size: 18px;
  font-weight: 800;
}
.popular-tile-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
}
.popular-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 20px 12px 18px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #20416a;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}
.popular-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #edf5ff;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  margin-top: 36px;
}
.notice-card-panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 28px;
  padding: 24px 24px 14px;
  box-shadow: var(--shadow-soft);
}
.section-heading.compact h2 { font-size: 24px; }
.notice-home-list { display: grid; gap: 8px; }
.notice-home-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-top: 1px solid #ecf1f7;
}
.notice-home-row strong { font-size: 17px; color: #304b6e; }
.notice-home-row span:last-child { font-size: 16px; color: #8293a9; }
.notice-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #2870c3;
  font-size: 14px;
  font-weight: 800;
}
.notice-badge.update { background: #fff0e6; color: #d97c35; }

.ask-bot-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 32px 30px;
  color: #fff;
  background: linear-gradient(145deg, #164f97, #0e3e7c);
  box-shadow: 0 18px 30px rgba(14, 59, 122, 0.18);
}
.ask-bot-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.ask-bot-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 800;
}
.ask-bot-card h3 {
  margin: 18px 0 14px;
  font-size: 26px;
  line-height: 1.25;
}
.ask-bot-card p { margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: #dce9fa; max-width: 72%; }
.ask-bot-button {
  border: 0;
  background: #fff;
  color: #154a8d;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
}
.ask-bot-robot {
  position: absolute;
  right: 24px;
  bottom: 8px;
  width: 150px;
  height: 180px;
}
.ask-bot-head,
.detail-bot-avatar {
  position: relative;
  width: 96px;
  height: 78px;
  margin-left: auto;
  border-radius: 28px;
  background: linear-gradient(145deg, #a5d4ff, #67adef);
  border: 8px solid rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ask-bot-body {
  position: absolute;
  right: 18px;
  top: 82px;
  width: 74px;
  height: 70px;
  border-radius: 20px;
  background: #f4f9ff;
  border: 8px solid rgba(255,255,255,.8);
}

.subpage-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
}
.left-menu-rail { align-self: start; position: sticky; top: 108px; }
.left-menu-group {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.left-menu-group h3 { margin: 0 0 14px; font-size: 18px; }
.left-menu-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 14px;
  padding: 13px 14px;
  color: #405a7b;
  font-size: 16px;
  font-weight: 700;
}
.left-menu-link:hover,
.left-menu-link.active { background: #e6f0fb; color: var(--blue); }

.subpage-content { min-width: 0; }
.breadcrumbs {
  margin-bottom: 18px;
  color: #7f90a7;
  font-size: 15px;
  font-weight: 700;
}
.subpage-head,
.detail-page-head,
.simple-page-head {
  margin-bottom: 18px;
}
.subpage-head h1,
.detail-page-head h1,
.simple-page-head h1 {
  margin: 0 0 8px;
  font-size: 54px;
  letter-spacing: -2px;
}
.subpage-head p,
.simple-page-head p {
  margin: 0;
  font-size: 20px;
  color: #657892;
  line-height: 1.6;
}
.rule-card-list { display: grid; gap: 16px; }
.rule-summary-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.rule-summary-type { color: #7990ad; font-size: 13px; font-weight: 800; }
.rule-summary-card h3 { margin: 8px 0 10px; font-size: 28px; }
.rule-summary-card p { margin: 0; font-size: 17px; line-height: 1.6; color: #66798f; }
.rule-summary-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: #7f91a7; font-size: 15px; }
.mini-action,
.primary-button,
.outline-button,
.doc-download,
.modal-close {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.mini-action,
.primary-button {
  height: 46px;
  padding: 0 18px;
  background: linear-gradient(145deg, #1e66ba, #0f5197);
  color: #fff;
}
.outline-button {
  height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #24456d;
}

.detail-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.detail-head-actions { display: flex; gap: 12px; }
.tab-pills {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.tab-pill {
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: #e8eef5;
  color: #4a607f;
  font-size: 20px;
  font-weight: 800;
}
.tab-pill.active {
  background: linear-gradient(145deg, #2069bc, #0f5097);
  color: #fff;
}
.detail-meta-line {
  margin: 6px 0 18px;
  color: #7c90a9;
  font-size: 16px;
  font-weight: 700;
}
.summary-banner {
  background: #e7f1fb;
  border-radius: 18px;
  padding: 20px 22px;
  color: #40658f;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}
.detail-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.content-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.content-card h2 {
  margin: 0 0 18px;
  font-size: 36px;
  letter-spacing: -1px;
  color: #184882;
}
.rule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}
.rule-table th,
.rule-table td {
  border: 1px solid #dbe7f2;
  padding: 18px 14px;
  text-align: center;
  font-size: 18px;
}
.rule-table th {
  background: #eef5fc;
  color: #456587;
  font-weight: 800;
}
.card-note { margin: 12px 0 0; font-size: 15px; color: #72859f; }
.roles-table {
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  overflow: hidden;
}
.roles-row {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
}
.roles-row + .roles-row { border-top: 1px solid #dbe7f2; }
.roles-side {
  background: #dcebfb;
  color: #2e5f93;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 10px;
  font-size: 18px;
}
.roles-main { padding: 18px 20px; }
.roles-main strong { display: block; font-size: 24px; margin-bottom: 8px; color: #214875; }
.roles-main ul { margin: 0; padding-left: 20px; color: #66798f; font-size: 17px; line-height: 1.7; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.step-box {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 18px;
  min-height: 130px;
  padding: 18px;
}
.step-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.step-box strong { display: block; font-size: 18px; color: #34506f; line-height: 1.6; }
.bullet-list { margin: 0; padding-left: 24px; font-size: 18px; color: #66798f; line-height: 1.8; }

.detail-documents { margin-top: 14px; }
.detail-documents h2 { margin: 0 0 18px; font-size: 34px; }
.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.doc-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
}
.doc-card-icon,
.resource-file-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff1e6;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.doc-card strong {
  display: block;
  min-height: 58px;
  font-size: 18px;
  line-height: 1.45;
}
.doc-card span,
.doc-card small,
.resource-card p,
.resource-card small { display: block; color: #7689a1; }
.doc-card span,
.resource-card p { font-size: 16px; margin-top: 8px; }
.doc-card small,
.resource-card small { font-size: 15px; margin-top: 6px; }
.doc-download {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  background: #fff;
  color: #2661a7;
  border: 1px solid var(--line-strong);
}
.detail-bot-banner {
  margin-top: 28px;
  border-radius: 28px;
  padding: 26px 28px;
  background: linear-gradient(145deg, #184f96, #0e3f7d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.detail-bot-info { display: flex; align-items: center; gap: 18px; }
.detail-bot-avatar {
  width: 74px;
  height: 60px;
  margin-left: 0;
  border-width: 6px;
}
.detail-bot-info strong { display: block; font-size: 26px; margin-bottom: 6px; }
.detail-bot-info p { margin: 0; color: #d7e8fa; font-size: 17px; }
.detail-bot-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px;
  min-width: 460px;
}
.detail-bot-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #fff;
  color: #637994;
  font-size: 16px;
}
.detail-bot-form button {
  height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: #fff;
  color: #174b8d;
  font-weight: 900;
}

.simple-page-head { margin-bottom: 22px; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resource-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.resource-card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.4; }
.notice-page-list { display: grid; gap: 14px; }
.notice-page-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.notice-page-row strong { display: block; font-size: 22px; margin-bottom: 4px; }
.notice-page-row p { margin: 0; font-size: 15px; color: #788ca6; }
.notice-page-row span:last-child { font-size: 16px; color: #8295ac; }
.empty-view {
  text-align: center;
  padding: 80px 20px;
}
.empty-view h1 { margin: 0 0 12px; font-size: 42px; }
.empty-view p { margin: 0 0 24px; color: #7386a0; font-size: 18px; }

.site-footer {
  border-top: 1px solid #dfe7f1;
  background: rgba(255,255,255,.55);
}
.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  color: #7f91a8;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 76, 0.26);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 40;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.search-modal {
  position: fixed;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  width: min(840px, calc(100% - 32px));
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(18, 42, 76, 0.22);
  padding: 28px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
.search-modal.show { opacity: 1; pointer-events: auto; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.modal-head h2 { margin: 8px 0 0; font-size: 34px; }
.modal-close {
  width: 40px;
  height: 40px;
  font-size: 28px;
  background: #edf4fb;
  color: #4a6687;
}
.modal-search-box {
  height: 74px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}
.modal-search-box span { font-size: 26px; color: #58769a; }
.modal-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 22px;
}
.search-results { margin-top: 18px; display: grid; gap: 10px; }
.search-result {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
}
.search-result strong { display: block; font-size: 22px; }
.search-result p { margin: 8px 0 0; font-size: 16px; color: #6f8199; line-height: 1.6; }
.result-meta { display: block; margin-top: 8px; color: #8ca0b7; font-size: 14px; }
.search-empty { padding: 22px 6px; color: #73859f; font-size: 17px; }

.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100vh;
  background: #f7fbff;
  box-shadow: -18px 0 50px rgba(21, 48, 84, 0.18);
  z-index: 55;
  transform: translateX(105%);
  transition: .24s ease;
  display: flex;
  flex-direction: column;
}
.ai-drawer.show { transform: translateX(0); }
.ai-drawer-head {
  padding: 20px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-head-copy { display: flex; align-items: center; gap: 14px; }
.ai-head-copy h2 { margin: 6px 0 0; font-size: 26px; }
.drawer-robot {
  width: 54px;
  height: 44px;
  border-radius: 18px;
  background: linear-gradient(145deg, #96cdfd, #5ca8ee);
  border: 8px solid #eaf5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ai-notice {
  margin: 16px 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff4d3;
  color: #705d25;
  font-size: 14px;
  line-height: 1.6;
}
.quick-questions {
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  overflow-x: auto;
}
.quick-questions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  color: #476381;
  font-size: 14px;
}
.chat-log {
  flex: 1;
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.message.user { flex-direction: row-reverse; }
.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #e7f2ff;
  color: #1758a1;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex: none;
}
.message.user .message-avatar { background: #1d6cc0; color: #fff; }
.bubble {
  max-width: 78%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  padding: 13px 15px;
  color: #4f6481;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.message.user .bubble {
  background: #1d6cc0;
  color: #fff;
  border-color: #1d6cc0;
  border-radius: 18px 18px 6px 18px;
}
.chat-input {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  gap: 10px;
}
.chat-input input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 0 14px;
  outline: 0;
}
.chat-input button {
  flex: none;
  height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: linear-gradient(145deg, #2067ba, #0e4f98);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .hero-left h1 { font-size: 56px; }
  .hero-left p { font-size: 24px; }
  .popular-tile-grid { grid-template-columns: repeat(5, 1fr); }
  .doc-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .main-nav { overflow-x: auto; justify-content: flex-start; }
  .main-nav-item { flex: none; }
  .hero-panel { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
  .home-bottom-grid,
  .detail-split-grid,
  .subpage-layout { grid-template-columns: 1fr; }
  .left-menu-rail { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .detail-bot-banner { flex-direction: column; align-items: stretch; }
  .detail-bot-form { min-width: 0; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-inner,
  .page-wrap,
  .footer-inner { width: calc(100% - 24px); }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; padding-bottom: 4px; }
  .hero-panel { padding: 24px; border-radius: 26px; }
  .hero-left h1 { font-size: 42px; }
  .hero-left p { font-size: 18px; }
  .hero-point-row { font-size: 15px; gap: 14px; }
  .hero-visual { min-height: 280px; }
  .hero-card-back { right: 120px; width: 180px; height: 220px; }
  .hero-card-front { right: 46px; width: 220px; height: 260px; }
  .hero-bubble { width: 100px; height: 64px; }
  .hero-robot { right: 10px; transform: scale(.84); transform-origin: bottom right; }
  .hero-lens { transform: scale(.8); transform-origin: bottom left; }
  .main-search { height: 70px; padding: 0 10px 0 18px; }
  .main-search input { font-size: 18px; }
  .main-search button { height: 50px; padding: 0 20px; font-size: 18px; }
  .keyword-chip { font-size: 14px; padding: 10px 14px; }
  .shortcut-grid,
  .resources-grid { grid-template-columns: 1fr; }
  .shortcut-card { min-height: 250px; }
  .popular-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .home-bottom-grid { grid-template-columns: 1fr; }
  .notice-home-row,
  .notice-page-row { grid-template-columns: auto 1fr; }
  .notice-home-row span:last-child,
  .notice-page-row span:last-child { display: none; }
  .subpage-head h1,
  .detail-page-head h1,
  .simple-page-head h1 { font-size: 38px; }
  .rule-summary-card,
  .detail-page-head { display: block; }
  .rule-summary-meta,
  .detail-head-actions { margin-top: 14px; align-items: flex-start; }
  .content-card h2,
  .detail-documents h2 { font-size: 26px; }
  .rule-table th,
  .rule-table td,
  .bullet-list,
  .roles-main ul,
  .step-box strong,
  .doc-card strong,
  .resource-card h3 { font-size: 15px; }
  .roles-row { grid-template-columns: 96px 1fr; }
  .doc-card-grid { grid-template-columns: 1fr; }
  .detail-bot-info { align-items: flex-start; }
  .detail-bot-info strong { font-size: 21px; }
  .detail-bot-form { flex-direction: column; border-radius: 22px; }
  .detail-bot-form input,
  .detail-bot-form button { width: 100%; }
  .footer-inner { display: block; font-size: 13px; line-height: 1.8; }
  .footer-inner span { display: block; }
  .search-modal { top: 24px; padding: 22px; }
  .modal-head h2 { font-size: 28px; }
}

/* v2.1 — compact typography and denser detail pages */
body { font-size: 14px; }
.main-nav-item { font-size: 13px; padding: 10px 12px; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { font-size: 11px; }
.login-button { height: 40px; padding: 0 20px; font-size: 13px; }
.icon-button { width: 40px; height: 40px; font-size: 18px; }

.hero-panel { padding: 34px 38px 28px; }
.hero-pill { font-size: 12px; padding: 8px 13px; }
.hero-left h1 { font-size: 52px; line-height: 1.06; letter-spacing: -2px; }
.hero-left p { font-size: 20px; line-height: 1.6; }
.hero-point-row { margin-top: 18px; font-size: 14px; gap: 18px; }

.main-search { height: 72px; }
.search-mark { font-size: 24px; }
.main-search input { font-size: 20px; }
.main-search button { height: 50px; padding: 0 26px; font-size: 17px; }
.keyword-row strong { font-size: 14px; }
.keyword-chip { padding: 9px 14px; font-size: 13px; }

.shortcut-card { min-height: 270px; padding: 30px 22px 30px; }
.shortcut-icon { width: 70px; height: 70px; font-size: 34px; margin-bottom: 16px; }
.shortcut-card h3 { font-size: 18px; margin-bottom: 12px; }
.shortcut-card p { font-size: 14px; line-height: 1.65; }
.circle-arrow { width: 44px; height: 44px; font-size: 20px; bottom: 20px; }

.section-heading h2 { font-size: 25px; }
.link-button { font-size: 14px; }
.popular-tile { min-height: 108px; font-size: 13px; padding: 16px 10px; }
.popular-tile-icon { width: 44px; height: 44px; font-size: 24px; }
.section-heading.compact h2 { font-size: 21px; }
.notice-home-row strong { font-size: 14px; }
.notice-home-row span:last-child { font-size: 13px; }
.notice-badge { font-size: 11px; padding: 6px 10px; }
.ask-bot-card h3 { font-size: 22px; }
.ask-bot-card p { font-size: 14px; }
.ask-bot-button { height: 48px; font-size: 14px; }

.left-menu-group { padding: 18px; }
.left-menu-group h3 { font-size: 15px; }
.left-menu-link { font-size: 13px; padding: 10px 12px; }
.breadcrumbs { font-size: 12px; margin-bottom: 14px; }
.subpage-head h1,
.detail-page-head h1,
.simple-page-head h1 { font-size: 38px; letter-spacing: -1.3px; }
.subpage-head p,
.simple-page-head p { font-size: 15px; }
.rule-summary-card { padding: 20px 22px; }
.rule-summary-type { font-size: 11px; }
.rule-summary-card h3 { font-size: 21px; margin: 6px 0 8px; }
.rule-summary-card p { font-size: 14px; }
.rule-summary-meta { font-size: 12px; }
.mini-action { height: 40px; font-size: 12px; }

.outline-button { height: 44px; padding: 0 18px; font-size: 12px; }
.tab-pills { margin-top: 14px; }
.tab-pill { height: 44px; padding: 0 18px; font-size: 14px; }
.detail-meta-line { font-size: 12px; margin-bottom: 14px; }
.summary-banner { padding: 16px 18px; font-size: 14px; line-height: 1.6; }
.content-card { padding: 22px; }
.content-card h2 { font-size: 24px; margin-bottom: 15px; letter-spacing: -.6px; }
.rule-table th,
.rule-table td { padding: 14px 12px; font-size: 13px; }
.card-note { font-size: 12px; }
.roles-row { grid-template-columns: 116px minmax(0, 1fr); }
.roles-side { font-size: 13px; padding: 14px 8px; }
.roles-main { padding: 14px 16px; }
.roles-main strong { font-size: 17px; }
.roles-main ul { font-size: 13px; line-height: 1.65; }
.step-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.step-box { min-height: 104px; padding: 15px; }
.step-no { font-size: 11px; }
.step-box strong { font-size: 14px; }
.bullet-list { font-size: 14px; line-height: 1.75; }

.detail-documents h2 { font-size: 24px; }
.doc-card-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.doc-card { padding: 17px 15px; }
.doc-card-icon,
.resource-file-icon { width: 44px; height: 44px; font-size: 23px; }
.doc-card strong { min-height: 44px; font-size: 14px; }
.doc-card span,
.resource-card p { font-size: 12px; }
.doc-card small,
.resource-card small { font-size: 11px; }
.doc-download { height: 38px; font-size: 12px; }
.related-empty { border: 1px dashed var(--line-strong); background: rgba(255,255,255,.5); border-radius: 18px; padding: 18px; color: #7689a1; font-size: 13px; }

.detail-bot-banner { padding: 22px 24px; }
.detail-bot-info strong { font-size: 20px; }
.detail-bot-info p { font-size: 13px; }
.detail-bot-form { min-width: 400px; }
.detail-bot-form input { height: 46px; font-size: 13px; }
.detail-bot-form button { height: 46px; font-size: 13px; }

.resource-card h3 { font-size: 18px; }
.notice-page-row strong { font-size: 18px; }
.notice-page-row p { font-size: 13px; }
.notice-page-row span:last-child { font-size: 13px; }
.footer-inner { font-size: 12px; }

@media (max-width: 1280px) {
  .hero-left h1 { font-size: 48px; }
  .hero-left p { font-size: 18px; }
}

@media (max-width: 820px) {
  .hero-left h1 { font-size: 36px; }
  .hero-left p { font-size: 16px; }
  .main-search input { font-size: 16px; }
  .subpage-head h1,
  .detail-page-head h1,
  .simple-page-head h1 { font-size: 32px; }
  .content-card h2,
  .detail-documents h2 { font-size: 22px; }
  .detail-bot-form { min-width: 0; }
}

/* v2.2 - 홈 바로가기 카드 화살표 정렬 수정 */
.shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 20px;
  min-height: 270px;
}
.shortcut-card p {
  flex: 0 0 auto;
  margin-bottom: 18px;
}
.circle-arrow {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin-top: auto;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

@media (max-width: 820px) {
  .shortcut-card {
    min-height: 240px;
    padding-bottom: 18px;
  }
}
