/* 앱 카드형 스킨(victory1002, 2026-09-26 시안 06). 색은 강조색 하나(palette.blue → --blue)에서 섞어 만든다.
   사이트마다 palette.blue 만 바꾸면 같은 틀이 다른 색으로 나온다. 글꼴은 레이아웃의 Pretendard. */
body.app {
  --p: var(--blue, #e5484d);
  --pd: color-mix(in srgb, var(--p) 78%, #000);
  --ps: color-mix(in srgb, var(--p) 9%, #fff);
  --pm: color-mix(in srgb, var(--p) 22%, #fff);
  --ink: #16181d; --mut: #5e6573; --line: #e3e6eb; --bg: #f2f4f7;
  background: var(--bg); color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
}
body.app .site-header { background: #fff; border-bottom: 0; }
body.app .site-header .brand { font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
body.app .site-header .primary-nav a { font-weight: 600; color: var(--mut); }
body.app .site-header .primary-nav a:hover { color: var(--p); }
body.app main, body.app .wrap { max-width: none; }

.ap { padding-bottom: 20px; }
.ap h1, .ap h2 { margin: 0; color: var(--ink); letter-spacing: -.025em; text-wrap: balance; }
.ap p { margin: 0; }
.ap a { color: inherit; text-decoration: none; }
.ap-in { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.ap-ic { width: 26px; height: 26px; flex: none; }
.ap-sec { padding-block: 14px 10px; }
.ap-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ap-sh h2 { font-size: 1.22rem; font-weight: 800; }
.ap-count { font-size: .85rem; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 800; font-size: .92rem; padding: 11px 18px; white-space: nowrap; background: var(--p); color: #fff; }
.ap .ap-btn-w { background: #fff; color: var(--pd); }   /* .ap a{color:inherit} 보다 세게 — 흰 버튼에 흰 글씨가 됐었다 */
.ap a:focus-visible, .ap summary:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; border-radius: 10px; }

/* 첫 화면 — 강조색 카드 하나가 이 틀의 대표 요소 */
.ap-hero { padding-block: 20px 6px; }
.ap-hi { background: var(--p); color: #fff; border-radius: 22px; padding: 26px 24px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.ap-hi h1 { color: #fff; font-size: 1.65rem; font-weight: 800; line-height: 1.3; }
.ap-hi p { opacity: .92; margin-top: 6px; line-height: 1.6; max-width: 60ch; }
.ap-hi-sub { grid-template-columns: auto 1fr; align-items: start; }
.ap-hero-ic { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.18); color: #fff; }
.ap-crumb { font-size: .8rem; opacity: .85; margin-bottom: 4px !important; }
.ap-crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* 분야 버튼 줄 — 휴대폰에서 옆으로 넘긴다 */
.ap-chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px 4px; scrollbar-width: none; }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chips a { flex: none; background: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.ap-chips a:hover { background: var(--ps); color: var(--pd); }
.ap-chips-wrap { flex-wrap: wrap; overflow: visible; }

/* 분야 카드 */
.ap-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ap-card { background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.ap-card .ap-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--ps); color: var(--p); margin-bottom: 4px; }
.ap-card b { font-size: 1.02rem; }
.ap-card small { color: var(--mut); font-size: .82rem; }
.ap-card em { font-style: normal; font-size: .8rem; font-weight: 800; color: var(--p); font-variant-numeric: tabular-nums; }
.ap-card:hover { box-shadow: 0 0 0 2px var(--pm); }

/* 업체 목록 */
.ap-list { background: #fff; border-radius: 20px; padding: 4px 16px; }
.ap-camp { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ap-camp:last-child { border-bottom: 0; }
.ap-camp-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--ps); display: grid; place-items: center; position: relative; }
.ap-camp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }   /* 아이콘 위에 덮는다 — 이미지가 깨지면 지우고 아이콘이 보인다 */
.ap-camp-ph { width: 28px; height: 28px; color: var(--p); }
.ap-camp-txt { min-width: 0; display: grid; gap: 2px; }
.ap-camp-txt em { justify-self: start; font-style: normal; font-size: .72rem; font-weight: 800; color: var(--pd); background: var(--ps); border-radius: 999px; padding: 1px 8px; }
.ap-camp-txt b { font-size: .98rem; line-height: 1.4; }
.ap-camp-txt small { color: var(--mut); font-size: .8rem; }
.ap-go { font-size: .84rem; font-weight: 800; color: #fff; background: var(--p); border-radius: 10px; padding: 9px 13px; white-space: nowrap; }
.ap-camp:hover .ap-go { background: var(--pd); }
.ap-note { font-size: .8rem; color: var(--mut); margin-top: 8px !important; }

/* 자주 묻는 질문 */
.ap-faq { background: #fff; border-radius: 20px; padding: 4px 18px; }
.ap-faq details { border-bottom: 1px solid var(--line); }
.ap-faq details:last-child { border-bottom: 0; }
.ap-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 10px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; color: var(--mut); font-weight: 500; }
.ap-faq details[open] summary::after { content: "−"; }
.ap-faq details p { color: var(--mut); font-size: .92rem; line-height: 1.7; padding-bottom: 14px; }
.ap-disc { font-size: .78rem; color: var(--mut); line-height: 1.6; }

/* 휴대폰 아래 고정 메뉴 — PC 에서는 숨김 */
.ap-tabbar { display: none; }

@media (max-width: 860px) { .ap-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .ap-in { padding-inline: 16px; }
  .ap-hi { grid-template-columns: 1fr; padding: 22px 20px; border-radius: 20px; }
  .ap-hi h1 { font-size: 1.36rem; }
  .ap-hi-sub { grid-template-columns: 1fr; }
  .ap-hero-ic { width: 44px; height: 44px; padding: 10px; }
  .ap-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ap-card { padding: 14px; border-radius: 16px; }
  .ap-camp { grid-template-columns: 52px 1fr; }
  .ap-camp-img { width: 52px; height: 52px; border-radius: 12px; }
  .ap-go { grid-column: 1 / -1; text-align: center; }
  .ap { padding-bottom: 76px; }
  .ap-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 7px 4px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .ap-tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--mut); }
  .ap-tabbar a.on { color: var(--p); }
  .ap-tabbar .ap-ic { width: 22px; height: 22px; }
}
