/* 사이트 공통 스타일 — 흰 배경, 남색·파랑 기업형. 엔진 화면(로그인·관리자)의 클래스(.card .btn .help .muted …)도 여기서 꾸민다 */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --text: #111827;
  --sub: #5b6474;
  --faint: #8a93a3;
  --line: #e4e8ee;
  --line-strong: #cfd6e0;
  --navy: #0b1f44;
  --accent: #1a56db;
  --accent-hover: #1543b0;
  --accent-soft: #eaf1ff;
  --accent-text: #ffffff;
  --danger: #c62828;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; letter-spacing: -0.025em; }
h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
h2 { font-size: 20px; margin: 40px 0 14px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; max-width: 1280px; }   /* 메뉴 8개 한 줄(약 1,231px)이 들어가게 머리글만 본문(1,180px)보다 넓게 */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }   /* 로고 H 아이콘 public/assets/img/logo-h.svg */
.gnb { display: flex; gap: 4px; margin-right: auto; }
.gnb-title { display: none; }
.gnb a { padding: 8px 9px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }   /* 메뉴 이름은 줄바꿈하지 않음 — 안 들어가면 아래 미디어 쿼리의 세로 메뉴로 */
.gnb a:hover { background: var(--bg-soft); text-decoration: none; }
.gnb a[aria-current="page"] { color: var(--accent); }
.util { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--sub); white-space: nowrap; }
.util a { color: var(--sub); }
.util form { margin: 0; }
.util .lang a[aria-current="true"] { color: var(--navy); font-weight: 700; }
.util .lang { display: flex; gap: 6px; }
.util .lang span { color: var(--line-strong); }

/* 본문 */
main { padding: 40px 0 80px; min-height: 60vh; }
main > .wrap > :first-child { margin-top: 0; }
.page-head { margin-bottom: 28px; }
.page-head p { margin: 0; color: var(--sub); }
.crumb { font-size: 14px; margin: 0 0 12px; }
.crumb a { color: var(--sub); }

