/* 제도쏙 새 화면 '위젯 홈' (2026-11-15, templates/v2.js). 은은한 세 색 바탕 + 반투명 유리 카드 + 먹색 큰 위젯 한 장.
   파랑·표 위주의 관공서 느낌을 쓰지 않는다 (PLAYBOOK 금지 #3) */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Pretendard-Regular.woff2?v=614202abb2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Pretendard-Bold.woff2?v=78b8e94b96") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/assets/fonts/Pretendard-ExtraBold.woff2?v=6d6fffa977") format("woff2"); }

:root {
  --ink: #15161A; --body: #2B2D35; --muted: #5D6070; --faint: #9A9DA8; --line: rgba(21, 22, 26, .08);
  --accent: #5B3DF5; --accent-soft: rgba(91, 61, 245, .1); --warn: #FFF3EE; --warn-line: #F6D9CC;
  --paper: #FFFFFF; --soft: #F4F3FA; --bg: #F6F6FA;
  --mesh: radial-gradient(60% 40% at 0% 0%, #E4DCFF 0, transparent 70%), radial-gradient(50% 35% at 100% 12%, #FFDCCB 0, transparent 70%),
          radial-gradient(60% 40% at 30% 55%, #D3F4E8 0, transparent 70%), var(--bg);
  --glass: rgba(255, 255, 255, .62); --glass-line: rgba(255, 255, 255, .92); --shadow: 0 10px 30px rgba(40, 30, 90, .08);
  --grad: linear-gradient(135deg, #B8A6FF, #FFC2A6);
  --r-lg: 28px; --r: 22px; --r-sm: 14px; --wrap: 1160px; --read: 700px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; color: var(--body); background: var(--mesh); background-attachment: fixed; background-color: var(--bg);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -.03em; text-wrap: pretty; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .94); } }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 246, 250, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .7); }
.top-search { display: inline-flex; width: 40px; height: 40px; padding: 0 !important; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--glass-line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs li[aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 공통 */
.block { margin-top: 56px; }
.h { font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.lead { font-size: 18px; color: var(--muted); max-width: 36em; margin: 14px 0 0; }
.kicker { font-size: 15px; font-weight: 800; color: var(--accent); margin: 0 0 8px; }
.page-head { padding-top: 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.05em; line-height: 1.15; }
.empty { color: var(--muted); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--accent); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips, .eg { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); }

/* 첫 화면 */
.hello { padding-top: 36px; }
.today { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--muted); min-height: 1.5em; }
.hello h1 { font-size: clamp(36px, 6vw, 66px); font-weight: 800; letter-spacing: -.06em; line-height: 1.1; }
.board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; align-items: start; }
.board-main, .board-side, .mine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.mine:empty { display: none; }

