/* ==========================================================================
   놀아 글터 — 오하(오늘하루) 서비스 테마(svc-ohha) · 부모: newsletter
   본 서비스(ohha.kr)의 모습: 크림 바탕 · 차분한 블루 · 세이지 칩 · 복숭아 배지 · 무테두리(톤 차이와 옅은 그림자)
   · 둥근 카드(16px) · 알약 버튼 · 유리 머리띠 · 짙은 꼬리말.
   부모 CSS는 들어오지 않으므로(테마당 CSS 한 벌) 공통 클래스(nb-*)와 부모 템플릿 클래스(n-*)를 여기서 모두 꾸민다.
   이 테마 전용 클래스는 o- 접두어. 색 · 글꼴은 설정값 CSS 변수(--nb-*)가 덮어쓴다(인라인 스타일 없음).
   글자 대비(WCAG AA): 흰 면 · 크림 면에는 짙은 글자, 브랜드 색 면에는 흰 글자, 짙은 꼬리말에는 밝은 글자.
   ========================================================================== */
:root {
  --c-accent: var(--nb-color-accent, #3E6282);
  --c-point: var(--nb-color-point, #B1D5FB);
  --c-bg: var(--nb-color-bg, #FAF9F5);
  --c-ink: var(--nb-color-text, #30332F);
  --c-muted: var(--nb-color-muted, #5D605B);
  --c-sage: var(--nb-color-sage, #57634F);
  --c-warm: var(--nb-color-warm, #FEECCE);
  --c-card: #FFFFFF;
  --c-accent-hover: color-mix(in srgb, var(--c-accent) 84%, #000);
  --c-accent-deep: color-mix(in srgb, var(--c-accent) 68%, #000);
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 9%, #FFF);
  --c-accent-soft-2: color-mix(in srgb, var(--c-accent) 16%, #FFF);
  --c-sage-soft: color-mix(in srgb, var(--c-sage) 18%, #FFF);
  --c-sage-ink: color-mix(in srgb, var(--c-sage) 74%, #000);
  --c-section: color-mix(in srgb, var(--c-ink) 4%, var(--c-bg));
  --c-ink-soft: color-mix(in srgb, var(--c-ink) 86%, var(--c-bg));
  --c-faint: color-mix(in srgb, var(--c-muted) 80%, var(--c-bg));
  --c-hair: color-mix(in srgb, var(--c-ink) 8%, transparent);
  --c-line: color-mix(in srgb, var(--c-ink) 12%, transparent);
  --c-hover: color-mix(in srgb, var(--c-ink) 6%, transparent);
  --c-glass: color-mix(in srgb, var(--c-bg) 74%, transparent);
  --f-head: var(--nb-font-heading, 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif);
  --f-body: var(--nb-font-body, 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif);
  --wrap: 1056px;
  --gutter: 32px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-card: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-hero: 40px;
  --sh-1: 0 1px 2px rgba(48, 51, 47, .04);
  --sh-2: 0 6px 16px rgba(48, 51, 47, .05);
  --sh-3: 0 14px 30px rgba(48, 51, 47, .07);
  --sh-float: 0 24px 60px rgba(48, 51, 47, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); }
::selection { background: var(--c-warm); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }
.nb-main:focus { outline: none; }
.nb-main { display: block; min-height: 50vh; }

/* ── 접근성 도우미 · 공통 ───────────────────────────────────── */
.nb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nb-skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--c-accent); color: #FFF; font-weight: 700; text-decoration: none; }
.nb-skip:focus { top: 12px; }
.nb-preview-bar { margin: 0; padding: 10px 16px; background: var(--c-warm); color: var(--c-ink); text-align: center; font-size: 14px; font-weight: 700; }
.n-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.n-ad { font-weight: 700; color: var(--c-accent); }
.n-cta-slot:empty { display: none; }
.n-cta-slot { padding-top: 24px; padding-bottom: 24px; }
.nb-menu ul { list-style: none; margin: 0; padding: 0; }

/* ── 버튼 · 배지 · 칩 ─────────────────────────────────────────── */
.o-btn, .n-pill, .nb-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s var(--ease), color .12s var(--ease), box-shadow .12s var(--ease); }
.o-btn:active, .n-pill:active { transform: translateY(1px); }
.o-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.o-btn--primary, .nb-button, .n-pill--ink { background: var(--c-accent); color: #FFF; box-shadow: 0 8px 18px color-mix(in srgb, var(--c-accent) 24%, transparent); }
.o-btn--primary:hover, .nb-button:hover, .n-pill--ink:hover { background: var(--c-accent-hover); color: #FFF; }
.o-btn--secondary { background: var(--c-sage-soft); color: var(--c-sage-ink); }
.o-btn--secondary:hover { background: color-mix(in srgb, var(--c-sage) 26%, #FFF); }
.o-btn--tonal, .n-pill { background: var(--c-accent-soft); color: var(--c-accent); }
.o-btn--tonal:hover, .n-pill:hover { background: var(--c-accent-soft-2); color: var(--c-accent-hover); }
.n-pill.n-pill--ink, .nb-button.n-pill { background: var(--c-accent); color: #FFF; }
.n-pill.n-pill--ink:hover, .nb-button.n-pill:hover { background: var(--c-accent-hover); color: #FFF; }
.o-btn--ghost, .n-pill--line { background: transparent; color: var(--c-muted); }
.o-btn--ghost:hover, .n-pill--line:hover { background: var(--c-hover); color: var(--c-ink); }
.o-btn--white { background: #FFF; color: var(--c-accent); }
.o-btn--white:hover { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.o-btn--on-dark { background: transparent; color: #FFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.o-btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #FFF; }
.o-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .01em; text-decoration: none; }
.o-badge--warm { background: var(--c-warm); color: var(--c-ink); }
.o-badge--soft { background: var(--c-accent-soft); color: var(--c-accent); }
.o-badge--cat { background: var(--c-sage-soft); color: var(--c-sage-ink); }
a.o-badge--cat:hover { background: color-mix(in srgb, var(--c-sage) 28%, #FFF); }
.o-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--c-hover); color: var(--c-muted); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background-color .12s var(--ease), color .12s var(--ease); }
.o-chip:hover { background: color-mix(in srgb, var(--c-ink) 10%, transparent); color: var(--c-ink); }
.o-chip[aria-current] { background: var(--c-warm); color: var(--c-ink); }
.o-icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-md); background: transparent; color: var(--c-ink); cursor: pointer; text-decoration: none; }
.o-icon-btn:hover { background: var(--c-hover); }
.o-eyebrow { margin: 0 0 4px; color: var(--c-accent); font-size: 13px; font-weight: 700; line-height: 1.5; }
.o-eyebrow--sage { color: var(--c-sage); }

/* 둥근 빛(장식) */
.o-halo { position: absolute; display: block; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.o-halo--a { width: 180px; height: 180px; top: -70px; right: -40px; background: rgba(255, 255, 255, .55); }
.o-halo--b { width: 130px; height: 130px; bottom: -50px; left: -30px; background: color-mix(in srgb, var(--c-point) 60%, transparent); }

/* ── 머리띠(유리) ─────────────────────────────────────────────── */
.o-gnb { position: sticky; top: 0; z-index: 60; isolation: isolate; box-shadow: 0 1px 0 var(--c-hair); }
/* 유리 효과는 가상 요소에 — 머리띠 자체에 backdrop-filter를 주면 안의 고정 요소 기준이 바뀐다 */
.o-gnb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
.o-gnb__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.o-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--c-accent); text-decoration: none; }
.o-brand__img { display: block; height: 36px; width: auto; }
.o-mark { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(150deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 45%, #FFF)); color: #FFF; box-shadow: var(--sh-1); }
.o-mark--sm { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(150deg, color-mix(in srgb, var(--c-accent) 70%, #FFF), color-mix(in srgb, var(--c-point) 80%, #FFF)); }
.o-brand__name { font-family: var(--f-head); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.o-brand__tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent); font-size: 12px; font-weight: 700; line-height: 1.4; }
.o-brand:hover .o-brand__name { color: var(--c-accent-hover); }
.o-gnb__nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.o-gnb__link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; color: var(--c-muted); font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .12s var(--ease), color .12s var(--ease); }
.o-gnb__link:hover { background: var(--c-hover); color: var(--c-ink); }
/* 지금 보고 있는 곳 = 블로그(내부 링크) */
.o-gnb__link.is-blog { background: var(--c-accent-soft); color: var(--c-accent); }
.o-gnb__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.o-gnb__cta { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.o-burger { display: none; background: var(--c-hover); }

/* 블로그 메뉴 칩 줄(카테고리) — 가로 넘김은 이 줄 안에서만 */
.o-topics { border-bottom: 1px solid var(--c-hair); }
.o-topics__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.o-topics__list::-webkit-scrollbar { display: none; }
.o-topics__list > li { flex: none; scroll-snap-align: start; }

/* 서랍(좁은 화면) */
.o-drawer { display: none; }
.o-drawer[data-open="true"] { display: block; position: fixed; inset: 0; z-index: 250; }
.o-drawer__scrim { position: absolute; inset: 0; background: rgba(32, 35, 31, .44); animation: o-fade .12s var(--ease) both; }
.o-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; width: 82%; max-width: 340px; padding: 16px 20px 28px; overflow-y: auto; background: var(--c-card); box-shadow: var(--sh-float); animation: o-slide .22s var(--ease) both; }
.o-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.o-drawer__name { font-family: var(--f-head); font-size: 19px; font-weight: 700; color: var(--c-accent); }
.o-drawer__search { margin-bottom: 8px; }
.o-drawer__label { margin: 14px 0 2px; padding: 0 14px; color: var(--c-faint); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.o-drawer .nb-menu ul, .o-drawer__list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.o-drawer .nb-menu a, .o-drawer__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md); color: var(--c-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.o-drawer .nb-menu a:hover, .o-drawer__list a:hover { background: var(--c-hover); }
.o-drawer .nb-menu a[aria-current] { background: var(--c-accent-soft); color: var(--c-accent); }
.o-drawer__list svg { color: var(--c-faint); }
.o-drawer__cta { margin-top: 16px; }
html.nb-menu-open { overflow: hidden; }
@keyframes o-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes o-slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ── 검색 폼(공통) ─────────────────────────────────────────────── */
.nb-search { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: var(--r-md); background: var(--c-section); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .12s var(--ease), background-color .12s var(--ease); }
.nb-search:focus-within { background: var(--c-card); box-shadow: inset 0 0 0 1.5px var(--c-accent), var(--sh-1); }
.nb-search__input { flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: 16px; }
.nb-search__input::placeholder { color: var(--c-faint); opacity: 1; }
.nb-search__input:focus { outline: none; }
.nb-search__button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--c-accent); color: #FFF; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nb-search__button:hover { background: var(--c-accent-hover); }

/* ── 홈 ① 첫 화면 카드 ─────────────────────────────────────────── */
.o-hero { padding: 48px 0 16px; }
.o-reflection { position: relative; overflow: hidden; border-radius: var(--r-hero); background: linear-gradient(140deg, var(--c-point) 0%, color-mix(in srgb, var(--c-point) 45%, #FFF) 40%, var(--c-card) 100%); box-shadow: var(--sh-3); padding: clamp(36px, 6vw, 72px); }
.o-halo--hero-a { width: 180px; height: 180px; top: -60px; right: -40px; background: rgba(255, 255, 255, .5); }
.o-halo--hero-b { width: 120px; height: 120px; bottom: -40px; left: -20px; background: color-mix(in srgb, var(--c-point) 50%, transparent); }
.o-hero__body { position: relative; max-width: 640px; }
.o-hero__badge { margin-bottom: 20px; }
.o-hero__title { margin: 0 0 18px; color: color-mix(in srgb, var(--c-ink) 80%, #000); font-size: clamp(32px, 5.4vw, 54px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; white-space: pre-line; text-wrap: balance; }
.o-hero__lead { max-width: 500px; margin: 0 0 32px; color: var(--c-ink-soft); font-size: 18px; line-height: 1.7; white-space: pre-line; }
.o-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.o-hero__search { max-width: 480px; margin-top: 24px; }
.o-hero__search .nb-search { background: rgba(255, 255, 255, .8); }

/* ── 섹션 공통 ───────────────────────────────────────────────── */
.o-section { padding-top: 56px; }
.o-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.o-section__title { font-size: 28px; font-weight: 700; line-height: 1.32; letter-spacing: -.015em; }
.o-section__text { max-width: 560px; margin: 8px 0 0; color: var(--c-muted); font-size: 15px; }
.o-section__head .o-btn--ghost { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* ── 홈 ② 주제 카드(본 서비스 '가치 3블록' 모양) ─────────────────── */
.o-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.o-values--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.o-value { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.o-value:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.o-value__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: var(--c-accent-soft); color: var(--c-accent); }
.o-value:nth-child(3n+2) .o-value__icon { background: var(--c-sage-soft); color: var(--c-sage-ink); }
.o-value:nth-child(3n+3) .o-value__icon { background: var(--c-warm); color: color-mix(in srgb, var(--c-ink) 85%, #000); }
.o-value__title { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.o-value__title a { color: inherit; text-decoration: none; }
.o-value__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.o-value__title a:focus-visible { outline: none; }
.o-value__title a:focus-visible::after { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.o-value__text { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.65; }
.o-value__count { margin: auto 0 0; padding-top: 16px; color: var(--c-accent); font-size: 13px; font-weight: 700; }

/* ── 글 카드(공통 nb-card · 부모 post-card 마크업) ───────────────── */
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.nb-card { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--c-card); color: var(--c-ink); box-shadow: var(--sh-2); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.nb-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.nb-card__media { display: block; }
.nb-card__media img, .nb-card__ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--c-accent-soft); }
.n-ph { background: linear-gradient(140deg, var(--c-point), var(--c-card)); }
.n-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px 22px 22px; }
.n-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.n-chip, .nb-card__label { position: relative; z-index: 2; display: inline-flex; align-items: center; margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--c-sage-soft); color: var(--c-sage-ink); font-size: 12px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.n-chip::before { content: ""; position: absolute; inset: -10px -4px; }
.n-chip:hover, .nb-card__label a:hover { background: color-mix(in srgb, var(--c-sage) 28%, #FFF); }
.nb-card__label a { color: inherit; text-decoration: none; }
.n-card__date { margin-left: auto; color: var(--c-faint); font-size: 13px; line-height: 1.5; }
.nb-card__title { margin: 12px 0 0; font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.nb-card__title a { color: inherit; text-decoration: none; }
.nb-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.nb-card__title a:hover { color: var(--c-accent); }
.nb-card__title a:focus-visible { outline: none; }
.nb-card__title a:focus-visible::after { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.n-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; color: var(--c-muted); font-size: 14px; line-height: 1.6; }
.nb-card__meta { margin: auto 0 0; padding-top: 14px; color: var(--c-faint); font-size: 13px; line-height: 1.5; }
/* 홈 1쪽 첫 카드는 넓게(사진 왼쪽) */
@media (min-width: 900px) {
  .o-cards--lead > .nb-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .o-cards--lead > .nb-card:first-child .nb-card__media { flex: 0 0 56%; }
  .o-cards--lead > .nb-card:first-child .nb-card__media img { height: 100%; min-height: 300px; aspect-ratio: auto; }
  .o-cards--lead > .nb-card:first-child .n-card__body { justify-content: center; padding: 36px 40px; }
  .o-cards--lead > .nb-card:first-child .nb-card__title { font-size: 26px; line-height: 1.38; }
  .o-cards--lead > .nb-card:first-child .n-card__excerpt { -webkit-line-clamp: 3; font-size: 15px; }
  .o-cards--lead > .nb-card:first-child .nb-card__meta { margin-top: 0; padding-top: 18px; }
}

/* ── 홈 ④ 사진 없는 카드(본 서비스 커뮤니티 카드) ──────────────── */
.o-band { padding-bottom: 8px; }
.o-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.o-note { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); transition: box-shadow .2s var(--ease); }
.o-note:hover { box-shadow: var(--sh-3); }
.o-note__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.o-note__cat { position: relative; z-index: 2; }
.o-note__date { margin-left: auto; color: var(--c-faint); font-size: 13px; }
.o-note__title { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.o-note__title a { color: inherit; text-decoration: none; }
.o-note__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.o-note__title a:hover { color: var(--c-accent); }
.o-note__title a:focus-visible { outline: none; }
.o-note__title a:focus-visible::after { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.o-note__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.6; }
.o-note__meta { margin: auto 0 0; padding-top: 16px; color: var(--c-faint); font-size: 13px; }
.o-note__pin { color: var(--c-accent); font-weight: 700; }

/* ── 홈 ⑤ 위젯 · ⑥ 파란 띠 ───────────────────────────────────── */
.o-home-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; gap: 16px; }
.o-home-widgets .nb-widget--tags { grid-column: 1 / -1; }
.o-home-widgets .nb-widget { padding: 24px; border: 0; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.o-cta-band { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 56px); border-radius: var(--r-card); background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep)); color: #FFF; text-align: center; box-shadow: var(--sh-3); }
.o-cta-band__title { margin: 0 0 12px; color: #FFF; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.o-cta-band__text { max-width: 460px; margin: 0 auto; color: rgba(255, 255, 255, .86); font-size: 17px; line-height: 1.7; white-space: pre-line; }
.o-cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ── 꼬리말 ─────────────────────────────────────────────────── */
.o-footer { margin-top: 80px; background: var(--c-ink); color: rgba(255, 255, 255, .74); }
.o-footer > .n-wrap { padding-top: 48px; padding-bottom: 40px; }
.o-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.o-footer__logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #FFF; font-family: var(--f-head); font-size: 18px; font-weight: 700; text-decoration: none; }
.o-footer__text { max-width: 320px; margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.7; }
.o-footer__title { margin: 0 0 10px; color: #FFF; font-family: var(--f-body); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.o-footer__col ul { list-style: none; margin: 0; padding: 0; }
.o-footer__col a { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 0; color: rgba(255, 255, 255, .72); font-size: 14px; text-decoration: none; }
.o-footer__col a:hover, .o-footer__col a[aria-current] { color: #FFF; text-decoration: underline; text-underline-offset: 4px; }
.o-footer__widgets { display: contents; }
.o-footer .nb-widget { padding: 0; border: 0; }
.o-footer .nb-widget__title { color: #FFF; font-size: 14px; }
.o-footer .nb-widget__text, .o-footer .nb-widget__list { color: rgba(255, 255, 255, .72); }
.o-footer .nb-widget__list { padding-left: 0; list-style: none; }
.o-footer .nb-widget__list li + li { margin-top: 0; }
.o-footer .nb-widget__list a { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 0; font-size: 14px; text-decoration: none; }
.o-footer .nb-widget__depth-1 { margin-left: 10px; }
.o-footer .nb-widget a { color: rgba(255, 255, 255, .72); }
.o-footer .nb-widget a:hover { color: #FFF; }
.o-footer .nb-widget__tags a { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.o-notice { margin-top: 36px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.o-notice__title { margin: 0; color: #FFF; font-weight: 700; }
.o-notice__text { margin: 2px 0 0; }
.o-notice__lines { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 10px 0 0; padding: 0; }
.o-notice__lines a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: rgba(255, 255, 255, .85); text-decoration: none; }
.o-notice__lines a:hover { color: #FFF; text-decoration: underline; text-underline-offset: 4px; }
.o-notice__lines b { color: #FFF; }
.o-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.o-footer__bottom p { margin: 0; }
.o-top { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: rgba(255, 255, 255, .8); font-weight: 700; text-decoration: none; }
.o-top:hover { color: #FFF; }
.nb-powered { margin: 0; }
.nb-powered a { color: rgba(255, 255, 255, .7); }

/* ── 목록 머리(카테고리 · 태그 · 검색 · 404 · 2쪽) — 본 서비스 섹션 첫머리 ─── */
.nb-archive { padding: 0; }
.n-band-head { position: relative; overflow: hidden; padding: 48px 0 32px; background: linear-gradient(180deg, var(--c-accent-soft) 0%, var(--c-bg) 100%); color: var(--c-ink); }
.n-band-head__inner { position: relative; z-index: 1; }
.n-band-head .o-halo--a { top: -80px; right: 6%; width: 220px; height: 220px; background: color-mix(in srgb, var(--c-point) 55%, transparent); filter: blur(28px); }
.n-band-head .o-halo--b { display: none; }
.n-band-head .o-badge { margin-bottom: 14px; }
.n-band-head__title { font-size: clamp(30px, 4.4vw, 40px); font-weight: 700; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.n-band-head__title--sm { font-size: clamp(26px, 3.6vw, 34px); }
.n-band-head__desc { max-width: 600px; margin: 10px 0 0; color: var(--c-muted); font-size: 16px; line-height: 1.7; }
.n-band-head__count { display: inline-block; margin: 16px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--c-card); color: var(--c-accent); font-size: 13px; font-weight: 700; box-shadow: var(--sh-1); }
.n-band-head__search { max-width: 520px; margin: 22px 0 0; }
.n-band-head__search .nb-search { background: var(--c-card); box-shadow: var(--sh-2); }
.n-band-head__actions { margin: 20px 0 0; }
.n-band-head .nb-notice { max-width: 520px; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--c-warm); font-weight: 700; }
.n-404__code, .nb-404__code { margin: 0 0 6px; color: var(--c-accent); font-family: var(--f-head); font-size: clamp(56px, 9vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.n-list { padding-top: 32px; padding-bottom: 24px; }
.n-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.n-toolbar__search { flex: 0 1 340px; min-width: 0; margin-left: auto; }
.n-chips ul, .nb-archive__children ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.n-chips a, .nb-archive__children a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--c-hover); color: var(--c-muted); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.n-chips a:hover, .nb-archive__children a:hover { background: color-mix(in srgb, var(--c-ink) 10%, transparent); color: var(--c-ink); }
.n-chips a[aria-current] { background: var(--c-warm); color: var(--c-ink); }
.n-section-title, .nb-section-title { margin: 0 0 20px; font-family: var(--f-head); font-size: 24px; font-weight: 700; line-height: 1.35; }

/* 위치 경로 */
.nb-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; list-style: none; margin: 0 0 12px; padding: 0; color: var(--c-muted); font-size: 14px; line-height: 1.4; }
.nb-breadcrumb li { display: inline-flex; align-items: center; }
.nb-breadcrumb li + li::before { content: "›"; content: "›" / ""; margin-right: 6px; color: var(--c-faint); }
.nb-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-muted); font-weight: 700; text-decoration: none; }
.nb-breadcrumb a:hover { color: var(--c-accent); }
.n-band-head .nb-breadcrumb li:last-child, .n-post__head .nb-breadcrumb li:last-child { display: none; }

/* ── 페이지 번호 · 빈 화면 · 알림 ─────────────────────────────── */
.nb-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; list-style: none; margin: 40px 0 0; padding: 0; }
.nb-pagination a, .nb-pagination .nb-pagination__current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--r-md); color: var(--c-muted); font-size: 15px; font-weight: 700; text-decoration: none; }
.nb-pagination a:hover { background: var(--c-hover); color: var(--c-ink); }
.nb-pagination .nb-pagination__current { background: var(--c-accent); color: #FFF; }
.nb-pagination .nb-pagination__prev, .nb-pagination .nb-pagination__next { gap: 6px; padding: 0 14px; background: var(--c-card); box-shadow: var(--sh-1); }
.nb-pagination__prev::before { content: "←"; content: "←" / ""; }
.nb-pagination__next::after { content: "→"; content: "→" / ""; }
.nb-pagination__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--c-faint); }
.nb-empty { margin: 0; padding: 56px 24px; border-radius: var(--r-card); background: var(--c-section); color: var(--c-faint); font-size: 15px; text-align: center; }
.nb-notice { margin: 16px 0 0; color: var(--c-ink); font-weight: 700; }

/* ── 글 상세(부모 post.twig 마크업) ───────────────────────────── */
.n-post__hero { position: relative; overflow: hidden; background: linear-gradient(170deg, color-mix(in srgb, var(--c-point) 70%, #FFF) 0%, var(--c-accent-soft) 45%, var(--c-bg) 100%); color: var(--c-ink); }
.n-post__hero .o-halo--a { top: -60px; right: 8%; width: 220px; height: 220px; background: rgba(255, 255, 255, .6); filter: blur(24px); }
.n-post__hero .o-halo--b { bottom: auto; top: 40%; left: -60px; width: 160px; height: 160px; filter: blur(24px); }
.n-post__head { position: relative; z-index: 1; max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter) 56px; }
.n-post__hero--cover .n-post__head { padding-bottom: 150px; }
.n-post__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.n-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 18px 0 0; color: var(--c-muted); font-size: 14px; line-height: 1.6; }
.n-post__meta > span { white-space: nowrap; }
.n-post__meta > span:first-child { color: var(--c-ink); font-weight: 700; }
.n-post__meta > span + span::before { content: "·"; content: "·" / ""; margin: 0 8px; color: var(--c-faint); }
.nb-disclosure { display: inline-block; margin: 16px 0 0; padding: 8px 14px; border-radius: var(--r-sm); background: var(--c-warm); color: var(--c-ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.n-post__cover { position: relative; z-index: 2; max-width: calc(960px + var(--gutter) * 2); margin: -120px auto 0; padding: 0 var(--gutter); }
.n-post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.n-post__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); column-gap: 40px; padding: 56px var(--gutter) 0; }
.n-post__aside { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 240px; }
.n-post__aside:empty { display: none; }
.n-post__aside .nb-toc { position: sticky; top: 90px; }
.n-post__body { grid-column: 2; grid-row: 1; min-width: 0; }
.n-post__single { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 48px var(--gutter) 24px; }
.n-post--page .n-post__head { padding-bottom: 48px; }
.n-post--page .n-post__hero--cover .n-post__head { padding-bottom: 150px; }

/* 목차 */
.nb-toc { padding: 18px 20px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.nb-toc__title { margin: 0 0 6px; color: var(--c-accent); font-size: 13px; font-weight: 700; }
.nb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; font-size: 14px; line-height: 1.45; }
.nb-toc__item--2 { counter-increment: toc; }
.nb-toc a { display: flex; gap: 8px; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--c-ink-soft); text-decoration: none; }
.nb-toc__item--2 > a::before { content: counter(toc); flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); font-size: 11px; font-weight: 700; }
.nb-toc__item--3 > a, .nb-toc__item--4 > a { padding-left: 38px; font-size: 13px; color: var(--c-muted); }
.nb-toc a:hover { background: var(--c-hover); color: var(--c-ink); }
.nb-toc a[aria-current] { background: var(--c-accent-soft); color: var(--c-accent); font-weight: 700; }

/* 태그 · 공유 · 작성자 */
.n-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 48px 0 0; padding: 0; }
.n-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--c-sage-soft); color: var(--c-sage-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.n-tags a:hover { background: color-mix(in srgb, var(--c-sage) 28%, #FFF); }
.n-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.n-share__label { margin: 0 4px 0 0; color: var(--c-muted); font-size: 14px; font-weight: 700; }
.nb-share { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-share__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--c-hover); color: var(--c-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nb-share__btn:hover { background: var(--c-accent-soft); color: var(--c-accent); }
.nb-share__btn--copy { background: var(--c-accent-soft); color: var(--c-accent); }
.nb-author { display: flex; align-items: flex-start; gap: 18px; margin-top: 40px; padding: 24px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.nb-author__photo, .nb-author__initial { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.nb-author__initial { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(150deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 45%, #FFF)); color: #FFF; font-family: var(--f-head); font-size: 22px; font-weight: 700; }
.nb-author p { margin: 0; }
.nb-author__label { color: var(--c-faint); font-size: 12px; font-weight: 700; }
.nb-author__name { margin-top: 2px !important; font-size: 18px; font-weight: 700; }
.nb-author__name a { text-decoration-color: var(--c-point); text-decoration-thickness: 2px; }
.nb-author__role { color: var(--c-muted); font-size: 13px; }
.nb-author__bio { margin-top: 8px !important; color: var(--c-ink-soft); font-size: 15px; line-height: 1.7; }
.nb-author__reviewer { margin-top: 8px; color: var(--c-muted); font-size: 14px; }

/* 다음 글 */
.n-next { margin-top: 72px; padding: 56px 0 72px; background: var(--c-section); }
.n-next__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.n-next__title { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.n-next .n-pill { background: var(--c-card); box-shadow: var(--sh-1); }
.n-post:not(:has(.n-next)) .n-post__grid { padding-bottom: 24px; }
/* 다음 글 띠(회색 면)로 끝나는 글 화면은 꼬리말과 바로 잇는다 */
.nb-main:has(.n-next) + .o-footer { margin-top: 0; }
.nb-related { margin-top: 40px; }
.nb-related__title { margin: 0 0 20px; font-family: var(--f-head); font-size: 22px; font-weight: 700; }
.nb-related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.nb-related__item { padding: 12px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.nb-related__item a { display: flex; flex-direction: column; gap: 10px; color: var(--c-ink); font-weight: 700; text-decoration: none; }
.nb-related__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); }
.nb-related__item time { display: block; margin-top: 6px; color: var(--c-faint); font-size: 13px; font-weight: 400; }

/* ── 본문(.nb-content) — 정화 후 남는 태그만 ───────────────────── */
.nb-content { font-size: 17px; line-height: 1.85; color: var(--c-ink); }
.nb-content > * { margin-top: 0; margin-bottom: 0; }
.nb-content > * + * { margin-top: 20px; }
.nb-content p { margin: 0; }
.nb-content h2 { margin-top: 52px; font-size: 25px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; text-wrap: balance; scroll-margin-top: 96px; }
.nb-content h3 { margin-top: 36px; font-size: 20px; font-weight: 700; line-height: 1.45; scroll-margin-top: 96px; }
.nb-content h4 { margin-top: 28px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.nb-content > h2 + *, .nb-content > h3 + *, .nb-content > h4 + * { margin-top: 14px; }
.nb-content strong { font-weight: 700; }
.nb-content a { color: var(--c-accent); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-accent) 35%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nb-content a:hover { text-decoration-color: var(--c-accent); }
.nb-content ul, .nb-content ol { padding-left: 1.4em; }
.nb-content li + li { margin-top: .4em; }
.nb-content li::marker { color: var(--c-accent); font-weight: 700; }
.nb-content blockquote { margin: 36px 0; padding: 22px 26px; border-left: 4px solid var(--c-point); border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--c-accent-soft); }
.nb-content blockquote p { color: var(--c-ink); font-size: 18px; font-weight: 700; line-height: 1.7; }
.nb-content blockquote p + p { margin-top: 8px; color: var(--c-muted); font-size: 14px; font-weight: 400; }
.nb-content figure { margin: 36px 0; }
.nb-content figure img { display: block; width: 100%; height: auto; border-radius: var(--r-card); }
.nb-content figure:has(img + img) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nb-content figure:has(img + img) img { aspect-ratio: 1 / 1; object-fit: cover; }
.nb-content figure:has(img + img) figcaption { grid-column: 1 / -1; margin-top: -4px; }
.nb-content figcaption { margin-top: 10px; color: var(--c-muted); font-size: 13px; line-height: 1.55; text-align: center; }
.nb-content hr { height: 1px; margin: 44px 0; border: 0; background: var(--c-line); }
.nb-content code { padding: .12em .4em; border-radius: 6px; background: var(--c-accent-soft); color: var(--c-accent-deep); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; }
.nb-content pre { overflow-x: auto; padding: 18px 22px; border-radius: var(--r-md); background: var(--c-ink); color: #F4F4EF; font-size: 14px; line-height: 1.6; }
.nb-content pre code { padding: 0; background: none; color: inherit; }
.nb-table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.nb-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.nb-content th, .nb-content td { padding: 12px 16px; text-align: left; vertical-align: top; }
.nb-content th { background: var(--c-accent-soft); color: var(--c-accent-deep); font-weight: 700; white-space: nowrap; }
.nb-content td { border-top: 1px solid var(--c-hair); }

/* 답변형 블록(MK-10) */
.nb-content > .nb-block { margin-top: 36px; }
.nb-content > .nb-block + * { margin-top: 36px; }
.nb-content > .nb-block:first-child { margin-top: 0; }
.nb-block { padding: 24px 26px; border-radius: var(--r-card); background: var(--c-card); box-shadow: var(--sh-2); }
.nb-block > * + * { margin-top: 10px; }
.nb-block__label { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
/* 한눈에 보기 = 하늘빛 상자 + 체크 동그라미 */
.nb-block--summary { background: linear-gradient(140deg, color-mix(in srgb, var(--c-point) 55%, #FFF), var(--c-accent-soft)); box-shadow: none; }
.nb-block--summary .nb-block__label { color: var(--c-accent); }
.nb-block--summary ul { display: flex; flex-direction: column; gap: 8px; list-style: none; margin-top: 12px; padding: 0; }
.nb-block--summary li { position: relative; min-height: 24px; padding-left: 34px; font-size: 16px; line-height: 1.65; }
.nb-block--summary li + li { margin-top: 0; }
.nb-block--summary li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); }
.nb-block--summary li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px; border: solid #FFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nb-block--summary p, .nb-block--summary ol { font-size: 16px; }
.nb-block--faq .nb-block__label { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--c-warm); font-size: 13px; }
.nb-content .nb-block--faq h2, .nb-content .nb-block--faq h3, .nb-content .nb-block--faq h4 { position: relative; margin-top: 20px; padding-left: 34px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.nb-content .nb-block--faq h2::before, .nb-content .nb-block--faq h3::before, .nb-content .nb-block--faq h4::before { content: "Q"; content: "Q" / ""; position: absolute; left: 0; top: 1px; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-accent); color: #FFF; font-size: 12px; line-height: 1; }
.nb-block--faq p { padding-left: 34px; color: var(--c-ink-soft); font-size: 15px; line-height: 1.75; }
.nb-content .nb-block--faq h2 + p, .nb-content .nb-block--faq h3 + p, .nb-content .nb-block--faq h4 + p { margin-top: 4px; }
.nb-block--sources { padding: 20px 0 0; border-top: 1px solid var(--c-line); border-radius: 0; background: transparent; box-shadow: none; color: var(--c-muted); font-size: 14px; line-height: 1.7; }
.nb-block--refs { background: var(--c-section); box-shadow: none; font-size: 15px; line-height: 1.7; }
.nb-block--sources .nb-block__label, .nb-block--refs .nb-block__label { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--c-sage-soft); color: var(--c-sage-ink); font-size: 12px; }
.nb-block--sources ul, .nb-block--sources ol, .nb-block--refs ul, .nb-block--refs ol { padding-left: 1.2em; }
.nb-block--sources a, .nb-block--refs a { overflow-wrap: anywhere; }

/* ── 위젯(공통) ─────────────────────────────────────────────── */
.nb-widget { padding: 20px 0; border-top: 1px solid var(--c-hair); }
.nb-widget__title { margin: 0 0 10px; font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.4; }
.nb-widget__list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.nb-widget__list li + li { margin-top: 4px; }
.nb-widget__list a { display: inline-block; padding: 6px 0; text-decoration: none; }
.nb-widget__list a:hover { color: var(--c-accent); text-decoration: underline; }
.nb-widget__depth-1 { margin-left: 12px; }
.nb-widget__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nb-widget__tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--c-sage-soft); color: var(--c-sage-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.nb-widget__tags a:hover { background: color-mix(in srgb, var(--c-sage) 28%, #FFF); }
.nb-widget__text { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.7; }
.nb-widget__banner { display: block; }
.nb-widget__banner img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.nb-widget .nb-search { background: var(--c-section); }
.nb-img { max-width: 100%; }
.nb-suspended { max-width: 560px; margin: 20vh auto; padding: 48px var(--gutter); border-radius: var(--r-xl); background: var(--c-card); box-shadow: var(--sh-3); text-align: center; }
.nb-suspended h1 { margin-bottom: 12px; font-size: 30px; font-weight: 700; line-height: 1.3; }

/* CTA 블록(MK-01) */
.nb-cta { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin: 36px 0; padding: 24px; border-radius: var(--r-card); background: var(--c-accent-soft); }
.nb-cta__img { flex: none; width: 128px; height: 128px; border-radius: var(--r-md); object-fit: cover; }
.nb-cta__body { flex: 1 1 240px; min-width: 0; }
.nb-cta__title { margin: 0; font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--c-ink); }
.nb-cta__text { margin: 6px 0 0; color: var(--c-muted); font-size: 15px; line-height: 1.7; }
.nb-cta__button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 20px; border-radius: 999px; background: var(--c-accent); color: #FFF; font-weight: 700; text-decoration: none; }
.nb-cta__button:hover { background: var(--c-accent-hover); }
.nb-cta--sidebar { flex-direction: column; align-items: stretch; }
.nb-cta--sidebar .nb-cta__img { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* 모바일 하단 바(부모 템플릿 — 이 테마는 스크립트를 켜지 않으므로 늘 숨김) */
.n-bar { display: none !important; }

/* ── 반응형 ─────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  .n-post__grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .n-post__aside { grid-column: 1; grid-row: 1; justify-self: stretch; max-width: none; }
  .n-post__aside .nb-toc { position: static; margin-bottom: 36px; }
  .n-post__body { grid-column: 1; grid-row: 2; }
}
@media (max-width: 960px) {
  .o-gnb__nav { display: none; }
  .o-burger { display: inline-flex; }
  .o-values, .o-values--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .o-gnb__inner { gap: 10px; height: 58px; }
  .o-gnb__search { display: none; }
  .o-gnb__cta { min-height: 40px; padding: 8px 13px; font-size: 13px; }
  .o-brand { gap: 8px; }
  .o-brand__name { font-size: 20px; }
  .o-topics__list { padding: 10px 0; }
  .o-topics .n-wrap { padding-right: 0; }
  .o-topics__list > li:last-child { padding-right: var(--gutter); }
  .o-chip { min-height: 38px; padding: 7px 14px; font-size: 13px; }
  .o-hero { padding-top: 20px; }
  .o-reflection { border-radius: var(--r-xl); padding: 32px 22px; }
  .o-hero__title { font-size: 30px; }
  .o-hero__lead { margin-bottom: 24px; font-size: 16px; }
  .o-hero__actions .o-btn { flex: 1 1 auto; }
  .o-section { padding-top: 44px; }
  .o-section__title { font-size: 23px; }
  .o-values, .o-values--even { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* 좁은 화면: 주제 카드를 아이콘 왼쪽 한 줄 카드로(세로 길이 줄이기) */
  .o-value { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px; }
  .o-value__icon { grid-row: 1 / span 3; width: 44px; height: 44px; margin-bottom: 0; border-radius: 13px; }
  .o-value__title { margin-bottom: 4px; font-size: 18px; }
  .o-value__count { padding-top: 8px; }
  .o-notes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .o-note { padding: 20px; }
  .o-note__title { font-size: 18px; }
  .nb-cards { gap: 14px; }
  .nb-card__title { font-size: 18px; }
  .n-card__body { padding: 16px 18px 18px; }
  .o-cta-band__text { font-size: 15px; }
  .o-cta-band__actions .o-btn { flex: 1 1 auto; }
  .o-footer { margin-top: 56px; }
  .o-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .o-footer__widgets { display: block; }
  .o-footer__bottom { flex-direction: column; align-items: flex-start; }
  .o-top { margin-left: 0; }
  .n-band-head { padding: 32px 0 20px; }
  .n-band-head__title { font-size: 28px; }
  .n-band-head__title--sm { font-size: 24px; }
  .n-band-head__desc { font-size: 15px; }
  .n-list { padding-top: 20px; }
  .n-toolbar__search { flex: 1 1 100%; margin-left: 0; }
  .n-section-title, .nb-section-title { font-size: 21px; }
  .nb-pagination ul { margin-top: 32px; }
  .n-post__head { padding: 20px var(--gutter) 40px; }
  .n-post__hero--cover .n-post__head { padding-bottom: 72px; }
  .n-post__title { font-size: 26px; }
  .n-post__meta { gap: 2px 12px; font-size: 13px; }
  .n-post__meta > span + span::before { display: none; }
  .n-post__cover { margin-top: -48px; }
  .n-post__cover img { aspect-ratio: 16 / 10; border-radius: var(--r-card); }
  .n-post__grid { padding-top: 28px; }
  .n-post__single { padding-top: 32px; }
  .nb-content { font-size: 16px; line-height: 1.8; }
  .nb-content h2 { margin-top: 40px; font-size: 21px; }
  .nb-content h3 { font-size: 18px; }
  .nb-content blockquote { padding: 18px 20px; }
  .nb-content blockquote p { font-size: 16px; }
  .nb-content figure:has(img + img) { gap: 8px; }
  .nb-block { padding: 20px; }
  .nb-block--sources { padding: 18px 0 0; }
  .nb-author { gap: 14px; padding: 20px; }
  .nb-author__photo, .nb-author__initial { width: 48px; height: 48px; font-size: 19px; }
  .n-next { margin-top: 56px; padding-top: 44px; padding-bottom: 56px; }
  .n-next__title { font-size: 22px; }
}
@media (max-width: 359px) {
  .o-brand__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .nb-card:hover, .o-value:hover { transform: none; }
}
@media print {
  .o-gnb, .o-topics, .o-drawer, .o-footer, .n-post__aside, .n-share, .n-next, .nb-pagination, .n-bar, .o-halo, .o-cta-band { display: none !important; }
  body { background: #FFF; }
  .n-post__hero, .n-band-head { background: none; }
  .n-post__cover { margin-top: 0; }
  .nb-card, .o-note, .o-value, .nb-block, .nb-toc, .nb-author { box-shadow: none; border: 1px solid #DDD; }
}
