/* 공개 페이지 정리 레이어 (2026-09-25)
   목표: 장식(영어 라벨·알약 배지·번호 배지·두 색 제목·사진 위 문구)을 걷어 내고
   한국어 제목 한 줄 + 설명 한 줄, 선으로 나눈 구역, 주황은 버튼과 링크에만.
   공개 페이지(홈·소개·서비스·프로젝트·멤버십·고객지원·사람 찾기)에서 가장 마지막에 읽는다. */

:root{
  --pr-ink:#1f2328;
  --pr-body:#3d434a;
  --pr-muted:#5f666e;
  --pr-line:#e8e3dc;
  --pr-line-strong:#d9d3ca;
  --pr-paper:#ffffff;
  --pr-warm:#f7f6f3;
  --pr-accent:#b9471d;
  --pr-accent-hover:#9c3b17;
  --pr-radius:10px;
}

/* ---------- 공통 문자 ---------- */
:is(body.ep-public,body.ecbnet-landing) :is(h1,h2,h3){color:var(--pr-ink);letter-spacing:-.02em}
:is(body.ep-public,body.ecbnet-landing) h1 em,
:is(body.ep-public,body.ecbnet-landing) h2 em{font-style:normal;color:inherit}
:is(body.ep-public,body.ecbnet-landing) main p{color:var(--pr-body)}

/* 작은 라벨: 알약 배경·자간 없이 조용한 글자로 */
html.ecb-shared-ready :is(body.ep-public,body.ecbnet-landing) main :is(.public-eyebrow,.people-eyebrow,.en-eyebrow,.portal-entry-label){
  display:block;background:none!important;padding:0!important;border:0!important;border-radius:0!important;
  color:var(--pr-muted)!important;font-size:.875rem!important;font-weight:600!important;letter-spacing:0!important;text-transform:none;margin:0 0 10px!important
}

/* 번호 배지(01·02·03)는 숨긴다 — 제목만으로 충분하다 */
body.ep-public :is(.ep-number,.public-service-card-number,.support-topic-number),
body.ep-public .public-process-list li>span:first-child:is([class*="number"],[class*="step"]){display:none!important}

/* ---------- 버튼 ---------- */
:is(body.ep-public,body.ecbnet-landing) :is(.public-button,.en-button.en-primary,.hx-util-btn--solid){
  background:var(--pr-accent)!important;border-color:var(--pr-accent)!important;color:#fff!important;border-radius:8px!important;box-shadow:none!important
}
:is(body.ep-public,body.ecbnet-landing) :is(.public-button,.en-button.en-primary):hover{background:var(--pr-accent-hover)!important;border-color:var(--pr-accent-hover)!important}

/* ---------- 머리 영역(히어로) ---------- */
body.ep-public .ep-hero{background:var(--pr-paper);border-bottom:1px solid var(--pr-line)}
body.ep-public .ep-hero-image{border-radius:var(--pr-radius);background:var(--pr-warm)}
body.ep-public .ep-hero-image figcaption{display:none}
body.ep-public .ep-breadcrumb{color:var(--pr-muted)}

/* ---------- 구역: 흰 바탕과 따뜻한 바탕을 번갈아, 사이에 선 한 줄 ---------- */
body.ep-public main>section{border-bottom:1px solid var(--pr-line)}
body.ep-public .ep-section,body.ep-public .public-section{background:var(--pr-paper)}
body.ep-public main>section:nth-of-type(even):not(.ep-cta){background:var(--pr-warm)}

/* 어두운 구역은 쓰지 않는다 — 이용 절차·마지막 안내 띠 모두 밝게 */
body.ep-public .public-section--dark{background:var(--pr-warm)!important;color:var(--pr-ink)!important}
body.ep-public .public-section--dark :is(h2,h3,p,li,strong,span){color:inherit}
body.ep-public .public-section--dark p{color:var(--pr-body)!important}
body.ep-public .public-section--dark .public-process-list>li{background:var(--pr-paper)!important;border:1px solid var(--pr-line)!important;box-shadow:none!important}
body.ep-public .ep-cta{background:var(--pr-paper)!important;color:var(--pr-ink)!important;border-top:1px solid var(--pr-line);border-bottom:0}
body.ep-public .ep-cta :is(h2,p){color:var(--pr-ink)!important}

/* ---------- 카드: 흰 바탕 + 선 한 줄, 그림자 없음 ---------- */
body.ep-public :is(.ep-card,.ep-project-card,.support-topic-tile){
  background:var(--pr-paper)!important;border:1px solid var(--pr-line)!important;border-radius:var(--pr-radius)!important;box-shadow:none!important
}
body.ep-public main>section:nth-of-type(odd) :is(.ep-card,.ep-project-card){background:var(--pr-warm)!important}
body.ep-public .public-service-card{min-height:0!important}