/* 꼬리 */
/* 바닥글 — 대기업형 짙은 남색 (2026-10-25) */
.site-footer { background: #0b1f44; color: #aab6cc; font-size: 13px; padding: 48px 0 28px; margin-top: 48px; }
.site-footer a { color: #dfe6f3; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 28px; position: relative; }
.foot-brand { max-width: 520px; } .site-footer .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; }
.site-footer .brand:hover { text-decoration: none; } .site-footer .brand-mark { width: 34px; height: 34px; }
.foot-tag { margin: 10px 0 6px; color: #fff; font-size: 15px; font-weight: 700; } .foot-desc { margin: 0; line-height: 1.7; }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.foot-mail { font-size: 15px; font-weight: 700; color: #fff !important; }
.foot-lang { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 0 10px; }
.foot-lang select { background: transparent; color: #fff; border: 0; padding: 8px 4px; font-size: 13px; cursor: pointer; } .foot-lang select option { color: #0b1f44; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 28px; padding-bottom: 28px; position: relative; }
.foot-grid::after, .foot-top::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 640px) { .foot-grid::after, .foot-top::after { left: 16px; right: 16px; } }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-col h2 { font-size: 13px; font-weight: 800; color: #fff; margin: 0 0 4px; letter-spacing: .02em; }
.foot-col a { font-weight: 500; font-size: 14px; line-height: 1.4; word-break: keep-all; color: #c9d3e4; }
.foot-note { font-size: 12px; color: #8a97ae; line-height: 1.5; }
.foot-bottom { padding-top: 20px; color: #8a97ae; font-size: 12px; line-height: 1.7; } .foot-bottom p { margin: 0 0 4px; } .foot-copy { margin-top: 10px !important; color: #aab6cc; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-side { align-items: flex-start; } }

/* 공통 부품 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
/* 격자(grid) 안 카드는 위 여백을 주지 않음 — 위 규칙 때문에 첫 카드만 위로 올라가 줄이 어긋났음 */
:is(.shop-grid, .art-list, .rel-grid, .add-grid, .advice-grid, .pair-cards, .stats-row, .features, .glance-grid, .strip, .adv-cols, .kind-grid, .detail-grid) > .card { margin-top: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.narrow { max-width: 440px; margin: 24px auto; }
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 14px; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
input[type=checkbox] { accent-color: var(--accent); }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
}
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { background: var(--bg-soft); border-color: var(--line-strong); }
button.link { background: none; border: 0; color: inherit; padding: 0; font-weight: 400; font-size: inherit; }
button.link:hover { text-decoration: underline; background: none; }
.full { width: 100%; margin-top: 20px; }
.help { color: var(--sub); font-size: 13px; margin: 8px 0 0; }
.error { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid #f3c2c2; background: #fdf1f1; color: var(--danger); }
.muted { color: var(--sub); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); color: var(--sub); font-weight: 600; font-size: 13px; border-bottom-color: var(--line-strong); }
tbody tr:last-child > * { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table-wrap.card { padding: 0; }
.num { font-variant-numeric: tabular-nums; }
nav[aria-label] a[aria-current="page"] { font-weight: 700; }

/* 검색창 */
.search { display: flex; gap: 8px; max-width: 640px; }
.search input { height: 50px; font-size: 16px; padding-left: 18px; }
.search button { height: 50px; padding: 0 26px; }

/* 쪽 번호 */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pager a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 성분 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip .n { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 홈 */
body { overflow-x: clip; }
.hero { background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding: 72px 0 64px; margin: 0 calc(50% - 50vw) 48px; }
/* 100vw 는 스크롤바 폭까지 포함해 가로로 조금 넘침 → 페이지 가로 넘침만 잘라냄 (clip 은 sticky 머리글을 망가뜨리지 않음) */
html, body { overflow-x: clip; }
main > .wrap > .hero:first-child { margin-top: -40px; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 44px; line-height: 1.22; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: var(--sub); margin: 0 0 32px; max-width: 640px; }
.stats { display: flex; gap: 48px; margin-top: 36px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 28px; color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--sub); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature p { margin: 0; color: var(--sub); font-size: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-size: 14px; font-weight: 600; }

/* 제품 목록 */
.list-meta { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; font-size: 14px; color: var(--sub); }
.plist { border-top: 2px solid var(--navy); }
.prow { display: flex; gap: 14px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.prow input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.prow .body { flex: 1; min-width: 0; color: inherit; }
.prow .body:hover { text-decoration: none; }
.prow .body:hover .name { color: var(--accent); }
.prow .name { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--navy); }
.prow .meta { font-size: 12.5px; color: var(--sub); margin-top: 1px; }
.prow .ings { font-size: 13px; margin-top: 4px; color: var(--text); line-height: 1.5; }
.prow .go { color: var(--faint); font-size: 20px; align-self: center; }
.picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); margin-bottom: 12px; font-size: 14px; }
.picked strong { color: var(--accent); }
.picked label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }
.compare-bar { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; padding: 14px 0; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); margin-top: 8px; }

/* 제품 상세 */
.detail-head { padding-bottom: 24px; border-bottom: 2px solid var(--navy); margin-bottom: 28px; }
.detail-head .meta { color: var(--sub); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 20px; }
.detail-head .meta span + span::before { content: "·"; margin-right: 10px; color: var(--faint); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.detail-grid aside .card { background: var(--bg-soft); border-color: transparent; }
.facts dt { font-size: 13px; color: var(--sub); }
.facts dd { margin: 2px 0 14px; }
.facts dd:last-child { margin-bottom: 0; }
.source { font-size: 13px; color: var(--faint); margin-top: 24px; }
.disclaimer { margin-top: 40px; padding: 16px 18px; border-radius: 8px; background: var(--bg-soft); color: var(--sub); font-size: 13px; }

/* 비교 */
table.compare th[scope=col], table.compare td { min-width: 200px; }
table.compare thead th { background: #fff; color: var(--text); font-size: 15px; vertical-align: bottom; padding: 20px 14px; border-bottom: 2px solid var(--navy); }
table.compare thead th a.pname { color: var(--navy); font-weight: 700; }
table.compare th[scope=row] { min-width: 140px; position: sticky; left: 0; background: var(--bg-soft); font-weight: 600; color: var(--navy); }
table.compare td strong { font-size: 16px; color: var(--navy); }
table.compare .rm { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--faint); }
table.compare ul { margin: 0; padding-left: 18px; }

/* 성분 분류 */
.kind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.kind-grid .card h2 { margin: 0 0 14px; font-size: 17px; }

/* 메뉴 8개가 로고 옆 한 줄에 안 들어가는 폭(1239px 이하)부터: 로고·언어/로그인 한 줄 + 그 아래 메뉴를 세로로 한 개씩 (펼치기 버튼 없음, 늘 보임)
   머리글이 길어지므로 화면 위에 붙여 두지 않음 (sticky 해제) */
@media (max-width: 1239px) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; height: auto; gap: 6px 16px; padding-top: 10px; padding-bottom: 6px; }
  .util { margin-left: auto; }
  .gnb { order: 3; width: 100%; margin: 0; flex-direction: column; gap: 0; }
  /* 제목 "메뉴" = 화면 제목(h1)과 같은 크기: 30px, 520px 이하 24px */
  .gnb-title { display: block; padding: 12px 4px 10px; font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); border-top: 1px solid var(--line); }
  .gnb a { padding: 9px 4px; border-radius: 0; font-size: 14px; border-top: 1px solid var(--line); }
  .gnb a:hover { background: var(--bg-soft); }
  .gnb a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 var(--accent); padding-left: 12px; }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .features, .kind-grid, .detail-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  h1, .gnb-title { font-size: 24px; }
  .hero h1 { font-size: 27px; }
  .search { flex-direction: column; }
  .search button { width: 100%; }
  .card { padding: 18px; }
}
.hero + .section-head h2 { margin-top: 0; }
.kind-grid > .card { margin-top: 0; }
.chip.empty { color: var(--faint); background: var(--bg-soft); border-color: transparent; }

/* 연관검색어 */
.suggest { position: absolute; left: 0; right: 0; top: 54px; z-index: 30; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; text-align: left; }
.suggest b { display: block; padding: 8px 14px 4px; font-size: 12px; color: var(--faint); font-weight: 600; }
.suggest a { display: block; padding: 8px 14px; color: var(--text); font-size: 15px; }
.suggest a:hover { background: var(--bg-soft); text-decoration: none; }
.suggest a span { color: var(--faint); font-size: 13px; margin-left: 6px; }

/* 새로고침 없는 이동 중: 위쪽 얇은 막대 */
body.is-loading::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1000; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; animation: hf-load 0.9s linear infinite; }
body.is-loading main { opacity: 0.6; transition: opacity 0.15s; }
@keyframes hf-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* 다이소 건기식 카드: 휴대폰에서 2칸 유지, 여백·사진 줄임 */
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shop-card { padding: 10px; font-size: 13px; }
  .shop-card .s-name { font-size: 13px; }
  .shop-card .s-links { font-size: 12px; }
  .shop-filter a { font-size: 13px; padding: 5px 10px; }
}

