/* 한글 사이트 공통 틀: 상단 메뉴(.ilp-hd)와 푸터(.ilp-ft). 2026-11-11 개편.
   BS3 호환 CSS(bs3-compat)와 옛 .header/.navbar 규칙에 기대지 않고 hd-/ft- 접두어 클래스만 쓴다.
   전역 규칙 때문에 필요한 보정:
   - app.css 의 * { border-radius: 0 !important } 때문에 둥근 모서리는 전부 !important 로 덮는다.
   - app.css/bs3-compat 의 a:hover(밑줄, 초록·파랑) 와 outline: 0 !important 를 이 범위 안에서 되돌린다.
   - html, body 가 둘 다 overflow:auto 라 body 가 스크롤 영역이다. sticky 는 그 안에서 동작하고,
     서랍을 열 때 배경 스크롤은 body.hd-lock 으로 막는다.
   빨강(#ed1d24)은 강조 면·밑줄에만, 글자에는 대비를 위해 한 단계 진한 빨강(--fr-red-strong)을 쓴다.
   가입(join.css)·로그인(login.css)과 같은 색을 쓴다. */

.ilp-hd, .ilp-ft {
    --fr-ink: #26211f;
    --fr-ink-2: #6b625e;
    --fr-line: #e7e1de;
    --fr-line-strong: #cdc5c1;
    --fr-surface: #ffffff;
    --fr-sunken: #faf8f7;
    --fr-red: #ed1d24;
    --fr-red-strong: #c9151c;
    --fr-red-tint: #fdeeee;
    --fr-shadow: 0 14px 36px rgba(38, 33, 31, .14);

    color: var(--fr-ink);
    font-family: "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: left;
}
.ilp-hd *, .ilp-hd *::before, .ilp-hd *::after,
.ilp-ft *, .ilp-ft *::before, .ilp-ft *::after { box-sizing: border-box; }
/* custom.css 가 div, span, a 에 글꼴을 직접 지정하므로 이 범위 안에서는 위에서 정한 글꼴을 그대로 쓴다 */
.ilp-hd *, .ilp-ft * { font-family: inherit; }
.ilp-hd p, .ilp-hd ul, .ilp-hd li, .ilp-hd dl, .ilp-hd dd,
.ilp-ft p, .ilp-ft ul, .ilp-ft li, .ilp-ft dl, .ilp-ft dd { margin: 0; padding: 0; list-style: none; }
.ilp-hd a, .ilp-hd a:hover, .ilp-hd a:focus, .ilp-hd a:active,
.ilp-ft a, .ilp-ft a:hover, .ilp-ft a:focus, .ilp-ft a:active { color: inherit; text-decoration: none; }
.ilp-hd button, .ilp-ft button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.ilp-hd :focus-visible, .ilp-ft :focus-visible { outline: 3px solid var(--fr-red) !important; outline-offset: 2px; }
.ilp-hd svg, .ilp-ft svg { flex: none; }