/* ---------- 홈 ---------- */
body.ecbnet-landing{background:var(--pr-paper)}
body.ecbnet-landing .fb-home-hero{border-bottom:1px solid var(--pr-line)}
body.ecbnet-landing .fb-home-copy h1{color:var(--pr-ink)}
body.ecbnet-landing .fb-home-copy h1 em{color:inherit}
body.ecbnet-landing .fb-home-find{background:var(--pr-warm)!important;border:1px solid var(--pr-line)!important;border-radius:var(--pr-radius)!important}
body.ecbnet-landing .fb-home-search{border-color:var(--pr-line-strong)}
body.ecbnet-landing :is(.portal-stories,.portal-connection,.portal-join,.home-updates){border-top:1px solid var(--pr-line)}
body.ecbnet-landing .portal-connection{background:var(--pr-warm)}
body.ecbnet-landing .portal-connection-grid>a{background:var(--pr-paper);border:1px solid var(--pr-line);border-radius:var(--pr-radius);box-shadow:none}
body.ecbnet-landing .portal-join{background:var(--pr-paper)}
body.ecbnet-landing .portal-section-heading h2{color:var(--pr-ink)}
body.ecbnet-landing .en-film-thumbnail{border-radius:var(--pr-radius)}

/* ---------- 사람 찾기 ---------- */
body.people-page .people-intro{border-bottom:1px solid var(--pr-line)}
body.people-page .people-card{border-color:var(--pr-line);box-shadow:none}

/* ---------- 머리 영역의 작은 라벨은 경로 표시(홈 / 서비스)와 겹치므로 숨긴다 ---------- */
body.ep-public .ep-hero .public-eyebrow{display:none!important}

/* ---------- 서비스: 크기가 다른 카드 5개 대신 같은 폭의 목록 한 줄씩 ---------- */
body.ep-public .public-service-grid{display:block!important;border-top:1px solid var(--pr-line-strong)}
body.ep-public .public-service-card{display:grid!important;grid-template-columns:minmax(0,220px) minmax(0,1fr) auto;align-items:center;column-gap:32px;
  padding:26px 4px!important;border:0!important;border-bottom:1px solid var(--pr-line)!important;border-radius:0!important;background:transparent!important;min-height:0!important}
body.ep-public .public-service-card .public-eyebrow{display:none!important}
body.ep-public .public-service-card h3{margin:0;font-size:1.125rem!important}
body.ep-public .public-service-card .public-service-card-lead{margin:0}
body.ep-public .public-service-card .public-text-link{white-space:nowrap;justify-self:end}
@media(max-width:760px){body.ep-public .public-service-card{grid-template-columns:1fr;row-gap:8px;padding:22px 0!important}body.ep-public .public-service-card .public-text-link{justify-self:start}}

/* ---------- 이용 절차: 단계 번호는 뜻이 있으니 두되 배지 대신 작은 글자로 ---------- */
body.ep-public .public-process-list li>:first-child:not(h3):not(strong){background:none!important;border:0!important;padding:0!important;width:auto!important;height:auto!important;
  color:var(--pr-accent)!important;font-size:.875rem!important;font-weight:700;border-radius:0!important;display:block!important;margin-bottom:8px}

/* ---------- 소개: 큰 인용 문구는 진한 한 색으로 ---------- */
body.ep-public .ep-large-copy{color:var(--pr-ink)!important;font-weight:600}
body.ep-public .ep-large-copy em{font-style:normal;color:inherit!important}

/* 홈 검색: 상자 안의 상자를 없애고 검색창 하나만 */
body.ecbnet-landing .fb-home-find{background:transparent!important;border:0!important;padding:0!important;margin-top:28px!important}
body.ecbnet-landing .fb-home-search{border:1px solid var(--pr-line-strong)!important;border-radius:var(--pr-radius)!important}

/* 프로젝트: 분야 라벨은 한국어 작은 글자, 진행 단계 번호는 동그라미 대신 글자로 */
body.ep-public .ep-project-card div>span:first-child{color:var(--pr-muted)!important;font-size:.875rem!important;letter-spacing:0!important;font-weight:600;text-transform:none}
body.ep-public .ep-timeline li>span{border:0!important;width:auto!important;height:auto!important;min-width:32px;justify-content:flex-start!important;color:var(--pr-accent)!important;font-weight:700;font-size:.9375rem!important}

/* 2차 수정: 같은 성격의 구역은 위아래 여백이 같다(소개·멤버십·프로젝트·서비스) */
body.ep-public main>:is(.ep-section,.public-section){padding-block:48px}
@media(max-width:640px){body.ep-public main>:is(.ep-section,.public-section){padding-block:32px}}
/* 단계 카드: 같은 줄은 같은 높이(내용은 위 정렬, 위아래 padding 같음), 번호 배지 없이 제목부터 */
body.ep-public .public-process-list{align-items:stretch}
body.ep-public .public-section-head{margin-bottom:28px}
body.ep-public .public-section-head>p{margin:8px 0 0}
body.ep-public .public-section--process .public-section-head{display:block}
/* 히어로 첫 제목 위치를 같은 구조끼리 맞춘다(사진 높이에 따라 글 블록이 위아래로 흔들리지 않게) */
body.ep-public .ep-hero-grid{align-items:start}
/* Home link cards and "사람 더 보기": hover survives the refined border/colour rules above. */
body.ecbnet-landing .portal-connection-grid>a{transition:border-color .15s ease}
body.ecbnet-landing .portal-connection-grid>a:hover{border-color:#b9471d}
body.ecbnet-landing .portal-section-heading>a:hover{color:#9c3b17;text-decoration:underline;text-underline-offset:4px}
