@charset "utf-8";
/* ==========================================================================
   CHIR chir-layout.css — ref/figma-html/chir-web/assets/css/style.css 분할(U-90 §3.1·§3.2)
   공통-레이아웃: 블록 3·5·6(page-head·breadcrumb)·17 + L406 + 블록 18의 헤더·푸터·그리드·섹션 반응형
   원본 줄을 순서대로 옮기기만 했다(FE-2 — 값·셀렉터 불변). 반응형은 원본 @media 를 파일마다 다시 연다.
   셀렉터 목록이 여러 파일에 걸친 원본 줄(703·721)은 셀렉터만 나눴다. 보정(R2·R4)은 chir-corrections.css.
   ========================================================================== */
/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
.section--tight { padding-block: 44px; }
.section--tint { background: linear-gradient(180deg, #F7FCFE 0%, #FFFFFF 100%); }
.stack > * + * { margin-top: var(--gap, 16px); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --------------------------------------------------------------------------
   5. Header / GNB
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 80px; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 46px; flex: 0 0 auto; object-fit: contain;
}
.brand__text { display: grid; gap: 3px; }
.brand__org {
  /* 시안과 동일하게 아랫줄(지역의료혁신연구 지원센터) 폭에 맞춘 양끝 맞춤.
     word-break:keep-all 때문에 text-align:justify 가 한글에 적용되지 않으므로
     글자를 개별 요소로 분리해 flex 로 균등 배분한다. */
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 500; letter-spacing: normal; line-height: 1.2;
  color: var(--logo-navy);
  padding-bottom: 3px; border-bottom: 1px solid rgba(31,56,100,.35);
}
.brand__org > i { font-style: normal; }
.brand__name { font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--logo-navy); }

.gnb { margin-inline: auto; }
.gnb__list { display: flex; gap: 40px; }
.gnb__link {
  display: block; padding: 8px 2px;
  font-size: var(--fs-body); font-weight: 500; color: var(--ink); text-decoration: none;
}
.gnb__link:hover { color: var(--link); text-decoration: none; }
.gnb__link[aria-current="page"] { color: var(--link); font-weight: 700; }

.auth { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.auth__login { font-size: 15px; font-weight: 500; color: var(--ink); }
.btn-join {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding-inline: 24px; border-radius: var(--pill);
  background: var(--cta); color: var(--white); font-size: 15px; font-weight: 700;
}
.btn-join:hover { background: #12b3d6; text-decoration: none; }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border-radius: var(--r-xs); }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); }
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(1,22,50,.45);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0; width: min(88vw, 340px);
  background: var(--white); padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .24s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer[data-open="true"] .drawer__panel { transform: none; }
.drawer__close { align-self: flex-end; width: 44px; height: 44px; font-size: 20px; color: var(--navy); }
.drawer__link {
  display: block; padding: 14px 8px; font-size: 17px; font-weight: 600;
  color: var(--navy); border-bottom: 1px solid var(--line);
}
.drawer__link:hover { text-decoration: none; color: var(--link); }
.drawer__auth { display: flex; gap: 10px; margin-top: 16px; }
.drawer__auth > * { flex: 1; justify-content: center; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding-inline: 20px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); color: var(--body-sub); font-weight: 600; font-size: 15px;
}

/* --------------------------------------------------------------------------
   6. Page header band / breadcrumb / anchor tabs
   -------------------------------------------------------------------------- */
.page-head { background: var(--tint); padding-block: 44px 40px; }
.page-head__inner { display: grid; gap: 10px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body-sub); }
.breadcrumb a { color: var(--body-sub); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.org-chip__ico.is-missing { background: rgba(255,255,255,.2); }
/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--footer-bg); color: var(--white); padding-block: 40px 28px; margin-top: 8px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__name { font-size: 17px; font-weight: 700; line-height: 1.6; }
.footer__addr { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.6; color: var(--footer-addr); white-space: pre-line; }
.footer__orgs h3 { font-size: var(--fs-sm); font-weight: 500; color: rgba(255,255,255,.9); margin-bottom: 10px; }
.org-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.org-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-xs);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
}
.org-chip:hover { text-decoration: none; background: rgba(255,255,255,.14); }
.org-chip__ico { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--white); overflow: hidden; }
.org-chip__ico img { width: 20px; height: 20px; object-fit: contain; }
.org-chip__txt { display: grid; gap: 2px; min-width: 0; }
.org-chip__name { font-size: var(--fs-xs); font-weight: 600; color: var(--white); }
.org-chip__url { font-size: 10px; color: var(--footer-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--footer-line);
}
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 13px; font-weight: 500; color: var(--footer-link); }
.footer__copy { font-size: 13px; color: var(--footer-copy); }

@media (max-width: 1023px) {
  html { scroll-padding-top: 124px; }
  .header__inner { height: 64px; }
  .gnb, .auth { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .section { padding-block: 40px; }
  .section--tight { padding-block: 28px; }
  .page-head { padding-block: 26px 24px; }
  .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__links { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 413px) {
  .org-chips { grid-template-columns: 1fr; }
}

/* §24 푸터 v3(P5-V3-02) — 원천 ref/chir-web_v3_full_261112/assets/css/style.css:1450-1466 그대로.
   같은 블록의 body keep-all(:1446)·.footer__addr pre-line(:1449)은 chir-tokens.css·이 파일 .footer__addr 에 이미 같은 값이라 옮기지 않는다.
   .org-chip* 는 마크업에서 빠졌지만 v3 style.css 도 남겨 두므로 유지한다. */
.footer__orglinks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__org { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.9); text-decoration: none; }
.footer__org:hover { background: rgba(255,255,255,.14); color: var(--white); text-decoration: none; }
.footer__orgico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: rgba(255,255,255,.9); flex: none; }
.footer__orgico img { width: 16px; height: 16px; object-fit: contain; display: block; }
.footer__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.footer__chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px; background: var(--white); border-radius: var(--r-xs);
}
.footer__chip img { width: auto; max-width: 100%; object-fit: contain; }
/* 로고별 높이 — Figma New_V3 Footer(1809-7002) 확정 기준. 칩 순서: jbuh,uuh,sch,hallym,knuh,postech
   (디자인 측 2026-11-24 fix·fix3 전달본 style.css 그대로 — SNUBH 검토 PPT 2 '컨소시엄별 로고 크기 동일' · fix3 = postech 19 → 13px) */
.footer__chips .footer__chip:nth-child(1) img { height: 23px; }
.footer__chips .footer__chip:nth-child(2) img { height: 20px; }
.footer__chips .footer__chip:nth-child(3) img { height: 27px; }
.footer__chips .footer__chip:nth-child(4) img { height: 24px; }
.footer__chips .footer__chip:nth-child(5) img { height: 18px; }
.footer__chips .footer__chip:nth-child(6) img { height: 13px; }
@media (max-width: 767px) {
  .footer__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer__chip { height: 40px; padding: 0 8px; }
  .footer__chip img { max-width: 100%; }
}
@media (max-width: 413px) { .footer__chips { grid-template-columns: repeat(3, 1fr); } }