/* =============== 상단 메뉴 =============== */
/* 위 줄(36px+테두리 1px)은 스크롤하면 화면 밖으로 밀려나고 아래 줄만 화면 위에 붙는다(top 을 줄 높이만큼 음수로) */
.ilp-hd { position: sticky; top: -37px; z-index: 99; background: var(--fr-surface); border-bottom: 1px solid var(--fr-line); font-size: 15px; }
.ilp-hd .hd-strip { height: 37px; background: var(--fr-sunken); border-bottom: 1px solid var(--fr-line); }
.ilp-hd .hd-in { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.ilp-hd .hd-strip .hd-in { display: flex; justify-content: flex-end; align-items: center; gap: 0 18px; height: 36px; font-size: 13px; color: var(--fr-ink-2); }

.ilp-hd .hd-timer { display: inline-flex; align-items: center; gap: 8px; }
.ilp-hd .hd-timer svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ilp-hd .hd-timer #sessionTimePrint { color: var(--fr-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
/* sessionTimeout.js 가 3분 미만에 넣는 빨강(#f00, 대비 부족)을 진한 빨강으로 */
.ilp-hd .hd-timer #sessionTimePrint span { color: var(--fr-red-strong) !important; }
.ilp-hd .hd-timer .ext { border: 1px solid var(--fr-line-strong); background: var(--fr-surface); border-radius: 999px !important; padding: 3px 10px; font-size: 12px; line-height: 1.5; }
.ilp-hd .hd-timer .ext:hover { border-color: var(--fr-red); color: var(--fr-red-strong); }

.ilp-hd .hd-util { position: relative; }
.ilp-hd .hd-util > .hd-toggle, .ilp-hd .hd-util > .hd-login { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; color: var(--fr-ink-2); font-size: 13px; }
.ilp-hd .hd-util > .hd-toggle:hover, .ilp-hd .hd-util > .hd-login:hover { color: var(--fr-ink); }
.ilp-hd .hd-util .hd-who { color: var(--fr-ink); font-weight: 700; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilp-hd .hd-util svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ilp-hd .hd-main .hd-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.ilp-hd .hd-logo { display: block; flex: none; }
.ilp-hd .hd-logo img { display: block; height: 38px; width: auto; }
.ilp-hd .hd-nav { display: flex; align-items: center; gap: 4px; }
.ilp-hd .hd-item { position: relative; }
.ilp-hd .hd-top { display: inline-flex; align-items: center; gap: 6px; padding: 24px 14px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; position: relative; white-space: nowrap; }
.ilp-hd .hd-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--fr-red); transform: scaleX(0); transition: transform .18s; }
.ilp-hd .hd-item.is-open > .hd-top::after, .ilp-hd .hd-item.is-here > .hd-top::after { transform: scaleX(1); }
.ilp-hd .hd-item.is-here > .hd-top { color: var(--fr-red-strong); }
.ilp-hd .hd-caret { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .18s; }
.ilp-hd .hd-item.is-open .hd-caret { transform: rotate(180deg); }
/* 기부하기: 지금처럼 빨간 강조를 유지한다 */
.ilp-hd .hd-item.cta { margin-inline: 6px; }
.ilp-hd .hd-item.cta > .hd-top { background: var(--fr-red-strong); color: #fff; padding: 9px 18px; border-radius: 999px !important; }
.ilp-hd .hd-item.cta > .hd-top::after { display: none; }
.ilp-hd .hd-item.cta > .hd-top:hover { background: #a90f15; }
.ilp-hd .hd-item.cta > .hd-top .hd-caret { opacity: .9; }

/* 펼친 목록: is-open 이 붙으면 열린다(마우스를 올리면 frame.js 가 붙인다). ::before 는 단추와 목록 사이 빈틈에서 닫히지 않게 잇는 다리 */
.ilp-hd .hd-panel { position: absolute; top: calc(100% - 6px); left: 50%; translate: -50% 0; min-width: 208px; background: var(--fr-surface); border: 1px solid var(--fr-line); border-radius: 14px !important; box-shadow: var(--fr-shadow); padding: 8px; display: none; z-index: 5; }
.ilp-hd .hd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.ilp-hd .hd-item.cta .hd-panel { top: calc(100% + 4px); }
.ilp-hd .hd-item.is-open > .hd-panel, .ilp-hd .hd-util.is-open > .hd-panel { display: block; }
.ilp-hd .hd-panel a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px !important; font-size: 15px; white-space: nowrap; }
.ilp-hd .hd-panel a:hover { background: var(--fr-red-tint); color: var(--fr-red-strong); }
.ilp-hd .hd-panel a.is-now { font-weight: 700; color: var(--fr-red-strong); }
.ilp-hd .hd-panel a.is-now::before { content: ""; width: 6px; height: 6px; border-radius: 50% !important; background: var(--fr-red); }
.ilp-hd .hd-panel .soon { color: var(--fr-ink-2); font-size: 12px; }
.ilp-hd .hd-panel.hd-right { left: auto; right: 0; translate: none; }
.ilp-hd .hd-util .hd-panel { top: calc(100% + 2px); }
.ilp-hd .hd-util .hd-panel a { font-size: 14px; }

@media (min-width: 992px) and (max-width: 1100px) {
    .ilp-hd .hd-top { padding-inline: 10px; font-size: 15px; }
    .ilp-hd .hd-top::after { left: 10px; right: 10px; }
    .ilp-hd .hd-item.cta > .hd-top { padding-inline: 14px; }
}
.ilp-hd .hd-burger, .ilp-hd .hd-scrim, .ilp-hd .hd-drawer { display: none; }

/* ---- 모바일(991px 이하): 로고와 ☰ 단추, 오른쪽에서 나오는 서랍 ---- */
@media (max-width: 991px) {
    .ilp-hd { top: 0; }
    .ilp-hd .hd-strip { display: none; }
    .ilp-hd .hd-main .hd-in { min-height: 60px; padding-inline: 16px; }
    .ilp-hd .hd-nav { display: none; }
    .ilp-hd .hd-burger { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 0; background: transparent; }
    .ilp-hd .hd-burger svg { width: 34px; height: 34px; stroke: var(--fr-ink); fill: none; stroke-width: 2; stroke-linecap: round; }
    .ilp-hd .hd-scrim { position: fixed; inset: 0; background: rgba(38, 33, 31, .45); z-index: 100; }
    .ilp-hd .hd-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--fr-surface); z-index: 101; overflow-y: auto; padding: 16px 16px 24px; box-shadow: var(--fr-shadow); overscroll-behavior: contain; }
    .ilp-hd.drawer-open .hd-scrim, .ilp-hd.drawer-open .hd-drawer { display: block; }
    .ilp-hd .hd-drawer .dr-close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; }
    .ilp-hd .hd-drawer .dr-close svg { width: 22px; height: 22px; stroke: var(--fr-ink); fill: none; stroke-width: 2; stroke-linecap: round; }
    .ilp-hd .dr-user { background: var(--fr-sunken); border: 1px solid var(--fr-line); border-radius: 14px !important; padding: 14px; display: grid; gap: 10px; margin: 4px 0 12px; }
    .ilp-hd .dr-user .dr-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 14px; }
    .ilp-hd .dr-user .dr-line b { min-width: 0; overflow-wrap: anywhere; }
    .ilp-hd .dr-user .dr-line.actions { gap: 8px; }
    .ilp-hd .dr-timer { color: var(--fr-ink-2); font-size: 13px; }
    .ilp-hd .dr-timer #sessionTimePrintM { color: var(--fr-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
    .ilp-hd .dr-timer #sessionTimePrintM.is-warn { color: var(--fr-red-strong); }
    .ilp-hd .dr-login { display: flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 12px !important; background: var(--fr-red-strong); color: #fff !important; font-weight: 700; padding: 0 16px; }
    .ilp-hd .dr-btn { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--fr-line-strong); border-radius: 12px !important; background: var(--fr-surface); font-weight: 700; font-size: 14px; text-align: center; }
    .ilp-hd .dr-group { border-top: 1px solid var(--fr-line); }
    .ilp-hd .dr-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-size: 16px; font-weight: 700; padding: 0 4px; }
    .ilp-hd .dr-group .hd-caret { transition: transform .18s; }
    .ilp-hd .dr-group.is-open .hd-caret { transform: rotate(180deg); }
    .ilp-hd .dr-group ul { display: none; padding: 0 0 10px; }
    .ilp-hd .dr-group.is-open ul { display: block; }
    .ilp-hd .dr-group.is-here > button { color: var(--fr-red-strong); }
    .ilp-hd .dr-group.cta > button { color: var(--fr-red-strong); }
    .ilp-hd .dr-group ul a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px !important; font-size: 15px; color: var(--fr-ink-2); }
    .ilp-hd .dr-group ul a.is-now { background: var(--fr-red-tint); color: var(--fr-red-strong); font-weight: 700; }
    .ilp-hd .dr-foot { border-top: 1px solid var(--fr-line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
    .ilp-hd .dr-foot a, .ilp-hd .dr-foot span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--fr-line); border-radius: 999px !important; }
    .ilp-hd .dr-foot .cur { background: var(--fr-ink); color: var(--fr-surface); border-color: var(--fr-ink); font-weight: 700; }
}
@media (min-width: 992px) { .ilp-hd .hd-drawer, .ilp-hd .hd-scrim { display: none !important; } }
html.hd-lock, body.hd-lock { overflow: hidden; }

