/* 쓸모 — 공통 스타일. 도구는 여기 있는 부품 클래스를 조합해서 만든다. */
:root {
  --bg: #f4f6f7; --surface: #ffffff; --surface-2: #eef2f1; --line: #e1e6e4; --line-strong: #c5cec9;
  --text: #101a17; --muted: #5a6862; --primary: #0f766e; --primary-strong: #0b5a54; --primary-soft: #e3f3f0;
  --on-primary: #ffffff; --accent: #c2410c; --warn-bg: #fff6e5; --warn-line: #f2c774; --danger: #b42318;
  --ok: #17803d; --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 23, .06);
  --shadow: 0 1px 2px rgba(16, 26, 23, .05), 0 8px 24px rgba(16, 26, 23, .06);
  --shadow-lg: 0 2px 4px rgba(16, 26, 23, .06), 0 16px 40px rgba(16, 26, 23, .12);
  --hero-a: #0f766e; --hero-b: #0a3d39; --hero-text: #ffffff; --hero-muted: #c9e6e1;
  --footer-bg: #0e1b18; --footer-text: #dbe5e1; --footer-muted: #93a69f; --footer-line: #243631;
  --cat-mix: 100%; --c: var(--primary);
  --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: #0f1412; --surface: #181f1c; --surface-2: #212a26; --line: #2c3631; --line-strong: #44524b;
    --text: #e8eeea; --muted: #9aa8a0; --primary: #3fb8a9; --primary-strong: #63cdbf; --primary-soft: #17302c;
    --on-primary: #06211e; --accent: #fb923c; --warn-bg: #33290f; --warn-line: #7a5f17; --danger: #f97066; --ok: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
    --hero-a: #11544e; --hero-b: #0a2623;
    --footer-bg: #0a0e0d; --footer-line: #1e2925;
    --cat-mix: 55%;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
img, canvas, video, svg { max-width: 100%; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); font-weight: 800; line-height: 1.25; margin: .3em 0 .35em; letter-spacing: -.03em; }
h2 { font-size: 1.28rem; font-weight: 700; line-height: 1.35; margin: 1.9em 0 .6em; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; letter-spacing: -.01em; }
.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 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.ico { flex: none; width: 1.15em; height: 1.15em; vertical-align: -.18em; }

/* 틀 */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.site-header { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; 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: linear-gradient(140deg, var(--primary), var(--primary-strong)); color: var(--on-primary); font-size: .98rem; box-shadow: var(--shadow-sm); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .94rem; font-weight: 500; transition: background .12s, color .12s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current] { color: var(--primary-strong); background: var(--primary-soft); font-weight: 700; }
.nav-all { flex: none; font-size: .9rem; font-weight: 700; text-decoration: none; padding: 8px 15px; border-radius: 999px; background: var(--primary); color: var(--on-primary); transition: background .12s; }
.nav-all:hover { background: var(--primary-strong); }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 22px; padding-bottom: 64px; }
.main { min-width: 0; }
.side { display: none; }
@media (min-width: 1100px) {
  .page:not(.page-wide) { grid-template-columns: minmax(0, 1fr) 300px; }
  .side { display: block; }
  .side > .ad { position: sticky; top: 82px; }
  .side > .side-nav:last-child { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.crumb { font-size: .85rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--primary-strong); text-decoration: underline; }
.crumb span { color: var(--text); font-weight: 500; }
.lead { color: var(--muted); margin: 0 0 .8em; font-size: 1.05rem; max-width: 46em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.badge-safe { background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; font-weight: 700; }

/* 옆 기둥 — 같은 분류 도구 */
.side-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px 10px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.side-nav h2 { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 0 6px 8px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.side-nav a { display: block; padding: 7px 10px; border-radius: 8px; font-size: .91rem; color: var(--muted); text-decoration: none; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current] { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.side-nav .side-more { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--primary-strong); font-weight: 600; }

/* 도구 카드 */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 0 0 14px; }
@media (max-width: 520px) { .tool { padding: 16px; border-radius: 14px; margin-left: -6px; margin-right: -6px; } }
.tool h2 { font-size: 1.05rem; margin: 1.2em 0 .5em; }
.tool h2:first-child { margin-top: 0; }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > label, .field > .label { font-weight: 600; font-size: .93rem; }
.hint { font-size: .84rem; 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; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 13px; min-height: 46px;
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type=range] { width: 100%; accent-color: var(--primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.unit { position: relative; }
.unit input { padding-right: 44px; }
.unit > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; min-height: 46px; padding: 9px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; box-shadow: 0 1px 2px color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* 선택 단추 묶음 : <div class="seg"><label><input type="radio" name=x><span>글</span></label>…</div> */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.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 15px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .92rem; background: var(--surface); transition: background .12s, border-color .12s; }
.seg label:hover span { border-color: var(--primary); }
.seg input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

/* 파일 올리기 */
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; padding: 40px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; color: var(--muted); transition: background .12s, border-color .12s; }
.dropzone:hover { border-color: var(--primary); }
.dropzone strong { color: var(--text); font-size: 1.08rem; }
.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: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .92rem; 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: 6px; flex: none; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }

/* 결과 */
.result { margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.result-main { font-size: clamp(1.6rem, 5vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--primary-strong); font-variant-numeric: tabular-nums; }
.result-label { font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0 0 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.stat b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.table-wrap { overflow-x: auto; margin: 12px 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: 10px 13px; 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(--surface-2); font-size: .86rem; 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(--surface-2); }
.note { font-size: .88rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 13px; margin: 12px 0 0; }
.note.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--text); }
.error { color: var(--danger); font-size: .9rem; margin: 6px 0 0; }
.disclaimer { font-size: .84rem; color: var(--muted); margin: 0 0 6px; }
.share { display: flex; gap: 4px; margin: 0 0 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: .92rem; font-weight: 600; z-index: 50; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }

/* 설명 글 */
.guide { max-width: 46em; }
.guide > h2 { padding-top: 1.5em; border-top: 1px solid var(--line); }
.guide > h1 + h2, .guide > h2:first-child { padding-top: 0; border-top: 0; }
.guide p, .guide li { color: var(--text); }
.guide ul, .guide ol { padding-left: 1.3em; }
.guide li { margin: .3em 0; }
.howto { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.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); color: var(--on-primary); font-weight: 700; font-size: .82rem; margin-top: 1px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 0 0 8px; transition: border-color .12s; }
.faq details:hover, .faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; 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 16px 16px; color: var(--muted); }
.sources { font-size: .9rem; }
.updated { font-size: .82rem; color: var(--muted); margin-top: 1.6em; }