/* 휴대폰: 성분별 제품 표 → 줄마다 작은 카드 (이름 위, 1일 섭취·기준 대비·표시량 한 줄), 숫자·배지는 줄바꿈 안 함 */
@media (max-width: 640px) {
  table.ptab thead { display: none; }
  table.ptab, table.ptab tbody, table.ptab tr { display: block; }
  table.ptab tr { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.ptab td { display: block; border: 0; padding: 0; }
  table.ptab td.pn { grid-row: span 4; padding-top: 2px; }
  table.ptab td[data-label] { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 4px; text-align: left; }
  table.ptab td[data-label]::before { content: attr(data-label); flex: none; width: 64px; font-size: 12px; color: var(--faint); }
  table.ptab td strong, table.ptab .rs { white-space: nowrap; }
  table.ptab tr.sus { opacity: .7; }
  /* 비교: 성분 이름을 소제목으로, 그 아래 제품별 값을 2칸씩 (가로 스크롤·가려짐 없음) */
  .table-wrap:has(> table.compare) { overflow: visible; }
  table.compare, table.compare tbody, table.compare tr { display: block; }
  table.compare thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  table.compare thead th { min-width: 0 !important; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
  table.compare thead th:first-child { display: none; }
  table.compare tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; padding: 0 10px 10px; border-top: 1px solid var(--line); }
  table.compare th[scope=row] { grid-column: 1 / -1; position: static; min-width: 0; background: none; padding: 10px 0 4px; }
  table.compare td { min-width: 0 !important; display: block; padding: 6px 8px; border: 0; background: var(--bg-soft); border-radius: 8px; margin-top: 4px; text-align: left; font-size: 14px; overflow-wrap: anywhere; }
  table.compare td[data-p]::before { content: attr(data-p); display: block; font-size: 11px; color: var(--faint); font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.compare td strong { white-space: nowrap; }
}

/* 관리자 머리글 알림종 (App\Admin\Notice) */
.bell { position: relative; display: inline-block; }
.bell > summary { list-style: none; cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px; user-select: none; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary b { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: #d32f2f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: top; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 30, 60, .15); padding: 6px; text-align: left; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 14px; } .bell-head form { margin: 0; }
.bell-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; }
.bell-item:hover { background: var(--bg-soft); } .bell-item.new { background: #fff8f8; }
.bell-item .t { font-weight: 600; } .bell-item .at { color: var(--faint); font-size: 11px; white-space: nowrap; } .bell-item .d { grid-column: 1 / -1; color: var(--muted, #555); font-size: 12px; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bell-item.lv-error { border-left-color: #d32f2f; } .bell-item.lv-warn { border-left-color: #f0a000; } .bell-item.lv-info { border-left-color: var(--accent); }
.bell-empty { padding: 10px; font-size: 13px; margin: 0; }
.credit-bar { background: #c62828; color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; } .credit-bar a { color: #fff; text-decoration: underline; }

/* 앱 모양 (body.is-app — 약도 앱 WebView 또는 ?app=1): 위 로고·찾기, 아래 탭 5개, 큰 바닥글 숨김 (2026-10-25) */
.is-app .site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }   /* blur 가 있으면 안의 fixed(탭 막대)가 머리글 기준이 됨 */
.is-app .site-header .wrap { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 54px; padding-top: 0; padding-bottom: 0; }
.is-app .site-header .brand { font-size: 18px; }
.is-app .app-search { font-size: 20px; text-decoration: none; padding: 6px; }
.is-app main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.is-app .site-footer { display: none; }
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 30, 60, .06); padding-bottom: env(safe-area-inset-bottom); }
.app-tabs > a, .app-more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; font-size: 11px; font-weight: 600; color: var(--sub); text-decoration: none; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-more > summary::-webkit-details-marker { display: none; }
.app-tabs .ic { display: block; width: 24px; height: 24px; line-height: 0; color: #8A94A6; }
.app-tabs .ic svg { display: block; }
.app-tabs > a[aria-current], .app-more[data-on] > summary, .app-more[open] > summary { color: var(--accent); }
.app-tabs > a[aria-current] .ic, .app-more[data-on] > summary .ic, .app-more[open] > summary .ic { color: var(--accent); }
.app-more { position: static; }
.app-sheet { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); max-height: 70vh; overflow: auto; background: #fff; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(15, 30, 60, .15); padding: 10px 20px 16px; display: flex; flex-direction: column; }
.app-sheet > a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
.app-sheet > a[aria-current] { color: var(--accent); }
.app-sheet hr { border: 0; height: 8px; margin: 0; }
.app-sheet form { margin: 0; padding: 10px 4px; } .app-sheet .app-who { padding: 10px 4px 0; color: var(--faint); font-size: 13px; }
.app-legal { padding: 12px 4px 0; font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 10px; } .app-legal a { color: var(--sub); } .app-legal a[aria-current] { color: var(--accent); font-weight: 700; }
.app-more[open] > summary::before { content: ""; position: fixed; inset: 0 0 calc(60px + env(safe-area-inset-bottom)) 0; background: rgba(11, 31, 68, .35); z-index: -1; }
.is-app .compare-bar { bottom: calc(60px + env(safe-area-inset-bottom)); }   /* 앱: 아래 탭 막대 위에 붙게 */
/* 앱: 맨 위 로고 막대는 플러터가 고정으로 그림 (2026-10-25) → 사이트 로고 줄은 숨기고 아래 탭만 */
.is-app .site-header { position: static; height: 0; border: 0; background: transparent; }
.is-app .site-header .wrap { height: 0; padding: 0; }
.is-app .site-header .brand, .is-app .app-search { display: none; }

/* 앱 안 웹 화면(상식 글·내 계정·약관 등)을 플러터 화면과 같은 모양으로 (2026-10-25 사용자: "AI 글은 PHP 그대로, 디자인은 플러터에 맞게")
   플러터 ui.dart 와 같은 값: 바탕 #F6F8FC · 제목 22px 굵게 남색 + 회색 한 줄 13.5px · 흰 카드 둥글기 16 · 테두리 #E6EBF3 · 파란색 하나 */
.is-app { background: #F6F8FC; }
.is-app main { padding-top: 6px; }
.is-app main .wrap { padding: 0 16px; }
.is-app h1, .is-app .page-head h1 { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.4px; line-height: 1.3; margin: 18px 0 4px; }
.is-app .page-head { margin: 0 0 12px; padding: 0; border: 0; background: none; }
.is-app .page-head p, .is-app .art .lead { font-size: 13.5px; color: rgba(0,0,0,.54); line-height: 1.45; margin: 0; }
.is-app .card, .is-app .art .sec, .is-app .glance, .is-app .toc, .is-app .art .faq, .is-app .related { background: #fff; border: 1px solid #E6EBF3; border-radius: 16px; box-shadow: none; padding: 16px; margin: 0 0 12px; }
.is-app .art .sec h2, .is-app .card h2, .is-app .glance-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.is-app .art p, .is-app .art li { font-size: 15px; line-height: 1.65; }
.is-app .art-hero img { border-radius: 16px; }
.is-app .tabs { gap: 6px; flex-wrap: wrap; } .is-app .tabs a { border: 1px solid #DDE3EE; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.is-app .tabs a[aria-current] { background: #EAF1FF; border-color: #EAF1FF; color: var(--accent); }
.is-app .btn, .is-app button:not(.link) { border-radius: 12px; }
.is-app .help, .is-app .muted { font-size: 12.5px; }
