:root {
  --ink: #183c34;
  --muted: #596760;
  --accent: #a87c3d;
  --paper: #f8f7f3;
  --line: #dfe4dd;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.05em; }
.container { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.06em; }
.brand-mark { display: grid; place-content: center; width: 42px; height: 42px; background: var(--ink); color: white; border-radius: 10px; font: 29px Georgia, serif; position: relative; }
.brand-mark span { color: #d9bf86; position: absolute; right: 5px; bottom: 1px; }
.brand small { display: block; font-size: 10px; letter-spacing: .025em; line-height: 1.3; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
nav a, nav button { display: flex; align-items: center; min-height: 44px; }
nav button { border: 0; background: transparent; color: var(--ink); padding: 0; gap: 5px; }
.nav-status { font-size: 9px; color: var(--muted); font-weight: 400; }
.hero { padding: 36px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.eyebrow > span, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
h1 { font-size: clamp(30px, 3.4vw, 43px); line-height: 1.3; margin: 12px 0 15px; }
h1 em { font-style: normal; color: #56725c; }
.intro-copy { max-width: 860px; font-size: 14px; color: var(--muted); }
.intro-copy p + p { margin-top: 9px; }
.programs { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 10px; }
h2 { font-size: 26px; line-height: 1.4; }
.connection-notice { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.program-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.program { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 16px 22px; }
.program + .program { border-top: 1px solid var(--line); }
.program-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #eaf0e9; color: var(--ink); font-size: 18px; font-weight: 750; align-self: start; }
.program h3 { font-size: 19px; line-height: 1.4; }
.program-content p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.program-action { text-align: right; }
.program-action button { border: 1px solid #dce2d9; border-radius: 6px; padding: 8px 12px; background: #f1f3ee; color: #64705f; font-size: 12px; line-height: 1.4; cursor: not-allowed; min-height: 44px; white-space: nowrap; opacity: 1; }
.program-action > span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.upcoming { margin-top: 16px; padding: 16px 20px; background: #eeeee8; border-radius: 10px; }
.upcoming-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upcoming h3 { font-size: 14px; }
.upcoming-heading > span { font-size: 10px; color: var(--muted); border-left: 1px solid #c8cfc3; padding-left: 10px; }
.upcoming ul { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; padding: 0; margin: 10px 0 0; }
.upcoming li { font-size: 12px; background: #f9faf7; border: 1px solid #dce1d6; padding: 4px 10px; border-radius: 5px; color: #596451; }
.site-footer { padding: 24px 0 20px; background: #f1f1eb; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-top strong { font-size: 18px; letter-spacing: -.05em; }
.footer-top p { font-size: 11px; color: var(--muted); }
.footer-domain { font-size: 12px; color: var(--muted); }
.business-info { margin-top: 15px; padding-top: 12px; border-top: 1px solid #d9ded4; display: flex; gap: 16px; align-items: center; }
.business-info h2 { font-size: 12px; letter-spacing: 0; }
.business-info p, .copyright { font-size: 11px; color: var(--muted); }
.copyright { margin-top: 8px; }
dialog { border: 1px solid var(--line); border-radius: 16px; width: min(420px, calc(100% - 32px)); padding: 28px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(15 31 24 / .55); }
.section-label { font-size: 10px; letter-spacing: .16em; color: #7c643e; margin-bottom: 8px; }
dialog p:not(.section-label) { font-size: 14px; color: var(--muted); margin-top: 16px; }
.dialog-close { margin-top: 22px; border: 0; border-radius: 6px; padding: 10px 24px; min-height: 44px; background: var(--ink); color: white; }
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 8px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand-mark { width: 30px; height: 32px; border-radius: 7px; font-size: 23px; }
  .brand-mark span { right: 3px; bottom: 0; }
  .brand small { display: block; font-size: 9px; }
  nav { gap: 12px; font-size: 11px; }
  .nav-status { display: none; }
  .hero { padding: 20px 0 18px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: clamp(20px, 5.28vw, 28.8px); margin: 9px 0 10px; line-height: 1.4; }
  .intro-copy { font-size: 13px; line-height: 1.6; }
  .intro-copy p + p { margin-top: 8px; }
  .programs { padding: 18px 0 20px; }
  h2 { font-size: 23px; }
  .section-heading { margin-bottom: 8px; }
  .connection-notice { font-size: 10px; line-height: 1.5; margin-bottom: 10px; }
  .program { grid-template-columns: 28px 1fr auto; gap: 6px 8px; padding: 12px 10px; align-items: start; }
  .program-number { width: 28px; height: 30px; font-size: 16px; border-radius: 6px; align-self: center; }
  .program-content { display: contents; }
  .program h3 { font-size: 15px; line-height: 1.4; align-self: center; }
  .program-content p { grid-column: 2 / -1; grid-row: 2; font-size: 12px; line-height: 1.5; margin: 0; }
  .program-action { grid-column: 3; grid-row: 1; }
  .program-action button { font-size: 10px; padding: 5px 7px; min-height: 44px; white-space: normal; max-width: 112px; }
  .program-action > span { font-size: 9px; margin-top: 1px; }
  .upcoming { padding: 13px; margin-top: 12px; }
  .upcoming h3 { font-size: 13px; }
  .upcoming-heading > span { font-size: 9px; }
  .upcoming ul { gap: 5px; margin-top: 8px; }
  .upcoming li { font-size: 11px; padding: 3px 8px; }
  .site-footer { padding: 18px 0 16px; }
  .footer-top strong { font-size: 16px; }
  .footer-domain { font-size: 11px; }
  .business-info { gap: 12px; margin-top: 12px; }
}
@media (max-width: 350px) {
  .brand { font-size: 15px; }
  nav { gap: 8px; font-size: 10px; }
  .program { column-gap: 6px; }
  .program h3 { font-size: 14px; }
  .program-action button { max-width: 98px; }
}

/* Compact introduction controls, forthcoming programs and contact channels. */
nav { gap: 8px; }
nav a, nav button { position: relative; isolation: isolate; gap: 5px; height: 44px; padding: 0 10px; border: 0; border-radius: 6px; white-space: nowrap; background: transparent; }
/* The visible button is 36px high within a 44px clickable control. */
nav a::before, nav button::before { content: ""; position: absolute; inset: 4px 0; border: 1px solid #b9c8bc; border-radius: 6px; z-index: -1; }
nav a:hover::before, nav button:hover::before { background: #eaf0e9; }
nav a:hover, nav button:hover { background: transparent; }
.upcoming li { display: flex; align-items: center; gap: 7px; }
.upcoming .program-number { width: 28px; height: 30px; font-size: 15px; border-radius: 6px; align-self: center; }
.upcoming-status { font-size: 9px; color: var(--muted); }
.contact { padding: 0 0 24px; }
.contact h2 { font-size: 21px; }
.contact p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.contact-links { display: flex; gap: 10px; margin-top: 12px; max-width: 440px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 12px; min-height: 48px; border: 1px solid #b9c8bc; border-radius: 7px; padding: 10px 14px; font-size: 14px; font-weight: 600; background: white; }
.contact-links a:hover { background: #eaf0e9; }
.contact small { display: block; font-size: 10px; color: var(--muted); margin-top: 8px; }
.business-info { align-items: start; }
.business-info dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 11px; color: var(--muted); }
.business-info dl > div { display: flex; gap: 7px; align-items: center; }
.business-info dt { font-weight: 600; }
.business-info dd { margin: 0; }
.business-info a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  nav { width: auto; flex-shrink: 0; justify-content: flex-end; gap: 6px; font-size: 11px; }
  nav a, nav button { height: 44px; padding: 0 7px; gap: 4px; }
  .header-inner { flex-wrap: nowrap; min-height: 62px; padding-block: 5px; gap: 6px; }
  .upcoming li { padding: 4px 7px; gap: 5px; }
  .contact { padding-bottom: 20px; }
  .contact h2 { font-size: 20px; }
  .contact p { font-size: 12px; }
  .contact-links a { font-size: 13px; }
  .business-info { display: block; }
  .business-info dl { margin-top: 8px; gap: 4px 14px; }
}

/* Brand promise and full program copy share the established green palette. */
.brand-badge {
  display: inline-flex;
  color: var(--ink);
  background: #eaf0e9;
  border: 1px solid #d5e1d2;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.program-guide { margin-top: 9px; font-size: 14px; color: var(--muted); }
.program-guide strong { display: block; color: var(--ink); font-weight: 600; }
.program-guide span { display: block; margin-top: 3px; }
.program { row-gap: 12px; }
.program-number { align-self: start; }
.program-content .program-subtitle { font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--ink); }
.program-description {
  grid-column: 2 / -1;
  background: #f3f6f0;
  border-left: 2px solid #789573;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
@media (max-width: 600px) {
  .brand-badge { font-size: 12px; padding: 5px 10px; }
  .program-guide { font-size: 13px; margin-top: 8px; }
  .program { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 10px; padding: 14px 10px; }
  .program-content { display: block; min-width: 0; }
  .program-content .program-subtitle { grid-column: auto; grid-row: auto; font-size: 13px; line-height: 1.5; margin-top: 5px; }
  .program-action { align-self: start; }
  .program-description { grid-column: 1 / -1; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
}


/* 모바일 5개 핵심 프로그램: 정보 밀도 개선, CTA 터치 영역은 유지 */
@media (max-width: 600px) {
  .program-list .program {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 7px;
    padding: 11px 10px;
    align-items: start;
  }
  .program-list .program-content { display: contents; }
  .program-list .program-number {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .program-list .program h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 14.5px;
    line-height: 1.3;
  }
  .program-list .program-action {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
  .program-list .program-content .program-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12.5px;
    line-height: 1.42;
    margin-top: 0;
  }
  .program-list .program-description {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 8px 10px;
    font-size: 13.3px;
    line-height: 1.5;
  }
  /* 무료 진단 버튼의 터치 영역(44px)은 절대 축소하지 않음 */
  .program-list .program-action button { min-height: 44px; }
}


/* 각 핵심 프로그램 소개로 이동하는 활성 링크.
   기존 비활성 진단 버튼을 변경하지 않고 별도 스타일로 구분 */
.program-action .program-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b5cbb9;
  border-radius: 7px;
  background: #eaf0e9;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.program-action .program-action-link:hover {
  background: #dae8da;
}
@media (max-width: 600px) {
  .program-list .program-action .program-action-link {
    font-size: 10px;
    padding: 6px 7px;
    max-width: 112px;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 350px) {
  .program-list .program-action .program-action-link {
    max-width: 98px;
  }
}
