/* ══ 정부 누리집 배너 + 푸터(footer-body) — SDC 배포본 원본 그대로(W7-10 §2c) ══
   출처: SDC `ROOT (1).war`(2026-09-30)
     - 배너 마크업: WEB-INF/jsp/common/layout/comn.fw.layout.jsp `.gov-eg > .inner > p > i`
     - 푸터 마크업: WEB-INF/jsp/common/layout/footer.jsp(2026-09-28 "현재 유일한 푸터", 퍼블 4차)
     - 규칙: pub2026/css/layout.css 53·54·148~230·571~573·614~628·665·684~698행, common.css(--hover-inverse·--clamp-15-30)
   원본은 html{font-size:10px} 기준 rem 이라 같은 값의 px 로 옮겼다(1.7rem → 17px). 클래스 이름은 원본 그대로.
   바꾼 것: 관련사이트 = jQuery 전체 화면 모달 대신 의존성 없는 펼침 목록(site-frame.js) · 약관 링크 = portalBaseUrl 이 없으면 비활성 글자.
   챗봇·관리자 war 에 같은 파일(동일성 시험). */
:root { --inner-width: 1500px; --inner-spacer-2: 20px; --clamp-15-30: clamp(15px, 1.75vw, 30px); --hover-inverse: none; }
[data-theme="dark"] {
  --hover-inverse: brightness(0) saturate(100%) invert(100%) sepia(94%) saturate(22%) hue-rotate(328deg) brightness(105%) contrast(106%);
}

/* ── 정부 누리집 배너(layout.css 53·54 · 414px 665) ── */
.gov-eg { display: flex; align-items: center; min-height: 32px; padding: 4px 0; background: var(--bg-secondary-weak); }
.gov-eg .inner { width: 100%; max-width: var(--inner-width); margin: 0 auto; padding: 0 var(--inner-spacer-2); }
.gov-eg p { margin: 0; padding-left: 35px; line-height: 16px; color: var(--text-default-strong); font-size: 15px; font-weight: 400;
  background: url(img/img_taegeukgi.png) no-repeat 0 center; }
.gov-eg p i { font-style: normal; }

/* ── 푸터(layout.css 148~230) ── */
#wrap-footer { font-size: 15px; line-height: 1.6; color: var(--text-default); }
#wrap-footer ul { margin: 0; padding: 0; list-style: none; }
#wrap-footer a { color: inherit; text-decoration: none; }
#wrap-footer .inner { width: 100%; max-width: var(--inner-width); margin: 0 auto; padding-right: var(--inner-spacer-2); padding-left: var(--inner-spacer-2); }

.footer-org { border: 0 solid var(--border-default-weak); border-width: 1px 0; background: var(--bg-default); }
.footer-org .org-site { display: grid; grid-template-columns: repeat(4, 25%); max-width: var(--inner-width); margin: 0 auto; padding: 0 var(--inner-spacer-2); }
.footer-org .org-site > li { border: 0 solid var(--border-default-weak); border-right-width: 1px; }
.footer-org .org-site > li:first-child { border-left: 1px solid var(--border-default-weak); }
.footer-org .org-site > li .site-btn { display: flex; align-items: center; position: relative; width: 100%; height: 54px; padding: 0 24px;
  font: inherit; font-size: 17px; color: var(--text-default); text-align: left; cursor: pointer; background: none; border: 0; }
.footer-org .org-site > li .site-btn:after { content: ''; position: absolute; top: calc(50% - 10px); right: 24px; width: 20px; height: 20px;
  transition: all .6s; filter: var(--hover-inverse); background: url(img/foot_ico_plus.svg) no-repeat 50%; }
.footer-org .org-site > li .site-btn:is(:hover, :focus) { text-decoration: underline; text-underline-offset: 5px; }
.footer-org .org-site > li .site-btn:is(:hover, :focus):after { transform: rotate(360deg); }
.footer-org .org-site > li .site-btn[aria-expanded="true"]:after { transform: rotate(45deg); }   /* 펼침 = + 를 × 로 */
/* 관련사이트 목록(원본 .site-popup .site-box — 모달 대신 바로 아래 펼침) */
.site-popup { max-width: var(--inner-width); margin: 0 auto; padding: 16px var(--inner-spacer-2) 20px; }
.site-popup[hidden] { display: none; }
.site-popup .site-tit { display: block; margin: 0 5px var(--clamp-15-30); font-size: 25px; font-weight: 700; color: var(--text-default-strong); }
.site-popup .site-box { padding: 5px; }
.site-popup .site-box > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(5px, 0.97vw, 20px); }
.site-popup .site-box > ul > li > a { display: block; position: relative; padding: clamp(8px, 0.78vw, 12px); font-size: clamp(15px, 1.25vw, 17px);
  border: 1px solid var(--border-secondary-weak); border-radius: clamp(2px, 0.39vw, 8px); }
