:root {
  color-scheme: light;
  --ink: #183128;
  --muted: #607168;
  --green: #157347;
  --green-dark: #0b5232;
  --mint: #eaf7ef;
  --cream: #f8f6ef;
  --line: #dbe5de;
  --warning: #fff5d9;
  --white: #fff;
  --shadow: 0 14px 40px rgba(26, 69, 47, .09);
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2ae2e; outline-offset: 3px; }
.wide { width: min(100% - 32px, 1040px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.site-header .wide { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--green-dark); font-size: 1.3rem; font-weight: 900; text-decoration: none; letter-spacing: -.04em; }
nav { display: flex; gap: 18px; }
.site-header nav a, footer nav a { font-size: .9rem; text-decoration: none; }

.hero { padding-block: 76px 56px; text-align: center; }
.hero > p:not(.eyebrow) { margin: 12px 0 32px; color: var(--muted); font-size: clamp(1rem, 3vw, 1.16rem); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 4.5rem); line-height: 1.12; letter-spacing: -.06em; }
h2 { line-height: 1.3; letter-spacing: -.035em; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
.search-panel { position: relative; width: min(100%, 680px); margin-inline: auto; text-align: left; }
.search-panel label { display: block; margin-bottom: 8px; font-weight: 800; }
.search-control { display: grid; grid-template-columns: 1fr auto; padding: 5px; border: 2px solid var(--green); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.search-control:focus-within { outline: 3px solid rgba(21,115,71,.18); }
.search-control input { min-width: 0; height: 54px; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-control button, .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.search-message { min-height: 28px; margin: 12px 4px 0; color: var(--muted); }
.search-message strong { color: var(--ink); }
.search-results { position: absolute; z-index: 10; inset: calc(100% - 28px) 0 auto; max-height: 390px; margin: 0; padding: 8px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.search-results button:hover, .search-results [aria-selected="true"] button { background: var(--mint); }
.search-results button > span:first-child { display: grid; }
.search-results button span span { color: var(--muted); font-size: .82rem; }
.status { flex: none; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status.verified { color: #0c5e37; background: #dff4e8; }
.status.pending { color: #775516; background: #fff0c8; }

.section { padding-block: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading p { color: var(--muted); }
.card-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.item-grid { grid-template-columns: repeat(3, 1fr); }
.category-grid { grid-template-columns: repeat(4, 1fr); }
.item-card, .category-card { min-height: 100%; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; text-decoration: none; transition: transform .15s, border-color .15s; }
.item-card:hover, .category-card:hover { border-color: var(--green); transform: translateY(-2px); }
.item-card strong, .category-card strong { font-size: 1.05rem; }
.item-card span, .category-card span:last-child { color: var(--muted); font-size: .9rem; }
.category-icon { display: inline-block; margin-bottom: 10px; font-size: 1.7rem; }
.trust { margin-top: 34px; padding-block: 54px; background: var(--cream); }
.trust .wide { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.trust h2, .trust p { margin-block: 0 10px; }

.breadcrumb { flex-wrap: wrap; margin-block: 26px 32px; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: inherit; }
.detail { padding-bottom: 80px; }
.detail > h1, .policy > h1 { margin-bottom: 24px; font-size: clamp(2rem, 7vw, 3.25rem); }
.answer-card, .content-card, .collection-card, .affiliate-block, .feedback, .notice, .empty-state { margin-block: 18px; padding: clamp(20px, 5vw, 30px); border: 1px solid var(--line); border-radius: 20px; }
.answer-card { border-color: #a8d8b8; background: linear-gradient(135deg, #effaf3, #e6f5eb); }
.answer-card h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 5vw, 2rem); }
.answer-card p:last-child { margin: 0; font-size: 1.05rem; }
.notice { background: var(--cream); }
.notice h2, .content-card h2, .collection-card h2, .feedback h2 { margin-top: 0; font-size: 1.25rem; }
.notice p, .feedback p { margin-bottom: 0; }
.steps { padding-left: 1.5rem; }
.steps li { min-height: 38px; padding: 5px 0 14px 8px; }
.steps li::marker { color: var(--green-dark); font-weight: 900; }
.warning { border-color: #f1d694; background: var(--warning); }
.collection-card { border-color: #b8d5ec; background: #eef7ff; }
.ad-slot, .affiliate-block { width: 100%; max-width: 100%; overflow: hidden; }
.ad-slot { contain: layout paint; }
.ad-slot > * { max-width: 100%; }
.affiliate-block { background: #fffaf0; border-color: #ead8ac; }
.affiliate-block h2 { margin-top: 0; font-size: 1.25rem; }
.affiliate-block ul { margin: 0; padding: 0; list-style: none; }
.affiliate-block a { display: block; min-height: 48px; padding: 12px 14px; border: 1px solid #ddc78c; border-radius: 12px; background: var(--white); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.affiliate-disclosure { color: var(--muted); font-size: .9rem; }
.button.secondary { background: #1c5d87; }
.button.muted { background: #eef1ef; color: var(--muted); cursor: default; }
.related-list, .sources ul { margin: 0; padding: 0; list-style: none; }
.related-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-list a { display: grid; min-height: 66px; padding: 12px 14px; border-radius: 12px; color: var(--ink); background: var(--cream); text-decoration: none; }
.related-list span { color: var(--muted); font-size: .8rem; }
.sources li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.sources li div { display: grid; }
.sources li span { color: var(--muted); font-size: .82rem; }
.updated { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.feedback { text-align: center; }

.category-page { padding-bottom: 80px; }
.page-intro { padding: 16px 0 22px; }
.page-intro h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
.page-intro p { max-width: 680px; color: var(--muted); }
.policy { padding-bottom: 80px; }
.policy > p, .policy > ol, .policy > h2, .policy > section { max-width: 68ch; }
.policy h2 { margin-top: 38px; }
.not-found { min-height: 66vh; padding-block: 100px; text-align: center; }
.not-found h1 { font-size: clamp(2.2rem, 8vw, 4rem); }

footer { padding-block: 36px; border-top: 1px solid var(--line); background: #f7faf8; }
footer .wide { display: grid; gap: 14px; }
footer nav { flex-wrap: wrap; }
footer small { color: var(--muted); }

@media (max-width: 760px) {
  .site-header .wide { align-items: flex-start; padding-block: 14px; }
  .site-header nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a { font-size: .8rem; }
  .hero { padding-block: 54px 38px; }
  .item-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading, .trust .wide { display: block; }
  .section-heading p { margin-top: 5px; }
  .sources li { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .wide, .narrow { width: min(100% - 32px, 1040px); }
  .site-header nav a:first-child { display: none; }
  .search-control { grid-template-columns: 1fr; }
  .search-control button { width: 100%; }
  .item-grid, .category-grid, .related-list { grid-template-columns: 1fr; }
  .section { padding-block: 38px; }
  .answer-card, .content-card, .collection-card, .affiliate-block, .feedback, .notice, .empty-state { border-radius: 16px; }
  .ad-slot, .affiliate-block { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
