/* frontend/irb/irb.css — IRB 게이트 오버레이. style.css 를 건드리지 않고 그 위에 얹는다.
   z-index 는 캔버스 층(style.css: 0·1·2)보다 위다. */
#irb-gate, #irb-survey, .irb-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(8, 10, 14, 0.94); color: #c2c8d2;
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  display: flex; align-items: center; justify-content: center;
}
#irb-gate.hidden, #irb-survey.hidden, #irb-abort.hidden { display: none; }
.irb-card {
  width: min(720px, 94vw); max-height: 92vh; display: flex; flex-direction: column;
  position: relative;
  background: #16181e; border: 1px solid #2a3a5a; border-radius: 10px; padding: 18px 20px;
}
.irb-card h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; color: #cfe0ff; }
.irb-card h3 { margin: 18px 0 6px; font-size: 16px; color: #cfe0ff; }
.irb-card .en { color: #97a0b0; font-size: 14px; }
.irb-scroll p, .irb-scroll li { font-size: 16px; }
.irb-scroll h2 { font-size: 18px; }
.irb-scroll { overflow-y: auto; flex: 1 1 auto; min-height: 200px; padding-right: 8px; border-bottom: 1px solid #2a3a5a; }
.irb-scroll table { border-collapse: collapse; margin: 6px 0; }
.irb-scroll td, .irb-scroll th { border: 1px solid #2a3a5a; padding: 4px 8px; vertical-align: top; }
.irb-scroll .irb-contacts { list-style: none; padding-left: 0; }
/* 동의서 확인 문장 1–7: 서류처럼 테두리 상자 안에 둔다. 설명문 끝에 있어 스크롤 게이트가 함께 지킨다. */
.irb-scroll .irb-confirm { margin: 16px 0 4px; padding: 10px 14px 10px 34px; border: 1px solid #2a3a5a; border-radius: 6px; }
.irb-scroll .irb-confirm li { font-size: 15px; margin: 4px 0; }
.irb-consent { margin: 12px 0 8px; }
.irb-esign { margin: 2px 0 4px; padding-top: 8px; border-top: 1px dashed #2a3a5a; font-size: 13px; line-height: 1.55; color: #97a0b0; }
.irb-consent label { display: block; margin: 8px 0; font-size: 15px; line-height: 1.55; }
.irb-consent label.disabled { opacity: 0.45; }
.irb-consent input { margin-right: 8px; }
.irb-notice { color: #e8c14a; margin: 6px 0; min-height: 1.4em; font-size: 15px; }
.irb-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.irb-actions button {
  padding: 8px 14px; border-radius: 6px; border: 1px solid #3f7df6; background: #1d2a44; color: #e6ebf4; cursor: pointer;
}
.irb-actions button:disabled { opacity: 0.4; cursor: default; }
.irb-actions button.secondary { border-color: #2a3a5a; background: transparent; }
.irb-q { margin: 10px 0; }
.irb-q textarea { width: 100%; min-height: 90px; box-sizing: border-box; background: #0f1116; color: #e6ebf4; border: 1px solid #2a3a5a; border-radius: 6px; padding: 8px; }
.irb-q select, .irb-q input[type=radio] { margin-right: 6px; }
.irb-q .row { display: flex; gap: 12px; align-items: center; margin: 4px 0; }
#irb-abort {
  position: fixed; right: 12px; top: 12px; z-index: 15;
  padding: 6px 12px; border-radius: 6px; border: 1px solid #7a3a3a; background: #2a1414; color: #f0c0c0; cursor: pointer;
}
/* 설명문 다시 보기 — 중단 버튼 왼쪽에 같은 크기로. */
#irb-info {
  position: fixed; right: 84px; top: 12px; z-index: 15;
  padding: 6px 12px; border-radius: 6px; border: 1px solid #2a3a5a; background: #16181e; color: #c2c8d2; cursor: pointer;
}
.irb-overlay .irb-scroll { border-bottom: 0; }
.irb-debrief ol { margin: 6px 0 0 20px; }
/* 언어 토글 — 랜딩의 .lang 과 같은 모양(KO | EN, aria-pressed 가 켜진 쪽이 금색). 제목 위 한 줄에
   오른쪽 정렬로 둔다 — 절대 위치로 띄우면 긴 영문 제목이 그 밑으로 들어간다. */
.irb-lang {
  display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin: -6px 0 2px;
  font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #97a0b0;
}
.irb-lang button { appearance: none; border: 0; background: none; padding: 6px 4px; font: inherit; color: inherit; cursor: pointer; }
.irb-lang button:hover { color: #e6ebf4; }
.irb-lang button[aria-pressed="true"] { color: #e8c14a; }
.irb-lang .sep { opacity: .5; }