/* =============== 푸터 =============== */
.ilp-ft { margin: 0; background: var(--fr-surface); border-top: 1px solid var(--fr-line); font-size: 14px; }   /* custom.css 의 footer { margin: 50px 0 } 를 되돌린다 */
.ilp-ft .ft-in { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.ilp-ft .ft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 40px 32px; }
.ilp-ft .ft-stat { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; min-width: 0; }
.ilp-ft .ft-stat .ico { display: grid; place-items: center; height: 72px; background: var(--fr-sunken); border-radius: 18px !important; }
.ilp-ft .ft-stat .ico img { height: 56px; width: auto; display: block; }
.ilp-ft .ft-stat strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.ilp-ft .ft-stat strong em { font-style: normal; color: var(--fr-red-strong); font-size: 24px; margin-inline: 2px; }
.ilp-ft .ft-stat p { color: var(--fr-ink-2); font-size: 13.5px; margin-top: 4px; }

/* 이용문의: 안내 세 줄 아래 가로로 넓게 깔린 띠. 왼쪽에 제목과 전화, 오른쪽에 문의 경로 두 개 */
.ilp-ft .ft-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab asks" "tel asks"; column-gap: 32px; row-gap: 2px; align-items: center; background: var(--fr-sunken); border: 1px solid var(--fr-line); border-radius: 20px !important; padding: 22px 28px; }
.ilp-ft .ft-help .lab { grid-area: lab; font-weight: 800; font-size: 15px; }
.ilp-ft .ft-tel { grid-area: tel; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ilp-ft .ft-tel .no { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--fr-ink); }
.ilp-ft .ft-tel .hours { font-size: 13px; color: var(--fr-ink-2); }
.ilp-ft .ft-asks { grid-area: asks; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ilp-ft .ft-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border: 1px solid var(--fr-line-strong); border-radius: 12px !important; background: var(--fr-surface); font-weight: 700; font-size: 14px; white-space: nowrap; }
.ilp-ft .ft-ask:hover { border-color: var(--fr-red); color: var(--fr-red-strong); }
.ilp-ft .ft-ask svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }

