/*
Theme Name: Slowin
Theme URI: https://slowin.kr
Description: 가독성 중심 정보 블로그 테마 v2 — 대표글·많이 보는 글·D-day 일정·핵심요약·목차·체크리스트·FAQ·광고/쿠팡 슬롯·SEO/AEO 스키마 내장
Version: 2.6.0
Requires PHP: 8.0
Text Domain: slowin
*/
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #eef3ff;
  --ink: #111418;
  --ink-2: #4b5563;
  --ink-3: #8a94a3;
  --line: #e8ebef;
  --brand: #2f6bff;
  --brand-ink: #1d4ed8;
  --hot: #ff5a36;
  --ok: #12a150;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(17,20,24,.04), 0 8px 24px rgba(17,20,24,.06);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1180px;
  --measure: 700px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --bg-soft: #171a20; --bg-tint: #18233b; --ink: #f2f4f7; --ink-2: #b4bcc8; --ink-3: #7c8594;
    --line: #262b33; --brand: #6f9bff; --brand-ink: #9db9ff; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --bg-soft: #171a20; --bg-tint: #18233b; --ink: #f2f4f7; --ink-2: #b4bcc8; --ink-3: #7c8594;
  --line: #262b33; --brand: #6f9bff; --brand-ink: #9db9ff; --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-color: var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; display: flex; align-items: baseline; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 2px; font-style: normal; display: inline-block; }
.nav { flex: 1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover, .nav a.on { background: var(--bg-soft); color: var(--ink); }
.hd-act { display: flex; gap: 4px; }
.ibtn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); border-radius: 12px; cursor: pointer; }
.ibtn:hover { background: var(--bg-soft); color: var(--ink); }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--brand); border-radius: 0 3px 3px 0; }

/* ---------- Common ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.c-money { color: #0f9d58; } .chip.c-life { color: #7c3aed; } .chip.c-it { color: #0284c7; }
.chip.c-food { color: #ea580c; } .chip.c-trip { color: #db2777; } .chip.c-eng { color: #ca8a04; } .chip.c-style { color: #475569; }
.meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.sec { padding: 56px 0 8px; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-hd h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.03em; margin: 0; }
.sec-hd p { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); }
.more { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.more:hover { color: var(--brand); }
.thumb { border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
a:hover .thumb img { transform: scale(1.04); }
.t2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; padding-top: 28px; }
.feat { display: block; }
.feat .thumb { border-radius: var(--r-lg); }
.feat-body { padding: 20px 4px 0; }
.feat h1, .feat .feat-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; letter-spacing: -0.035em; margin: 10px 0 10px; }
.feat p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.feat:hover h1, .feat:hover .feat-title { color: var(--brand-ink); }

.rank { background: var(--bg-soft); border-radius: var(--r-lg); padding: 24px 22px 10px; align-self: start; }
.rank h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.rank h3 .live { font-size: 11px; font-weight: 800; color: #fff; background: var(--hot); padding: 2px 7px; border-radius: 6px; letter-spacing: 0; }
.rank ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; }
.rank a::before { content: counter(r); font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1.4; }
.rank li:nth-child(n+4) a::before { color: var(--ink-3); }
.rank strong { font-size: 15.5px; line-height: 1.45; font-weight: 650; }
.rank a:hover strong { color: var(--brand-ink); }
.rank .meta { margin-top: 4px; }

/* ---------- Home: D-day strip ---------- */
.dday { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.dday-t strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.dday-t span { font-size: 13px; color: var(--ink-3); }
.dday ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dday li a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); height: 100%; transition: background .15s; }
.dday li a:hover { background: var(--bg-tint); }
.dday b { font-size: 12px; font-weight: 800; color: var(--hot); }
.dday b.soon { color: var(--brand); }
.dday em { font-style: normal; font-size: 15px; font-weight: 650; line-height: 1.4; }

/* ---------- Home: grids ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.45; letter-spacing: -0.025em; font-weight: 700; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.card:hover h3 { color: var(--brand-ink); }

.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.li h3 { margin: 6px 0 6px; font-size: 17px; line-height: 1.45; letter-spacing: -0.02em; }
.li .thumb { border-radius: 12px; }
.li:hover h3 { color: var(--brand-ink); }

/* ---------- Footer ---------- */
.ft { margin-top: 80px; border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: var(--ink-3); }
.ft .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ft nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ft nav a { color: var(--ink-2); }
.ft p { margin: 8px 0 0; max-width: 520px; }

/* ---------- Article ---------- */
.art-wrap { display: grid; grid-template-columns: minmax(0, var(--measure)) 230px; gap: 72px; justify-content: center; padding: 44px 20px 0; }
.crumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.crumb a:hover { color: var(--ink); }
.art-title { font-size: clamp(27px, 4vw, 40px); line-height: 1.32; letter-spacing: -0.04em; font-weight: 800; margin: 10px 0 18px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--ink-3); padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.art-meta .upd { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.art-meta .upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.author span { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.art-thumb { margin: 30px 0 34px; border-radius: var(--r-lg); overflow: hidden; }

.entry-content > * { margin: 0 0 1.35em; }
.entry-content h2 { font-size: 25px; line-height: 1.4; letter-spacing: -0.035em; margin: 2.4em 0 .75em; font-weight: 800; }
.entry-content h3 { font-size: 20px; line-height: 1.45; letter-spacing: -0.02em; margin: 1.8em 0 .55em; }
.entry-content p { color: var(--ink); }
.entry-content strong { font-weight: 700; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--brand) 20%, transparent) 0); }
.entry-content a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--brand); font-weight: 700; }
.entry-content figure { margin: 2.2em 0; }
.entry-content figure img { border-radius: var(--r-md); }
.entry-content figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

