:root {
  --ink: #192c28;
  --sub: #486055;
  --muted: #53695e;
  --accent: #155744;
  --accent-dark: #104535;
  --canvas: #fff;
  --light: #eef5ef;
  --light-hover: #e5efe7;
  --stroke: #d8e4db;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body:has(.filter-dialog[open]) { overflow: hidden; }
.guide { padding: 70px 0 72px; }
.guide :is(h1,h2,h3,p) { margin: 0; }
.guide a { color: inherit; text-decoration: none; }
.guide :is(button,input,select) { font: inherit; color: inherit; }
.guide button { cursor: pointer; }
.guide :is(a,button,input,select,[tabindex]):focus-visible {
  outline: 2px solid #1c7555;
  outline-offset: 4px;
}
.guide-wrap { width: min(100% - 96px, 1120px); margin-inline: auto; }
.guide-intro { padding: 51px 0 var(--sp-4); }
.guide-intro h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.13;
  letter-spacing: -.075em;
  font-weight: 800;
}
.guide-intro p { margin-top: 11px; color: var(--sub); font-size: clamp(.98rem, 1.65vw, 1.12rem); }
.guide-tools { display: flex; align-items: stretch; gap: 9px; margin-top: var(--sp-3); }
.guide-search {
  display: flex;
  align-items: center;
  min-height: 54px;
  flex: 1 1 520px;
  max-width: 520px;
  min-width: 0;
  gap: 12px;
  padding: 4px 5px 4px 17px;
  background: #f5f8f5;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.guide-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #15574423; }
.search-icon { display: block; flex: 0 0 15px; height: 15px; border: 2px solid var(--accent); border-radius: 50%; position: relative; margin-inline-end: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--accent); transform: rotate(45deg); bottom: -2px; right: -4px; }
.guide-search input { display: block; width: 100%; min-width: 0; border: 0; background: transparent; padding: 4px 0; outline: none; }
.guide .guide-search input:focus-visible { outline: none; }
.guide-search input::placeholder { color: var(--muted); opacity: 1; }
.guide .search-button, .quiet-button, .filter-trigger { min-height: 44px; padding: 5px 15px; border: 1px solid var(--stroke); background: white; border-radius: 9px; font-size: .91rem; font-weight: 700; }
.guide .search-button { flex: none; padding-inline: 16px; border-color: var(--accent); color: white; background: var(--accent); }
.guide .search-button:hover { background: var(--accent-dark); }
.guide .filter-trigger { display: flex; align-items: center; gap: 8px; }
.filter-trigger:hover, .quiet-button:hover:not(:disabled) { background: var(--light); }
.filter-trigger.is-active { background: var(--light); border-color: #95b7a3; color: var(--accent); }
.filter-chevron { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feature-section { margin-bottom: var(--sp-6); }
.guide .feature-card {
  display: grid;
  grid-template-columns: 43% minmax(0,1fr);
  color: white;
  background: #153c32;
  border-radius: 22px;
  overflow: hidden;
  min-height: 235px;
}
.feature-copy { padding: 29px 33px; align-self: center; }
.feature-label { color: #c4e4ce; font-size: .82rem; font-weight: 700; }
.feature-copy h2 { margin-top: 9px; font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.27; letter-spacing: -.052em; }
.feature-copy p { margin-top: 9px; color: #e0eee6; font-size: .94rem; }
.feature-action { display: inline-flex; gap: 9px; margin-top: 16px; font-size: .91rem; font-weight: 700; }
.feature-card:hover .feature-action { text-decoration: underline; text-underline-offset: 4px; }
.feature-photo { position: relative; min-height: 235px; min-width: 0; }
.feature-photo img { position: absolute; display: block; height: 100%; width: 100%; object-fit: cover; object-position: center 19%; }
.feature-photo::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, #153c32 0%, #153c3226 22%, transparent 56%); pointer-events: none; }
.guide-results { scroll-margin-top: 91px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 18px; }
.results-head h2 { font-size: clamp(1.45rem,3vw,2.08rem); line-height: 1.25; letter-spacing: -.055em; }
.results-head p { color: var(--muted); font-size: .9rem; font-weight: 650; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 19px; }
.guide .post-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--stroke); border-radius: 15px; overflow: hidden; background: #fff; }
.guide .post-card:hover { border-color: #a6bfae; box-shadow: 0 6px 18px #1a3c2810; }
.post-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--light); }
.post-copy { padding: 14px 17px 18px; }
.post-category { color: var(--accent); font-size: .8rem; line-height: 1.35; font-weight: 700; }
.post-title { padding-top: 4px; font-size: 1.12rem; line-height: 1.4; letter-spacing: -.035em; }
.post-card:hover .post-title { text-decoration: underline; text-underline-offset: 4px; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.pager select { min-height: 44px; border-radius: 9px; border: 1px solid var(--stroke); background: white; padding: 5px 10px; max-width: 100%; }
.quiet-button:disabled { cursor: default; opacity: .5; }
.search-empty { padding: var(--sp-4); border: 1px solid var(--stroke); border-radius: 14px; background: var(--light); }
.search-empty p { margin: 7px 0 17px; color: var(--sub); }
.filter-dialog {
  width: min(calc(100% - 28px), 585px);
  max-height: min(86dvh, 700px);
  max-width: none;
  padding: 0 0 13px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: 0 15px 55px #163a2b2e;
  color: var(--ink);
  background: white;
  overflow: auto;
  overscroll-behavior: contain;
}
.filter-dialog::backdrop { background: #172b2761; }
.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  background: white;
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 1;
}
.filter-head h2 { font-size: 1.38rem; letter-spacing: -.04em; }
.filter-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 8px; padding: 9px 12px 0; }
.guide .filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  gap: 5px;
  border: 1px solid transparent;
  text-align: left;
  border-radius: 8px;
  background: white;
  font-size: .9rem;
}
.filter-option:hover { background: #f5f8f5; }
.guide .filter-option[aria-pressed="true"] { background: var(--light); border-color: #d1e3d5; font-weight: 720; color: var(--accent); }
.filter-number { color: var(--muted); font-size: .78rem; flex: none; }
#ksap-footer-area .ksap-btn-inquiry { display: inline-block; text-decoration: none; }
@media (min-width: 960px) {
  .guide-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: var(--sp-4);
    align-items: center;
  }
  .guide-intro > p { grid-area: 2 / 1; }
  .guide-intro > .guide-tools { grid-area: 1 / 2; margin-top: 0; }
}
@media (max-width: 920px) {
  .guide-wrap { width: calc(100% - 56px); }
  .feature-copy { padding: 24px; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .guide { padding-bottom: 46px; }
  .guide-wrap { width: calc(100% - 34px); }
  .guide-intro { padding: 27px 0 22px; }
  .guide-intro p { margin-top: 6px; }
  .guide-tools { gap: 7px; margin-top: 17px; }
  .guide-search { gap: 7px; padding-inline-start: 11px; }
  .guide .search-button { padding-inline: 10px; }
  .guide .filter-trigger { padding-inline: 11px; }
  .feature-section { margin-bottom: 28px; }
  .guide .feature-card { position: relative; display: flex; align-items: end; min-height: 205px; isolation: isolate; }
  .feature-copy { z-index: 0; align-self: end; padding: 15px 17px; }
  .feature-copy h2 { margin-top: 5px; font-size: 1.48rem; }
  .feature-copy p { display: none; }
  .feature-action { margin-top: 8px; }
  .feature-photo { position: absolute; inset: 0; min-height: 0; z-index: -1; }
  .feature-photo img { object-position: center 40%; }
  .feature-photo::after { background: linear-gradient(0deg, #133429 2%, #133429cd 27%, #143a2c52 67%, #143a2c10 100%); }
  .results-head { padding-bottom: 9px; }
  .cards { display: block; border-top: 1px solid var(--stroke); }
  .guide .post-card { display: flex; flex-direction: row; gap: 13px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--stroke); border-radius: 0; }
  .guide .post-card:hover { box-shadow: none; }
  .post-photo { width: clamp(78px,26vw,116px); flex: none; aspect-ratio: 4/3; border-radius: 8px; }
  .post-copy { padding: 0; min-width: 0; }
  .post-title { font-size: 1rem; padding-top: 3px; }
  .pager { margin-top: 21px; }
  .filter-dialog { margin: auto auto 0; width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 350px) {
  .guide-wrap { width: calc(100% - 28px); }
  .guide-search input { font-size: .88rem; }
  .guide .filter-option { font-size: .82rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .post-card, .search-button, .quiet-button, .filter-trigger { transition: background-color .15s, border-color .15s, box-shadow .15s; }
}