/* 위젯 */
.w { border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.w-k { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.w-date { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 8px 0 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 15px; color: var(--muted); }
.w-date > span { flex: none; }
.w-date input, .w-date select { flex: 1 1 auto; width: 0; border: 0; background: transparent; font-size: 17px; font-weight: 800; color: var(--ink); text-align: right; min-width: 0; padding: 8px; text-overflow: ellipsis; }
.w-out { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.w-out .w-warn { flex-basis: 100%; margin: -4px 0 0; text-align: right; }
.w-out[hidden] { display: none; }
.w-until { margin: 0; font-size: 16px; line-height: 1.5; }
.w-until b { display: block; font-size: 19px; }
.w-until span { color: var(--muted); }
.w-dday { margin: 0; font-size: 64px; line-height: .9; font-weight: 800; letter-spacing: -.07em; color: var(--ink); white-space: nowrap; }
.w-rule { margin: 0; font-size: 16px; line-height: 1.6; }
.w-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.w-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.w-save { min-height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.w-save[disabled] { opacity: .5; cursor: default; }
.w-link { font-size: 15px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 0 6px; }
.w-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.w-count, .w-pick { background: var(--ink); color: #fff; }
.w-count .w-k, .w-pick .w-k, .w-count .w-until span, .w-count .w-note, .w-pick .w-note { color: rgba(255, 255, 255, .62); }
.w-count .w-date, .w-pick .w-date { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.w-count .w-date input, .w-count .w-date select, .w-pick .w-date input, .w-pick .w-date select { color: #fff; color-scheme: dark; }
.w-pick .w-date option { color: var(--ink); }
.w-count .w-dday, .w-mine .w-dday { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-count .w-save, .w-pick .w-save { background: #fff; color: var(--ink); }
.w-count .w-link { color: #CFC4FF; }
.w-count .w-rule { color: rgba(255, 255, 255, .85); }
.w-big .w-dday { font-size: 84px; }
.w-fixed .w-dday { font-size: 48px; }
.w-fixed:hover { border-color: var(--accent); }
.w-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
/* 내 홈에 둔 위젯 (widgets.js 가 그림) */
.w-mine { background: var(--ink); color: #fff; }
.w-mine .w-k, .w-mine .w-until span, .w-mine .w-note { color: rgba(255, 255, 255, .62); }
.w-mine .w-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.w-mine .w-del { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.w-mine .w-dday { font-size: clamp(64px, 10vw, 120px); }
.w-mine a { color: #CFC4FF; font-weight: 700; font-size: 15px; text-decoration: none; }
.w-over .w-dday { background: none; color: #FFB4A0; -webkit-text-fill-color: #FFB4A0; }
.w .w-dday.w-dday-long { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.03em; white-space: normal; }
.w-warn { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: #FFB4A0; }

/* 물어보기 */
.ask { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 6px 6px 6px 18px; border-radius: var(--r); }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 10px 0; outline: none; }
.ask input::placeholder { color: var(--muted); }
.ask button { flex: none; width: 46px; height: 46px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ask:focus-within { outline: 3px solid var(--accent-soft); }
.ask-big { min-height: 72px; }
.ask-big input { font-size: 20px; font-weight: 700; }
.answer { border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.answer-k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 800; color: var(--accent); }
.answer-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.answer-q { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.answer-a { margin: 6px 0 0; font-size: 21px; line-height: 1.5; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.answer-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.answer-src span, .answer-src a { min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; }

/* 상황 */
.sits { margin-top: 14px; }
.sit { border-radius: var(--r-lg); padding: 20px 22px; }
.sit + .sit { margin-top: 12px; }
.js .sit[data-closed] { display: none; }
.js .sit + .sit { margin-top: 0; }
.sit-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sit-list { list-style: none; margin: 10px 0 0; padding: 0; }
.sit-list li + li { border-top: 1px solid var(--line); }
.sit-list a { display: flex; align-items: center; gap: 10px; padding: 14px 0; text-decoration: none; font-size: 17px; font-weight: 800; color: var(--ink); }
.sit-list a span { flex: 1; }
.sit-list em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.sit-list a:hover span { color: var(--accent); }
.sit-list .i { color: var(--faint); }

/* 글 줄 */
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); text-decoration: none; }
.row img, .row-ph { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex: none; background: var(--soft); }
.row-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-t { font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.row-m { font-size: 13px; color: var(--muted); line-height: 1.5; }
.row:hover .row-t, .col:hover .row-t { color: var(--accent); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.col { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); text-decoration: none; }
.col .row-m { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promise { border-radius: var(--r-lg); padding: 24px 26px; }
.promise ul { margin: 0 0 12px; padding-left: 1.1em; }
.promise li { margin-bottom: 4px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-lg); text-decoration: none; }
.cat-sit { font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.cat-sum { font-size: 15px; color: var(--muted); line-height: 1.6; }
.cat:hover .cat-sit { color: var(--accent); }
.intro { max-width: 820px; color: var(--body); margin: 0; }

/* 글 */
.art-head { padding-top: 24px; max-width: 900px; margin-left: 0; }
.art-head h1 { margin-top: 16px; font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -.055em; line-height: 1.18; }
.art-head .lead { font-size: 19px; }
.meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.meta a { color: var(--muted); font-weight: 700; }
.art-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 26px; align-items: start; }
.sum { border-radius: var(--r-lg); padding: 22px 24px; }
.sum h2 { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: 0; margin-bottom: 8px; }
.sum ul { margin: 0; padding-left: 1.1em; }
.sum li { font-size: 16px; line-height: 1.65; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.art-hero { margin: 26px auto 0; }
.art-hero img { display: block; width: 100%; max-width: 900px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--soft); }
.paper { background: var(--paper); border-radius: 36px 36px 0 0; margin-top: 32px; padding: 12px 0 48px; }
.art-layout { display: grid; grid-template-columns: 230px minmax(0, var(--read)); gap: 56px; }
.art-solo { max-width: calc(var(--read) + 48px); margin-left: 0; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; padding-top: 36px; }
.toc summary { font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.5; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-on { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.art-body { min-width: 0; }
.sec { margin-top: 44px; }
.sec h2, .faq h2, .box h2 { font-size: 24px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px; }
.art-body > h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; }
.sec h3 { font-size: 19px; margin: 24px 0 8px; }
.sec ul, .sec ol, .art-body > ul, .art-body > ol { padding-left: 1.2em; }
.sec li { margin-bottom: 8px; }
.sec li::marker { color: var(--accent); }
.sec strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(184, 166, 255, .45) 62%); }
.sec a, .art-body p a, .notice a { color: var(--accent); }
.table-wrap { margin: 20px 0; overflow-x: auto; border-radius: var(--r-sm); background: var(--soft); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.box { border-radius: var(--r); padding: 22px 24px; margin-top: 40px; }
.box h2 { font-size: 18px !important; margin-bottom: 10px !important; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.box-warn { background: var(--warn); border: 1px solid var(--warn-line); }
.box-warn li { position: relative; padding-left: 24px; }
.box-warn li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: #E0795A; transform: rotate(45deg); }
.checks { background: var(--soft); }
.checks-h { display: flex; justify-content: space-between; align-items: baseline; }
.checks-n { font-size: 15px; font-weight: 800; color: var(--accent); }
.checks label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 700; color: var(--ink); line-height: 1.55; padding: 4px 0; }
.checks input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.checks input:checked + span { color: var(--faint); text-decoration: line-through; }
.checks .w-note { margin-top: 10px; }
.faq { margin-top: 44px; }
.faq details { border-top: 1px solid var(--line); padding: 2px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 12px; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--mesh); text-decoration: none; color: var(--ink); }
.next > span { display: flex; flex-direction: column; gap: 4px; }
.next-t { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.next:hover .next-t { color: var(--accent); }
.sources { margin-top: 36px; font-size: 15px; }
.sources summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary h2 { font-size: 18px; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.sources summary h2 .n { font-size: 14px; font-weight: 700; color: var(--muted); }
.sources summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; opacity: .6; }
.sources details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sources details[open] ul { margin-top: 12px; }
.sources a { color: var(--accent); }
.editor { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px 22px; border-radius: var(--r); background: var(--soft); }
.editor p { margin: 0; font-size: 15px; }
.owner-avatar { flex: none; width: 52px; height: 52px; border-radius: 22%; overflow: hidden; display: block; }
.owner-avatar img { width: 100%; height: 100%; display: block; }
.owner-avatar.big { width: 84px; height: 84px; }
.owner-name { font-weight: 800; color: var(--ink); margin-bottom: 4px !important; }
.owner-name a { color: var(--ink); }
.notice { margin-top: 16px; font-size: 14px; color: var(--muted); }
.related { margin-top: 64px; }

/* 신뢰 페이지 (templates/trust.js 의 옛 이름표를 새 모양으로) */
.doc { margin-top: 32px; }
.doc > * { max-width: 820px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin-bottom: 10px; }
.doc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc .two ul, .doc-ul { margin: 0; padding-left: 1.1em; }
.doc-list { padding-left: 1.3em; }
.doc-list li { margin-bottom: 12px; }
.doc-list li::marker { color: var(--accent); font-weight: 800; }
.doc a { color: var(--accent); }
.panel, .box-key { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.panel p:last-child, .box-key p { margin: 0; }
.box-key ul { list-style: disc; padding-left: 1.1em; display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.principles { margin: 0; padding-left: 1.1em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.card-cat { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; text-decoration: none; margin: 0; }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.4; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-sub, .card-meta { color: var(--muted); font-size: 14px; margin: 0; }
.block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head h2 { font-size: 20px; font-weight: 800; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.author-head { display: flex; gap: 24px; align-items: flex-start; }
.author-branch { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.author-branch p { margin: 0; font-weight: 700; color: var(--accent); }
.contact-mail { margin: 20px 0 8px; }
.mail-big { font-size: 22px; font-weight: 800; }
.contact-form { display: grid; gap: 14px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 24px; margin-top: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.sitemap h2 { font-size: 18px !important; margin: 0 0 10px !important; }
.sitemap h2 a { color: var(--ink); text-decoration: none; }
.sitemap ul { margin: 0; padding-left: 1.1em; }
.nf { text-align: center; padding: 80px 24px 20px; }
.nf-code { font-size: 96px; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 32px; }
.nf .lead { margin: 14px auto 0; }
.nf .hero-cta { justify-content: center; }

/* 바닥 */
.foot { margin-top: 0; background: var(--paper); padding: 48px 0 28px; font-size: 14px; border-top: 1px solid var(--line); }
.is-home .foot, .v2:not(.is-post) .foot { margin-top: 96px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-in p { margin: 10px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; max-width: 520px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--ink); }
.foot-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-note p { margin: 0; }

/* 광고 자리 (정해 둔 곳에만, 위젯·물어보기·체크 근처엔 두지 않음) */
.ad-slot { margin: 40px 0; text-align: center; }
.ad-slot .ad-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-slot:not(:has(ins[data-ad-status="filled"])) .ad-label { visibility: hidden; }

/* 화면 폭 */
@media (max-width: 1024px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .rows, .cols, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; padding-top: 24px; }
  .toc details { background: var(--soft); border-radius: var(--r-sm); padding: 14px 18px; }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { min-height: 56px; }
  .hello { padding-top: 20px; }
  .lead { font-size: 16px; }
  .block { margin-top: 44px; }
  .rows, .cols, .grid, .split, .doc .two, .sitemap { grid-template-columns: minmax(0, 1fr); }
  .row img, .row-ph { width: 72px; height: 72px; }
  .w { padding: 20px; }
  .w-dday { font-size: 56px; }
  .w-big .w-dday { font-size: 72px; }
  .paper { border-radius: 28px 28px 0 0; }
  .art-head .lead { font-size: 17px; }
  .author-head { flex-direction: column; }
}
