/* UBNUSU Blog — 홈페이지(ubnusu.com)와 같은 색·글꼴 */
:root {
  --bg: #ffffff;
  --surface: #f3f6fa;
  --line: #dde4ee;
  --ink: #0d1b2e;
  --ink-2: #3b4a5f;
  --ink-3: #5d6b7e;
  --blue: #1660e6;
  --blue-deep: #0f4bbd;
  --blue-soft: #e8f0ff;
  --navy: #0f2a4a;
  --alert: #f04e23;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 10px 26px -10px rgba(13, 27, 46, .18);
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 36px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.cat { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.meta { color: var(--ink-3); font-size: 14px; }
.sec-sub { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.more { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 15px; }
.more .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover .ico { transform: translateX(3px); }

/* Call button */
.call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  border-radius: 12px; padding: 10px 16px;
  font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
  transition: background-color .2s, transform .25s var(--ease);
}
.call:hover { background: var(--blue-deep); transform: translateY(-1px); }
.call .ico { width: 18px; height: 18px; stroke-width: 2.1; }
.call-light { background: #fff; color: var(--blue); padding: 14px 20px; font-size: 18px; font-weight: 800; }
.call-light:hover { background: #f1f6ff; }

/* Header */
.site-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .site-top { top: 32px; }
.site-top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.brand-mark .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.brand-logo { max-height: 36px; width: auto; }
.brand-sub { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.site-nav { margin-left: auto; }
.site-nav .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.site-nav a:hover, .site-nav .current-menu-item a, .site-nav .current-cat a { color: var(--blue); }

/* Home hero (A) */
.home-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(36px, 5vw, 56px); }
.feat-img { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.feat-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.feat-img:hover img { transform: scale(1.02); }
.feat .cat { margin-top: 18px; }
.feat h1 { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.04em; }
.feat h1 a:hover { color: var(--blue); }
.feat-ex { margin-top: 10px; color: var(--ink-2); }
.popular h2 { font-size: 16px; color: var(--ink-3); font-weight: 700; letter-spacing: -0.02em; padding-bottom: 6px; }
.popular ol { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular li { counter-increment: pop; border-bottom: 1px solid var(--line); }
.popular li a { display: grid; grid-template-columns: 30px 1fr; padding: 16px 0; font-weight: 700; line-height: 1.45; letter-spacing: -0.025em; }
.popular li a::before { content: counter(pop); color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
.popular li a span { grid-column: 2; display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.popular li a:hover { color: var(--blue); }

/* Symptom finder (C) */
.finder { background: var(--navy); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px); }
.finder-ask { text-align: center; }
.finder-ask h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.045em; }
.finder-ask p { margin-top: 8px; color: #c4d2e4; }
.finder-search, .search-form { display: flex; gap: 8px; max-width: 620px; margin: 22px auto 0; background: #fff; border-radius: 16px; padding: 6px; }
.finder-search input, .search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink); }
.finder-search input:focus, .search-form input:focus { outline: none; }
.finder-search:focus-within, .search-form:focus-within { box-shadow: 0 0 0 3px #8bb4ff; }
.finder-search button, .search-form button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 0 18px; cursor: pointer; }
.finder-search button:hover, .search-form button:hover { background: var(--blue-deep); }
.search-form { border: 1px solid var(--line); margin-left: 0; }
.finder-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.finder-col { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 22px 8px; }
.finder-col h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.finder-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.finder-col ul { list-style: none; margin: 12px 0 0; padding: 0; }
.finder-col li { border-top: 1px solid var(--line); }
.finder-col li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; font-weight: 600; font-size: 15px; }
.finder-col li a:hover { color: var(--blue); }
.finder-col li em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }

/* Sections */
.latest, .home-log, .related { padding-top: clamp(48px, 7vw, 80px); }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.sec-row h2, .related h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.related h2 { margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chips a { background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background-color .2s, color .2s; }
.chips a:hover { background: var(--ink); color: #fff; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.card .thumb { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.03); }
.card .cat { margin-top: 14px; font-size: 13px; }
.card h3 { margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.42; letter-spacing: -0.03em; }
.card:hover h3 { color: var(--blue); }
.card .meta { margin-top: 6px; }
.thumb-empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: #9db3d6; }
.thumb-empty .ico { width: 36px; height: 36px; stroke-width: 1.4; }
.feat-img .thumb-empty { aspect-ratio: 16 / 10; }

/* Field log (B) */
.log { border-bottom: 1px solid var(--line); }
.log-entry { display: grid; grid-template-columns: 84px 200px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.log-date { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.log-date span { display: block; font-weight: 600; font-size: 13px; color: var(--ink-3); }
.log-thumb { display: block; border-radius: 12px; overflow: hidden; background: var(--surface); }
.log-thumb img, .log-thumb .thumb-empty { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; }
.log-body h3 { font-size: 19px; font-weight: 700; }
.log-body h3 a:hover { color: var(--blue); }
.facts { display: grid; grid-template-columns: 40px 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 14px; }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.facts dd.fix { color: var(--blue); }
.log-area { display: inline-flex; align-items: center; gap: 4px; justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.log-area .ico { width: 15px; height: 15px; color: var(--blue); }
.log-page { padding-top: clamp(32px, 5vw, 56px); }
.log-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.log-head h1 { margin-top: 6px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.045em; }
.log-count { text-align: right; }
.log-count b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.log-count span { color: var(--ink-3); font-size: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 18px 0; font-size: 14px; font-weight: 600; }
.filters a { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* List / Q&A pages */
.list-page, .qa-page { padding-top: clamp(32px, 5vw, 56px); }
.list-head { margin-bottom: 32px; }
.list-head h1 { margin-top: 6px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.045em; }
.list-desc { margin-top: 10px; color: var(--ink-2); max-width: 44em; }
.qa-list { border-top: 1px solid var(--line); }
.qa-item { display: grid; grid-template-columns: 1fr 220px; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.qa-item h2 { font-size: 22px; font-weight: 800; }
.qa-item h2 a:hover { color: var(--blue); }
.qa-short { margin: 14px 0 0; padding: 14px 18px 14px 36px; background: var(--surface); border-radius: 12px; color: var(--ink-2); }
.qa-short li + li { margin-top: 4px; }
.qa-ex { margin-top: 10px; color: var(--ink-2); }
.qa-item .more { margin-top: 14px; }
.qa-thumb { border-radius: 12px; overflow: hidden; }
.qa-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.empty { padding: 40px 0; color: var(--ink-2); }
.empty .search-form { margin-top: 18px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* Single */
.entry { max-width: 820px; padding-top: clamp(32px, 5vw, 56px); }
.entry-head h1 { margin-top: 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.25; }
.entry-head .meta { margin-top: 12px; }
.short { margin-top: 28px; background: var(--blue-soft); border-radius: 16px; padding: 22px 26px; }
.short h2 { font-size: 15px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.short ol { margin: 10px 0 0; padding-left: 22px; font-weight: 600; color: var(--ink); }
.short li + li { margin-top: 6px; }
.job-card { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 26px; }
.job-card h2 { font-size: 15px; font-weight: 800; color: var(--ink-3); letter-spacing: -0.02em; }
.job-card dl { margin: 10px 0 0; }
.job-card dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.job-card dl div:first-child { border-top: 0; }
.job-card dt { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.job-card dd { margin: 0; font-weight: 600; }
.job-card dd.fix { color: var(--blue); }
.entry-img { margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; }
.entry-img img { width: 100%; }

.prose { margin-top: 32px; font-size: 18px; line-height: 1.85; color: #1b2a3e; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: 26px; font-weight: 800; line-height: 1.35; }
.prose h3 { margin-top: 1.8em; font-size: 21px; font-weight: 800; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img, .prose figure img { border-radius: 14px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--ink-3); text-align: center; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--blue); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.entry-call { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 18px; padding: 24px 28px; }
.entry-call strong { display: block; font-size: 19px; letter-spacing: -0.03em; }
.entry-call > div span { display: block; margin-top: 4px; color: #b9c6d8; font-size: 15px; }
.entry-call .call { padding: 14px 20px; font-size: 18px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.entry-tags a { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.entry-tags a:hover { color: var(--blue); }
.entry-tags .ico { width: 15px; height: 15px; color: var(--blue); }

/* Call band + footer */
.call-band { margin-top: clamp(56px, 8vw, 96px); background: var(--blue); color: #fff; border-radius: 20px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.call-band strong { display: block; font-size: 21px; letter-spacing: -0.035em; }
.call-band > div span { display: block; margin-top: 4px; color: #dbe7ff; font-size: 15px; }
.site-foot { padding: 36px 0 110px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.site-foot strong { color: var(--ink); }
.site-foot a:hover { color: var(--blue); }

.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.callbar .call { width: 100%; justify-content: center; padding: 15px; font-size: 18px; }
.callbar b { font-weight: 800; }

/* WordPress core alignment */
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { margin-left: auto; margin-right: auto; }

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

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .site-top .call { margin-left: auto; }
  .home-hero { grid-template-columns: 1fr; }
  .finder-cols { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 84px 160px 1fr; }
  .log-thumb img, .log-thumb .thumb-empty { width: 160px; }
  .log-area { grid-column: 3; justify-self: start; }
  .alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 782px) {
  .admin-bar .site-top { top: 46px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .site-top .call span { display: none; }
  .site-top .call { padding: 10px 12px; }
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .log-entry { grid-template-columns: 1fr; gap: 12px; }
  .log-thumb img, .log-thumb .thumb-empty { width: 100%; }
  .log-area { grid-column: auto; }
  .log-head { flex-direction: column; align-items: start; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .filters a { white-space: nowrap; }
  .log-count { text-align: left; }
  .qa-item { grid-template-columns: 1fr; }
  .qa-thumb { display: none; }
  .prose { font-size: 17px; }
  .callbar { display: block; }
  .call-band .call { width: 100%; justify-content: center; }
  .entry-call .call { width: 100%; justify-content: center; }
}
