/* ZIEN Lens — 시안 CSS 에서 추출한 토큰(design.md 화면 규칙)을 그대로 쓴다. */
:root {
  --cloud: #F5F7FB; --ink: #0B1324; --ink2: #2B3547; --slate: #5B6678;
  --hair: rgba(11, 19, 36, .08); --hair2: rgba(11, 19, 36, .14);
  --cobalt: #2340E0; --cobalt-t: #EEF1FE; --night: #0A0F1E;
  --urgent: #DC2626; --violet: #6D28D9; --teal: #0F766E; --magenta: #A21CAF;
  --border: #E1E6EF; --muted: #64748B;
  --font-en: 'Instrument Sans', 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Noto Sans KR', sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--cobalt); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.meta { font-size: 13px; color: var(--slate); }
.empty-state { padding: 48px 0; text-align: center; color: var(--slate); }

/* 강조 색(작성자 아바타·시리즈) */
.accent-cobalt, .avatar--cobalt { --accent: var(--cobalt); }
.accent-violet, .avatar--violet { --accent: var(--violet); }
.accent-teal, .avatar--teal { --accent: var(--teal); }
.accent-magenta { --accent: var(--magenta); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--hair2); background: #fff; box-shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 8px 24px -16px rgba(11, 19, 36, .18); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.icon-btn { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--ink2); cursor: pointer; }
.icon-btn:hover { background: var(--cloud); }

/* 칩·아바타 */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--cobalt-t); color: var(--cobalt); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip--topic { background: var(--cloud); color: var(--ink2); }
.chip--urgent { background: #FEF2F2; color: var(--urgent); }
.chip--series { background: var(--accent); color: #fff; font-weight: 700; }
.byline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 600; }
.avatar { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.post-thumb--empty { display: block; background: var(--border); }

/* 히어로 */
.hero { position: relative; overflow: hidden; padding: 112px 0 120px; border-bottom: 1px solid var(--hair); background: var(--cloud); text-align: center; }
.hero__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.hero__eyebrow { font-family: var(--font-en); font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.hero__title { position: relative; margin-top: 8px; font-family: var(--font-en); font-size: 96px; font-weight: 800; line-height: 1.04; letter-spacing: -.05em; }
.hero__title span { color: var(--cobalt); }
.hero__spark { position: absolute; top: -34px; right: -78px; }
.hero__slogan { font-size: 44px; font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.hero__slogan span { color: var(--cobalt); }
.hero__desc { margin-top: 4px; color: var(--ink2); font-size: 19px; }

/* Featured + Top 5 */
.section-featured { padding: 40px 0 0; }
.feat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.featured { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.featured__img { width: 100%; height: 340px; border-radius: 14px; object-fit: cover; background: var(--border); }
.featured__title { font-size: 28px; line-height: 1.3; letter-spacing: -.03em; }
.featured__subtitle { color: var(--ink2); font-size: 15px; }
.top-posts { display: flex; flex-direction: column; padding: 24px 26px; border-radius: 20px; background: var(--cloud); }
.top-posts__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.top-posts__period { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.top-posts__list { margin-top: 10px; }
.top-posts__list li + li { border-top: 1px solid var(--border); }
.top-posts__empty { padding: 14px 0; font-size: 14px; color: var(--slate); }
.top-post { display: grid; grid-template-columns: 30px 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; color: var(--ink); }
.top-post__rank { font-family: var(--font-en); font-size: 22px; line-height: 1.1; color: var(--cobalt); }
.top-post__rank--dim { color: #B4BCCB; }
.top-post__thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.top-post__text { display: grid; gap: 4px; }
.top-post__text b { font-size: 15.5px; line-height: 1.45; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; font-weight: 600; }
.toggle > * { padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--slate); cursor: pointer; }
.toggle > [aria-selected="true"], .toggle > .is-active { background: var(--ink); color: #fff; }

/* 목록 */
.section-list { padding: 48px 0 0; }
.section-title { font-size: 18px; }
.section-title span { color: var(--slate); font-size: 14px; font-weight: 500; }
.filter-bar { position: sticky; top: 64px; z-index: 2; padding: 16px 0; background: #fff; box-shadow: 0 1px 0 var(--hair); }
.tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid rgba(11, 19, 36, .12); }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 4px; color: var(--ink2); font-size: 16px; font-weight: 600; white-space: nowrap; }
.tab.is-active { color: var(--cobalt); font-weight: 800; box-shadow: inset 0 -2px 0 var(--cobalt); }
.tab__count { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--muted); }
.tab.is-active .tab__count { color: var(--cobalt); }
.tab--urgent, .tab--urgent .tab__count { color: var(--urgent); font-weight: 700; }
.tab--urgent.is-active { box-shadow: inset 0 -2px 0 var(--urgent); }
.tab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--urgent); }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hashtag { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--cloud); color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.hashtag span { font-family: var(--font-en); font-size: 12px; color: var(--muted); }
.hashtag.is-active { background: var(--cobalt); color: #fff; }
.hashtag.is-active span { color: #C9D3FF; }
.list-count { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink2); font-size: 14px; }
.list-count .toggle { margin-left: auto; background: var(--cloud); box-shadow: none; font-size: 13.5px; }
.list-count .toggle > * { padding: 6px 14px; }
.post-list { border-bottom: 1px solid var(--hair); }
.post-item { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-top: 1px solid var(--hair); color: var(--ink); }
.post-thumb { flex: none; width: 220px; height: 132px; border-radius: 12px; object-fit: cover; background: var(--border); }
.post-item__body { display: grid; gap: 10px; min-width: 0; }
.post-item__title { font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
.post-item .meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(11, 19, 36, .12); color: var(--ink2); font-size: 14px; font-weight: 600; }
.page--wide { padding: 0 14px; }
.page--gap { box-shadow: none; color: #8A94A6; }
.page.is-active { background: var(--cobalt); box-shadow: none; color: #fff; }
.list-head__mobile { display: none; }
.more-link { display: none; height: 48px; margin-top: 24px; align-items: center; justify-content: center; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink2); font-weight: 700; }

/* 시리즈로 읽기 */
.section-series { padding: 72px 0 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
.strip-buttons { display: inline-flex; gap: 8px; }
.strip-buttons button { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink); cursor: pointer; }
.series-strip { display: flex; gap: 14px; margin-top: 14px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.series-card { display: grid; flex: none; width: 236px; overflow: hidden; border-radius: 18px; background: var(--accent); color: #fff; scroll-snap-align: start; }
.series-card img, .series-card__empty { width: 100%; height: 118px; object-fit: cover; background: rgba(255, 255, 255, .15); }
.series-card__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.series-card__label { color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; }
.series-card b { font-size: 16px; line-height: 1.35; }

/* 푸터 */
.site-footer { margin-top: 60px; padding: 72px 0 40px; background: var(--ink); color: #9AA6C2; font-size: 14px; }
.site-footer__brand { display: grid; gap: 12px; }
.site-footer__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; }
.site-footer__slogan { margin-top: 8px; color: #fff; font-size: 28px; line-height: 1.3; letter-spacing: -.035em; }
.site-footer__slogan span { color: #8FA6FF; }
.site-footer__desc { font-size: 15px; }
.site-footer__company { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.8; }

@media (max-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: 64px; }
  .hero__slogan { font-size: 32px; }
}
@media (max-width: 560px) {
  /* 시안 '모바일 · 홈 전체': 히어로 왼쪽 정렬, 알약 탭, 분류는 색 글자 */
  .hero { padding: 32px 0 36px; text-align: left; }
  .hero__deco, .hero__spark { display: none; }
  .hero__inner { justify-items: start; gap: 10px; }
  .hero__eyebrow { color: var(--cobalt); font-size: 12px; font-weight: 700; }
  .hero__title { margin-top: 0; font-size: 40px; }
  .hero__slogan { font-size: 19px; }
  .hero__desc { margin-top: 0; font-size: 15px; }
  .tabs { border-bottom: 0; }
  .tab { height: 36px; padding: 0 12px; border-radius: 999px; background: var(--cloud); font-size: 14px; }
  .tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
  .tab.is-active .tab__count { color: #fff; }
  .tab--urgent { background: #FEF2F2; box-shadow: inset 0 0 0 1px #FECACA; }
  .post-item .chip { height: auto; padding: 0; background: none; color: var(--cobalt); font-weight: 700; }
  .post-item .chip--urgent { color: var(--urgent); }
  .post-item .chip--topic { display: none; }
  .post-item .chip--series { color: var(--accent); }
  /* 모바일 홈 구성: 탭 → '최신 글 N편' → 목록. Featured·Top 5·해시태그·정렬·시리즈 카드는 숨긴다. */
  .section-featured, .section-series, .hashtags, .list-count { display: none; }
  .section-list { padding-top: 20px; }
  .section-list > .in { display: flex; flex-direction: column; }
  .filter-bar { order: -1; top: 64px; padding: 12px 0; box-shadow: none; }
  .list-head { margin-top: 8px; padding-bottom: 4px; }
  .list-head .section-title { display: flex; align-items: baseline; justify-content: space-between; font-size: 17px; }
  .list-head__desktop { display: none; }
  .list-head .section-title .list-head__mobile { display: inline; color: var(--ink); font-size: 17px; font-weight: 700; }
  .post-item .chip--series { display: none; }
  .site-footer { margin-top: 32px; padding: 28px 0 24px; }
  .site-footer__slogan, .site-footer__desc { display: none; }
  .site-footer__logo { font-size: 16px; }
  .site-footer__company { margin-top: 16px; padding-top: 16px; font-size: 12px; }
  .post-item .avatar, .post-item .meta__views { display: none; }
  .post-item .meta { gap: 4px; color: var(--slate); }
  .post-item .byline { color: var(--slate); font-weight: 400; }
  /* 첫 글은 이미지가 위에 오는 큰 카드 */
  .post-list > .post-item:first-child { flex-direction: column; gap: 14px; border-top: 0; }
  .post-list > .post-item:first-child .post-thumb { width: 100%; height: 186px; border-radius: 14px; }
  .post-list > .post-item:first-child .post-item__title { font-size: 19px; }
  .featured__img { height: 200px; }
  .featured__title { font-size: 22px; }
  .tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .post-item { flex-direction: row-reverse; align-items: flex-start; gap: 16px; padding: 20px 0; }
  .post-thumb { width: 96px; height: 72px; border-radius: 10px; }
  .post-item__title { font-size: 16px; }
  .pagination { display: none; }
  .more-link { display: flex; }
}

/* 게시물 상세 — 시안 '게시물 (시리즈물 · EU CRA 2/3)' */
.post-hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: radial-gradient(560px 340px at 82% 20%, rgba(10, 122, 79, .45), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(35, 64, 224, .35), transparent 70%), var(--night); color: #fff; }
.post-hero__mark { position: absolute; top: 48px; right: 64px; font-family: var(--font-mono); font-size: 120px; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: rgba(126, 226, 184, .08); pointer-events: none; }
.post-hero__inner { position: relative; max-width: 880px; }
.post-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(126, 226, 184, .14); color: #7EE2B8; font-size: 12.5px; font-weight: 700; }
.hero-chip--urgent { background: rgba(220, 38, 38, .2); color: #FCA5A5; }
.post-hero__series { color: #8FA0CC; font-family: var(--font-mono); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.progress { display: inline-flex; gap: 4px; }
.progress i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.progress i.is-done { background: #7EE2B8; }
.post-hero__title { margin-top: 22px; font-size: 52px; font-weight: 800; line-height: 1.22; letter-spacing: -.045em; }
.post-hero__subtitle { max-width: 720px; margin-top: 18px; color: #C9D2F5; font-size: 19px; line-height: 1.65; }
.post-hero__byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: #C9D2F5; font-size: 14px; }
.post-hero__byline b { color: #fff; }
.avatar--lg { width: 36px; height: 36px; font-size: 15px; flex: none; }
.avatar--xl { width: 48px; height: 48px; font-size: 18px; flex: none; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-left: auto; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.post-cover { position: relative; margin-top: -64px; }
.post-cover img { width: 100%; max-height: 480px; border-radius: 18px; object-fit: cover; }
/* 상세 단 너비(post-detail-page '본문 단 너비'): 1280px 이상은 목차 232 · 본문 단(남는 폭, 최대 880) · 사이드바 232 를 가운데에 — 세 단 합이 대표
   이미지(.in, 1072px)보다 길도록 .in 의 1120px 대신 1488px(안쪽 1440). 1279px 이하는 아래 미디어 쿼리에서 한 단(최대 880)으로 쌓는다. */
.post-layout { max-width: 1488px; display: grid; grid-template-columns: 232px minmax(0, 880px) 232px; justify-content: center; grid-template-areas: 'toc series rail' 'toc main rail'; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; margin-top: 48px; }
.post-layout > .toc { grid-area: toc; } .post-layout > .series-box { grid-area: series; } .post-layout > .post-main { grid-area: main; } .post-layout > .rail { grid-area: rail; }
.toc { position: sticky; top: 88px; font-size: 13.5px; }
.toc summary { padding-bottom: 8px; font-size: 14px; font-weight: 700; list-style: none; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: flex; gap: 6px; padding: 7px 0 7px 12px; border-left: 2px solid rgba(11, 19, 36, .1); color: var(--ink2); font-weight: 500; line-height: 1.45; }
.toc a.is-active { border-left-color: var(--cobalt); color: var(--cobalt); font-weight: 700; }
.toc__no { display: none; }
/* 본문 폭은 그리드 열(최대 880px)이 정한다 — 상한을 여기에도 두면 시리즈 박스·목차 상자와 폭이 어긋난다. */
.post-main { min-width: 0; }
.series-box { margin-bottom: 40px; padding: 24px 26px; border-radius: 18px; background: var(--cloud); box-shadow: inset 4px 0 0 var(--accent); }
.series-box__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 16px; }
.series-box__label { color: var(--accent); font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.series-box__count { margin-left: auto; color: var(--slate); font-size: 13px; }
.series-box__parts { margin-top: 12px; }
.series-part { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.series-part__no { color: var(--slate); font-family: var(--font-en); font-weight: 700; }
.series-part a { color: var(--ink); }
.series-part__state { color: var(--cobalt); font-size: 13px; font-weight: 700; white-space: nowrap; }
.series-part--current { margin: 4px -10px; padding: 11px 10px; border-top-color: transparent; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.series-part--current .series-part__state { padding: 3px 10px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 12px; }
.series-part--scheduled .series-part__state { padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); font-size: 12px; }
.series-part--current .series-part__no, .series-part--current b { color: var(--accent); }
.series-part--scheduled { color: var(--slate); }
.series-part--scheduled .series-part__state { color: var(--slate); font-weight: 600; }
.post-body { font-size: 17px; line-height: 1.85; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { margin-top: 2.2em; font-size: 26px; line-height: 1.35; letter-spacing: -.03em; scroll-margin-top: 88px; }
.post-body h3 { margin-top: 1.8em; font-size: 20px; }
.post-body ul, .post-body ol { padding-left: 1.4em; list-style: revert; }
.post-body pre { overflow-x: auto; padding: 18px 20px; border-radius: 12px; background: var(--night); color: #E5EAF7; font-size: 14px; line-height: 1.6; }
.post-body code { font-family: var(--font-mono); font-size: .92em; }
.post-body :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--cloud); }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--cobalt); color: var(--ink2); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.post-body caption { caption-side: top; padding: 0 0 8px; text-align: left; font-size: 14px; color: var(--slate); }
/* 본문 이미지는 실제 비율로 — width·height 속성은 읽기 전 자리 잡기와 좁을 때의 표시 폭으로만 쓴다(post-detail-page '본문 이미지 표시'). */
.post-body img { height: auto; border-radius: 12px; }
/* 위 여백은 .post-body > * + * 가 정하므로 좌우만 0 — 브라우저 기본 40px 들여쓰기를 없앤다. */
.post-body figure { margin-left: 0; margin-right: 0; }
/* 그림 설명(post-detail-page '그림 설명 표시'): 이미지 아래 10px, 표 제목과 같은 14px 회색. 첫머리 굵은 글씨는 그림 제목.
   상자를 내용 폭(본문 칸까지)으로 줄여 가운데에, 글은 왼쪽 — 한 줄이면 가운데, 줄이 바뀌면 이미지 왼쪽 선에서 시작한다. */
.post-body figcaption { width: fit-content; margin: 10px auto 0; color: var(--slate); font-size: 14px; line-height: 1.6; text-align: left; }
.post-body figcaption > b:first-child { color: var(--ink2); font-weight: 600; }
.author-box { display: flex; align-items: center; gap: 14px; margin-top: 56px; padding: 20px 22px; border-radius: 16px; background: var(--cloud); }
.author-box b { display: block; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.rail { position: sticky; top: 88px; display: grid; gap: 4px; }
.rail > b { padding-bottom: 6px; font-size: 14px; }
.rail-card { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--ink); }
.rail-card__label, .related-card__label { color: var(--cobalt); font-size: 11.5px; font-weight: 700; }
.rail-card b { font-size: 14px; line-height: 1.4; }
.rail__more { padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.related { margin-top: 72px; padding: 56px 0 8px; border-top: 1px solid var(--hair); }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.related-card { display: grid; gap: 8px; align-content: start; color: var(--ink); }
.related-card img, .related-card__empty { width: 100%; height: 160px; border-radius: 14px; object-fit: cover; }
.related-card b { font-size: 17px; line-height: 1.4; }

/* 사이드바가 숨는 폭: 시리즈 박스 · 목차 상자 · 본문을 같은 폭(화면 − 48px, 최대 880px)의 한 단으로 쌓아 가운데에(시안의 1279px 이하 배치).
   목차를 접는 것은 900px 이하뿐이다(site.js). */
@media (max-width: 1279px) {
  .post-layout { grid-template-columns: minmax(0, 880px); grid-template-areas: 'series' 'toc' 'main'; grid-template-rows: auto; }
  .post-layout > .toc, .post-layout > .series-box { margin-bottom: 24px; }
  .toc { position: static; padding: 14px 18px; border-radius: 14px; background: var(--cloud); }
  .toc summary { padding: 0; cursor: pointer; list-style: revert; }
  .toc ol { margin-top: 8px; }
  .toc a { border-left: 0; padding-left: 0; }
  .toc__no { display: inline; color: var(--cobalt); font-weight: 700; }
  .rail { display: none; }
}
@media (max-width: 900px) {
  .post-layout { margin-top: 28px; }
  .post-hero__title { font-size: 36px; }
  .related__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .post-hero { padding: 40px 0 56px; }
  .post-hero__mark { top: 24px; right: 16px; font-size: 64px; }
  .post-hero__title { font-size: 26px; }
  .post-hero__subtitle { font-size: 15.5px; }
  .post-hero__byline { flex-wrap: wrap; }
  .post-cover { margin-top: -32px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 21px; }
  .series-box { padding: 18px; }
}

/* 검색 — 시안 '홈 > 검색 …' */
.search-box { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 4px var(--cobalt-t); }
.search-box input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.search-panel { position: absolute; top: 64px; left: 0; right: 0; z-index: 40; border-bottom: 1px solid var(--hair2); background: #fff; box-shadow: 0 24px 48px -24px rgba(11, 19, 36, .35); }
.search-panel__form { padding-top: 28px; padding-bottom: 28px; }
.search-panel__close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--cloud); color: var(--ink2); font-size: 20px; cursor: pointer; }
.search-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(10, 15, 30, .45); }
.search-page { padding: 0 0 24px; }
.search-head { padding: 28px 0 32px; background: var(--cloud); border-bottom: 1px solid var(--hair); }
.search-hint { margin-top: 20px; color: var(--slate); }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 36px; }
.search-title { margin-top: 24px; font-size: 26px; letter-spacing: -.03em; }
.search-title span { color: var(--cobalt); }
.search-title small { color: var(--slate); font-size: inherit; font-weight: 500; }
.post-item mark { background: none; color: var(--cobalt); }
.no-results { display: grid; justify-items: center; gap: 12px; padding: 48px 24px; border-radius: 20px; background: var(--cloud); text-align: center; }
.no-results h2 { font-size: 22px; }
.no-results p { color: var(--slate); }
.no-results .post-tags { justify-content: center; margin-top: 0; }
.no-results__home { display: inline-flex; align-items: center; height: 44px; margin-top: 12px; padding: 0 20px; border-radius: 12px; background: var(--cobalt); color: #fff; font-weight: 700; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .search-page { padding-top: 20px; }
  .search-page .tabs { overflow-x: auto; }
  .search-page .list-count .toggle { display: inline-flex; }
}

/* 제품 CTA — 시안 '게시물 … X-PEN 상담 CTA'·'모바일 · 게시물 … 하단 CTA 고정' */
.cta-box { display: grid; gap: 12px; margin-top: 48px; padding: 32px; border-radius: 20px; background: var(--night); color: #fff; }
.cta-box__eyebrow { color: #8FA6FF; font-size: 12.5px; font-weight: 700; }
.cta-box__title { font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
.cta-box__desc { color: #B6C0D8; font-size: 15px; }
.cta-box__button, .cta-bar__button { display: inline-flex; align-items: center; justify-self: start; height: 48px; padding: 0 20px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; }
.cta-bar { display: none; }
@media (max-width: 560px) {
  .post--with-cta { padding-bottom: 76px; }
  .cta-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--night); color: #fff; box-shadow: 0 -8px 24px -12px rgba(11, 19, 36, .4); }
  .cta-bar__text { flex: 1; min-width: 0; overflow: hidden; color: #C9D2F5; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
  .cta-bar__button { height: 44px; padding: 0 16px; background: var(--cobalt); color: #fff; font-size: 14px; white-space: nowrap; }
}

/* 구독 폼 — 시안 홈 히어로·푸터 '새 글 알림 받기'·게시물 사이드바 뉴스레터 카드·모바일 하단 구독 바(add-newsletter) */
.subscribe-form { position: relative; display: grid; gap: 8px; }
.subscribe-form__row { display: flex; align-items: center; gap: 8px; }
.subscribe-form__row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink); font: inherit; font-size: 15px; outline: 0; }
.subscribe-form__row button { height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--cobalt); color: #fff; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.subscribe-form__consent { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; }
.subscribe-form__consent input { accent-color: var(--cobalt); }
.subscribe-form__error { margin: 0; color: var(--urgent); font-size: 13px; }
.subscribe-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-form--hero { width: 560px; max-width: 100%; margin-top: 20px; justify-items: center; }
.subscribe-form--hero .subscribe-form__row { width: 100%; padding: 6px 6px 6px 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair2), 0 12px 32px -12px rgba(11, 19, 36, .14); }
.subscribe-form--hero .subscribe-form__row input { height: 50px; padding: 0; box-shadow: none; }
.subscribe-form--hero .subscribe-form__row button { height: 52px; padding: 0 28px; border-radius: 16px; box-shadow: 0 8px 20px -8px rgba(35, 64, 224, .6); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: 40px 96px; }
.site-footer__subscribe { display: grid; gap: 12px; padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.site-footer__subscribe b { color: #fff; font-size: 17px; }
.subscribe-form--footer .subscribe-form__row { padding: 5px 5px 5px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.subscribe-form--footer .subscribe-form__row input { height: 40px; padding: 0; background: transparent; box-shadow: none; color: #fff; }
.subscribe-form--footer .subscribe-form__row button { height: 40px; border-radius: 9px; }
.subscribe-form--footer .subscribe-form__consent { color: #9AA6C2; }
.rail-newsletter { display: grid; gap: 6px; margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--night); color: #fff; }
.rail-newsletter__label { color: #8FA6FF; font-size: 11.5px; font-weight: 700; }
.rail-newsletter > b { font-size: 15px; line-height: 1.4; }
.rail-newsletter__desc { color: #B6C0D8; font-size: 12.5px; }
.subscribe-form--card .subscribe-form__row { flex-direction: column; align-items: stretch; }
.subscribe-form--card .subscribe-form__row input, .subscribe-form--card .subscribe-form__row button { flex: none; height: 38px; }
.subscribe-form--card .subscribe-form__consent { color: #B6C0D8; font-size: 12px; }
.series-box__notify { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.subscribe-form--series .subscribe-form__row input, .subscribe-form--series .subscribe-form__row button { height: 42px; }
.notice-page { padding: 72px 0; }
.notice-card { display: grid; gap: 14px; max-width: 560px; text-align: center; justify-items: center; }
.notice-card h1 { font-size: 26px; letter-spacing: -.03em; }
.notice-card p { color: var(--ink2); }
.notice-card__sub { color: var(--slate); font-size: 14px; }
.notice-card__button { height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--cobalt); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.notice-card__home { font-weight: 600; }
.subscribe-bar { display: none; }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* 바 높이는 site.js 가 --subscribe-bar-height 로 넘긴다. 기본값 190px 은 측정한 가장 높은 바(영어 182px)를 덮는다. */
  body:has(.subscribe-bar) { padding-bottom: var(--subscribe-bar-height, 190px); }
  .subscribe-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; gap: 6px; padding: 10px 14px 12px; background: var(--night); color: #fff; box-shadow: 0 -8px 24px -12px rgba(11, 19, 36, .4); }
  .subscribe-bar__text { font-size: 13px; font-weight: 700; }
  .subscribe-form--bar .subscribe-form__row input, .subscribe-form--bar .subscribe-form__row button { height: 40px; }
  .subscribe-form--bar .subscribe-form__consent { color: #B6C0D8; font-size: 12px; }
  /* 시안 '모바일 · 홈 첫 화면': 입력란과 버튼을 위아래로 쌓는다. */
  .subscribe-form--hero { width: 100%; justify-items: start; }
  .subscribe-form--hero .subscribe-form__row { flex-direction: column; align-items: stretch; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .subscribe-form--hero .subscribe-form__row input { flex: none; height: 52px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair2); }
  .subscribe-form--hero .subscribe-form__row button { width: 100%; height: 52px; border-radius: 12px; }
  /* 시리즈 박스 '다음 편 알림 받기' — 버튼 문구가 길어 한 줄이면 넘친다. 히어로처럼 위아래로 쌓는다. */
  .subscribe-form--series .subscribe-form__row { flex-direction: column; align-items: stretch; }
  .subscribe-form--series .subscribe-form__row input { flex: none; }
  .site-footer__subscribe { padding: 18px; }
}

/* 헤더 Tools·Subscribe, 푸터 링크(add-tools — site-layout '헤더'·'푸터 링크') */
.site-header__left, .site-header__right { display: flex; align-items: center; gap: 24px; }
.site-header__right { gap: 8px; }
.site-header__link { color: var(--ink2); font-size: 15px; font-weight: 600; }
.site-header__link:hover, .site-header__link.is-active { color: var(--cobalt); }
.site-header__subscribe { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--cobalt); color: #fff; font-size: 14px; font-weight: 600; }
.site-footer__links { display: flex; gap: 16px; margin-top: 4px; font-size: 14px; }
.site-footer__links a { color: #C9D2F5; font-weight: 600; }

/* 홈 띠배너 — 시안 '스캐너 띠 배너'(security-tools '홈 띠배너') */
.home-banner { display: block; background: var(--ink); color: #fff; }
.home-banner__inner { display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; font-size: 15px; }
.home-banner__icon { display: inline-flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 8px; background: var(--cobalt); }
.home-banner__dot { color: #9AA6C2; }
.home-banner__cta { color: #8FA6FF; font-weight: 700; white-space: nowrap; }

/* 스캐너 제공 글 — 시안 '게시물 · 스캐너 제공 버전'(security-tools '글과 도구 연결') */
.scanner-box { display: flex; align-items: center; gap: 12px; max-width: 720px; margin-top: 28px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; }
.scanner-box__icon { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; border-radius: 10px; background: var(--cobalt); }
.scanner-box__text { flex: 1; font-size: 15.5px; }
.scanner-box__text span { margin-left: 6px; color: #B6C0D8; }
.scanner-box__cta { display: inline-flex; flex: none; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.rail-scanner { display: grid; gap: 6px; margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--cobalt); color: #fff; }
.rail-scanner__label, .rail-scanner__name { color: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: 700; }
.rail-scanner__name { font-size: 12.5px; font-weight: 400; line-height: 1.5; }
.rail-scanner > b { font-size: 15px; line-height: 1.4; }
.rail-scanner__cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; margin-top: 6px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; }

/* 툴 목록 — 시안 '툴 — 무료 보안 도구 목록'(security-tools '툴 목록') */
.tools-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--hair); background: var(--cloud); }
.tools-hero__eyebrow { color: var(--cobalt); font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.tools-hero__title, .tool-page__title { margin-top: 10px; font-size: 44px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.tools-hero__desc { max-width: 640px; margin-top: 12px; color: var(--ink2); font-size: 17px; line-height: 1.65; }
.tools-list { padding: 56px 0 80px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(11, 19, 36, .05); }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; }
.tool-card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--cobalt); }
.tool-card__status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #E3F4EC; color: #0A7A4F; font-size: 12.5px; font-weight: 700; }
.tool-card__name { font-size: 21px; line-height: 1.35; letter-spacing: -.03em; }
.tool-card__summary { padding: 10px 14px; border-radius: 10px; background: var(--cloud); color: var(--ink2); font-size: 14px; }
.tool-card__desc { color: var(--ink2); font-size: 15px; line-height: 1.6; }
.tool-card__actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; margin-top: auto; padding-top: 6px; }
.tool-card__actions--single { grid-template-columns: minmax(0, 1fr); }
.tool-card__start, .tool-card__related { display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; white-space: nowrap; }
.tool-card__start { background: var(--cobalt); color: #fff; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(35, 64, 224, .6); }
.tool-card__related { background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink); font-size: 14px; font-weight: 600; }
.tool-card--placeholder { display: grid; place-items: center; align-content: space-evenly; gap: 8px; min-height: 360px; border: 1.5px dashed rgba(11, 19, 36, .18); background: none; box-shadow: none; color: var(--muted); font-size: 14px; text-align: center; }
.tool-card--placeholder b { color: var(--ink2); font-size: 17px; }
.tool-card--placeholder a { font-weight: 700; }
.tools-notice { margin-top: 32px; padding: 20px 24px; border-radius: 16px; background: var(--cloud); }
.tools-notice--card { margin-top: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.tools-notice p { display: flex; align-items: flex-start; gap: 8px; color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
.tools-notice b { flex: none; color: #B45309; }

/* 툴 상세·점검 — 시안 '툴 상세 — php2shell 무료 점검'(php2shell-checker) */
.tool-page { padding: 40px 0 88px; background: var(--cloud); }
.tool-page__crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.tool-page__crumbs a { color: var(--muted); font-weight: 600; }
.tool-page__crumbs span:last-child { color: var(--ink2); font-weight: 600; }
.tool-page__title { margin-top: 20px; }
.tool-page__lead { margin-top: 14px; color: var(--ink2); font-size: 17px; line-height: 1.65; }
/* 점검 카드 — 폼은 시안 그대로, 진행·결과 영역은 zien-cve-hub checker-widget.css 값(php2shell-checker '진행 표시'·'결과 화면') */
.checker-card { margin-top: 36px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--hair), 0 24px 48px -20px rgba(11, 19, 36, .18); }
.checker-card [hidden] { display: none !important; }
.checker { padding: 44px 48px; background: var(--cobalt); color: #fff; }
.checker__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checker__name { color: #C9D3FF; font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.checker__chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; white-space: nowrap; }
.checker__label { display: block; margin-top: 28px; font-size: 15px; font-weight: 700; }
.checker__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-top: 12px; }
.checker__row input { height: 64px; padding: 0 20px; border: 0; border-radius: 14px; outline: 0; background: #fff; color: var(--ink); font-family: var(--font-mono); font-size: 17px; }
.checker__row button { height: 64px; padding: 0 36px; border: 0; border-radius: 14px; background: #fff; color: var(--cobalt); font-size: 17px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.checker__consent { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; }
.checker__consent input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: #fff; }
.checker__consent a { color: #fff; font-weight: 700; text-decoration: underline; }
.checker__note { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.6; }
.checker__error { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--urgent); font-size: 14px; font-weight: 600; }
.checker__error:empty { display: none; }
.checker-progress, .checker-result { padding: 28px 48px 40px; }
.checker-caption { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.checker-caption a { color: var(--cobalt); font-weight: 700; }
.checker-progress__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.checker-progress__title { font-size: 15px; font-weight: 600; }
.checker-progress__percent { margin-left: 8px; color: var(--cobalt); font-size: 12px; font-variant-numeric: tabular-nums; }
.checker-progress__phase { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.checker-progress__track { height: 8px; border-radius: 8px; background: #EEF2F8; overflow: hidden; }
.checker-progress__bar { width: 0; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2340E0, #5B74FF); transition: width .3s ease; }
.checker-result { outline-offset: 8px; }
.checker-result__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 22px; }
.checker-result__verdict { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.checker-result__verdict[data-level=risk] { background: #FDECEE; color: #C8102E; }
.checker-result__verdict[data-level=observed] { background: var(--cobalt-t); color: var(--cobalt); }
.checker-result__verdict[data-level=unknown] { background: #FDF3E3; color: #B45309; }
.checker-result__host { color: var(--muted); font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.checker-result__time { margin-left: auto; color: var(--muted); font-size: 13px; }
.checker-result__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 20px; border-radius: 14px; background: var(--hair); overflow: hidden; }
.checker-result__metrics > div { padding: 16px 18px; background: var(--cloud); }
.checker-result__metrics small { display: block; color: var(--muted); font-size: 11.5px; }
.checker-result__metrics b { color: var(--ink2); font-size: 16px; font-weight: 600; }
.checker-result__metrics b.is-mono { font-family: var(--font-mono); }
.checker-result__label { margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.checker-result__evidence { margin-bottom: 22px; padding: 6px; border-radius: 14px; background: var(--cloud); box-shadow: inset 0 0 0 1px var(--hair); }
.checker-signal { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 11px 14px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 1px 1px rgba(11, 19, 36, .03); font-size: 13.5px; }
.checker-signal:first-child { margin-top: 0; }
.checker-signal span:first-child { flex: none; width: 150px; color: var(--muted); font: 12px var(--font-mono); }
.checker-signal span:nth-child(2) { min-width: 0; color: var(--ink2); font-family: var(--font-mono); overflow-wrap: anywhere; }
.checker-signal span:last-child { margin-left: auto; color: var(--muted); font-size: 12px; }
.checker-result__note { overflow-wrap: anywhere; word-break: break-word; }
.checker-result__caveat { margin-bottom: 24px; padding: 16px 18px; border-radius: 14px; background: #FDF3E3; box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .18); color: var(--ink2); font-size: 13.5px; line-height: 1.75; }
.checker-result__caveat strong { font-weight: 600; }
.checker-result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.checker-result__action { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(11, 19, 36, .05), inset 0 0 0 1px var(--hair2); color: var(--ink); font-size: 16px; font-weight: 600; }
.tool-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.tool-facts > div { padding: 28px 32px; }
.tool-facts > div + div { border-left: 1px solid var(--hair); }
.tool-facts b { font-size: 17px; }
.tool-facts p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }

@media (max-width: 900px) {
  .tool-grid, .tool-facts { grid-template-columns: minmax(0, 1fr); }
  .tool-facts > div + div { border-top: 1px solid var(--hair); border-left: 0; }
  .tool-card--placeholder { min-height: 0; }
}
@media (max-width: 560px) {
  /* 좁은 화면 헤더 — 항목은 그대로 두고 여백·간격·크기만 줄여 한 줄에 맞춘다(site-layout '좁은 화면 폭', fit-mobile-pages-to-screen-width) */
  .site-header__bar.in { gap: 10px; padding: 0 16px; }
  .site-header__left { gap: 10px; }
  .site-header__right { gap: 2px; }
  .site-header__link { font-size: 14px; }
  .lang-switch__button { gap: 4px; padding: 0 6px; }
  .lang-switch__button > svg:last-child { display: none; }  /* 펼침 화살표 — 언어 코드(KO)는 남긴다 */
  .icon-btn { width: 34px; }
  .site-header__subscribe { height: 34px; padding: 0 10px; font-size: 13px; }
  .home-banner__inner { justify-content: flex-start; height: auto; padding-top: 12px; padding-bottom: 12px; font-size: 14px; }
  .home-banner__dot { display: none; }
  .scanner-box { flex-wrap: wrap; }
  .scanner-box__text span { display: block; margin-left: 0; }
  .tools-hero { padding: 40px 0 36px; }
  .tools-hero__title, .tool-page__title { font-size: 30px; }
  .tools-hero__desc, .tool-page__lead { font-size: 15px; }
  .tools-list { padding: 28px 0 48px; }
  .tool-card { padding: 22px; }
  .tool-card__actions { grid-template-columns: minmax(0, 1fr); }
  .checker-card { margin-top: 24px; border-radius: 20px; }
  .checker, .checker-progress, .checker-result { padding: 24px 20px; }
  .checker__name { font-size: 12.5px; letter-spacing: .04em; }
  .checker__chip { height: 26px; padding: 0 10px; font-size: 12px; }
  .checker__row { grid-template-columns: minmax(0, 1fr); }
  .checker__row input, .checker__row button { height: 54px; font-size: 16px; }
  .checker__consent { align-items: flex-start; font-size: 14px; }
  .checker-progress__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .checker-result__metrics { grid-template-columns: minmax(0, 1fr); }
  .checker-signal { flex-wrap: wrap; gap: 6px 12px; }
  .checker-signal span:first-child { width: 100%; }
  .checker-result__action { width: 100%; justify-content: center; }
  .tool-facts > div { padding: 20px; }
}
@media (max-width: 380px) {
  .logo { gap: 6px; font-size: 16px; }
  .site-header__link { font-size: 13px; }
  .site-header__subscribe { padding: 0 8px; font-size: 12px; }
}

/* 쿠키 안내 팝업 — 시안 '쿠키 팝업 PC(오른쪽 아래)·모바일(하단 바 위)'(cookie-consent) */
.cookie-banner, .cookie-sample { display: grid; gap: 10px; width: 400px; max-width: calc(100% - 32px); padding: 22px 22px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair2), 0 24px 48px -16px rgba(11, 19, 36, .35); }
.cookie-banner { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.cookie-sample { position: static; margin: 0 auto; }
/* 격자 칸이 내용(400px) 크기로 잡히지 않게 해 .cookie-sample 의 max-width 가 좁은 화면에서도 듣게 한다 */
.cookie-sample-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; margin-top: 16px; padding: 40px 16px; border-radius: 16px; background: #E6EBFA; }
.cookie-banner__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--slate); font-size: 20px; line-height: 1; cursor: pointer; }
.cookie-banner__close:hover { background: var(--cloud); }
.cookie-banner__title { font-size: 16px; }
.cookie-banner__text { color: var(--ink2); font-size: 14px; line-height: 1.6; }
.cookie-banner__text a, .cookie-banner__text u { color: var(--cobalt); text-decoration: underline; }
.cookie-banner__actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cookie-banner__settings { margin-right: auto; color: var(--slate); font-size: 14px; font-weight: 600; text-decoration: underline; }
.cookie-banner__reject, .cookie-banner__accept { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cookie-banner__reject { background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink); }
.cookie-banner__accept { background: var(--cobalt); color: #fff; }

/* 정책 페이지 — 쿠키 설정·개인정보처리방침·이용약관(policy-pages) */
.policy-page { padding: 0 0 96px; }
.policy-hero { margin-bottom: 8px; padding: 72px 0 40px; border-bottom: 1px solid var(--hair); background: var(--cloud); }
.policy-hero .policy-page__inner { max-width: 820px; }
.policy-page__inner { max-width: 820px; }
.policy-page__eyebrow { color: var(--cobalt); font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.policy-page__title { margin-top: 10px; font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.policy-page__lead { margin-top: 14px; color: var(--ink2); font-size: 17px; line-height: 1.7; }
.policy-page__meta { margin-top: 12px; color: var(--slate); font-size: 14px; }
.policy-draft { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: #FFF7E6; color: #8A4B08; font-size: 14px; }
.policy-draft b { margin-right: 8px; }
.policy-page h2 { margin-top: 48px; font-size: 22px; letter-spacing: -.02em; }
.policy-page h3 { margin-top: 24px; font-size: 17px; }
.policy-page p, .policy-page li { margin-top: 10px; color: var(--ink2); font-size: 15.5px; line-height: 1.75; }
.policy-page ul { padding-left: 20px; list-style: disc; }
.policy-page ol { padding-left: 22px; list-style: decimal; }  /* 조항의 항(①②…) — 회사 문서의 번호 목록 */
.policy-page li > ul { margin-top: 4px; list-style: circle; }
.policy-page code { font-family: var(--font-mono); font-size: 13.5px; }
.policy-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.policy-table th, .policy-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--ink2); }
.policy-table th { background: var(--cloud); color: var(--ink); font-weight: 700; }
.policy-page .placeholder { color: #8A4B08; font-weight: 600; }
/* 분석 쿠키의 국외 이전 사항(cookie-consent '쿠키 설정 페이지') */
.cookie-transfer { margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--cloud); }
.cookie-transfer p, .cookie-transfer li { margin-top: 4px; font-size: 14px; line-height: 1.65; }
.cookie-settings { display: grid; gap: 12px; margin-top: 16px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.cookie-option p { margin-top: 4px; font-size: 14px; }
.cookie-option__fixed { color: var(--slate); font-size: 13px; font-weight: 500; }
.cookie-option__switch:disabled { opacity: .55; cursor: default; }
.cookie-option__switch { flex: none; width: 44px; height: 26px; margin: 0; appearance: none; border-radius: 999px; background: #CBD3E1; cursor: pointer; position: relative; transition: background .15s; }
.cookie-option__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cookie-option__switch:checked { background: var(--cobalt); }
.cookie-option__switch:checked::after { transform: translateX(18px); }
.cookie-option__switch:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.cookie-settings__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cookie-settings__secondary, .cookie-settings__primary { height: 46px; padding: 0 20px; border: 0; border-radius: 12px; font-weight: 700; cursor: pointer; }
.cookie-settings__secondary { background: #fff; box-shadow: inset 0 0 0 1px var(--hair2); color: var(--ink); }
.cookie-settings__primary { background: var(--cobalt); color: #fff; }

/* 푸터 정책 링크(site-layout '푸터 링크') */
.site-footer__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom .site-footer__company { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer__policies { display: flex; flex: none; gap: 16px; font-size: 13px; }
.site-footer__policies a { color: #C9D2F5; }
.site-footer__policies a:first-child { color: #fff; font-weight: 700; }
.subscribe-form__consent a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; }
  body:has(.subscribe-bar) .cookie-banner { bottom: calc(var(--subscribe-bar-height, 190px) + 12px); }
  body:has(.cta-bar) .cookie-banner { bottom: 80px; }
  .cookie-banner__actions { flex-wrap: wrap; }
  .site-footer__bottom { margin-top: 16px; padding-top: 16px; }
  .policy-page { padding: 0 0 64px; }
  .policy-hero { padding: 40px 0 28px; }
  .policy-page__title { font-size: 28px; }
  .policy-table { display: block; overflow-x: auto; }
  .cookie-settings__actions { flex-direction: column; }
}

/* 언어 선택 — 시안 '홈 > 언어 KO 버튼 누르면 열리는 언어 선택'(multilingual-site). <details> 라 JS 없이 열린다. */
.lang-switch { position: relative; }
.lang-switch__button { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink2); font-size: 14px; font-weight: 700; white-space: nowrap; list-style: none; cursor: pointer; }
.lang-switch__button::-webkit-details-marker { display: none; }
.lang-switch__button:hover, .lang-switch[open] .lang-switch__button { background: var(--cobalt-t); color: var(--cobalt); }
.lang-switch__menu { position: absolute; top: 46px; right: 0; z-index: 50; display: grid; gap: 2px; width: 220px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 16px 40px -12px rgba(11, 19, 36, .3); }
.lang-switch__menu a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--ink2); font-size: 14.5px; font-weight: 600; }
.lang-switch__menu a:hover { background: var(--cloud); }
.lang-switch__menu a.is-current { background: var(--cloud); color: var(--ink); font-weight: 700; }
/* 준비 중인 언어 — 링크가 아니라 흐리게, 누를 수 없음(disable-japanese-language-option) */
.lang-switch__menu .is-disabled { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: #A3ACBF; font-size: 14.5px; font-weight: 600; cursor: not-allowed; }
.lang-switch__soon { font-size: 12px; font-weight: 600; color: #A3ACBF; }
.lang-switch__menu a svg { color: var(--cobalt); }
.lang-switch__code { color: var(--muted); font-weight: 500; }
.language-fallback, .language-notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #FFF7E6; color: #8A4B08; font-size: 14px; }
.language-notice { margin: 20px 0 0; display: inline-block; background: rgba(255, 255, 255, .1); color: #F5D9A8; }
.post-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.post-languages__link { margin-top: 20px; color: #8FA6FF; font-size: 14px; font-weight: 700; }
@media (max-width: 560px) {
  .lang-switch__button { gap: 3px; padding: 0 6px; font-size: 13px; }
  .lang-switch__menu { position: fixed; top: 60px; right: 12px; }
}
/* 일본어는 띄어쓰기가 없어 keep-all 이면 줄을 바꾸지 못한다 — 일반 줄바꿈과 일본어 금칙 처리. */
html:lang(ja) body { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