/* 회사 정보(왼쪽) | 등록·인증 표지(오른쪽, 세로로 쌓음) */
.ilp-ft .ft-main { padding-block: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: start; }
.ilp-ft .ft-brand img.logo { display: block; height: 34px; width: auto; margin-bottom: 18px; }
.ilp-ft .ft-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; font-weight: 700; }
.ilp-ft .ft-links a:hover { color: var(--fr-red-strong); text-decoration: underline; text-underline-offset: 3px; }
.ilp-ft .ft-links a.key { color: var(--fr-red-strong); }
.ilp-ft .ft-corp { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; color: var(--fr-ink-2); font-size: 13.5px; line-height: 1.6; margin: 0; }
.ilp-ft .ft-corp dt { color: var(--fr-ink); font-weight: 700; line-height: 1.6; }
.ilp-ft .ft-corp dd { margin: 0; line-height: 1.6; }
.ilp-ft .ft-corp a, .ilp-ft .ft-corp a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ilp-ft .ft-seals { display: grid; gap: 20px; padding-left: 56px; border-left: 1px solid var(--fr-line); max-width: 400px; }
.ilp-ft .ft-seal { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ilp-ft .ft-seal img { width: 64px; height: 64px; object-fit: contain; display: block; flex: none; }
.ilp-ft .ft-seal p { font-size: 13px; color: var(--fr-ink-2); }
.ilp-ft .ft-seal b { display: block; color: var(--fr-ink); font-size: 14px; }

/* 맨 아래 띠: 왼쪽 저작권, 오른쪽 소셜 아이콘. 모바일에서는 저작권이 제일 마지막 */
.ilp-ft .ft-base { border-top: 1px solid var(--fr-line); background: var(--fr-sunken); }
.ilp-ft .ft-base .ft-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; flex-wrap: wrap; }
.ilp-ft .ft-copy { font-size: 12.5px; color: var(--fr-ink-2); }
.ilp-ft .ft-sns { display: flex; align-items: center; gap: 8px; }
.ilp-ft .ft-sns .lab { font-size: 12.5px; color: var(--fr-ink-2); margin-right: 4px; }
.ilp-ft .ft-sns a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--fr-line-strong); border-radius: 50% !important; background: var(--fr-surface); color: var(--fr-ink); }
.ilp-ft .ft-sns a:hover { border-color: var(--fr-red); color: var(--fr-red-strong); }
.ilp-ft .ft-sns svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 991px) {
    .ilp-ft .ft-main { grid-template-columns: 1fr; }
    .ilp-ft .ft-seals { padding: 20px 0 0; border-left: 0; border-top: 1px dashed var(--fr-line); max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .ilp-ft .ft-help { grid-template-columns: 1fr; grid-template-areas: "lab" "tel" "asks"; row-gap: 12px; padding: 20px; }
    .ilp-ft .ft-asks { max-width: 420px; }
}
@media (max-width: 767px) {
    .ilp-ft .ft-in { padding-inline: 16px; }
    .ilp-ft .ft-stats { grid-template-columns: 1fr; gap: 10px; padding-block: 24px 20px; }
    .ilp-ft .ft-stat { grid-template-columns: 52px 1fr; gap: 12px; padding: 12px; background: var(--fr-sunken); border-radius: 16px !important; }
    .ilp-ft .ft-stat .ico { height: 52px; background: var(--fr-surface); border-radius: 12px !important; }
    .ilp-ft .ft-stat .ico img { height: 40px; }
    .ilp-ft .ft-stat strong { font-size: 15px; }
    .ilp-ft .ft-stat strong em { font-size: 20px; }
    .ilp-ft .ft-stat p { display: none; }
    .ilp-ft .ft-main { padding-block: 24px; gap: 24px; }
    .ilp-ft .ft-help { padding: 18px; border-radius: 16px !important; }
    .ilp-ft .ft-tel .no { font-size: 30px; }
    .ilp-ft .ft-asks { max-width: none; }
    .ilp-ft .ft-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ilp-ft .ft-links a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--fr-line); border-radius: 12px !important; font-size: 14px; }
    .ilp-ft .ft-links a.all { grid-column: 1 / -1; }
    .ilp-ft .ft-corp { grid-template-columns: max-content 1fr; font-size: 13px; }
    .ilp-ft .ft-base .ft-in { flex-direction: column-reverse; align-items: center; text-align: center; padding-block: 18px 22px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ilp-hd *, .ilp-hd *::before, .ilp-hd *::after { transition: none !important; } }