.key-summary { position: relative; background: var(--bg-tint); border-radius: var(--r-lg); padding: 22px 24px 22px 24px; }
.key-summary .label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--brand-ink); margin-bottom: 8px; }
.key-summary p { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.75; }
.key-summary p + p { margin-top: 6px; }

.toc-inline { background: var(--bg-soft); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 28px; }
.toc-inline summary { font-weight: 800; cursor: pointer; font-size: 15px; }
.toc-inline ol { margin: 10px 0 0; padding-left: 1.2em; font-size: 15px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; min-width: 520px; }
.table-wrap th { background: var(--bg-soft); text-align: left; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.table-wrap th, .table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 650; }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { margin: 0; position: relative; padding: 14px 16px 14px 50px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px no-repeat; }

.info-box, .warn-box { border-radius: var(--r-md); padding: 16px 20px 16px 48px; position: relative; font-size: 16px; }
.info-box { background: var(--bg-soft); }
.warn-box { background: color-mix(in srgb, #f59e0b 10%, var(--bg)); }
.info-box::before, .warn-box::before { position: absolute; left: 18px; top: 15px; font-size: 17px; }
.info-box::before { content: "💡"; }
.warn-box::before { content: "⚠️"; }
.info-box p, .warn-box p { margin: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details > div { padding: 0 0 18px 24px; color: var(--ink-2); }

.cp { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.cp-hd { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.cp-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-items a { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; text-decoration: none !important; color: var(--ink) !important; }
.cp-items .img { aspect-ratio: 1; border-radius: 12px; background: var(--bg-soft); }
.cp-items b { font-weight: 800; }
.cp small { display: block; margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.sources { background: var(--bg-soft); border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; color: var(--ink-2); }
.sources h3 { margin: 0 0 8px !important; font-size: 14px !important; }
.sources ol { margin: 0; }
.sources a { color: var(--ink-2) !important; }

.ad-slot { margin: 2.2em 0; padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--line); text-align: center; font-size: 12px; color: var(--ink-3); min-height: 120px; display: grid; place-items: center; }

.toc { position: sticky; top: 96px; }
.toc-t { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.5; color: var(--ink-3); transition: color .15s; }
.toc li a:hover { color: var(--ink); }
.toc li a.on { color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.toc-share { margin-top: 22px; display: flex; gap: 6px; }
.toc-share button { flex: 1; height: 38px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 0; }
.tags a { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.writer { display: flex; gap: 16px; align-items: center; margin: 28px 0 0; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.writer .av { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.writer p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.related { max-width: calc(var(--measure) + 302px); margin: 0 auto; padding: 72px 20px 0; }

@media (max-width: 1080px) {
  .art-wrap { grid-template-columns: minmax(0, var(--measure)); }
  .toc { display: none; }
  .hero { grid-template-columns: 1fr; }
  .dday { grid-template-columns: 1fr; }
  .dday ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1081px) { .toc-inline { display: none; } }
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hd .wrap { flex-wrap: wrap; height: auto; gap: 0 8px; padding-top: 8px; }
  .logo { flex: 1; }
  .nav { order: 3; flex: 0 0 100%; padding: 4px 0 8px; margin: 0 -6px; }
  .nav a { padding: 6px 11px; font-size: 14.5px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .cat-row { grid-template-columns: 1fr; }
  .li { grid-template-columns: minmax(0, 1fr) 104px; }
  .sec { padding-top: 44px; }
  .entry-content h2 { font-size: 22px; }
  .cp-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-wrap { padding-top: 24px; }
}

/* ---------- WordPress 호환 ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img, .entry-content img { border-radius: var(--r-md); }
.entry-content > .key-summary:first-child { margin-top: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.entry-content > table { display: block; overflow-x: auto; }
.table-wrap table { min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.table-wrap th { background: var(--bg-soft); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* 쿠팡 파트너스 박스 (automation/coupang.py 마크업) */
.coupang-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.coupang-box > p:first-child { margin: 0 0 12px; font-size: 14px; }
.coupang-box > p:first-child strong { background: none; font-weight: 800; }
.coupang-box .items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.coupang-box .item { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink) !important; text-decoration: none !important; }
.coupang-box .item img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg-soft); }
.coupang-box .price { font-weight: 800; }
.coupang-box .disclosure { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .coupang-box .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 페이지네이션 · 검색 · 빈 화면 */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 48px 0 0; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); font-weight: 600; }
.pagination .page-numbers:hover { background: var(--bg-soft); }
.pagination .current { background: var(--ink); color: var(--bg); }
.page-hd { padding: 44px 0 8px; }
.page-hd h1 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.035em; line-height: 1.3; margin: 0 0 8px; }
.page-hd p { margin: 0; color: var(--ink-2); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; }
.search-form input { flex: 1; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.search-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.search-form button { height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.empty { padding: 60px 0; color: var(--ink-3); }
.page-wrap { max-width: calc(var(--measure) + 40px); margin: 0 auto; padding: 44px 20px 0; }
.share-done { color: var(--ok) !important; border-color: var(--ok) !important; }

/* 문의 폼 */
.contact-form { margin-top: 8px; }
.contact-form label { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-note { font-size: 13.5px; color: var(--ink-3); }
.contact-btn { height: 48px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.contact-btn:hover { background: var(--brand); color: #fff; }
.grecaptcha-badge { visibility: hidden; }
