/* 쓸모 — 공통 스타일. 도구는 여기 있는 부품 클래스를 조합해서 만든다.
   양식 : 옅은 회색 바탕(--page) 위의 흰 카드와 흰 판, 분류 색 아이콘, 파란 강조색, 큰 입력칸과 단추. 간격은 4px 단위. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f4f6; --surface-3: #e5e8eb; --line: #e5e8eb; --line-strong: #d1d6db;
  --text: #191f28; --text-2: #4e5968; --muted: #6b7684; --primary: #2463eb; --primary-strong: #1b4fd1; --primary-soft: #eaf1ff;
  --on-primary: #ffffff; --accent: #c2410c; --warn-bg: #fff6e5; --warn-line: #f2c774; --danger: #d92d20;
  --ok: #17803d; --radius: 20px; --radius-sm: 12px; --shadow: 0 2px 8px rgba(0, 0, 0, .06);
  --icon-bg: 13%; --icon-ink: 88%; --c: var(--primary); --page: #f5f5fa;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "D2Coding", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171c; --surface: #1e1e24; --surface-2: #2a2a33; --surface-3: #383844; --line: #2f2f38; --line-strong: #4a4a57;
    --text: #ececf0; --text-2: #c3c3cc; --muted: #9a9aa8; --primary: #5a8dff; --primary-strong: #8fb1ff; --primary-soft: #1d2a4d;
    --on-primary: #0b1220; --accent: #fb923c; --warn-bg: #33290f; --warn-line: #7a5f17; --danger: #f97066; --ok: #4ade80;
    --shadow: none; --icon-bg: 24%; --icon-ink: 60%; --page: #131317;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.6 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; accent-color: var(--primary); -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--primary) 24%, transparent); }
a { color: var(--primary); text-underline-offset: 3px; }
img, canvas, video, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); line-height: 1.3; margin: 8px 0 12px; letter-spacing: -.03em; }
h2 { font-size: 1.375rem; line-height: 1.4; margin: 56px 0 16px; letter-spacing: -.02em; }
h3 { font-size: 1.0625rem; margin: 28px 0 8px; letter-spacing: -.01em; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ico { flex: none; width: 18px; height: 18px; vertical-align: -3px; }

/* 틀 */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 20px; } }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; color: var(--text); text-decoration: none; flex: none; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: 1rem; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; white-space: nowrap; font-size: .9375rem; font-weight: 500; transition: background-color .12s, color .12s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current] { color: var(--primary); font-weight: 700; }
.nav-all { flex: none; font-size: .875rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); transition: background-color .12s; }
.nav-all:hover { background: color-mix(in srgb, var(--primary) 18%, var(--bg)); }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 80px; }
.main { min-width: 0; }
.side { display: none; }
@media (min-width: 1100px) {
  .page:not(.page-wide) { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
  .side { display: block; }
  .side > .ad { position: sticky; top: 88px; }
  .side > .side-nav:last-child { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; }
}
.crumb { font-size: .875rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.lead { color: var(--text-2); margin: 0 0 16px; font-size: 1.0625rem; max-width: 42em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 500; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.badge .ico { width: 14px; height: 14px; }
.badge-safe { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* 옆 기둥 — 같은 분류 도구 */
.side-nav { margin: 0 0 24px; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; }
.side-nav h2 { font-size: .8125rem; font-weight: 600; color: var(--muted); margin: 8px 0 8px; padding: 0 12px; letter-spacing: 0; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a .ico { flex: none; width: 18px; height: 18px; opacity: .8; }
.side-nav li a { display: flex; align-items: center; gap: 10px; }
.side-nav a { display: block; padding: 10px 12px; border-radius: 10px; font-size: .9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; transition: background-color .12s, color .12s; }
.side-nav a:hover { background: var(--page); color: var(--text); }
.side-nav a[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav .side-more { margin-top: 12px; color: var(--muted); font-weight: 500; }

/* 도구 카드 */
.tool { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 32px; margin: 0 0 16px; }
@media (max-width: 520px) { .tool { padding: 20px 16px; border-radius: 16px; margin-left: -8px; margin-right: -8px; } }
.tool h2 { font-size: 1.0625rem; margin: 24px 0 12px; }
.tool h2:first-child { margin-top: 0; }
.field { display: grid; gap: 8px; margin: 0 0 20px; }
.field > label, .field > .label { font-weight: 600; font-size: .875rem; color: var(--text-2); }
.hint { font-size: .8125rem; color: var(--muted); margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=search], input[type=tel], input[type=month], select, textarea {
  width: 100%; font: inherit; letter-spacing: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; min-height: 50px;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
input[type=range] { width: 100%; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9375rem; }
.unit { position: relative; }
.unit input { padding-right: 48px; }
.unit > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9375rem; pointer-events: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; letter-spacing: inherit; font-weight: 600; min-height: 50px; padding: 12px 24px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); font-weight: 500; padding: 8px 12px; min-height: 40px; }
.btn-ghost:hover { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: .875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }

/* 선택 단추 묶음 : <div class="seg"><label><input type="radio" name=x><span>글</span></label>…</div> */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9375rem; font-weight: 500; color: var(--text); background: var(--surface); transition: background-color .12s, border-color .12s, color .12s; }
.seg label:hover span { border-color: var(--text); }
.seg input:checked + span { background: var(--text); border-color: var(--text); color: var(--surface); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 파일 올리기 */
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 56px 16px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--page); cursor: pointer; color: var(--muted); transition: background-color .12s, border-color .12s; }
.dropzone:hover { border-color: var(--primary); }
.dropzone strong { color: var(--text); font-size: 1.125rem; font-weight: 600; }
.dropzone.is-over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stage { position: relative; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; min-height: 160px; touch-action: none; }
.stage canvas, .stage img { display: block; max-width: 100%; max-height: 70vh; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); font-size: .9375rem; min-width: 0; }
.file-list li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list img, .file-list canvas { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* 결과 */
.result { margin-top: 24px; padding: 24px; border-radius: 16px; background: var(--page); border: 1px solid var(--line); }
.result-main { font-size: clamp(1.75rem, 5.5vw, 2.375rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; color: var(--primary); font-variant-numeric: tabular-nums; }
.result-label { font-size: .875rem; font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 16px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.35; letter-spacing: -.02em; }
.stat span { font-size: .8125rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
@media (min-width: 521px) { .table-wrap > table { min-width: 400px; } }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
thead th { background: var(--page); font-size: .8125rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total > * { font-weight: 700; background: var(--page); }
.note { font-size: .875rem; color: var(--text-2); background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0 0; }
.result .note { background: var(--surface); }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--text); }
.error { color: var(--danger); font-size: .875rem; margin: 8px 0 0; }
.disclaimer { font-size: .8125rem; color: var(--muted); margin: 0 0 8px; }
.share { display: flex; gap: 4px; margin: 0 0 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 500; z-index: 50; max-width: calc(100vw - 32px); }

/* 설명 글 */
.guide { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 32px; margin: 0 0 24px; }
@media (max-width: 520px) { .guide { padding: 20px 16px; margin-left: -8px; margin-right: -8px; } }
.guide > :first-child { margin-top: 0; }
.guide > h2 { margin-top: 40px; font-size: 1.25rem; font-weight: 600; }
.guide > p, .guide > ul, .guide > ol { max-width: 44em; }
.guide p, .guide li { color: var(--text-2); }
.guide ul, .guide ol { padding-left: 20px; }
.guide li { margin: 6px 0; }
.howto { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.howto li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 12px; background: var(--page); border: 1px solid var(--line); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 600; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-2); }
.sources { font-size: .875rem; }
.updated { font-size: .8125rem; color: var(--muted); margin-top: 32px; }

/* 분류 색 — 카드 아이콘 바탕에 쓴다 */
[data-cat=photo] { --c: #4c7df0; } [data-cat=pdf] { --c: #e2625f; } [data-cat=work] { --c: #2fa37c; } [data-cat=money] { --c: #e0913a; }
[data-cat=fortune] { --c: #8672e8; } [data-cat=fun] { --c: #d9628c; } [data-cat=life] { --c: #3597ad; } [data-cat=baby] { --c: #ea8253; }

/* 카드 목록 — 옅은 회색 바탕 위의 흰 카드. 아이콘 → 이름 → 설명을 세로로 쌓는다 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cards-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; min-height: 176px; padding: 24px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--muted); box-shadow: 0 6px 20px rgba(30, 30, 60, .08); }
.card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--c) var(--icon-bg), var(--surface)); color: color-mix(in srgb, var(--c) var(--icon-ink), #fff); margin-bottom: 14px; }
.card-icon .ico { width: 24px; height: 24px; }
.card strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.card-desc { font-size: .875rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .cards, .cards-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { min-height: 0; padding: 16px; border-radius: 14px; }
  .card-icon { width: 38px; height: 38px; margin-bottom: 10px; } .card-icon .ico { width: 21px; height: 21px; }
  .card strong { font-size: 1rem; } .card-desc { font-size: .8125rem; -webkit-line-clamp: 2; }
}
.tool-title { display: flex; align-items: center; gap: 14px; }
.tool-title .card-icon { width: 52px; height: 52px; border-radius: 12px; margin: 0; }
.tool-title .card-icon .ico { width: 28px; height: 28px; }
@media (max-width: 520px) { .tool-title { gap: 12px; } .tool-title .card-icon { width: 42px; height: 42px; } .tool-title .card-icon .ico { width: 23px; height: 23px; } }

/* 홈 머리 — 제목, 한 줄 소개, 검색, 분류 고르기 */
.hero { text-align: center; }
.hero-in { padding-top: 40px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.625rem); font-weight: 700; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.035em; }
.hero-lead { color: var(--text-2); margin: 0 auto 28px; max-width: 36em; font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.55; }
.search { display: flex; align-items: center; gap: 4px; max-width: 520px; margin: 0 auto; padding: 0 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); transition: border-color .12s, box-shadow .12s; }
.search:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.search .ico { width: 20px; height: 20px; }
.search input, .search input:focus, .search input:focus-visible { flex: 1; min-width: 0; min-height: 52px; padding: 0 10px; font-size: 1rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none; }
.search-empty { color: var(--muted); margin: 16px 0 0; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 28px 0 0; }
.tabs a { padding: 5px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .12s, background-color .12s, color .12s; }
.tabs a:hover { border-color: var(--text); }
.tabs a.on { background: var(--text); border-color: var(--text); color: var(--surface); }
@media (max-width: 560px) { .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; } .tabs::-webkit-scrollbar { display: none; } .tabs a { font-size: .9375rem; } }

/* 분류 묶음 */
.home-tools { padding-top: 8px; }
.home-about { margin-top: 40px; }
.home-about h3 { margin: 28px 0 6px; font-size: 1.0625rem; font-weight: 600; }
.home-about h3 + p { margin-top: 0; max-width: 44em; }
.cat { margin-top: 40px; scroll-margin-top: 80px; }
.cat.off { display: none; }
.cat-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 14px; }
.cat h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.cat h2 a { color: var(--text); text-decoration: none; }
.cat-desc { flex: 1; min-width: 12em; color: var(--muted); font-size: .875rem; margin: 0; }
.cat-more { flex: none; font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.cat-more:hover { color: var(--text); }
@media (max-width: 640px) { .cat-desc { display: none; } .cat-more { margin-left: auto; } }
.page-head { margin: 8px 0 24px; }
.page-head .lead { margin: 0; }
.related h2 { font-size: 1.25rem; font-weight: 600; margin-top: 40px; }

/* 광고 — 높이를 미리 잡아 레이아웃 밀림을 막는다. 단추와 최소 24px 떨어뜨린다 */
.ad { position: relative; margin: 24px 0; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.ad-top { min-height: 100px; margin: 0 0 18px; }
.ad-after-tool, .ad-in-tool { min-height: 280px; }
.ad-in-guide { min-height: 200px; }
.ad-bottom { min-height: 250px; }
.ad-home-mid { min-height: 120px; }
.ad-sidebar { min-height: 600px; margin: 0; }
@media (min-width: 760px) { .ad-top { min-height: 90px; } }
.ad.ad-custom { min-height: 0; }
.ad-custom iframe, .ad-custom ins { max-width: 100%; }
.ad-disclosure { margin: 6px 0 0; font-size: .75rem; color: var(--muted); }
.ad-preview { display: grid; place-items: center; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: .85rem; background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 45%, transparent) 10px 11px); }
.ad-house.ad-preview { min-height: 90px; border-color: var(--accent); color: var(--accent); }

/* 자체 상품 배너 */
.house { display: grid; gap: 4px; padding: 20px 24px; margin: 24px 0; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--surface-2); transition: background-color .12s; }
.house:hover { background: var(--surface-3); }
.house-tag { font-size: .8125rem; font-weight: 600; color: var(--accent); }
.house strong { font-size: 1.0625rem; font-weight: 700; }
.house-text { font-size: .875rem; color: var(--muted); }
.house-cta { font-weight: 600; color: var(--accent); margin-top: 4px; }
.house-small { padding: 16px 20px; }
.house-small strong { font-size: 1rem; }

/* 꼬리말 */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .875rem; color: var(--muted); }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.footer-brand p { margin: 12px 0 0; max-width: 24em; }
.footer-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 28px 16px; }
.footer-cats h2 { font-size: .875rem; font-weight: 600; margin: 0 0 10px; letter-spacing: 0; }
.footer-cats h2 a { color: var(--text); text-decoration: none; }
.footer-cats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-cats a { color: var(--muted); text-decoration: none; }
.footer-cats a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.footer-meta { margin: 0; }
.footer-meta a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.footer-meta a:hover { color: var(--text); }
.footer-note { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .ad, .house, .share, .side, .related { display: none !important; } }
.crumb + .guide { margin-top: 12px; }