/* 분류 색 — 아이콘 타일에만 쓴다 */
[data-cat=photo] { --c: #2563eb; } [data-cat=pdf] { --c: #dc2626; } [data-cat=work] { --c: #0f766e; } [data-cat=money] { --c: #b45309; }
[data-cat=fortune] { --c: #7c3aed; } [data-cat=fun] { --c: #db2777; } [data-cat=life] { --c: #0891b2; } [data-cat=baby] { --c: #ea580c; }
.cat-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; color: color-mix(in srgb, var(--c) var(--cat-mix), #fff); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.cat-icon .ico { width: 22px; height: 22px; }
.cat-icon-sm { width: 28px; height: 28px; border-radius: 8px; }
.cat-icon-sm .ico { width: 16px; height: 16px; }
.cat-icon-lg { width: 56px; height: 56px; border-radius: 16px; }
.cat-icon-lg .ico { width: 28px; height: 28px; }

/* 카드 목록 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cards-lg { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { position: relative; display: grid; align-content: start; gap: 4px; padding: 15px 38px 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card::after { content: ""; position: absolute; right: 17px; top: 21px; width: 7px; height: 7px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); transition: border-color .15s, right .15s; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::after { border-color: var(--primary); right: 14px; }
.card strong { font-size: 1rem; letter-spacing: -.01em; }
.card span { font-size: .85rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 머리 */
.hero { color: var(--hero-text); background: radial-gradient(900px 380px at 85% -10%, color-mix(in srgb, #fff 16%, transparent), transparent 70%), linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.hero-in { padding-top: 52px; padding-bottom: 44px; }
@media (max-width: 520px) { .hero-in { padding-top: 34px; padding-bottom: 30px; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(255, 255, 255, .14); color: var(--hero-text); }
.hero h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); margin: 0 0 .35em; max-width: 16em; }
.hero-lead { color: var(--hero-muted); margin: 0 0 24px; max-width: 38em; font-size: 1.06rem; }
.search { position: relative; display: block; max-width: 640px; color: var(--muted); }
.search .ico { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; }
.search input { font-size: 1.05rem; min-height: 58px; padding: 14px 18px 14px 50px; border-radius: 14px; border-color: transparent; box-shadow: var(--shadow-lg); }
.search input:hover { border-color: transparent; }
.search input:focus { border-color: var(--primary); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 255, 255, .28); }
.search-empty { color: var(--hero-muted); margin: 12px 0 0; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; font-size: .92rem; color: var(--hero-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ico { color: var(--hero-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .12s; }
.chip:hover { border-color: var(--primary); }
.chip b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 분류 묶음 */
.cat { margin-top: 40px; scroll-margin-top: 84px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.cat-head-text { flex: 1; min-width: 0; }
.cat h2 { margin: 0; font-size: 1.3rem; }
.cat h2 a { color: var(--text); text-decoration: none; }
.cat h2 a:hover { color: var(--primary-strong); }
.cat-desc { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.cat-more { flex: none; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat-more:hover { text-decoration: underline; }
@media (max-width: 640px) { .cat-desc { display: none; } }
.page-head { display: flex; align-items: center; gap: 16px; margin: 12px 0 20px; }
.page-head h1 { margin: 0 0 .15em; }
.page-head .lead { margin: 0; }
.related h2 { font-size: 1.15rem; }

/* 광고 — 높이를 미리 잡아 레이아웃 밀림을 막는다. 단추와 최소 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: 2px; padding: 18px 20px; margin: 20px 0; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); transition: box-shadow .15s; }
.house:hover { box-shadow: var(--shadow); }
.house-tag { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.house strong { font-size: 1.1rem; }
.house-text { font-size: .9rem; color: var(--muted); }
.house-cta { font-weight: 700; color: var(--accent); margin-top: 6px; }
.house-small { padding: 14px 16px; }
.house-small strong { font-size: 1rem; }

/* 꼬리말 */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 32px; font-size: .88rem; }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } }
.site-footer .logo { color: #fff; }
.footer-brand p { color: var(--footer-muted); margin: 12px 0 0; max-width: 24em; }
.footer-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 18px; }
.footer-cats h2 { font-size: .88rem; margin: 0 0 8px; letter-spacing: 0; }
.footer-cats h2 a { color: #fff; text-decoration: none; }
.footer-cats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-cats a { color: var(--footer-muted); text-decoration: none; }
.footer-cats a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--footer-line); }
.footer-meta { margin: 0; color: var(--footer-line); }
.footer-meta a { color: var(--footer-text); text-decoration: none; font-weight: 600; margin: 0 4px; }
.footer-meta a:first-child { margin-left: 0; }
.footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-note { color: var(--footer-muted); 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; } }