.site-popup .site-box a[target='_blank'] i { display: block; font-style: normal; }
.site-popup .site-box > ul > li > a:is(:hover, :focus-visible) { background-color: var(--bg-secondary-weak); }

.footer-body { padding: 40px 0; background: var(--bg-subtle); }
/* 푸터 로고: 원본 = 배경 그림(logo_default.png 223×24, "MDIS•SDC 통합포털") + 글자 숨김 · 다크는 filter 반전 */
.footer-logo { display: inline-block; width: 223px; height: 24px; overflow: hidden; text-indent: -9999px; white-space: nowrap; filter: var(--hover-inverse);
  background-image: url(img/logo_default.png); background-repeat: no-repeat; background-position: 50%; background-size: cover; }
.footer-cont { display: flex; justify-content: space-between; margin: 40px 0; }
.footer-address li:not(:first-child) { margin-top: 13px; }
.footer-address li * { display: inline-block; color: var(--text-default-strong); font-size: 17px; }
.footer-address li b { font-weight: 600; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border-default-weak); }
.footer-nav { display: flex; }
.footer-nav li:not(:first-child) { margin-left: 20px; }
.footer-nav a { display: block; height: 40px; line-height: 40px; font-weight: 600; }
.footer-nav a[href]:is(:hover, :focus) { text-decoration: underline; text-underline-offset: 3px; }
#wrap-footer .footer-nav a.private { color: var(--text-secondary); }   /* #wrap-footer a{color:inherit} 보다 강하게 */
/* 주소(portalBaseUrl)가 정해지기 전: 링크 아님(href 없음 · aria-disabled) — 흐린 글자 + 안내 툴팁 */
#wrap-footer .footer-nav a[aria-disabled="true"] { color: var(--text-subtle-strong); font-weight: 500; cursor: default; }
.footer-bottom .copyright { font-size: 15px; letter-spacing: .5px; }

.footer-banner { display: flex; align-items: center; position: relative; margin-top: 25px; padding: 10px 10px 10px 105px; line-height: 20px;
  color: var(--static-default); font-size: 15px; font-weight: 500; border-radius: 5px; background: var(--white-100); }
.footer-banner:before { content: ''; display: block; position: absolute; top: 6px; left: 15px; width: 70px; height: 30px;
  background: url(img/footer_logo_banner.png) no-repeat 50% / contain; }

/* ── 반응형(원본 구간 1024 · 767 · 414) ── */
@media screen and (max-width: 1024px) {
  .footer-logo { width: 180px; height: 19px; }
  .footer-body { padding: 32px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media screen and (max-width: 767px) {
  .footer-org .org-site { grid-template-columns: repeat(2, 50%); }
  .footer-cont { flex-direction: column; gap: var(--clamp-15-30); }
  .footer-address li:first-child + li { margin-top: var(--clamp-15-30); }
  .footer-address li * { font-size: 16px; }
  .footer-nav { overflow: hidden; flex-wrap: wrap; margin-top: -5px; margin-left: -20px; padding-top: 10px; }
  .footer-nav li, .footer-nav li:not(:first-child) { margin-top: 5px; margin-left: 20px; }
  .footer-nav a { height: auto; line-height: 22px; font-size: 15px; }
  .footer-bottom .copyright { margin-top: 10px; font-size: 14px; }
}
@media screen and (max-width: 414px) {
  .gov-eg p { font-size: 13px; }
  .footer-org .org-site { grid-template-columns: repeat(1, 1fr); }
  .footer-org .org-site > li { border-left: 1px solid var(--border-default-weak); }
  .footer-org .org-site > li:not(:last-child) { border-bottom: 1px solid var(--border-default-weak); }
  .footer-org .org-site > li .site-btn { height: 40px; padding: 0 50px 0 15px; }
  .footer-org .org-site > li .site-btn:after { right: 15px; }
  .footer-nav { flex-direction: column; }
  .footer-nav li { position: relative; padding-left: 15px; }
  .footer-nav li:before { content: ''; display: block; position: absolute; top: 7px; left: 5px; width: 3px; height: 3px; border-radius: 50%;
    filter: var(--hover-inverse); background: var(--alpha-default-75); }
  .footer-banner { padding-top: 38px; padding-left: 12px; }
}
