/* 헤더 요소에 .n5 가 붙은 화면(서비스)과 .n5 안에 있는 화면(홈·안내·로그인) 모두에 걸리도록 .n5x-site-header.n5-service-header 로 지정 */
/* 공통 상단 바: 홈 · 이용 방법 · 매칭 기준 · 서비스 화면이 같은 모양 (마크업은 n5-icons.js headerInner)
   v53 .service-header(고정 78px)를 바탕으로, 메뉴 4개 + 오른쪽(로그인 상태) + 좁은 화면 ☰ */
.n5x-site-header.n5-service-header { grid-template-columns: 240px 1fr auto auto; column-gap: 16px; font-family: Pretendard, "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", sans-serif; letter-spacing: normal; }
.n5x-site-header.n5-service-header * { font-family: inherit; }
.n5x-site-header.n5-service-header > .n5-renew-brand { width: 185px; align-self: center; justify-content: center; gap: 4px; }
/* 로고 아래 '오늘도, 더 나은 내일을 위해' 가 바 아래쪽에 붙지 않게: 로고를 줄이고 묶음을 세로 가운데로 */
.n5x-site-header.n5-service-header > .n5-renew-brand img { height: 46px; }
.n5x-site-header.n5-service-header > .n5-renew-brand small { line-height: 1.2; margin-top: -7px; }  /* 로고 이미지 아래 여백만큼 문구를 끌어올림 */
.n5x-site-header.n5-service-header nav { gap: 26px; }
.n5x-site-header.n5-service-header nav a { position: relative; letter-spacing: normal; padding: 8px 0; color: #5a6b85; font-size: 14px; font-weight: 700; text-decoration: none; }
.n5x-site-header.n5-service-header nav a:hover { color: #0b1223; }
.n5x-site-header.n5-service-header nav a.n5-active { color: #0b1223; font-weight: 850; }
.n5x-site-header.n5-service-header nav a.n5-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: #ffdc27; }
.n5 .n5-service-user > a.n5x-keep { display: inline-flex; align-items: center; margin: 0; text-decoration: none; }

.n5 .n5-service-user > a.n5-yellow-button { min-height: 40px; padding: 8px 18px; color: #101424; font-size: 13px; }
.n5 .n5x-menu-btn { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid #e8edf6; border-radius: 10px; background: #fff; color: #26334e; font-size: 20px; cursor: pointer; }
@media (max-width: 1000px) {
  .n5x-site-header.n5-service-header { grid-template-columns: 1fr auto auto; }
  .n5 .n5x-menu-btn { display: grid; }
  .n5x-site-header.n5-service-header nav.n5x-open { display: flex; flex-direction: column; gap: 0; position: fixed; top: 78px; left: 0; right: 0; z-index: 60; padding: 6px 20px 12px; background: #fff; border-bottom: 1px solid #e8edf6; box-shadow: 0 14px 30px rgba(16, 36, 70, .08); }
  .n5x-site-header.n5-service-header nav.n5x-open a { padding: 13px 4px; border-bottom: 1px solid #f1f4f9; font-size: 15px; }
  .n5x-site-header.n5-service-header nav.n5x-open a:last-child { border-bottom: 0; }
  .n5x-site-header.n5-service-header nav.n5x-open a.n5-active::after { left: -8px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
}
@media (max-width: 700px) {
  .n5x-site-header.n5-service-header { column-gap: 8px; }
  /* 로고 아래 문구를 로고 폭에 맞춘다 (문구가 로고보다 넓어 튀어나오지 않게) */
  .n5x-site-header.n5-service-header > .n5-renew-brand { width: auto; justify-self: start; align-items: center; gap: 1px; }
  .n5x-site-header.n5-service-header > .n5-renew-brand img { width: auto; height: 40px; }
  .n5x-site-header.n5-service-header > .n5-renew-brand small { margin-top: -5px; font-size: 13px; letter-spacing: -.03em; white-space: nowrap; }
  /* 안내 페이지의 탭 줄은 ☰ 메뉴와 같아서 좁은 화면에서는 숨긴다 (두 줄로 깨지지 않게) */
  .n5 .n5-doc-local-nav { display: none; }
  .n5x-site-header.n5-service-header nav.n5x-open { top: 68px; }
  .n5 .n5x-menu-btn { width: 38px; height: 38px; }

  .n5 .n5-service-user > a.n5-yellow-button { min-height: 36px; padding: 6px 12px; font-size: 12px; }
}

/* 자주 묻는 질문 페이지 (/faq) */
.n5 .n5x-faq-search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin-top: 30px; padding: 0 16px; height: 54px; border: 1px solid #dce6f7; border-radius: 14px; background: #fff; color: #5a6b85; }
.n5 .n5x-faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #0b1223; font-size: 15px; }
.n5 .n5x-faq-cats { position: sticky; top: 78px; z-index: 30; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 14px; background: rgba(255, 255, 255, .95); border-bottom: 1px solid #e8edf6; }
.n5 .n5x-faq-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #e3e9f4; border-radius: 22px; background: #fff; color: #26334e; font-size: 14px; font-weight: 700; }
.n5 .n5x-faq-cats a:hover { border-color: #ffd629; background: #fffcf0; }
.n5 .n5x-faq-group { scroll-margin-top: 150px; }
.n5 .n5x-faq-lead { margin-top: 10px; color: #5a6b85; font-size: 14px; line-height: 1.7; }
.n5 .n5x-faq-doc .n5x-faq-group summary { line-height: 1.5; }
.n5 .n5x-faq-empty { padding: 60px 20px; color: #5a6b85; font-size: 15px; text-align: center; }
@media (max-width: 700px) {
  .n5 .n5x-faq-cats { position: static; gap: 6px; padding: 10px; }
  .n5 .n5x-faq-group { scroll-margin-top: 80px; }
  .n5 .n5x-faq-cats a { flex: 0 0 auto; font-size: 13px; padding: 8px 12px; }
}

/* 안내 페이지(이용 방법·매칭 기준·자주 묻는 질문) 푸터: 위쪽 본문 카드와 같은 폭으로 (오른쪽 끝에 붙지 않게) */
.n5 .n5-doc-footer .n5-renew-footer { width: min(1224px, calc(100% - 56px)); margin: 40px auto 0; }
@media (max-width: 700px) { .n5 .n5-doc-footer .n5-renew-footer { width: calc(100% - 28px); } }

/* 안내 페이지(이용 방법·매칭 기준·자주 묻는 질문) 카드 통일: 같은 폭·여백·모서리·픽셀 그림자, 같은 제목 크기 */
.n5 main.n5-service-doc > section:not(.n5-doc-hero):not(.n5-doc-next) { width: 100%; margin: 24px 0; padding: 32px; border: 1px solid #dce6f5; border-radius: 8px; background: #fff; box-shadow: 4px 4px 0 #e4ecfa; }
.n5 main.n5-service-doc > .n5x-faq-cats { margin: 24px 0 0; border: 1px solid #dce6f5; border-radius: 8px; box-shadow: 4px 4px 0 #e4ecfa; }
.n5 main.n5-service-doc > .n5-guide-steps { gap: 0; }
.n5 .n5-service-doc :is(.n5-guide-detail-copy, .n5-doc-section-heading, .n5-judgment-heading, .n5-score-heading, .n5-code-system-copy, .n5-guide-shortcuts) > h2,
.n5 .n5-service-doc .n5-matching-faq > div:first-child > h2 { margin: 14px 0; font-size: 29px; font-weight: 800; line-height: 1.35; letter-spacing: -.8px; }
.n5 .n5-service-doc .n5-guide-shortcuts > h2 { margin-top: 0; }
@media (max-width: 700px) {
  .n5 main.n5-service-doc > section:not(.n5-doc-hero):not(.n5-doc-next) { padding: 20px; margin: 16px 0; }
  .n5 .n5-service-doc :is(.n5-guide-detail-copy, .n5-doc-section-heading, .n5-judgment-heading, .n5-score-heading, .n5-code-system-copy, .n5-guide-shortcuts) > h2,
  .n5 .n5-service-doc .n5-matching-faq > div:first-child > h2 { font-size: 24px; }
}
/* 한 줄에 놓인 카드는 글 길이와 상관없이 높이를 같게 (매칭 기준 4단계·점수 대신 정렬 기준·예시 결과·한계, 이용 방법 단계·사용 사례) */
.n5 .n5-service-doc :is(.n5-algorithm-flow, .n5-score-factor-grid, .n5-example-results, .n5-limitations-grid, .n5-use-case-grid, .n5-guide-steps, .n5-feedback-grid) { align-items: stretch; }
.n5 .n5-service-doc .n5-algorithm-flow > b { align-self: center; }
/* 매칭 기준 '보여 주는 순서' 카드: 아이콘을 카드 안 픽셀 상자로 (테두리에 걸쳐 잘리지 않게), 높이는 내용만큼 */
.n5 .n5-service-doc .n5-score-factor-grid article { min-height: 0; padding: 22px; }
.n5 .n5-service-doc .n5-score-factor-grid article > .n5-factor-pixel { float: none; display: inline-grid; place-items: center; width: 52px; height: 52px; margin: 0 0 14px; border: 2px solid #cddfff; border-radius: 6px; background: #f5f9ff; box-shadow: 3px 3px 0 #dce8fc; }
.n5 .n5-service-doc .n5-score-factor-grid article > h3 { margin-top: 0; }

/* 안내 페이지 하단 탭 (로그인 후 · 모바일) — 서비스 하단 탭과 같은 모양 */
.n5x-doc-tabs { display: none; }
@media (max-width: 760px) {
  .n5x-doc-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); height: 64px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #e6eefe; font-family: Pretendard, "Noto Sans KR", sans-serif; }
  .n5x-doc-tabs a { display: grid; place-content: center; justify-items: center; gap: 2px; color: #637aaa; text-decoration: none; }
  .n5x-doc-tabs a.on { color: #0754ff; }
  .n5x-doc-tabs small { font-size: 13px; font-weight: 700; }
  .n5x-doc-tabs .n5x-dots { display: flex; gap: 3px; height: 24px; align-items: center; }
  .n5x-doc-tabs .n5x-dots i { width: 5px; height: 5px; background: currentColor; }
  body.n5x-has-tabs .n5-doc-footer { padding-bottom: 72px; }

  /* 안내 페이지 모바일 압축: 큰 여백·제목 줄이고 카드 그림자가 화면 밖으로 안 나가게 */
  .n5 main.n5-service-doc { padding: 0 12px; }
  .n5 main.n5-service-doc > section:not(.n5-doc-hero):not(.n5-doc-next) { margin: 12px 0 !important; padding: 18px 16px !important; box-shadow: 3px 3px 0 #e4ecfa; }
  .n5 .n5-service-doc .n5-doc-hero { min-height: 0 !important; margin: 12px 0 0 !important; padding: 26px 18px 24px !important; box-shadow: 3px 3px 0 #c7d7f4 !important; }
  .n5 .n5-service-doc .n5-doc-hero h1 { margin: 12px 0 10px !important; font-size: 30px !important; line-height: 1.2 !important; }
  .n5 .n5-service-doc .n5-doc-hero > p { font-size: 13px !important; line-height: 1.65 !important; }
  .n5 .n5-service-doc .n5-doc-hero > p br { display: none; }
  .n5 .n5-service-doc .n5-doc-hero > a { margin-top: 16px !important; }
  .n5 .n5-service-doc :is(.n5-guide-tiko, .n5-matching-hero-art) img { width: 76px !important; height: 76px !important; }
  .n5 .n5-service-doc :is(.n5-guide-tiko, .n5-matching-hero-art) span { font-size: 13px; }
  .n5 .n5-service-doc .n5-doc-section-heading { margin-bottom: 16px !important; }
  .n5 .n5-service-doc .n5-doc-section-heading h2 { margin: 8px 0 8px !important; }
  .n5 .n5-service-doc .n5-doc-section-heading p, .n5 .n5-service-doc :is(.n5-guide-detail-copy, .n5-judgment-heading, .n5-score-heading, .n5-code-system-copy) > p { margin: 10px 0 !important; font-size: 13px !important; line-height: 1.7 !important; }
  .n5 .n5-service-doc .n5-guide-detail-section { gap: 18px !important; min-height: 0 !important; }
  .n5 .n5-service-doc :is(.n5-judgment-section, .n5-score-section, .n5-code-system-section, .n5-matching-faq) { gap: 16px !important; }
  .n5 .n5-service-doc :is(.n5-algorithm-flow article, .n5-use-case-grid article, .n5-limitations-grid article, .n5-example-results article, .n5-score-factor-grid article, .n5-guide-steps article) { min-height: 0 !important; padding: 16px !important; }
  .n5 .n5-service-doc :is(.n5-algorithm-flow article, .n5-limitations-grid article) h3, .n5 .n5-service-doc .n5-use-case-grid small { margin-top: 12px !important; }
  .n5 .n5-service-doc .n5-algorithm-flow article > i { margin-top: 10px !important; }
  .n5 .n5-service-doc :is(.n5-guide-profile-preview, .n5-guide-result-preview, .n5-guide-calendar-preview, .n5-code-map) { padding: 16px !important; }
  .n5 .n5-service-doc .n5-doc-next { min-height: 0 !important; margin: 12px 0 !important; padding: 30px 18px !important; }
  .n5 .n5-service-doc .n5-doc-next h2 { margin: 10px 0 16px !important; font-size: 26px !important; }
  .n5 .n5-service-doc .n5-guide-shortcuts > div { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .n5 .n5-service-doc .n5-guide-shortcuts a { padding: 14px !important; }
  .n5 .n5x-faq-search { margin-top: 16px !important; height: 46px !important; }

}
@media (max-width: 760px) {
  .n5 .n5-service-doc .n5-algorithm-flow { gap: 8px !important; }
  .n5 .n5-service-doc .n5-algorithm-flow article { display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 12px; align-items: start; }
  .n5 .n5-service-doc .n5-algorithm-flow article > :is(.n5-pixel-step, svg) { display: none; }
  .n5 .n5-service-doc .n5-algorithm-flow article > i { grid-row: 1 / 4; width: 44px !important; height: 44px !important; margin: 0 !important; }
  .n5 .n5-service-doc .n5-algorithm-flow article h3 { margin: 0 0 4px !important; }
  .n5 .n5-service-doc .n5-algorithm-flow article small { margin-top: 6px !important; }
  .n5 .n5-service-doc .n5-guide-steps article { display: grid; grid-template-columns: 56px minmax(0,1fr); column-gap: 12px; }
  .n5 .n5-service-doc .n5-guide-steps article > .n5-pixel-step { grid-row: 1 / 4; }
  .n5 .n5-service-doc .n5-guide-steps article > .n5-guide-step-icon { display: none; }
  .n5 .n5-service-doc .n5-guide-steps h2 { margin: 4px 0 4px !important; }
}
/* 로그인 후 모바일 안내 페이지: 하단 회사 정보·로고 숨김 (하단 탭만) */
@media (max-width: 760px) { body.n5x-has-tabs .n5-doc-footer { display: none; } body.n5x-has-tabs main.n5-service-doc { padding-bottom: 80px !important; } }
/* 로그인 후 안내 페이지: 위(소개 칸 버튼)·아래(이동 섹션)의 결과 보기 안내는 숨김 */
body.n5x-authed .n5-service-doc .n5-doc-hero > a, body.n5x-authed .n5-service-doc .n5-doc-next { display: none !important; }
body.n5x-authed .n5-service-doc :is(.n5-guide-tiko, .n5-matching-hero-art) { display: none !important; }
body.n5x-authed .n5-service-doc .n5-doc-hero::before, body.n5x-authed .n5-service-doc .n5-doc-hero::after { display: none !important; }
/* 로그인 후 안내 페이지: 남색 소개 카드 섹션 자체를 숨김 */
body.n5x-authed .n5-service-doc .n5-doc-hero { display: none !important; }
.n5 .n5x-faq-cats > .n5x-faq-search { flex-basis: 100%; width: 100%; margin: 0 0 4px !important; }
/* 자주 묻는 질문 분류: 한 덩어리 픽셀 탭 (판정 탭과 같은 모양), 모바일은 5칸 한 줄 */
.n5 .n5x-faq-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.n5 .n5x-faq-cats > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 2px solid #0b1223; border-radius: 0; background: #fff; box-shadow: 2px 2px 0 #0b1223; color: #0b1223; font-size: 13px; font-weight: 800; white-space: nowrap; }
.n5 .n5x-faq-cats > a:hover { background: #fff6ca; }
@media (max-width: 760px) {
  .n5 .n5x-faq-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 12px !important; }
  .n5 .n5x-faq-cats > .n5x-faq-search { grid-column: 1 / -1; margin-bottom: 10px !important; }
  .n5 .n5x-faq-cats > a { flex-direction: column; gap: 2px; height: 58px; padding: 0 2px; border-right-width: 0; box-shadow: none; font-size: 12px; }
  .n5 .n5x-faq-cats > a:last-child { border-right-width: 2px; }
  .n5 .n5x-faq-cats > a span { white-space: nowrap; letter-spacing: -.3px; }
}
/* ── 안내 페이지(로그인 후) 맨 위 돌아가기 ── */
.n5 .n5x-docback { display: inline-flex; align-items: center; height: 36px; margin: 16px 0 0; padding: 0 12px; border: 2px solid #0b1223; background: #fff; box-shadow: 2px 2px 0 #0b1223; color: #0b1223; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }

/* 버튼 통일 (홈·안내·로그인 페이지) */
.n5 :is(.n5-yellow-button, .n5x-pp-go):not(:disabled) { border: 2px solid #0b1223 !important; border-radius: 0 !important; box-shadow: 3px 3px 0 #0b1223 !important; color: #0b1223 !important; font-weight: 900 !important; }
.n5 .n5-yellow-button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0b1223 !important; }
.n5 .n5x-site-header .n5-service-user > a.n5-yellow-button { box-shadow: 2px 2px 0 #0b1223 !important; }
/* 첫 화면 탭·필터 버튼도 픽셀 모양 (각진 네모 + 검은 테두리, 고른 것만 색) */
.n5 .n5-audience-tabs button { border: 2px solid #0b1223 !important; border-radius: 0 !important; box-shadow: 3px 3px 0 #0b1223 !important; }
.n5 .n5-audience-tabs button.n5-active { background: #ffdc27 !important; color: #0b1223 !important; }
.n5 .n5-home-filter > div button { border: 1px solid #c9d4e6 !important; border-radius: 0 !important; background: #fff !important; color: #4e617e !important; }
.n5 .n5-home-filter > div button.n5-active { border: 2px solid #0b1223 !important; background: #ffdc27 !important; color: #0b1223 !important; box-shadow: 2px 2px 0 #0b1223; }
.n5 .n5-home-filter, .n5 .n5-renew-search { border-radius: 0 !important; }
.n5 .n5-renew-search .n5-yellow-button { box-shadow: 2px 2px 0 #0b1223 !important; }
.n5 .n5-example-end a, .n5 .n5-panel-heading a { font-weight: 800; }
/* 첫 화면 모바일 하단 탭: 서비스 하단 탭과 같은 모양 */
@media (max-width: 760px) { .n5 .n5-renew-home > .n5-mobile-bottom { display: grid; grid-template-columns: repeat(4, 1fr); } .n5 .n5-renew-home > .n5-mobile-bottom a { display: grid; place-content: center; justify-items: center; gap: 2px; font-size: 0; } .n5 .n5-renew-home > .n5-mobile-bottom small { font-size: 13px; font-weight: 700; } }
