@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --text: #111;
  --body: #333;
  --muted: #7a7a7a;
  --line: #e4e4e4;
  --soft: #f7f8fa;
  --link: #1a6fc4;
  --accent: #1a6fc4;
  --accent-soft: #eaf3fc;
  --w: 720px;
  --wide: 960px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: var(--wide); }
.hwrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }

/* 읽기 진행 막대 / 맨 위로 */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }
#to-top { position: fixed; right: 18px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); z-index: 40; }
#to-top:hover { background: var(--soft); }
#to-top[hidden] { display: none; }

/* 헤더 */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.site-header .hwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 68px; padding-top: 12px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; flex: none; }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #0e4f93); color: #fff; font-size: 17px; font-weight: 800; }
/* 윗줄: 이름 + 검색 / 아랫줄: 메뉴 전체 (메뉴가 많아도 잘리지 않고 필요하면 줄바꿈) */
.cats { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; order: 3; min-width: 0; margin: 0 -13px 4px; }
.cats a { flex: none; padding: 6px 13px; border-radius: 999px; color: #555; font-size: 14.5px; font-weight: 500; }
.cats a:hover { background: var(--soft); color: var(--text); text-decoration: none; }
.cats a.on { background: var(--text); color: #fff; }
.search { margin-left: auto; flex: none; }
.search input { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; width: 160px; transition: width .2s, background .2s, border-color .2s; }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); width: 210px; }

main.wrap { padding-top: 36px; padding-bottom: 72px; min-height: 60vh; }

