/* Layout: 가운데 큰 검색창이 주인공. 품목 페이지는 [수거함 라벨처럼 색칠된 판정 블록] → 순서 → 이유 → 같은 분류.
   중성 회청색 바탕, 색은 분류(수거함) 색이 담당하고 브랜드색은 짙은 청록 하나. */
:root {
  --bg: #F3F5F6; --surface: #FFFFFF; --ink: #1A2126; --muted: #5C6670; --faint: #8A939C;
  --line: #E0E4E8; --brand: #0F5E6B; --brand-ink: #FFFFFF; --brand-soft: #E2EFF1; --note: #FFF6E0; --note-ink: #7A5300;
  --shadow: 0 1px 2px rgb(16 33 40 / .06), 0 8px 24px -12px rgb(16 33 40 / .18);
  --f-head: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #11171B; --surface: #182127; --ink: #E4EAEE; --muted: #9EAAB4; --faint: #76828C;
  --line: #2A353D; --brand: #5FC0CF; --brand-ink: #0B1A1E; --brand-soft: #16343A; --note: #2E2715; --note-ink: #E8C770;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .5); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #11171B; --surface: #182127; --ink: #E4EAEE; --muted: #9EAAB4; --faint: #76828C;
  --line: #2A353D; --brand: #5FC0CF; --brand-ink: #0B1A1E; --brand-soft: #16343A; --note: #2E2715; --note-ink: #E8C770;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .5); color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--f-body); padding: 0 16px }
a { color: var(--brand) }
input, button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }

/* 상단 */
.top { max-width: 980px; margin: 0 auto; padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 900 1.15rem var(--f-head); letter-spacing: -.01em }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); position: relative; flex: none }
.brand i::before { content: ''; position: absolute; inset: 7px 8px 6px; border: 2.5px solid var(--brand-ink); border-top: 0; border-radius: 0 0 3px 3px }
.brand i::after { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2.5px; background: var(--brand-ink); border-radius: 2px }
.mini { position: relative; flex: 1; max-width: 340px; min-width: 200px }
.mini input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px }

.wrap { max-width: 980px; margin: 0 auto; padding-block: 20px 56px; display: flex; flex-direction: column; gap: 28px }

/* 메인 검색 */
.hero { text-align: center; padding-block: 28px 8px }
.hero h1 { font: 900 2.4rem/1.25 var(--f-head); margin: 0; letter-spacing: -.02em; text-wrap: balance }
.hero h1 em { font-style: normal; color: var(--brand) }
.hero p { color: var(--muted); margin: 10px 0 0 }
.search { position: relative; max-width: 620px; margin: 22px auto 0; text-align: left }
.search input { width: 100%; font-size: 1.15rem; padding: 18px 22px 18px 52px; border: 2px solid var(--ink); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow) }
.search::before { content: ''; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; border: 2.5px solid var(--muted); border-radius: 50%; transform: translateY(-62%) }
.search::after { content: ''; position: absolute; left: 34px; top: 50%; width: 7px; height: 2.5px; background: var(--muted); transform: translateY(5px) rotate(45deg) }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 5; max-height: 60vh; overflow: auto }
.results li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink) }
.results li a:hover, .results li a[aria-selected="true"] { background: var(--brand-soft) }
.results .empty { padding: 12px; color: var(--muted) }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px }
.quick a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .9rem }
.quick a:hover { border-color: var(--brand); color: var(--brand) }

/* 분류 표시 */
.chip { display: inline-block; white-space: nowrap; color: #fff; background: var(--c); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700 }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px }
.cats a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; border-top: 5px solid var(--c) }
.cats a:hover { box-shadow: var(--shadow) }
.cats b { font-weight: 700 }
.cats span { color: var(--muted); font-size: .82rem }

section > h2, .sec-h { font: 800 1.3rem var(--f-head); margin: 0 0 12px; letter-spacing: -.01em }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px }
.list a:hover { border-color: var(--brand) }

/* 품목 페이지 */
.crumb { font-size: .85rem; color: var(--muted) }
.crumb a { color: var(--muted) }
.item-h h1 { font: 900 2.1rem/1.3 var(--f-head); margin: 4px 0 0; letter-spacing: -.02em; text-wrap: balance }
.verdict { background: var(--c); color: #fff; border-radius: 18px 18px 14px 14px; padding: 22px 24px; position: relative; overflow: hidden }
.verdict::before { content: ''; position: absolute; left: 50%; top: 0; width: 64px; height: 6px; transform: translateX(-50%); background: rgb(255 255 255 / .45); border-radius: 0 0 6px 6px }
.verdict small { display: block; opacity: .85; font-size: .85rem }
.verdict b { display: block; font: 900 2rem/1.25 var(--f-head); letter-spacing: -.01em }
.verdict span { display: block; margin-top: 2px; opacity: .92 }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800 }
.why { border-left: 4px solid var(--c); padding: 4px 0 4px 16px; color: var(--ink) }
.note { background: var(--note); color: var(--note-ink); border-radius: 12px; padding: 12px 16px; font-size: .92rem }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr) } .hero h1 { font-size: 1.9rem } .item-h h1 { font-size: 1.7rem } }
.rules { margin: 0; padding-left: 1.2em; display: grid; gap: 6px }

.doc { max-width: 760px; display: grid; gap: 22px }
.doc h2 { font: 800 1.3rem var(--f-head); margin: 0 0 8px }
.doc p, .doc li { max-width: 68ch }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 4px }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top }
.tw { overflow-x: auto }

.ad-slot:empty { display: none }
.foot { border-top: 1px solid var(--line) }
.foot-in { max-width: 980px; margin: 0 auto; padding-block: 26px 6px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.foot-in p { color: var(--muted); margin: 4px 0 0; font-size: .86rem; max-width: 50ch }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; max-width: 520px }
.foot nav h3 { width: 100%; margin: 0; font-size: .8rem; color: var(--faint); font-weight: 700 }
.foot nav a { color: var(--ink); text-decoration: none; font-size: .9rem }
.foot nav a:hover { color: var(--brand); text-decoration: underline }
.fine { max-width: 980px; margin: 0 auto; padding-block: 6px 28px; color: var(--faint); font-size: .78rem }
