@charset "utf-8";
/* 월급생활연구소 — WOLGEUP LIFE LAB
   Editorial design system · navy / ivory / blue */

@font-face {
  font-family: "WLL Serif";
  src: url("../fonts/wll-serif.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "WLL Sans";
  src: url("../fonts/wll-sans.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --navy: #0f2342;
  --navy-2: #18325a;
  --navy-3: #24436f;
  --ink: #1c2733;
  --ink-2: #33414f;
  --muted: #5f6b79;
  --muted-2: #7b8694;
  --ivory: #faf8f3;
  --ivory-2: #f3efe6;
  --paper: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf0fd;
  --gold: #a97f45;
  --line: #e4ddcf;
  --line-2: #d5cbb9;
  --ok: #157347;
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(15, 35, 66, .28);
  --serif: "WLL Serif", "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans: "WLL Sans", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
::selection { background: #cfdcff; color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 4px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy); color: #c9d5e6; font-size: 12.5px; letter-spacing: .01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar .tagline { display: flex; align-items: center; gap: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: #6ea0ff; flex: none; }
.topbar .date { color: #9fb0c8; white-space: nowrap; }
.topbar b { color: #fff; font-weight: 500; }

/* ---------- masthead ---------- */
.masthead { background: var(--ivory); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 26px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; border: 1.5px solid var(--navy); border-radius: 50%;
  display: grid; place-items: center; position: relative; flex: none;
}
.brand-mark::before { content: ""; position: absolute; inset: 5px; border: 1px solid #b9a173; border-radius: 50%; }
.brand-mark span { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.04em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--navy); letter-spacing: -.055em; }
.brand-text small { margin-top: 5px; font-size: 10px; letter-spacing: .28em; color: var(--muted); font-weight: 600; }
.masthead-side { display: flex; align-items: center; gap: 22px; }
.masthead-note { text-align: right; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.masthead-note strong { display: block; color: var(--navy); font-weight: 600; font-size: 13px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: #fff;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.search-btn:hover { border-color: var(--blue); color: var(--blue); }
.search-btn svg { width: 15px; height: 15px; }

/* ---------- nav ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 58px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 13px; font-size: 14.5px; font-weight: 500; color: #2c3947; border-radius: 3px;
  white-space: nowrap;
}
.nav a:hover { background: var(--ivory-2); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.nav .nav-end { display: flex; align-items: center; gap: 4px; }
.nav .nav-end a { font-size: 13.5px; color: var(--muted); }
.nav-toggle { display: none; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; padding: 8px 10px; cursor: pointer; align-items: center; gap: 10px; }
.nav-toggle-label { display: none; font-size: 13px; font-weight: 600; color: var(--navy); }
.nav-toggle .bars { display: block; }
.nav-toggle .bars i { display: block; width: 18px; height: 2px; background: var(--navy); margin: 4px 0; transition: .2s; }

/* ---------- ad slot ---------- */
.ad-slot {
  margin: 34px 0; border: 1px dashed #c9bfa9; background: #fffdf8; border-radius: var(--radius);
  padding: 14px; text-align: center;
}
.ad-slot .ad-label {
  display: block; font-size: 9.5px; letter-spacing: .24em; color: #9a8f7a; margin-bottom: 6px; font-weight: 600;
}
.ad-slot .ad-placeholder {
  min-height: 92px; display: grid; place-items: center; color: #a49a86; font-size: 12.5px;
  background: repeating-linear-gradient(135deg, #fbf8f1 0 8px, #f7f2e7 8px 16px); border-radius: 2px;
}
.ad-slot.in-article .ad-placeholder { min-height: 250px; }
.ad-slot.in-feed .ad-placeholder { min-height: 110px; }

/* ---------- hero ---------- */
main { display: block; }
.hero { padding: 40px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 26px; align-items: stretch; }
.hero-main {
  position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius);
  min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; opacity: .92; z-index: -2; }
.hero-main::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,35,66,.55) 0%, rgba(15,35,66,.78) 46%, rgba(11,26,50,.97) 100%);
}
.hero-body { padding: 34px 36px 32px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .16em; color: #c8d8f2; font-weight: 600; margin-bottom: 13px; }
.hero-kicker .tag { background: var(--blue); color: #fff; letter-spacing: .08em; padding: 3px 9px; border-radius: 2px; }
.hero-main h1 { font-family: var(--serif); font-size: clamp(27px, 3.1vw, 41px); line-height: 1.28; letter-spacing: -.045em; margin: 0 0 13px; font-weight: 700; word-break: keep-all; }
.hero-main p { margin: 0 0 20px; color: #d5dfef; font-size: 15px; line-height: 1.7; max-width: 46ch; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #a9bcd8; }
.hero-meta .more { margin-left: auto; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }
.hero-side { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.hero-secondary {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.hero-secondary img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 70% center; }
.hero-secondary .body { padding: 16px 18px 17px; }
.hero-secondary .cat { font-size: 10.5px; letter-spacing: .12em; color: var(--blue); font-weight: 700; }
.hero-secondary h2 { font-family: var(--serif); font-size: 19px; line-height: 1.4; letter-spacing: -.035em; margin: 6px 0 8px; font-weight: 700; word-break: keep-all; }
.hero-secondary p { margin: 0; font-size: 12.5px; color: var(--muted); }
.hero-list { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 17px 19px 9px; }
.hero-list h3 { font-size: 11px; letter-spacing: .18em; color: var(--navy); margin: 0 0 7px; font-weight: 700; }
.hero-list ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.hero-list li { counter-increment: rank; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #eee7da; font-size: 13.5px; line-height: 1.45; }
.hero-list li:first-child { border-top: 0; }
.hero-list li::before { content: counter(rank); font-family: var(--serif); color: #b9a173; font-weight: 700; font-size: 15px; min-width: 14px; }
.hero-list a { font-weight: 500; }

/* ---------- stats strip ---------- */
.stats { margin: 30px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stats-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 0; }
.stats-head h2 { font-family: var(--serif); font-size: 16px; margin: 0; letter-spacing: -.03em; }
.stats-head span { font-size: 11px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 8px 16px; }
.stat { padding: 6px 18px; border-left: 1px solid #eee7da; }
.stat:first-child { border-left: 0; }
.stat .label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .value { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); color: var(--navy); font-weight: 700; letter-spacing: -.04em; line-height: 1.25; margin-top: 3px; }
.stat .value small { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.stat a { font-size: 11px; color: var(--blue); display: inline-block; margin-top: 2px; }

/* ---------- section ---------- */
.section { padding: 50px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.section-head .eyebrow { font-size: 10.5px; letter-spacing: .22em; color: var(--blue); font-weight: 700; display: block; margin-bottom: 5px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 29px); letter-spacing: -.045em; margin: 0; color: var(--navy); font-weight: 700; }
.section-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.section-head .link { font-size: 12.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.section-head .link:hover { color: var(--blue); }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-tile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 18px; display: flex; flex-direction: column; min-height: 132px; transition: .2s;
}
.cat-tile:hover { border-color: var(--navy-3); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.cat-tile .idx { font-family: var(--serif); font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.cat-tile h3 { font-family: var(--serif); font-size: 19px; margin: 5px 0 5px; letter-spacing: -.04em; color: var(--navy); }
.cat-tile p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.cat-tile .count { margin-top: auto; padding-top: 10px; font-size: 11px; color: #93876f; letter-spacing: .03em; }
.cat-tile .arrow { position: absolute; right: 18px; top: 18px; color: #c3b395; font-size: 14px; }

/* ---------- article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3c8b5; }
.card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .thumb img { transform: scale(1.025); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: 10.5px; letter-spacing: .13em; color: var(--blue); font-weight: 700; }
.card h3 { font-family: var(--serif); font-size: 18px; line-height: 1.42; letter-spacing: -.035em; margin: 7px 0 7px; font-weight: 700; word-break: keep-all; }
.card p { margin: 0 0 14px; font-size: 12.8px; line-height: 1.62; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8b8271; }
.card .meta .bar { width: 1px; height: 9px; background: #d9cfbd; }

/* ---------- list rows ---------- */
.row-list { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.row:hover { background: #fffdf8; }
.row .no { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .08em; }
.row h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 3px; letter-spacing: -.035em; font-weight: 700; word-break: keep-all; }
.row p { margin: 0; font-size: 12.5px; color: var(--muted); }
.row .date { font-size: 11.5px; color: #8b8271; white-space: nowrap; }

/* ---------- footer ---------- */
.footer { margin-top: 64px; background: var(--navy); color: #b9c6d9; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 46px 0 34px; }
.footer h2, .footer h3 { color: #fff; }
.footer .fbrand { font-family: var(--serif); font-size: 22px; letter-spacing: -.05em; margin: 0 0 4px; }
.footer .fen { font-size: 9.5px; letter-spacing: .26em; color: #8ea2bd; margin: 0 0 14px; }
.footer p { font-size: 12.5px; line-height: 1.75; margin: 0; color: #9fb0c8; }
.footer h3 { font-size: 11px; letter-spacing: .18em; margin: 2px 0 12px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; font-size: 12.5px; }
.footer a { color: #b9c6d9; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 20px; font-size: 11.5px; color: #8399b5; flex-wrap: wrap; }
.footer-bottom .legal a { margin-left: 14px; }
.footer-bottom .legal a:first-child { margin-left: 0; }
.footer .disclaimer { margin-top: 12px; font-size: 11px; color: #7e93ae; line-height: 1.7; }

/* ---------- page hero (about etc) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 54px 0 46px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
}
.page-hero::after {
  content: ""; position: absolute; right: 40px; top: -20px; width: 260px; height: 260px; border: 1px solid rgba(185,161,115,.35); border-radius: 50%;
}
.page-hero .wrap { position: relative; z-index: 1; }
.eyebrow { font-size: 10.5px; letter-spacing: .24em; color: #8fa9cd; font-weight: 700; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.05em; line-height: 1.25; margin: 10px 0 12px; word-break: keep-all; font-weight: 700; }
.page-hero p { margin: 0; color: #c4d2e6; max-width: 62ch; font-size: 15px; line-height: 1.7; }
.page-hero .meta-line { margin-top: 18px; display: flex; gap: 16px; font-size: 12px; color: #93a9c7; flex-wrap: wrap; }

/* ---------- breadcrumb ---------- */
.crumbs { padding: 16px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: #b9ad97; }
.crumbs .current { color: var(--ink-2); }

/* ---------- article ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 54px; align-items: start; padding-top: 26px; }
.article-head { padding: 12px 0 26px; border-bottom: 1px solid var(--line-2); }
.article-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; color: var(--blue); font-weight: 700; }
.article-cat::before { content: ""; width: 18px; height: 1px; background: var(--blue); }
.article-hero { margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--navy); }
.article-hero img { width: 100%; aspect-ratio: 16 / 6.2; object-fit: cover; }
.article-head h1 { font-family: var(--serif); font-size: clamp(28px, 3.3vw, 40px); line-height: 1.34; letter-spacing: -.05em; margin: 12px 0 12px; color: var(--navy); font-weight: 700; word-break: keep-all; }
.article-deck { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 17px; max-width: 62ch; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; color: var(--muted); }
.article-meta .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 11px; }
.article-meta .name { color: var(--ink-2); font-weight: 600; }
.article-meta .sep { width: 1px; height: 10px; background: var(--line-2); }
.article-meta .reviewed { color: var(--ok); }

.article-body { padding-top: 30px; font-size: 16.5px; line-height: 1.85; color: #26323e; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
  font-family: var(--serif); font-size: clamp(21px, 2.2vw, 25px); line-height: 1.4; letter-spacing: -.045em;
  color: var(--navy); margin: 2.4em 0 .7em; padding-top: .2em; font-weight: 700; scroll-margin-top: 80px;
}
.article-body h2 .sec-no { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .22em; color: var(--blue); font-weight: 700; margin-bottom: 5px; }
.article-body h3 { font-size: 16.5px; margin: 1.7em 0 .5em; color: var(--navy); letter-spacing: -.02em; }
.article-body ul, .article-body ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--blue); }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--blue-dark); }
.article-body .lede { font-size: 18px; line-height: 1.8; color: var(--ink); }
.article-body .lede strong { color: var(--navy); }

.keybox { background: var(--blue-soft); border-left: 3px solid var(--blue); padding: 20px 24px 20px 22px; margin: 0 0 1.6em; border-radius: 0 4px 4px 0; }
.keybox .k-label { font-size: 10.5px; letter-spacing: .18em; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.keybox ul { margin: 0; padding-left: 1.1em; }
.keybox li { font-size: 15.5px; line-height: 1.7; margin-bottom: .4em; color: #1d2b3b; }

.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 1.6em; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 13px 15px; }
.fact .k { font-size: 11px; color: var(--muted); display: block; margin-bottom: 3px; }
.fact .v { font-family: var(--serif); font-size: 17px; color: var(--navy); font-weight: 700; letter-spacing: -.03em; line-height: 1.35; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
table.data caption { caption-side: top; text-align: left; font-size: 11.5px; color: var(--muted); padding: 10px 14px 0; }
table.data th, table.data td { padding: 10px 13px; border-bottom: 1px solid #eee7da; text-align: left; vertical-align: top; }
table.data th { background: #f7f3ea; color: var(--navy); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { background: #fbf8f1; font-weight: 700; color: var(--navy); }

.example { background: #fff; border: 1px solid var(--line-2); border-radius: 4px; margin: 0 0 1.6em; overflow: hidden; }
.example .ex-head { background: var(--navy); color: #fff; padding: 11px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.example .ex-head b { font-weight: 600; letter-spacing: .02em; }
.example .ex-head span { color: #b9c9e0; font-size: 11px; }
.example .ex-body { padding: 15px 16px; font-size: 14px; line-height: 1.7; }
.example .ex-body p:last-child { margin-bottom: 0; }
.example .ex-note { border-top: 1px dashed var(--line); padding: 10px 16px; font-size: 12px; color: var(--muted); background: #fffdf8; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; }
.steps li { position: relative; padding: 0 0 16px 42px; border-left: 1px solid var(--line-2); margin-left: 13px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: -13px; top: -2px;
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2);
  color: var(--navy); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.steps b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.steps span { font-size: 14.5px; color: var(--ink-2); }

.callout { border: 1px solid #e6d9be; background: #fdf8ec; padding: 16px 18px; border-radius: 4px; margin: 0 0 1.5em; font-size: 14.5px; line-height: 1.7; }
.callout b { color: #7a5b22; }
.callout.warn { border-color: #edd2ce; background: #fdf3f1; }
.callout.warn b { color: #9b3a2c; }

.sources { list-style: none; padding: 0; margin: 0 0 1.6em; border-top: 1px solid var(--line); }
.sources li { border-bottom: 1px solid var(--line); padding: 11px 0; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.sources .src-tag { font-size: 9.5px; letter-spacing: .08em; color: var(--blue); border: 1px solid #c9d8f8; border-radius: 2px; padding: 2px 6px; flex: none; margin-top: 2px; font-weight: 600; }
.sources a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid #cfc5b2; }
.sources a:hover { color: var(--blue); border-color: var(--blue); }
.sources small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 2px; }

.faq { border-top: 1px solid var(--line-2); margin-bottom: 1.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative;
  font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 20px; color: var(--gold); font-weight: 400; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 30px 17px 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.faq .a p { margin: 0 0 .6em; }

.review-box { display: flex; gap: 16px; align-items: flex-start; border-top: 2px solid var(--navy); padding: 18px 0 0; margin-top: 2em; }
.review-box .stamp {
  width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 9px; letter-spacing: .04em; color: var(--gold); text-align: center; line-height: 1.3; flex: none;
}
.review-box h3 { margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.review-box p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.review-box time { font-weight: 600; color: var(--ink-2); }

.disclaimer { background: #f4f0e7; border-radius: 4px; padding: 15px 17px; margin-top: 22px; font-size: 12px; line-height: 1.7; color: #5f5a4e; }
.disclaimer b { color: #3f3a30; }

.author-box { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 18px; margin-top: 24px; }
.author-box .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; flex: none; }
.author-box b { display: block; color: var(--navy); font-size: 14px; }
.author-box span { font-size: 11.5px; color: var(--muted); }
.author-box p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ---------- toc ---------- */
.toc { position: sticky; top: 82px; font-size: 12.5px; }
.toc .box { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 17px 18px; }
.toc h2 { font-size: 10.5px; letter-spacing: .2em; color: var(--navy); margin: 0 0 10px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 6px 0 6px 23px; position: relative; line-height: 1.45; border-top: 1px solid #f0ebdf; }
.toc li:first-child { border-top: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 7px; font-size: 9.5px; color: var(--gold); letter-spacing: .04em; }
.toc a { color: var(--ink-2); }
.toc a:hover, .toc a.active { color: var(--blue); font-weight: 600; }
.toc .toc-ad { margin-top: 14px; }
.toc .toc-note { margin-top: 14px; padding: 14px 16px; background: var(--navy); color: #c7d4e6; border-radius: 4px; font-size: 11.5px; line-height: 1.65; }
.toc .toc-note b { color: #fff; display: block; font-size: 12px; margin-bottom: 4px; }

/* ---------- related ---------- */
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid .card h3 { font-size: 16px; }
.related-grid .card .body { padding: 13px 15px 15px; }

/* ---------- search ---------- */
.search-page { max-width: 900px; margin: 0 auto; padding: 40px 0 20px; }
.search-form-lg { display: flex; gap: 10px; margin: 24px 0 18px; }
.search-form-lg input {
  flex: 1; border: 1px solid var(--line-2); background: #fff; border-radius: 4px; padding: 14px 17px;
  font-size: 16px; color: var(--ink); outline: none;
}
.search-form-lg input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-form-lg button {
  border: 0; background: var(--navy); color: #fff; padding: 0 24px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.search-form-lg button:hover { background: var(--navy-2); }
.search-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-status { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.search-results { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.result { display: block; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.result:hover { background: #fffdf8; }
.result .cat { font-size: 10.5px; letter-spacing: .12em; color: var(--blue); font-weight: 700; }
.result h3 { font-family: var(--serif); font-size: 19px; margin: 5px 0 5px; letter-spacing: -.035em; color: var(--navy); }
.result p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.result mark { background: #fff0b8; color: inherit; padding: 0 1px; }
.search-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-2); border-radius: 4px; background: #fffdf8; }
.search-empty b { display: block; font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.search-empty p { margin: 0; color: var(--muted); font-size: 13.5px; }
.search-suggest { margin-top: 30px; }
.search-suggest h2 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.search-suggest .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggest .tags a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--ink-2); }
.search-suggest .tags a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- category page ---------- */
.cat-hero { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.cat-hero .eyebrow { color: #93acd1; }
.cat-hero h1 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 10px; letter-spacing: -.05em; }
.cat-hero p { margin: 0; color: #c2d0e4; font-size: 14.5px; max-width: 62ch; }
.cat-hero .cat-meta { margin-top: 16px; font-size: 12px; color: #93a9c7; display: flex; gap: 18px; }
.cat-body { padding-top: 34px; }

/* ---------- static pages ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 0 30px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.doc h2 { font-family: var(--serif); font-size: 23px; color: var(--navy); margin: 2.2em 0 .6em; letter-spacing: -.04em; }
.doc h3 { font-size: 16.5px; color: var(--navy); margin: 1.8em 0 .4em; }
.doc p { margin: 0 0 1.1em; }
.doc ul, .doc ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 1.4em; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: #f7f3ea; color: var(--navy); }
.doc .updated { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.doc .callout { margin-top: 1.4em; }
.profile { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: start; margin: 10px 0 30px; }
.profile .pic { aspect-ratio: 1; background: var(--navy); border-radius: 4px; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 52px; letter-spacing: -.04em; }
.profile .who b { font-family: var(--serif); font-size: 24px; color: var(--navy); display: block; letter-spacing: -.04em; }
.profile .who span { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.profile .who p { font-size: 14.5px; margin-top: 10px; }
.facts-list { display: grid; grid-template-columns: 120px 1fr; gap: 8px 18px; font-size: 14px; margin: 20px 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.contact-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.contact-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.contact-card .mail { font-size: 15px; color: var(--blue); font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 20px 0; border-left: 1px solid var(--line-2); }
.timeline li { padding: 0 0 18px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.timeline b { display: block; color: var(--navy); font-size: 14px; }
.timeline span { font-size: 13px; color: var(--muted); }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 90px 20px 60px; }
.err .code { font-family: var(--serif); font-size: 84px; color: var(--navy); line-height: 1; letter-spacing: -.06em; }
.err h1 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 14px 0 8px; }
.err p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 4px; font-size: 13.5px; font-weight: 600; }
.btn:hover { background: var(--navy-2); color: #fff; }

/* ---------- reading progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--blue); width: 0; z-index: 200; transition: width .1s linear; }

/* ---------- prose helpers ---------- */
.lead { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr) 230px; gap: 34px; }
  .hero-grid { grid-template-columns: 1.2fr .9fr; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid #eee7da; padding-top: 12px; margin-top: 4px; }
  .article-wrap { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-top > div:last-child { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar .tagline { font-size: 11px; }
  .topbar .date { display: none; }
  .masthead .wrap { padding-top: 18px; padding-bottom: 16px; align-items: center; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 22px; }
  .brand-text small { font-size: 8.5px; letter-spacing: .2em; }
  .masthead-note, .search-btn span { display: none; }
  .search-btn { padding: 9px 10px; }
  .nav .wrap { height: 52px; }
  .nav-toggle { display: flex; flex-direction: row; align-items: center; }
  .nav-toggle-label { display: inline; }
  .nav ul.nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 52px; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 18px 18px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(15,35,66,.35); gap: 0;
  }
  .nav ul.nav-menu.open { display: flex; }
  .nav ul.nav-menu li { border-top: 1px solid #f0ebdf; }
  .nav ul.nav-menu li:first-child { border-top: 0; }
  .nav ul.nav-menu a { padding: 12px 4px; font-size: 15px; }
  .nav .nav-end { display: none; }
  .hero { padding-top: 24px; }
  .hero-main { min-height: 380px; }
  .hero-body { padding: 24px 22px 22px; }
  .hero-main p { font-size: 13.5px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-secondary { flex-direction: row; }
  .hero-secondary img { width: 38%; aspect-ratio: auto; }
  .hero-secondary .body { padding: 13px 14px; }
  .hero-secondary h2 { font-size: 16px; }
  .hero-secondary p { display: none; }
  .stats-grid { padding: 8px 2px 12px; }
  .stat { padding: 6px 12px; }
  .section { padding-top: 36px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-tile { min-height: 0; padding: 16px 18px; }
  .cat-tile .count { padding-top: 6px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { flex-direction: row; }
  .card .thumb { width: 38%; aspect-ratio: auto; flex: none; }
  .card .body { padding: 13px 14px; }
  .card h3 { font-size: 16px; margin: 4px 0 5px; }
  .card p { display: none; }
  .card .meta { font-size: 10.5px; }
  .row { grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; }
  .row .date { display: none; }
  .row h3 { font-size: 16px; }
  .row p { display: none; }
  .article-hero { margin: 26px 0 30px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--navy); }
.article-hero img { width: 100%; aspect-ratio: 16 / 6.2; object-fit: cover; }
.article-head h1 { font-size: 27px; }
  .article-deck { font-size: 14.5px; }
  .article-body { font-size: 16px; padding-top: 22px; }
  .article-body h2 { margin-top: 2em; }
  .fact-grid { grid-template-columns: 1fr; }
  .keybox { padding: 17px 17px 17px 16px; }
  .example .ex-head { flex-direction: column; gap: 2px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding: 34px 0 24px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom .legal a { margin-left: 0; margin-right: 14px; }
  .profile { grid-template-columns: 1fr; }
  .profile .pic { width: 120px; }
  .contact-grid { grid-template-columns: 1fr; }
  .search-form-lg { flex-direction: column; }
  .search-form-lg button { padding: 13px; }
  .doc { font-size: 15px; }
  .page-hero { padding: 38px 0 34px; }
  .page-hero h1 { font-size: 28px; }
  .facts-list { grid-template-columns: 92px 1fr; }
}

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