.cats a.extra { color: var(--accent); font-weight: 600; }
.cats a.extra:hover { background: var(--accent-soft); color: var(--accent); }
.cats a.extra.on { background: var(--accent); color: #fff; }
.cats a.extra:first-of-type { margin-left: 8px; }

/* 홈 소개 */
.hero { padding: 26px 0 30px; }
.hero-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: 34px; line-height: 1.35; color: var(--text); font-weight: 800; letter-spacing: -0.03em; max-width: 640px; }
.hero-sub { margin: 12px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.7; color: #555; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-btn { display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.hero-btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, #fff); }
.hero-btn.primary { color: #fff; background: var(--accent); }
.hero-btn.primary:hover { background: #155fa9; }
.list-head { padding: 6px 0 22px; }
.list-head h1 { font-size: 28px; margin: 0 0 4px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.list-head p { margin: 0; color: var(--muted); }
.sec-title { font-size: 18px; margin: 44px 0 16px; color: var(--text); font-weight: 800; }

/* 카테고리 알약 */
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; color: var(--c, #555); background: color-mix(in srgb, var(--c, #555) 11%, #fff); }
.pill:hover { text-decoration: none; background: color-mix(in srgb, var(--c, #555) 20%, #fff); }

/* 글 카드 목록 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); }
.card-thumb { position: relative; display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius); overflow: hidden; background: #eee; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.empty-thumb { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.card-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.card-meta span + span::before { content: "·"; margin-right: 10px; }
.card h2 { font-size: 19px; line-height: 1.45; margin: 0; letter-spacing: -0.02em; }
.card h2 a { color: var(--text); }
.card h2 a:hover { color: var(--accent); text-decoration: none; }
.card .desc { margin: 0; color: #5b5b5b; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 첫 글: 크게 */
.card.featured { flex-direction: row; gap: 28px; align-items: center; margin-bottom: 8px; }
.card.featured .card-thumb { flex: 0 0 56%; }
.card.featured .card-body { padding: 0; gap: 10px; }
.card.featured h2 { font-size: 27px; line-height: 1.4; font-weight: 800; }
.card.featured .desc { font-size: 16px; -webkit-line-clamp: 3; }

.empty { color: var(--muted); padding: 60px 0; text-align: center; grid-column: 1 / -1; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: 14px; color: var(--muted); }
.pager a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--text); }
.pager a:hover { background: var(--soft); text-decoration: none; }

/* 글 */
.post-head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.post-title { font-size: 34px; line-height: 1.38; color: var(--text); margin: 14px 0 14px; letter-spacing: -0.03em; font-weight: 800; }
.post-head .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.post-head .meta span + span::before, .post-head .meta time + span::before { content: "·"; margin-right: 12px; }
.meta { font-size: 13px; color: var(--muted); }
.tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13.5px; background: var(--soft); color: #555; padding: 5px 12px; border-radius: 999px; border: 1px solid #eee; }
.tags a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; border-color: #cfe2f6; }
.prevnext { display: flex; gap: 14px; justify-content: space-between; margin: 52px 0 0; }
.prevnext a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.5; max-width: 50%; transition: border-color .2s, background .2s; }
.prevnext a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.prevnext a.r { text-align: right; }
.prevnext small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.related { margin-top: 20px; }
.related .grid { gap: 22px 20px; }
.related .card h2 { font-size: 16.5px; }
.related .card .desc { display: none; }
.preview-notice { background: #fff8e1; border: 1px solid #f0d98a; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; color: #7a5b00; }

/* 본문 (인라인 스타일이 있는 요소는 그 값이 우선) */
.prose { font-size: 16.5px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 23px; line-height: 1.45; color: var(--text); border-bottom: 2px solid #333; padding-bottom: 8px; margin: 48px 0 18px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { font-size: 18.5px; line-height: 1.5; color: #222; margin: 30px 0 12px; font-weight: 700; }
.prose h2, .prose h3, .prose [id] { scroll-margin-top: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose blockquote { margin: 20px 0; padding: 6px 18px; border-left: 4px solid var(--accent); color: #555; background: var(--soft); border-radius: 0 8px 8px 0; }
.prose figure, .post-figure { margin: 24px 0; text-align: center; }
.prose img { border-radius: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose details > summary { cursor: pointer; }
.prose pre { background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; position: relative; word-break: normal; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: #f1f1f1; padding: 2px 6px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; font-size: 12px; border: 1px solid #ccc; background: #fff; border-radius: 6px; padding: 3px 9px; cursor: pointer; color: #555; }
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 420px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; }
.prose th { background: #f0f0f0; }
.video { position: relative; padding-top: 56.25%; margin: 24px 0; background: #000; border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: flex; gap: 8px; margin: 24px 0; overflow-x: auto; }
.gallery img { height: 160px; width: auto; flex: none; cursor: zoom-in; object-fit: cover; border-radius: 8px; }

/* 링크 카드 (내 글 카드 / 외부 사이트 카드) */
.link-card { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 24px 0; background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.link-card:hover { text-decoration: none; border-color: #c4c4c4; box-shadow: var(--shadow); }
.lc-img { flex: none; width: 160px; background: #eee; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.lc-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 14px 18px; }
.lc-title { font-size: 16px; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-desc { font-size: 14px; line-height: 1.5; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-site { font-size: 12px; color: var(--muted); }

/* 함께 보면 좋은 글 상자 */
.related-box { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 32px 0; }
.related-box .rb-title { margin: 0 0 10px; font-weight: 800; color: var(--text); }
.related-box ul { margin: 0; padding-left: 20px; line-height: 1.95; }

/* 자동 목차 */
.toc { margin: 22px 0 10px; }
.toc details { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.toc summary { font-size: 17px; font-weight: 800; cursor: pointer; color: var(--text); }
.toc ol { list-style: none; padding-left: 0; margin: 12px 0 0; }
.toc ol ol { padding-left: 16px; margin: 4px 0; }
.toc li { margin: 6px 0; }
.toc a { color: #333; }
.toc a:hover { color: var(--accent); }
.toc ol ol a { color: #666; font-size: 15px; }

/* 광고 */
/* 광고와 위·아래 글 사이 간격은 정확히 10px (이웃 요소의 인라인 마진도 !important 로 덮어 씀) */
.ad { margin: 10px 0 !important; min-height: 90px; text-align: center; overflow: hidden; line-height: 0; font-size: 0; }
.ad ins { max-width: 100%; }
.ad-300 { min-height: 250px; }
.ad-preview, .ad-preview-300 { margin-top: 10px !important; margin-bottom: 10px !important; }
.prose :has(+ .ad), .prose :has(+ .ad-preview) { margin-bottom: 0 !important; }
.prose .ad + *, .prose .ad-preview + * { margin-top: 0 !important; }
.ad-preview-300 { width: 300px; height: 250px; margin-left: auto !important; margin-right: auto !important; display: grid; place-items: center; }
.ad-preview, .slot-empty { margin: 20px 0; padding: 18px; text-align: center; font-size: 13px; color: #888; background: #f4f4f4; border: 1px dashed #bbb; border-radius: 8px; }
.slot-empty { background: #eef5ff; border-color: #9bbbe0; color: #4a6fa0; }

/* 라이트박스 */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 0; }

/* 관리자 바 (로그인 상태에서만 JS가 표시) */
#admin-bar { position: sticky; top: 0; z-index: 70; background: #111; color: #fff; font-size: 13px; padding: 7px 16px; display: flex; gap: 14px; align-items: center; }
#admin-bar[hidden] { display: none; }
#admin-bar a { color: #8cc4ff; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 13.5px; padding: 34px 0 40px; }
.site-footer .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--text); font-size: 16px; }
.site-footer p { margin: 4px 0 0; }
.site-footer a { color: #555; }
.foot-r { text-align: right; }
.foot-r .copy { font-size: 12.5px; }

@media (max-width: 760px) {
  .site-header .hwrap { flex-wrap: wrap; height: auto; gap: 10px 14px; padding-top: 12px; padding-bottom: 10px; }
  .cats { order: 3; flex: 1 1 100%; }
  .search input, .search input:focus { width: 130px; }
  .hero h1 { font-size: 26px; }
  .card.featured { flex-direction: column; align-items: stretch; gap: 14px; }
  .card.featured .card-thumb { flex: none; }
  .card.featured h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .related .grid { grid-template-columns: 1fr; }
  .post-title { font-size: 26px; }
  .prose { font-size: 16px; }
  .lc-img { width: 104px; }
  .lc-desc { -webkit-line-clamp: 1; }
  .foot-r { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   내일은 파이어족 — 새 디자인 (히어로 + 카드 그리드)
   네이비 + 불꽃 오렌지. 원본 워드프레스 모양은 따르지 않음.
   ========================================================= */

:root {
  --ink: #0b1220;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6e8ee;
  --bg: #f5f6fa;
  --card: #ffffff;
  --brand: #ff5a1f;
  --brand-2: #ffb000;
  --blue: #2f6bff;
  --navy: #0b1630;
  --navy-2: #14275a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-up: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .14);
  --maxw: 1160px;
  --text: var(--ink);
  --body: var(--ink-2);
  --accent: var(--brand);
  --link: var(--brand);
  --soft: var(--bg);
  --accent-soft: #fff1ea;
  --w: 780px;
  --wide: 1160px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; color: #e24a10; }
img { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); border: 0; }
#progress { background: linear-gradient(90deg, var(--brand), var(--brand-2)); height: 3px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--post { max-width: 840px; padding-top: 36px; padding-bottom: 70px; }
.site-main { min-height: 56vh; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); padding: 0; }
.inside-header { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.logo-flame { flex: none; filter: drop-shadow(0 2px 6px rgba(255, 90, 31, .35)); }
.main-navigation { margin-left: auto; display: flex; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav ul li > a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 600; transition: background .15s, color .15s; }
.main-nav ul li > a:hover { background: #eef0f6; color: var(--ink); }
.main-nav ul li.current > a { background: var(--ink); color: #fff; }
.main-navigation .search { margin: 0 0 0 6px; }
.main-navigation .search input { width: 150px; padding: 9px 16px; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); transition: width .2s, border-color .2s, box-shadow .2s; }
.main-navigation .search input:focus { outline: 0; width: 200px; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.menu-toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; cursor: pointer; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; margin: 0; padding: 84px 0 76px; color: #fff; background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 90, 31, .45), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(47, 107, 255, .40), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 72%); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px; background: radial-gradient(circle at 40% 40%, rgba(255, 176, 0, .35), rgba(255, 90, 31, .0) 62%); filter: blur(6px); }
.hero-in { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero-eyebrow { display: inline-block; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #ffd9c7; }
.hero .hero-title { margin: 0; color: #fff; font-size: 58px; line-height: 1.16; font-weight: 800; letter-spacing: -0.045em; }
.hero-title .grad { background: linear-gradient(90deg, #ff8a4c, #ffc34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { max-width: 620px; margin: 22px 0 0; font-size: 19px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.hero-search { display: flex; max-width: 580px; margin-top: 32px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 20px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 999px; }
.hero-search input:focus { outline: 0; }
.hero-search button { border: 0; border-radius: 999px; padding: 0 28px; background: linear-gradient(135deg, var(--brand), #ff8a1f); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.06); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 14.5px; font-weight: 700; transition: background .15s, transform .15s; }
.chip:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }
.chip b { padding: 1px 8px; border-radius: 999px; background: var(--brand); font-size: 12px; font-weight: 800; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt { font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.hero-stats dd { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- 섹션 ---------- */
.sec { padding-top: 54px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; font-size: 26px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.sec-h::before { content: ""; align-self: center; width: 6px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.sec-h small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ---------- 카드 ---------- */
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.c-card, .c-mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; min-width: 0; }
.c-card:hover, .c-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.c-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe3ee; line-height: 0; isolation: isolate; }
.c-media::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.2) brightness(.92); transform: scale(1.1); }
.c-media img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.c-card:hover .c-media img, .c-mini:hover .c-media img { transform: scale(1.04); }
.c-media--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1220)); }
.c-media--empty::before { display: none; }
.c-media--empty span { font-size: 18px; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .92); line-height: 1.4; }
.c-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; min-width: 0; }
.c-tag { align-self: flex-start; margin-bottom: 10px; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--blue)) 12%, #fff); color: var(--c, var(--blue)); font-size: 12.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.6; }
.c-tag:hover { background: var(--c, var(--blue)); color: #fff; }
.c-title { margin: 0 0 8px; font-size: 19px; line-height: 1.42; font-weight: 800; letter-spacing: -0.03em; word-break: keep-all; overflow-wrap: break-word; }
.c-title a { color: var(--ink); }
.c-title a:hover { color: var(--brand); }
.c-sum { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-meta > * + *::before { content: "·"; margin-right: 12px; color: #c3c8d4; }
.c-card--big { display: grid; grid-template-rows: auto 1fr; }
.c-card--big .c-title { font-size: 28px; line-height: 1.34; }
.c-card--big .c-sum { font-size: 15.5px; -webkit-line-clamp: 3; }
.c-card--big .c-body { padding: 24px 28px 26px; }

/* 홈 "새로 올라온 글": 큰 카드 + 작은 카드 2장 */
.feature { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: stretch; }
.feature-side { display: flex; flex-direction: column; gap: 26px; }
.feature-side .c-mini { flex: 1; flex-direction: row; }
.c-mini .c-media { flex: none; width: 46%; aspect-ratio: auto; min-height: 140px; }
.c-mini .c-body { padding: 16px 18px; justify-content: center; }
.c-mini .c-title { font-size: 16.5px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-mini .c-tag { margin-bottom: 8px; }
.c-mini .c-meta { margin-top: 0; }

/* ---------- 목록 페이지 머리말 ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 52px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(255, 90, 31, .42), transparent 65%); }
.page-hero .inside { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.page-hero .eyebrow { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: #ffb48f; }
.page-hero h1 { margin: 0; color: #fff; font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }
.page-hero .sub { max-width: 640px; margin: 12px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.page-hero + .container { padding-top: 40px; padding-bottom: 70px; }
.container > .c-grid:last-child, .container > .paging-navigation:last-child { margin-bottom: 70px; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 페이지 이동 ---------- */
.paging-navigation { margin-top: 44px; padding: 0; background: none; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nav-links > * { padding: 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- 글 ---------- */
.post-single { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 48px 56px 56px; }
.post-head { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-head .c-tag { margin-bottom: 14px; }
.post-title { margin: 0 0 16px; font-size: 38px; line-height: 1.32; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); }
.post-head .c-meta { margin-top: 0; font-size: 14px; }
.entry-content { margin-top: 0; }
.prose { font-size: 17.5px; line-height: 1.9; color: #1d2939; overflow-wrap: break-word; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { position: relative; margin: 2.6em 0 .9em; padding: 0 0 .5em; font-size: 27px; line-height: 1.4; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.prose h3 { margin: 2.1em 0 .7em; padding: 0 0 0 14px; font-size: 21px; line-height: 1.45; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); background: none; border: 0; border-left: 5px solid var(--brand); }
.prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .6em; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.prose h4 { font-size: 19px; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--brand); font-weight: 800; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #c93a05; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; font-size: 1em; font-style: normal; color: var(--ink-2); background: #fff7f2; border: 0; border-left: 5px solid var(--brand); border-radius: 0 14px 14px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { height: 1px; margin: 3em 0; border: 0; background: var(--line); }
.prose figure { margin: 1.6em 0; text-align: center; }
.prose img { height: auto; max-width: 100%; border-radius: 12px; }
.prose .wp-block-image img { display: block; margin: 0 auto; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.prose .aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin-right: 1.5em; }
.prose .alignright { float: right; margin-left: 1.5em; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
.prose .table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.prose th { font-weight: 800; color: var(--ink); background: #f3f4f9; }
.prose tr:last-child td { border-bottom: 0; }
.prose pre { margin: 0 0 1.5em; padding: 18px; background: #0b1220; color: #e5e7eb; border: 0; border-radius: 14px; font-size: 14.5px; overflow-x: auto; }
.prose :not(pre) > code { padding: 2px 7px; background: #f1f2f7; border-radius: 6px; font-size: .92em; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6em; margin: 0 0 1.5em; }
.prose .wp-block-buttons.is-content-justification-center { justify-content: center; }
.prose .wp-block-button { margin: 0; }
.prose .wp-block-button__width-75 { width: calc(75% - .15em); }
.prose .wp-block-button__width-50 { width: calc(50% - .3em); }
.prose .wp-block-button__link { display: inline-block; box-sizing: border-box; width: 100%; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; text-align: center; font-size: inherit; font-weight: 800; line-height: 1.4; text-decoration: none; }
.has-medium-font-size { font-size: 20px; }
.prose .wp-block-button__link:hover { color: #fff; filter: brightness(1.1); }
.has-vivid-red-background-color { background-color: #cf2e2e !important; }
.has-vivid-cyan-blue-background-color { background-color: #0693e3 !important; }
.has-vivid-purple-background-color { background-color: #9b51e0 !important; }
.has-vivid-green-cyan-background-color { background-color: #00b87a !important; }
.has-luminous-vivid-orange-background-color { background-color: #ff6900 !important; }
.has-vivid-cyan-blue-color { color: #0693e3; }
.has-vivid-red-color { color: #cf2e2e; }

/* 글 속 카드(링크 미리보기 / 내 글 카드) */
.link-card { display: flex; align-items: center; gap: 16px; margin: 1.4em 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(16, 24, 40, .1); color: var(--ink); }
.lc-img { flex: none; width: 150px; padding: 0; background: none; }
.lc-img img { display: block; width: 150px; max-width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.lc-body { padding: 0; gap: 0; min-width: 0; }
.lc-title { font-size: 1.05em; font-weight: 800; line-height: 1.5; color: var(--ink); -webkit-line-clamp: 2; }
.lc-desc { font-size: 15px; line-height: 1.6; color: var(--muted); -webkit-line-clamp: 3; }
.lc-site { margin-top: 4px; font-size: 13px; color: var(--muted); }
.link-card .lc-body::after { content: "자세히 보기 →"; align-self: flex-start; margin-top: 8px; color: var(--brand); font-size: 14px; font-weight: 800; background: none; padding: 0; }
.prose a.link-card, .prose a.link-card:hover, .prose a.link-card span { text-decoration: none; }
.prose a.link-card { color: var(--ink); }
.related-box { margin: 1.8em 0; padding: 20px 22px; background: #fff7f2; border: 1px solid #ffd9c7; border-radius: 14px; }
.toc { margin: 0 0 2em; }
.toc details { padding: 20px 24px; background: #f6f7fb; border: 1px solid var(--line); border-radius: 14px; }
.toc summary { font-size: 17px; font-weight: 800; color: var(--ink); cursor: pointer; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); }
.toc ol ol a { color: var(--muted); font-size: 15.5px; }
.prose .toc a, .prose .toc a:hover { text-decoration: none; }
.prose .toc ol { margin: 14px 0 0; padding: 0; list-style: none; }
.prose .toc ol ol { margin: 4px 0; padding-left: 20px; }
.prose .toc li { margin: 7px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.4em 0 0; }
.tags a { padding: 6px 14px; border: 0; border-radius: 999px; background: #f1f2f7; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.tags a:hover { background: var(--brand); color: #fff; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 0; }
.prevnext a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; box-shadow: var(--shadow); }
.prevnext a:hover { border-color: var(--brand); color: var(--brand); }
.prevnext a.r { text-align: right; }
.prevnext small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.related { margin-top: 56px; padding: 0; background: none; }
.related .sec-h { font-size: 23px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.c-card--rel .c-title { font-size: 16.5px; }
.preview-notice { margin: 0 0 20px; }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 30px; padding: 0; border: 0; background: linear-gradient(135deg, var(--navy), #0e1d42); color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.inside-footer { max-width: var(--maxw); margin: 0 auto; padding: 50px 24px 34px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.foot-brand p { margin: 12px 0 0; max-width: 340px; line-height: 1.7; color: rgba(255, 255, 255, .6); }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links strong { margin-bottom: 4px; font-size: 13px; letter-spacing: .08em; color: #ffb48f; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.foot-copy { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
#to-top { border-radius: 50%; background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow-up); }
#to-top:hover { background: var(--brand); }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero .hero-title { font-size: 44px; }
  .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature-side { flex-direction: row; }
  .feature-side .c-mini { flex-direction: column; }
  .c-mini .c-media { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .inside-footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .inside-header { height: 60px; padding: 0 18px; gap: 12px; flex-wrap: nowrap; position: relative; }
  .site-header { position: sticky; }
  .menu-toggle { display: block; margin-left: 0; }
  .main-navigation { position: static; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; padding: 8px 18px 16px; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(16, 24, 40, .12); }
  .main-navigation.toggled .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul li > a { padding: 12px 14px; border-radius: 12px; }
  .main-navigation .search input, .main-navigation .search input:focus { width: 100%; }
  .container { padding: 0 18px; }
  .hero-in, .page-hero .inside { padding: 0 18px; }
  .post-single { padding: 30px 22px 36px; border-radius: 16px; }
  .post-title { font-size: 29px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 23px; }
  .prose h3 { font-size: 19px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext a.r { text-align: left; }
  .link-card { flex-direction: column; align-items: stretch; }
  .lc-img, .lc-img img { width: 100%; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 44px; }
  .hero .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16.5px; }
  .hero-search { flex-direction: column; border-radius: 22px; }
  .hero-search button { padding: 13px; margin-top: 6px; }
  .hero-stats { gap: 14px 28px; }
  .hero-stats dd { font-size: 22px; }
  .sec { padding-top: 40px; }
  .sec-h { font-size: 22px; }
  .c-grid, .rel-grid, .feature-side { grid-template-columns: 1fr; flex-direction: column; }
  .c-card--big .c-title { font-size: 23px; }
  .c-card--big .c-body { padding: 20px; }
  .page-hero { padding: 40px 0 34px; }
  .page-hero h1 { font-size: 30px; }
  .inside-footer { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 링크 카드: 썸네일(전체가 보이게)과 큰 제목만 또렷하게. 작은 설명 글은 숨기고, 출처는 아주 작게만 둔다 */
.link-card .lc-img { display: flex; align-items: center; justify-content: center; padding: 0; background: #f1f3f5; }
.link-card .lc-img img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; }
.link-card .lc-body { justify-content: center; }
.link-card .lc-title { font-size: 17px; font-weight: 700; line-height: 1.45; -webkit-line-clamp: 2; }
.link-card .lc-desc { display: none; }
.link-card .lc-site { margin-top: 4px; font-size: 12px; color: #9aa0a6; }
.link-card .lc-body::after { display: none; }
.prose a.link-card, .prose a.link-card:hover, .prose a.link-card *, .prose a.link-card:hover * { text-decoration: none !important; }
.prose a.link-card .lc-title { color: var(--text, #111); }
.prose a.link-card .lc-site { color: #9aa0a6; }
