
    :root {
      --bg: #07090e;
      --bg-card: #12161e;
      --bg-alt: #1a1f29;
      --text-main: #e2e6ec;
      --text-muted: #8b95a5;
      --border: #2a303c;
      --border-light: #202631;
      --bar-line: rgba(255, 255, 255, 0.08);
      --primary: #60a5fa;
      --code-bg: #0a0d13;
      --radius-box: 20px;   /* 아이콘을 뺀 내용·썸네일이 들어가는 모든 박스의 모서리(연재로 읽기·출처 모음의 박스 값). 전역 규칙 */
      --max-width: min(1200px, 100vw);   /* 모든 페이지 같은 폭 */
      --gutter: 28px;                    /* 모든 페이지·상단 띠·하단 독이 같은 좌우 여백 */
      --masthead-h: 52px;
      --dock-h: 58px;
      --dock-border: rgba(255, 255, 255, 0.14);
      --dock-text: #f8fafc;
      --tx-hi: #f8fafc; --tx-1: #e2e8f0; --tx-2: #cdd3dc; --tx-3: #aab3c0; --tx-4: #8b95a5; --tx-5: #64748b;
      --line-1: #2a303c; --line-2: #3a4252;
      --ov: 255 255 255;   /* 음영·테두리 겹침색(다크: 흰색, 라이트: 짙은 남색) */
      --inv: #0f172a;      /* 밝은 알약(선택된 탭) 위의 글씨 */
      --isl: #0b0e15;      /* 검색 아일랜드 바탕 */
      --acc: #7dd3fc;      /* 검색 강조색 */
      --kg-bg: radial-gradient(circle at 50% 45%, #0f141d 0%, #090c12 100%);
      color-scheme: dark;
    }
    /* 라이트 모드. 검색 아일랜드·지식 지도 캔버스·표지·코드 블록은 어느 모드에서나 어두운 면이라 아래에서 다크 값으로 되돌린다 */
    :root[data-theme="light"] {
      --bg: #ffffff;        /* 라이트: 위·아래 띠는 흰색, 본문은 옅은 회색(다크와 밝기 관계가 반대) */
      --bg-card: #e9ecf1;
      --bg-alt: #dde1e8;
      --text-main: #1a2030;
      --text-muted: #5b6678;
      --border: #d5dae3;
      --border-light: #e4e8ee;
      --bar-line: rgba(15, 23, 42, 0.1);
      --primary: #2563eb;
      --code-bg: #0a0d13;
      --dock-border: rgba(15, 23, 42, 0.16);
      --dock-text: #0f172a;
      --tx-hi: #0b1220; --tx-1: #1a2030; --tx-2: #2c3547; --tx-3: #4a5568; --tx-4: #5f6b7d; --tx-5: #7b8698;
      --line-1: #d5dae3; --line-2: #c3cad6;
      --ov: 15 23 42;
      --inv: #f8fafc;
      --isl: #ffffff;
      --acc: #0369a1;
      --kg-bg: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef1f6 100%);
      color-scheme: light;
    }
    :root[data-theme="light"] .post-body pre {
      --bg: #07090e; --bg-card: #12161e; --bg-alt: #1a1f29; --text-main: #e2e6ec; --text-muted: #8b95a5; --border: #2a303c; --border-light: #202631;
      --bar-line: rgba(255, 255, 255, 0.08); --code-bg: #0a0d13; --dock-border: rgba(255, 255, 255, 0.14); --dock-text: #f8fafc;
      --tx-hi: #f8fafc; --tx-1: #e2e8f0; --tx-2: #cdd3dc; --tx-3: #aab3c0; --tx-4: #8b95a5; --tx-5: #64748b;
      --line-1: #2a303c; --line-2: #3a4252; --ov: 255 255 255; --inv: #0f172a; color-scheme: dark;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
            min-width: 320px;
    }

    body {
      font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
      background-color: var(--bg);
      color: var(--text-main);
      line-height: 1.78;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
      word-break: keep-all;
      overflow-wrap: break-word;
    }

    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--primary); }

    /* Article Single */
    article.post-single {
      margin-bottom: 1.5rem;
      width: 100%;
    }

    /* Typography */
    .post-body h2 {
      font-size: 1.45rem;
      font-weight: 700;
      margin: 2.25rem 0 0.85rem;
      letter-spacing: -0.025em;
      line-height: 1.35;
      scroll-margin-top: 105px;
    }
    .post-body > h2:first-child,
    .post-body > :first-child {
      margin-top: 0 !important;
    }
    .post-body h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 1.6rem 0 0.65rem;
      letter-spacing: -0.015em;
      scroll-margin-top: 105px;
    }
    .post-body p {
      margin-bottom: 1.45rem;
      color: #1e293b;
    }
    .post-body ul, .post-body ol {
      margin: 0 0 1.5rem 1.4rem;
      color: #1e293b;
    }
    .post-body li {
      margin-bottom: 0.45rem;
    }
    .post-body blockquote {
      border-left: 3px solid var(--primary);
      padding: 0.6rem 0 0.6rem 1.25rem;
      margin: 1.5rem 0;
      color: var(--tx-5);
      background: var(--bg-alt);
      border-radius: 0 6px 6px 0;
    }

    /* 본문 도식·영상(2026-11-09): 도식은 글에 직접 그린 인라인 SVG로, 색은 테마 변수를 따라 다크·라이트에서 같이 바뀐다.
       영상은 썸네일만 먼저 보이고 누르면 youtube-nocookie 플레이어로 바뀐다(첫 화면에서 외부 스크립트를 부르지 않는다) */
    .post-figure { margin: 1.75rem 0; }
    .post-figure svg { display: block; width: 100%; height: auto; max-width: 720px; margin: 0 auto; font-family: inherit; }
    .post-figure figcaption, .post-video figcaption { margin-top: 0.6rem; font-size: 0.82rem; line-height: 1.5; color: var(--tx-4); text-align: center; }
    .fig-box { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1.5; }
    .fig-box-hi { fill: rgb(var(--ov) / 0.08); stroke: var(--primary); stroke-width: 2; }
    .fig-line { stroke: var(--tx-4); stroke-width: 1.8; fill: none; }
    .fig-line-hi { stroke: var(--primary); stroke-width: 2.2; fill: none; }
    .fig-dash { stroke-dasharray: 5 5; }
    .fig-arrow { fill: var(--tx-4); }
    .fig-arrow-hi { fill: var(--primary); }
    .fig-t { fill: var(--tx-1); font-size: 15px; font-weight: 600; }
    .fig-s { fill: var(--tx-4); font-size: 12.5px; }
    .fig-hi { fill: var(--primary); font-size: 13px; font-weight: 700; }
    .post-video { margin: 1.75rem 0; }
    .post-video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-box, 12px); overflow: hidden; background: #000; cursor: pointer; }
    .post-video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s ease; }
    .post-video-frame:hover img { opacity: 1; }
    .post-video-frame::after { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(0,0,0,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; }
    .post-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    .post-video-frame.is-playing::after { display: none; }

    /* Tables (모바일 가로 스크롤 보장) */
    .post-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      font-size: 0.875rem;
    }
    .post-body th, .post-body td {
      border: 1px solid var(--border);
      padding: 0.55rem 0.85rem;
      text-align: left;
      white-space: nowrap;
    }
    .post-body th {
      background: var(--bg-alt);
      font-weight: 600;
      color: var(--text-main);
    }
    .post-body img {
      max-width: 100%;
      height: auto;
      border-radius: var(--radius-box);
      margin: 1.5rem 0;
      display: block;
    }

    /* 본문 도식(2026-11-06): 글 안에 직접 그린 인라인 SVG. 색은 테마 변수만 써서 라이트·다크 모두 읽힌다 */
    .post-body .post-figure { margin: 1.75rem 0; padding: 18px 16px 12px; border: 1px solid var(--line-1); border-radius: var(--radius-box); background: var(--bg-alt); }
    .post-body .post-figure svg { display: block; width: 100%; height: auto; max-height: 460px; }
    .post-body .post-figure figcaption { margin-top: 10px; font-size: 0.8rem; line-height: 1.5; color: var(--tx-3); text-align: center; word-break: keep-all; }
    .post-figure .fg-box { fill: var(--bg-card); stroke: var(--line-2); stroke-width: 1.5; }
    .post-figure .fg-key { fill: var(--primary); }
    .post-figure .fg-keyline { fill: none; stroke: var(--primary); stroke-width: 2; }
    .post-figure .fg-line { fill: none; stroke: var(--tx-3); stroke-width: 1.6; }
    .post-figure .fg-dash { fill: none; stroke: var(--tx-4); stroke-width: 1.4; stroke-dasharray: 4 5; }
    .post-figure .fg-head { fill: var(--tx-3); }
    .post-figure .fg-t { fill: var(--tx-1); font-size: 15px; font-weight: 700; }
    .post-figure .fg-s { fill: var(--tx-3); font-size: 12.5px; }
    .post-figure .fg-on { fill: #fff; font-size: 14px; font-weight: 700; }
    .post-figure text { font-family: inherit; }
    /* 좁은 화면: 도식을 줄이면 글자가 읽히지 않으므로 읽을 수 있는 폭(560px)을 지키고 가로로 밀어 본다. 설명 글은 화면 폭에 맞춘다 */
    @media (max-width: 640px) {
      .post-body .post-figure { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .post-body .post-figure svg { min-width: 560px; }
      .post-body .post-figure figcaption { position: sticky; left: 0; max-width: calc(100vw - 2 * var(--gutter, 16px) - 34px); }
    }

    /* Code Blocks (반응형 가로스크롤 보장) */
    .post-body pre {
      border-radius: var(--radius-box);
      margin: 1.5rem 0;
      overflow-x: auto;
      font-size: 0.875rem;
      max-width: 100%;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
      -webkit-overflow-scrolling: touch;
    }
    .post-body code {
      font-family: 'JetBrains Mono', monospace;
    }
    .post-body :not(pre) > code {
      background: #fee2e2;
      color: #991b1b;
      padding: 0.12rem 0.35rem;
      border-radius: 4px;
      font-size: 0.85em;
      font-weight: 500;
    }

    /* Minimal Card Details / Summary */
    details {
      background: var(--tx-hi);
      border: 1px solid var(--tx-1);
      border-radius: var(--radius-box);
      padding: 0.75rem 1rem;
      margin: 1.5rem 0;
      max-width: 100%;
    }
    details summary {
      cursor: pointer;
      font-size: 0.925rem;
      font-weight: 600;
      color: #334155;
      user-select: none;
    }
    details summary:hover {
      color: var(--primary);
    }
    details[open] summary {
      margin-bottom: 0.75rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--tx-1);
    }

    /* Footer */
    footer.site-footer {
      border-top: 1px solid var(--border-light);
      padding: 0;
      min-height: calc(var(--dock-h) + 12px);
      text-align: center;
      font-size: 0.825rem;
      color: var(--text-muted);
    }

    /* ========================================================
       반응형 브레이크포인트 (모바일 320px ~ 640px 최적화)
       ======================================================== */
    @media (max-width: 640px) {
      .post-body h2 {
        font-size: 1.25rem;
        margin: 2.25rem 0 0.75rem;
        scroll-margin-top: 30px;
      }
      .post-body h3 {
        font-size: 1.1rem;
        scroll-margin-top: 30px;
      }
      .post-body pre {
        font-size: 0.8rem;
        padding: 0.75rem;
      }

    }

    /* 극소형 모바일 기기 (폭 320px ~ 375px) */

    /* 세컨더리 플로팅 캡슐 (공유 & 글 메타 정보 상향 팝업) */

    /* SEO 전용 숨김 */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    /* ========================================================
       [홈: 주제 칩 한 줄 → 전체 글 목록]
       정보는 줄이고 글 목록에 집중한다. 현황·기록·관계 맵은 소개 페이지 '블로그 현황'에 둔다.
       ======================================================== */
    .home-view {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: clamp(22px, 2.4vw, 32px);
    }

    /* 상단 띠: 블로그 제목 자리(나중에 로고 이미지로 바꾼다). 화면 위에 고정, 아래로 스크롤하면 숨고 올리면 돌아온다 */
    .site-masthead {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 9450;
      height: var(--masthead-h);
      background: var(--bg);
      border-bottom: 1px solid var(--bar-line);
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
    }
    .site-masthead-inner {
      height: 100%;
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 var(--gutter);
      display: flex;
      align-items: center;
    }
    .site-masthead-title {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: var(--tx-hi);
    }
    .site-masthead-title:hover { color: var(--tx-hi); }
    .site-nav { display: flex; align-items: center; gap: 2px; margin-left: 22px; }
    .site-nav-group { display: contents; }
    .site-nav a { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; font-weight: 500; color: var(--tx-3); }
    .site-nav a { padding: 6px 11px; border-radius: 999px; }  /* 선택·강조 음영은 전역 규칙으로 완전한 원형(알약) */
    .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--tx-hi); background: rgb(var(--ov) / 0.07); }
    .nav-ext { opacity: 0.55; }
    .icon-chev { flex: none; display: block; }
    .pager button .icon-chev { width: 14px; height: 14px; }
    .site-nav a.is-pending { opacity: 0.4; cursor: default; }
    .site-nav a.is-pending:hover { color: var(--tx-3); background: none; }
    .nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: auto; padding: 0; color: var(--dock-text); background: rgb(var(--ov) / 0.06); border: 1px solid var(--dock-border); border-radius: 50%; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
    .nav-toggle:hover { background: rgb(var(--ov) / 0.12); }
    /* 메뉴가 펼쳐지면 점 세 개가 수평으로 눕도록 회전하고, 닫히면 다시 수직으로 선다 */
    .nav-toggle svg { transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
    .nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
    .nav-toggle[aria-expanded="true"] { background: transparent; border-color: transparent; }  /* 열리면 버튼은 메뉴 음영 안으로 합쳐진다 */
    /* 좁은 폭·중간 폭(1024px 미만): 메뉴 버튼은 하단 독의 탭 규격(알약)으로 '지금 페이지 ▾'를 보이고, 누르면 그 아래로 메뉴가 펼쳐진다. 넓은 폭은 위의 가로 메뉴 그대로(2026-11-06 사용자 지시) */
    .site-nav .nav-home { display: none; }
    @media (max-width: 1023px) {
      .site-masthead-inner { position: relative; }
      .nav-toggle { display: inline-flex; gap: 6px; width: auto; padding: 0 13px; border-radius: 999px; border-color: transparent; background: rgb(var(--ov) / 0.09); font-size: 0.82rem; font-weight: 700; line-height: 1; white-space: nowrap; flex: none; margin-left: 12px; position: relative; z-index: 2; }
      .nav-toggle[aria-expanded="true"] { background: rgb(var(--ov) / 0.14); color: var(--tx-hi); border-color: transparent; }  /* 좁은 폭 메뉴 버튼은 테두리 없이 음영 알약만(2026-11-08 사용자 지시) */
      .nav-toggle svg { width: 14px; height: 14px; }
      .nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
      .site-nav { position: absolute; top: calc(100% + 1px); left: var(--gutter); margin: 0; min-width: 180px; padding: 6px; background: var(--bg); border: 1px solid var(--dock-border); border-radius: 18px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.28); opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.28s; z-index: 1; }
      .site-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s; }
      .site-nav-group { display: flex; flex-direction: column; gap: 2px; }
      .site-nav a { padding: 10px 14px; font-size: 0.88rem; justify-content: space-between; }
      .site-nav .nav-home { display: inline-flex; }
      .site-masthead .theme-toggle { margin-left: auto; position: relative; z-index: 2; }
    }
    /* 하단 독: 아티클 페이지는 제목 대신 계층(1계층 → 2계층) 버튼 줄이 들어가고, 단계가 바뀔 때 옆으로 밀려 들어온다 */
    .dock-scope { display: none; position: relative; flex: 1; min-width: 0; overflow: hidden; }
    .dock-scope.is-overflow .dock-scope-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
    body[data-page-mode="articles"] .dock-scope { display: block; }
    body[data-page-mode="articles"] .dock-title { display: none; }
    /* 지식 지도 페이지: 독 가운데에 도메인 노드 탭 한 줄(예전에는 지도 위에 있었다) */
    .dock-graph { position: relative; flex: 1; min-width: 0; overflow: hidden; }
    body[data-page-mode="graph"] .dock-title { display: none; }
    .dock-scope-row { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
    .dock-scope-row::-webkit-scrollbar { display: none; }
    .dock-scope-row.slide-forward { animation: scopeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .dock-scope-row.slide-back { animation: scopeBack 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    @keyframes scopeIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
    @keyframes scopeBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
    .dock-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--tx-4); background: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; }
    .dock-chip.is-zero { opacity: 0.45; }
    .dock-chip small { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 400; color: var(--tx-5); }
    .dock-chip:hover { color: var(--tx-1); }
    /* 고른 것은 밑줄이 아니라 음영으로 묶는다 */
    .dock-chip.is-on { font-weight: 700; color: var(--tx-hi); background: rgb(var(--ov) / 0.11); }
    /* 고른 경로(상위 계층 포함)는 하나의 음영으로 묶는다: [Trends / Google Cloud Next 26] */
    .dock-trail { flex: none; display: inline-flex; align-items: center; background: rgb(var(--ov) / 0.11); border-radius: 999px; }
    .dock-trail .dock-chip { background: none; border-radius: 999px; }
    .dock-trail .dock-chip.is-path { color: var(--tx-1); font-weight: 600; }
    .dock-chip.is-on small { color: var(--tx-3); }
    .dock-chip.is-back { width: 36px; padding: 0; justify-content: center; color: var(--dock-text); background: rgb(var(--ov) / 0.06); border: 1px solid var(--dock-border); border-radius: 50%; }
    .dock-chip.is-back:hover { background: rgb(var(--ov) / 0.12); color: var(--dock-text); }
    .dock-chip.is-back { margin-right: 8px; }  /* 아이콘 버튼과 경로 사이: 주소창처럼 버튼 + 입력칸 */
    .dock-chip.is-path { padding-right: 4px; color: var(--tx-3); }
    .dock-slash { margin-left: 6px; font-style: normal; color: var(--tx-5); }
    @media (prefers-reduced-motion: reduce) { .dock-scope-row.slide-forward, .dock-scope-row.slide-back { animation: none; } .site-nav { transition: none; } }
    .site-masthead.is-hidden {
      transform: translateY(-100%);
      visibility: hidden;
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
    }
    body:not([data-page-mode="article"]):not([data-page-mode="home"]) .article-cover-hero {
      display: none !important;
    }

    /* 하단 독: 글(페이지) 제목 · 상위 메뉴로 · 검색. 위 띠와 같은 검정 띠로 화면 아래에 고정 */
    .site-dock {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9500;
      background: var(--bg);
      border-top: 1px solid var(--bar-line);
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
    }
    .site-dock-inner {
      width: 100%;
      max-width: var(--max-width);
      min-height: var(--dock-h);
      margin: 0 auto;
      padding: 10px var(--gutter) max(12px, env(safe-area-inset-bottom, 12px));
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .site-dock.is-hidden {
      transform: translateY(100%);
      visibility: hidden;
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
    }
    .dock-title {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
      height: 36px;
      padding: 0 14px;
      background: rgb(var(--ov) / 0.11);  /* 주소창처럼 음영 알약: 아티클 독 경로와 같은 표현 */
      border-radius: 999px;
      color: var(--dock-text);
      font-size: 0.9rem;
      font-weight: 600;
      white-space: nowrap;
    }
    .dock-title-track {
      display: inline-flex;
      white-space: nowrap;
    }
    .dock-title-clone { display: none; }
    /* 제목이 독 폭보다 길면 왼쪽으로 일정한 속도로 계속 흐른다. 끝까지 보인 뒤 56px 간격으로 따라오는 처음 제목이
       기준점에 닿는 순간 되감아 끊김 없이 반복하고, 마우스를 올리면 멈춘다 */
    .dock-title.is-marquee {
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 14px), transparent);
      mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 14px), transparent);
    }
    .dock-title.is-marquee .dock-title-track {
      gap: 56px;
      will-change: transform;
      animation: dockTitleLoop var(--marquee-time, 14s) linear infinite;
    }
    .dock-title.is-marquee .dock-title-clone { display: inline-block; }
    .dock-title.is-marquee:hover .dock-title-track { animation-play-state: paused; }
    @keyframes dockTitleLoop {
      from { transform: translateX(0); }
      to { transform: translateX(calc(-1 * var(--marquee-shift, 0px))); }
    }
    /* 본문 끝까지 내리면 하단 캡슐의 기존 행은 그대로 두고 그 아래에 한 행을 부드럽게 펼쳐 링크와 저작권 문구를 보인다(2026-11-06 사용자 지시). 푸터 줄은 없앴다.
       기존 행은 독 안 같은 자리에서 위로 밀려 올라가고, 접힌 상태는 높이 0이라 평소 독은 그대로다 */
    .dock-end { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0s linear 0.3s; }
    .dock-end-in { box-sizing: border-box; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 8px var(--gutter) max(10px, env(safe-area-inset-bottom, 10px)); border-top: 1px solid var(--dock-border); display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
    .dock-end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 0.78rem; }
    .dock-end-links a { color: var(--dock-text); text-decoration: none; font-weight: 600; }
    .dock-end-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
    .dock-end-copy { margin: 0; font-size: 0.68rem; line-height: 1.3; color: var(--tx-4); }
    body:not([data-page-mode="graph"]).is-at-end .dock-end { max-height: 110px; opacity: 1; visibility: visible; transition-delay: 0s; }
    @media (prefers-reduced-motion: reduce) { .dock-end { transition: none; } }
    .dock-btn {
      flex: none;
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 1px solid var(--dock-border);
      background: rgb(var(--ov) / 0.06);
      color: var(--dock-text);
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }
    .dock-btn:hover {
      background: rgb(var(--ov) / 0.14);
      color: var(--tx-hi);
    }
    .dock-btn[aria-expanded="true"] {
      background: var(--tx-hi);
      color: var(--bg);
    }

    /* 관련있는 아티클: 유형별 탭과, 탭마다 썸네일 한 줄(아래에 작은 제목) */
    /* 유형 탭은 한 줄. 더 있으면 끝을 흐리게 하고 원형 ›(‹) 버튼으로 넘긴다(터치 기기도 같은 버튼, 누르기 쉽게 조금 크게) */
    /* 가로로 밀어 보는 모든 줄(필터 탭·칩·카드·독 계층)의 안내: 줄을 선택하면 더 볼 수 있는 쪽에 화살표가 잠시(2초) 나타났다 사라진다 */
    .swipe-hint { position: absolute; z-index: 3; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; transform: translateY(-50%); color: var(--tx-1); background: var(--bg-alt); border: 1px solid var(--dock-border); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .swipe-hint svg { width: 14px; height: 14px; }
    .show-swipe > .swipe-hint.is-on { opacity: 1; pointer-events: auto; cursor: pointer; }  /* 아이콘을 올리면 그 방향으로 계속, 누르면 한 번에 부드럽게 스크롤한다 */
    .show-swipe > .swipe-hint.is-on:hover { background: var(--bg-card, var(--bg)); border-color: rgb(var(--ov) / 0.3); }
    @media (prefers-reduced-motion: reduce) { .swipe-hint { transition: none; } }
    .amap-cards { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
    .amap-cards[hidden] { display: none; }
    .amap-cards li { margin: 0; }

    /* 검색: 독 위로 펼쳐지는 검은 아일랜드. 아래쪽에 입력칸, Enter를 누르면 그 위로 결과(글 목록 | LLM 답변)가 열린다 */
    /* 뒤 배경만 흐리고, 독(검색 아이콘으로 닫기)은 그대로 위에 둔다 */
    .search-backdrop {
      position: fixed;
      inset: 0;
      z-index: 9460;
      background: rgba(2, 6, 23, 0.28);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }
    .search-backdrop[hidden],
    .search-island[hidden],
    .search-island [hidden] {
      display: none !important;
    }
    .search-island {
      position: fixed;
      left: 50%;
      bottom: calc(68px + env(safe-area-inset-bottom, 0px));
      transform: translateX(-50%);
      z-index: 9600;
      width: min(calc(100% - 56px), calc(var(--max-width) - 24px));
      max-height: calc(100vh - 150px);
      max-height: calc(100dvh - 150px);
      display: flex;
      flex-direction: column;
      --island-bg: var(--isl);
      isolation: isolate;
      background: transparent;
      color: var(--tx-1);
      border: 1px solid rgb(var(--ov) / 0.1);
      border-radius: var(--radius-panel);
      transform-origin: 50% 100%;
      animation: islandOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .search-results {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      border-radius: var(--radius-panel);
      padding: 14px 14px 14px;
    }
    .search-results.is-pending::after {
      content: '';
      display: block;
      width: 6px;
      height: 6px;
      margin: 6px 10px;
      border-radius: 50%;
      background: var(--acc);
      animation: answerPulse 1s ease-in-out infinite;
    }
    .search-tabs {
      display: inline-flex;
      gap: 4px;
      margin: 0 0 8px;
      padding: 3px;
      border-radius: 999px;
      background: rgb(var(--ov) / 0.06);
    }
    .search-tab {
      font: inherit;
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--tx-4);
      background: transparent;
      border: 0;
      border-radius: 999px;
      padding: 5px 14px;
      cursor: pointer;
    }
    .search-tab[aria-selected="true"] {
      color: var(--inv);
      background: var(--tx-1);
    }
    .search-result-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .search-result {
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 9px 10px;
      border-radius: var(--radius-box);
      color: inherit;
    }
    .search-result:hover {
      background: rgb(var(--ov) / 0.07);
      color: inherit;
    }
    .search-result-title {
      font-size: 0.9rem;
      font-weight: 600;
      line-height: 1.45;
      color: var(--tx-hi);
    }
    .search-result-meta {
      font-size: 0.72rem;
      color: var(--tx-5);
    }
    .search-empty {
      margin: 4px 10px;
      font-size: 0.85rem;
      color: var(--tx-4);
    }
    .search-answer {
      padding: 2px 10px 4px;
      font-size: 0.9rem;
      line-height: 1.75;
      color: var(--tx-1);
      word-break: keep-all;
    }
    .search-answer-cite {
      display: inline-block;
      margin-left: 2px;
      padding: 0 5px;
      border-radius: 6px;
      font-size: 0.68rem;
      line-height: 1.5;
      color: var(--acc);
      background: rgba(56, 189, 248, 0.16);
    }
    .search-answer-cite:hover {
      color: var(--acc);
      background: rgba(56, 189, 248, 0.3);
    }
    .search-answer-note {
      margin: 10px 0 0;
      font-size: 0.72rem;
      color: var(--tx-5);
    }
    /* 관계도 탭: 결과 글(알약)과 그 글이 다룬 개념(점)을 작은 SVG로 잇는다. 검색어와 맞은 개념은 가운데에서 빛난다 */
    .search-island { --sg-causal: #fbbf24; --sg-contrast: #fb7185; --sg-similar: #34d399; --sg-usage: #a78bfa; }
    :root[data-theme="light"] .search-island { --sg-causal: #b45309; --sg-contrast: #e11d48; --sg-similar: #059669; --sg-usage: #7c3aed; }
    .search-graph { display: flex; flex-direction: column; gap: 6px; padding: 0 2px 2px; }
    .sg-stage { position: relative; }
    .sg-svg { display: block; width: 100%; height: auto; max-height: 58vh; overflow: hidden; touch-action: none; cursor: grab; }
    .sg-svg:active { cursor: grabbing; }
    .sg-edge { fill: none; stroke-linecap: round; transition: opacity 0.2s, stroke-width 0.2s; animation: sgFade 0.5s 0.2s backwards; }
    .sg-edge-cover { stroke: rgb(var(--ov) / 0.13); stroke-width: 1; }
    .sg-edge-rel { stroke-width: 2.2; }
    .sg-edge-rel.sg-cat-causal { stroke: var(--sg-causal); }
    .sg-edge-rel.sg-cat-contrast { stroke: var(--sg-contrast); stroke-dasharray: 6 5; }
    .sg-edge-rel.sg-cat-similar { stroke: var(--sg-similar); }
    .sg-edge-rel.sg-cat-usage { stroke: var(--sg-usage); }
    .sg-edge-rel.is-lit { stroke-width: 3.2; }
    .sg-edge-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
    .sg-node { cursor: pointer; outline: none; transition: opacity 0.2s; animation: sgIn 0.45s calc(var(--i, 0) * 45ms) cubic-bezier(0.16, 1, 0.3, 1) backwards; transform-box: fill-box; transform-origin: center; }
    .sg-svg.is-focus .sg-node:not(.is-lit), .sg-svg.is-focus .sg-edge:not(.is-lit) { opacity: 0.16; }
    .sg-pill { fill: rgb(var(--ov) / 0.07); stroke: rgb(var(--ov) / 0.22); stroke-width: 1; transition: fill 0.2s, stroke 0.2s; }
    .sg-article:hover .sg-pill, .sg-article:focus-visible .sg-pill, .sg-article.is-lit .sg-pill { fill: rgb(var(--ov) / 0.14); stroke: var(--acc); }
    .sg-pill-text { font-size: 11px; fill: var(--tx-1); text-anchor: middle; }
    .sg-dot { fill: var(--isl); stroke: var(--tx-4); stroke-width: 1.8; transition: stroke 0.2s; }
    .sg-concept:hover .sg-dot, .sg-concept:focus-visible .sg-dot, .sg-concept.is-lit .sg-dot { stroke: var(--acc); }
    .sg-concept.is-hit .sg-dot { fill: var(--acc); stroke: var(--acc); filter: drop-shadow(0 0 7px var(--acc)); }
    .sg-halo { fill: var(--acc); opacity: 0.16; animation: sgPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    .sg-label { font-size: 11px; font-weight: 500; fill: var(--tx-2); text-anchor: middle; paint-order: stroke; stroke: var(--isl); stroke-width: 3.5px; stroke-linejoin: round; }
    .sg-concept.is-hit .sg-label { font-size: 12.5px; font-weight: 700; fill: var(--tx-hi); }
    .sg-legend { position: absolute; top: 2px; right: 2px; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 6px 9px; list-style: none; font-size: 0.68rem; color: var(--tx-4); border-radius: var(--radius-box); background: color-mix(in srgb, var(--isl) 80%, transparent); }
    .sg-zoom { position: absolute; right: 2px; bottom: 2px; display: flex; flex-direction: column; gap: 4px; }
    .sg-zoom button { width: 28px; height: 28px; padding: 0; border: 1px solid rgb(var(--ov) / 0.18); border-radius: 50%; font: inherit; font-size: 0.95rem; line-height: 1; color: var(--tx-1); background: color-mix(in srgb, var(--isl) 85%, transparent); cursor: pointer; }
    .sg-zoom button:hover { border-color: var(--acc); }
    .sg-legend i { display: inline-block; width: 16px; margin-right: 5px; vertical-align: middle; border-top: 2px solid; }
    .sg-legend .sg-cat-causal i { border-color: var(--sg-causal); }
    .sg-legend .sg-cat-contrast i { border-color: var(--sg-contrast); border-top-style: dashed; }
    .sg-legend .sg-cat-similar i { border-color: var(--sg-similar); }
    .sg-legend .sg-cat-usage i { border-color: var(--sg-usage); }
    .sg-legend .sg-cat-cover i { border-color: rgb(var(--ov) / 0.35); border-top-width: 1px; }
    .sg-info { min-height: 3.2em; box-sizing: content-box; margin: 0; padding: 8px 12px; border-radius: var(--radius-box); background: rgb(var(--ov) / 0.06); font-size: 0.8rem; line-height: 1.6; color: var(--tx-2); word-break: keep-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
    .sg-info b { color: var(--tx-hi); }
    .sg-info q { display: inline; margin-left: 4px; margin-top: 3px; color: var(--tx-3); quotes: none; }
    .sg-tag { display: inline-block; margin: 0 4px; padding: 0 7px; border-radius: 999px; font-size: 0.68rem; background: rgb(var(--ov) / 0.1); color: var(--tx-2); }
    .sg-go { font: inherit; font-size: 0.74rem; font-weight: 600; margin-left: 6px; padding: 2px 10px; border: 0; border-radius: 999px; color: var(--inv); background: var(--tx-1); cursor: pointer; }
    @keyframes sgIn { from { opacity: 0; transform: scale(0.85); } }
    @keyframes sgFade { from { opacity: 0; } }
    @keyframes sgPulse { 0%, 100% { transform: scale(1); opacity: 0.16; } 50% { transform: scale(1.35); opacity: 0.06; } }
    @media (prefers-reduced-motion: reduce) { .sg-node, .sg-edge, .sg-halo { animation: none; } }
    /* 블로그 글 밖의 질문에는 답 아래에 웹 검색으로 이어지는 링크를 붙인다 */
    .search-answer-web { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 0.74rem; color: var(--tx-5); }
    .search-answer-web a { padding: 2px 10px; color: var(--tx-2); border: 1px solid var(--line-1); border-radius: 999px; }
    .search-answer-web a:hover { color: var(--tx-hi); border-color: var(--tx-5); }
    .search-answer.is-pending::after {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-left: 4px;
      border-radius: 50%;
      background: var(--acc);
      animation: answerPulse 1s ease-in-out infinite;
    }
    /* 검색 입력은 독 위 아일랜드의 맨 아래에 나타나고(독은 그대로), 결과는 그 위로 열린다 */
    .search-form { display: none; }
    body.search-open .search-form { display: flex; }
    body.search-open .explore-pop, body.search-open .kg-tray { display: none !important; }
    .search-form {
      position: relative;
      flex: none;
      margin: 14px;
      min-width: 0;
      align-items: center;
      gap: 6px;
      height: 36px;
      padding: 0 5px 0 16px;
      isolation: isolate;
      border: 1px solid rgb(var(--ov) / 0.16);
      border-radius: 999px;
    }
    .search-form::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg); }
    /* 에이전트가 찾는 느낌의 움직이는 빛: 서로 반대로 도는 두 겹의 빛이 둘레를 돌고, 숨 쉬듯 번졌다 조여든다(검색하는 동안은 훨씬 빠르고 밝게) */
    @property --glow-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
    @property --glow-angle2 { syntax: '<angle>'; inherits: false; initial-value: 180deg; }
    .search-form::before, .search-island::before {
      content: '';
      position: absolute;
      inset: -4px;
      z-index: -2;
      border-radius: inherit;
      background:
        conic-gradient(from var(--glow-angle), transparent 0deg, #60a5fa 50deg, #a78bfa 110deg, transparent 170deg, transparent 200deg, #f472b6 250deg, #38bdf8 310deg, transparent 360deg),
        conic-gradient(from var(--glow-angle2), #38bdf8, #f472b6, #a78bfa, #60a5fa, #38bdf8);
      filter: blur(14px);
      opacity: 0.6;
      animation: glowSpin 3.6s linear infinite, glowSpinBack 6s linear infinite, glowBreath 2.4s ease-in-out infinite;
      transition: opacity 0.4s ease;
    }
    .search-island::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: inherit;
      background: var(--island-bg);
    }
    .search-form.is-submitted::before { opacity: 0; animation: none; }
    .search-island.is-searching::before { opacity: 1; animation-duration: 1.1s, 2.2s, 0.9s; }
    @keyframes glowSpin { to { --glow-angle: 360deg; } }
    @keyframes glowSpinBack { to { --glow-angle2: -180deg; } }
    @keyframes glowBreath { 0%, 100% { inset: -2px; filter: blur(12px); } 50% { inset: -9px; filter: blur(20px); } }
    @media (prefers-reduced-motion: reduce) { .search-form::before, .search-island::before { animation: none; } }
    /* 입력 글씨는 독 제목(0.9rem, 600)과 같은 크기로 보인다. iOS는 입력칸 글씨가 16px 미만이면 포커스 때 화면을 확대하므로,
       실제 글씨는 16px로 두고 0.9배로 줄여 그린다(입력 가능한 폭은 줄인 만큼 늘려 맞춘다) */
    .search-form { container-type: inline-size; --avail: calc(100cqw - 30px); }
    .search-form input {
      flex: none;
      width: calc(var(--avail) / 0.9);
      margin-right: calc(var(--avail) / -9);
      transform: scale(0.9);
      transform-origin: left center;
      height: 34px;
      border: none;
      outline: none;
      background: transparent;
      font-family: inherit;
      font-size: 16px;
      font-weight: 600;
      color: var(--tx-hi);
    }
    .search-form input::placeholder { font-weight: 400; }
    .search-form input::placeholder {
      color: var(--tx-5);
    }
    .search-form input::-webkit-search-cancel-button {
      display: none;
    }
    /* 엔터 버튼도 다른 버튼과 같은 상태 구분: 누르기 전(음영 테두리, 입력이 없으면 흐림) → 입력 있음(또렷) → 마우스 올림 → 눌렀을 때·검색 중(채워진 반전색) */
    .search-submit {
      flex: none;
      width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--dock-border);
      border-radius: 50%;
      background: rgb(var(--ov) / 0.06);
      color: var(--dock-text);
      cursor: pointer;
      opacity: 0.55;
      transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    }
    .search-submit.is-ready { opacity: 1; }
    .search-submit:hover { background: rgb(var(--ov) / 0.14); color: var(--tx-hi); opacity: 1; }
    .search-submit:active, .search-submit.is-on { background: var(--tx-hi); color: var(--isl); border-color: transparent; opacity: 1; }
    .search-submit:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    @keyframes islandOpen {
      from { opacity: 0; transform: translateX(-50%) scale(0.55, 0.12); border-radius: 999px; }
      to { opacity: 1; transform: translateX(-50%) scale(1, 1); border-radius: var(--radius-panel); }
    }
    @keyframes answerPulse { 50% { opacity: 0.2; } }

    /* 홈 지식 지도: 도메인·서브도메인·키워드·글을 노드로, 관계를 엣지로 그린 그래프 DB 시각화(캔버스). 노드를 누르면 관계를 따라가는 길이 밝아진다 */
    .kg-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 2px 0; overflow-x: auto; scrollbar-width: none; }
    .kg-chips::-webkit-scrollbar { display: none; }
    /* 노드 탭은 아티클 독의 계층 탭(.dock-chip)과 같은 텍스트 탭이고, 고른 탭은 그 노드 색 알약 배경이다 */
    .dock-graph { display: none; align-items: center; }
    body[data-page-mode="graph"] .dock-graph { display: flex; }
    .dock-graph[hidden] { display: none !important; }
    #kgPathBtn { display: none !important; }  /* 길 찾기는 쓰지 않는다(2026-11-07 사용자 지시) */
    .dock-graph .dock-chip.is-back { display: none; }
    .dock-graph.has-path .dock-chip.is-back { display: inline-flex; }
    .dock-pick { flex: none; display: inline-flex; align-items: center; }
    .dock-pick.is-open > .dock-chip:first-child { background: rgb(var(--ov) / 0.11); color: var(--tx-hi); }
    /* 도착 노드 고르기에서 › 로 들어간 아래 계층: 독 바로 위에 떠 있는 한 줄 */
    .kg-tray { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: calc(min(var(--max-width), 100vw) - 2 * var(--gutter)); display: flex; align-items: center; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border: 1px solid var(--dock-border); border-radius: 999px; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.35); }
    .kg-tray::-webkit-scrollbar { display: none; }
    .kg-tray[hidden] { display: none; }
    .dock-chip.dock-drill { width: 26px; padding: 0; justify-content: center; margin-left: -10px; color: var(--tx-5); }
    .dock-chip.dock-drill:hover { color: var(--tx-hi); }
    .dock-chip:disabled { opacity: 0.35; cursor: default; }
    #dockGraphReset { display: none; }
    body[data-page-mode="graph"] #dockGraphReset { display: inline-flex; }
    /* 고른 경로(상위 노드 포함)는 도메인 색 하나로 묶어 하이라이트한다: [● 도메인 / 서브도메인] */
    .kg-chips .dock-trail { background: var(--c); }
    .kg-chips .dock-trail .dock-chip { color: rgb(var(--ov) / 0.82); }
    .kg-chips .dock-trail .dock-chip:last-child, .kg-chips .dock-trail .dock-chip:hover { color: #ffffff; }
    .kg-chips .dock-trail .dock-chip:last-child { font-weight: 700; }
    .kg-chips .dock-trail small, .kg-chips .dock-slash { color: rgb(var(--ov) / 0.6); }
    .kg-chips.slide-forward { animation: scopeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .kg-chips.slide-back { animation: scopeBack 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .dock-graph .kg-chips { flex: 1; min-width: 0; gap: 2px; }
    /* 지식 지도 페이지: 위 띠와 하단 독 사이 본문 전체를 쓴다. 노드를 누르면 추적 결과가 오른쪽(넓은 화면)·아래(좁은 화면)에 분할되어 열린다 */
    body[data-page-mode="graph"] { overflow: hidden; }
    body[data-page-mode="graph"] .site-footer { display: none !important; }
    .graph-view { position: fixed; top: var(--masthead-h); bottom: var(--dock-h); left: 0; right: 0; width: auto; z-index: 1; background: var(--bg-card); }
    .kg-split { display: flex; height: 100%; }
    .kg-main { position: relative; flex: 1; min-width: 0; min-height: 0; }
    .kg-wrap { position: absolute; inset: 0; overflow: hidden; background: var(--kg-bg); }
    .kg-side { display: none; }  /* 추적 결과는 하단 독 서랍(#dockDrawer)으로 옮겨 열린다 */
    #dockDrawer .kg-side { --border-light: var(--line-1); --text-muted: var(--tx-4); display: block; min-height: 0; max-height: min(62dvh, 520px); overflow-y: auto; margin: 0 0 max(14px, env(safe-area-inset-bottom, 14px)); padding: 4px 0 6px; color: var(--tx-1); }
    #dockDrawer .kg-side[hidden] { display: none; }
    .dock-kgtabs { display: none; }
    body[data-page-mode="graph"] .dock-kgtabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .kg-tab[hidden] { display: none; }
    .kg-tab { flex: none; }

    .kg-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
    .kg-wrap.is-drag canvas { cursor: grabbing; }
    .kg-wrap.is-node canvas { cursor: pointer; }
    /* 지도 도구 버튼의 오른쪽 여백은 위 띠·하단 독의 오른쪽 아이콘(테마 전환·검색)과 같은 선에 맞춘다: 내용 폭 오른쪽 끝에서 --gutter 안쪽 */
    .kg-zoom { position: absolute; right: calc((100vw - var(--max-width)) / 2 + var(--gutter)); top: 12px; display: flex; flex-direction: column; gap: 6px; }
    /* 지도 도구 버튼(확대·축소·전체 보기·길 찾기, 원형): 하단 독 아이콘 버튼과 같은 36px, 아이콘은 SVG 18px */
    .kg-zoom button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--tx-2); background: var(--bg-alt); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; }
    .kg-zoom button:hover:not(:disabled) { background: var(--line-1); }
    .kg-zoom button:disabled { opacity: 0.35; cursor: default; }
    .kg-zoom button.is-on { color: var(--tx-hi); background: var(--line-2); border-color: var(--tx-5); }
    /* 길 찾기: 도착 노드 고르기 안내는 지도 아래 가운데에, 고르면 2초 동안 완료 알림을 띄웠다 거둔다 */
    /* 안내 알약(.kg-pick)과 완료 알림(.kg-toast)은 같은 디자인: 진한 바탕의 알약 */
    .kg-pick, .kg-toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 8px 18px; font-size: 0.82rem; font-weight: 600; color: var(--inv); background: var(--tx-hi); border: 0; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35); }
    .kg-pick { padding-right: 8px; }
    .kg-pick span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .kg-pick button { flex: none; padding: 4px 12px; font: inherit; font-weight: 600; color: var(--tx-hi); background: var(--inv); border: 0; border-radius: 999px; cursor: pointer; }
    .kg-toast { animation: kgToast 2s ease both; pointer-events: none; }
    .kg-pick.is-muted { visibility: hidden; }
    .kg-split.has-tray .kg-pick, .kg-split.has-tray .kg-toast { bottom: 66px; }
    @media (max-width: 640px) { .kg-pick, .kg-toast { font-size: 0.76rem; } }
    .kg-pick[hidden], .kg-toast[hidden] { display: none; }
    @keyframes kgToast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
    .kg-legend { position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.7rem; color: var(--tx-4); pointer-events: none; }
    .kg-legend i { display: inline-block; margin-right: 6px; vertical-align: middle; background: var(--tx-4); }
    .kg-lv0 { width: 12px; height: 12px; border-radius: 50%; }
    .kg-lv1 { width: 9px; height: 9px; border-radius: 50%; }
    .kg-lv2 { width: 5px; height: 5px; border-radius: 50%; }
    .kg-lv3 { width: 7px; height: 7px; border-radius: 2px; }
    .kg-sub { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
    .kg-sub::-webkit-scrollbar { display: none; }
    .kg-sub[hidden] { display: none; }
    .kg-subtab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--tx-3); background: transparent; border: 1px solid var(--line-1); border-radius: 999px; cursor: pointer; }
    .kg-subtab i { width: 16px; height: 0; border-top: 2px solid var(--c); }
    .kg-subtab i.kg-cat-dashed { border-top-style: dashed; }
    .kg-subtab i.kg-cat-dotted { border-top-style: dotted; }
    .kg-subtab span { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--text-muted); }
    .kg-subtab:hover { border-color: var(--c); }
    .kg-subtab.is-on { color: #0f172a; background: var(--c); border-color: var(--c); }
    .kg-subtab.is-on span { color: #0f172a; opacity: 0.7; }
    .kg-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
    .kg-note-h { margin: 14px 0 4px; padding: 7px 12px; border-radius: 10px; background: rgb(var(--ov) / 0.06); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em; color: var(--tx-2); }  /* 단락 머리는 모두 음영 라운딩으로 통일(2026-11-08 사용자 지시) */
    .kg-note-h:first-child { margin-top: 2px; }
    .kg-note-h + li { border-top: 0; }
    .kg-note { padding: 12px 4px; border-top: 1px solid var(--border-light); font-size: 0.95rem; line-height: 1.65; color: var(--tx-1); word-break: keep-all; overflow-wrap: anywhere; }
    .kg-rel { display: flex; flex-direction: column; gap: 6px; padding: 12px 4px; border-top: 1px solid var(--border-light); }
    .kg-rel-pair { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--tx-2); }
    .kg-rel-tag { flex: none; font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgb(var(--ov) / 0.1); color: var(--tx-hi); }
    .kg-rel blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--border-light); font-size: 0.88rem; line-height: 1.6; color: var(--tx-3); overflow-wrap: anywhere; }
    .kg-rel a { font-size: 0.8rem; color: var(--tx-4); text-decoration: underline; text-underline-offset: 3px; }
    .kg-rel a:hover { color: var(--tx-hi); }
    .kg-goto { width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
    .kg-goto:hover { color: var(--tx-hi); }
    .kg-insight { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px; border-top: 1px solid var(--border-light); }
    .kg-results li:first-child { border-top: 0; }
    .kg-ask { display: block; width: 100%; padding: 0; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.55; letter-spacing: -0.01em; text-align: left; color: var(--text-main); background: none; border: 0; cursor: pointer; }
    .kg-ask:hover { color: var(--primary); }
    .kg-ask::after { content: ' 🔍'; font-size: 0.8rem; opacity: 0.55; }
    .kg-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 2px; font-size: 0.74rem; color: var(--text-muted); }
    .kg-evidence { flex: 1 1 auto; min-width: 0; padding: 0; font: inherit; line-height: 1.55; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .kg-evidence:hover, .kg-evidence[aria-expanded="true"] { color: var(--tx-2); }
    .kg-ev-row { flex: 1 1 100%; margin: 0; line-height: 1.6; color: var(--text-muted); }
    .kg-ev-row b { margin-right: 8px; font-weight: 600; color: var(--tx-2); }
    .kg-evidence small { color: var(--tx-5); }
    .kg-tag { display: inline-block; margin-right: 6px; padding: 0 7px; font-size: 0.68rem; font-weight: 600; font-style: normal; color: var(--tx-3); border: 1px solid var(--line-2); border-radius: 999px; }
    .kg-sums { display: inline-flex; gap: 6px; flex: none; }
    .kg-sum { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 6px; font: inherit; font-size: 0.74rem; color: var(--tx-3); background: transparent; border: 1px solid var(--line-1); border-radius: 999px; cursor: pointer; }
    .kg-sum b { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 600; }
    .kg-sum:hover:not(:disabled), .kg-sum[aria-expanded="true"] { color: var(--tx-hi); border-color: var(--tx-5); background: rgb(var(--ov) / 0.05); }
    .kg-sum:disabled { opacity: 0.35; cursor: default; }
    .kg-stack { display: inline-flex; }
    .kg-stack img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-card); background: var(--code-bg); }
    .kg-stack img + img { margin-left: -8px; }
    .kg-detail { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 2px 0; font-size: 0.78rem; }
    .kg-detail[hidden] { display: none; }
    .kg-ref { display: inline-flex; align-items: baseline; gap: 6px; color: var(--tx-3); }
    .kg-ref small { font-size: 0.68rem; color: var(--tx-5); }
    .kg-ref:hover { color: var(--primary); }
    .kg-empty { padding: 14px 4px; font-size: 0.86rem; color: var(--text-muted); }
    @media (max-width: 700px) { .kg-legend { display: none; } }

    /* 광고: 설정이 있을 때만 그려진다. 높이를 미리 잡아 화면이 밀리지 않게 하고 '광고'를 표시한다 */
    .ad-slot { position: relative; min-height: 250px; padding: 22px 0 0; text-align: center; }
    /* 게시글 광고 자리(2026-11-04 사용자 승인안: 글 끝 + 오른쪽 열만): 슬롯 id를 넣기 전에는 마크업 자체가 없다. 오른쪽 열은 1100px 이상에서만 보인다 */
    .ad-slot-post_end { margin-top: 2.5rem; }
    .ad-slot-post_side { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
    @media (min-width: 1100px) { .ad-slot-post_side { display: block; min-height: 250px; } }
    .ad-label { position: absolute; top: 0; left: 0; font-size: 0.68rem; letter-spacing: 0.04em; color: var(--text-muted); }
    .ad-slot .adsbygoogle { min-height: 220px; }

    /* 주제 칩: 홈 글 목록과 아티클 그리드가 같이 쓴다. '전체'가 아닌 칩을 고르면 그 분류의 표지 색으로 강조된다 */
    .topic-chips {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 2px;
      margin-bottom: 6px;
    }
    .topic-chips::-webkit-scrollbar { display: none; }
    .topic-chip {
      flex-shrink: 0;
      border: 1px solid transparent;
      background: transparent;
      color: var(--tx-3);
      font-family: inherit;
      font-size: 0.86rem;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 999px;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }
    /* 필터(대분류·분류 칩 한 줄 + 글 수)는 본문에 그대로 둔다. 정렬·초기화 아이콘은 맨 위로 버튼과 같은 오른쪽 세로선·같은 36px 원형으로, 그 바로 위에 세로로 쌓여 떠 있다(2026-11-06 사용자 지시) */
    .list-filter { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
    .list-filter-scroll { position: relative; flex: 1 1 0; min-width: 0; }
    .list-filter .topic-chips { margin-bottom: 0; }
    .list-tools {
      position: fixed; z-index: 9440; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;  /* 오른쪽 끝을 맨 위로·검색 버튼과 맞춘다 */
      right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
      bottom: var(--panel-bottom);  /* 평소에는 맨 위로 버튼의 자리(검색 버튼 바로 위)에 놓인다 */
      transition: bottom 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body.top-on .list-tools { bottom: calc(var(--panel-bottom) + 44px); }  /* 맨 위로 버튼이 생기면 그 위로 */
    body.bars-hidden .list-tools { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    body.bars-hidden.top-on .list-tools { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
    body.search-open .list-tools { display: none; }
    body:not([data-page-mode="articles"]) .list-tools { display: none; }
    /* 주제(대분류·분류) 필터는 일단 메뉴에서 뺐다(2026-11-06 사용자 지시): 본문 칩 줄은 숨기고, 태그·월 임시 필터(?filter=tag:·month:)가 걸렸을 때만 그 임시 칩 하나가 보인다 */
    .articles-page .list-filter { display: none; }
    .articles-page .list-filter.has-temp { display: flex; }
    /* 찾는 기준(2026-11-24 사용자 지시): 분류·날짜·컬렉션은 하단 독의 탭이고 누르면 독 위로 패널이 펼쳐진다. 목록 위에는 걸린 필터 칩과 편수만 있는 얇은 한 줄이 남는다. 칸은 LLM 활용 현황 트리맵과 같은 톤 */
    .dock-explore { display: none; }
    body[data-page-mode="articles"] .dock-explore { display: flex; flex: 1; min-width: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .dock-explore::-webkit-scrollbar { display: none; }
    .dock-explore .dock-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; }
    .explore { margin: 0 0 16px; }
    .explore-now { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; }
    .explore-chip { --c: var(--primary); display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, rgb(var(--ov) / 0.1)); border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, var(--bg)); color: var(--tx-hi); font: inherit; font-size: 0.76rem; font-weight: 600; cursor: pointer; }
    .explore-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
    .explore-chip:focus-visible { outline: 2px solid var(--tx-hi); outline-offset: 2px; }
    .explore-hint { font-size: 0.76rem; color: var(--tx-4); }
    .explore-count { margin-left: auto; font-size: 0.76rem; color: var(--tx-3); white-space: nowrap; }
    .explore-count b { color: var(--tx-hi); font-variant-numeric: tabular-nums; }
    /* 캡슐은 보이는 내용의 크기에 맞추고 누른 탭 위에 붙인다(2026-11-24 사용자 지시: 작아도 되는 항목까지 넓은 캡슐에 맞춰 비대해지지 않게). 분류 720px · 날짜 540px · 컬렉션은 내용 폭, 좁은 화면은 독 폭 */
    /* 서랍(2026-11-24 사용자 지시): 하단 독을 누르면 탭 줄은 원래 색 그대로 두고 눌린 탭만 반전되며, 그 아래 서랍 영역만 반전색(다크 모드 = 흰색, 라이트 모드 = 검정)으로 위로 늘어난다. 내용은 모든 탭에서 같은 올라오는 애니메이션으로 열린다. 탭 줄은 위에 그대로 있고 내용은 그 아래에서 열린다(다른 탭은 숨기지 않는다) */
    :root:not([data-theme="light"]) .site-dock { --bg: #000000; }  /* 하단 독 캡슐의 어두운 바탕은 액정 베젤과 맞춘 순수 검정(2026-11-25 사용자 지시: 독·팝업 캡슐 한정) */
    .dock-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    #siteDock.is-open .dock-drawer { grid-template-rows: 1fr; }
    .dock-drawer-in { min-height: 0; overflow: hidden; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
    #siteDock { transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s, background-color 0.3s ease; }
    #siteDock.is-open .dock-drawer { background: var(--bg); --bg: #f8fafc; --tx-hi: #0b1220; --tx-1: #1a2030; --tx-2: #2c3547; --tx-3: #4a5568; --tx-4: #5f6b7d; --tx-5: #7b8698; --line-1: #d5dae3; --line-2: #c3cad6; --ov: 15 23 42; --primary: #2563eb; --dock-border: rgba(15, 23, 42, 0.16); --dock-text: #0f172a; color-scheme: light; }
    :root[data-theme="light"] #siteDock.is-open .dock-drawer { background: #000000; --bg: #000000; --tx-hi: #f8fafc; --tx-1: #e2e8f0; --tx-2: #cdd3dc; --tx-3: #aab3c0; --tx-4: #8b95a5; --tx-5: #64748b; --line-1: #2a303c; --line-2: #3a4252; --ov: 255 255 255; --primary: #60a5fa; --dock-border: rgba(255, 255, 255, 0.14); --dock-text: #f8fafc; color-scheme: dark; }
    @keyframes drawerIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    #dockDrawer .dock-drawer-in > :not([hidden]), #dockDrawer .explore-view:not([hidden]) { animation: drawerIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both; }
    #dockDrawer .explore-pop, #dockDrawer .aside-pop, #dockDrawer .series-pop, #dockDrawer .recent-pop, #dockDrawer .search-island { position: relative; left: auto; bottom: auto; z-index: auto; transform: none; width: auto; min-width: 0; max-width: none; max-height: min(62dvh, 520px); margin: 0 0 max(14px, env(safe-area-inset-bottom, 14px)); border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none !important; }
    #dockDrawer .search-island::before, #dockDrawer .search-island::after { display: none; }
    #dockDrawer .explore-pop-head { display: none; }  /* 닫기는 열린 탭을 다시 누르거나 Esc */
    #dockDrawer .explore-pop[data-view="day"] { max-width: 540px; margin-inline: auto; }
    #dockDrawer .explore-pop-body { padding: 4px 0 6px; }
    #dockDrawer { scrollbar-width: thin; scrollbar-color: transparent transparent; }  /* 서랍 안 스크롤바는 평소 숨기고 커서가 올라온 영역에서만 보인다(2026-11-25 사용자 지시) */
    #dockDrawer :hover { scrollbar-color: rgb(var(--ov) / 0.4) transparent; }
    body.dock-open .top-btn, body.dock-open .list-tools { visibility: hidden; }
    .search-results:not([hidden]) ~ .search-form { margin-top: 0; }  /* 결과가 열리면 결과와 입력칸 사이 간격은 결과 쪽 여백이 맡는다 */
    .search-island:not(.is-searching)::before, .search-island:not(.is-searching) .search-form::before { opacity: 0; animation: none; }  /* 반전색 캡슐 바탕이 빛으로 물들어 이음새와 색이 달라 보이므로 빛은 검색하는 동안만 켠다 */
    .search-island { --sg-causal: #b45309; --sg-contrast: #e11d48; --sg-similar: #059669; --sg-usage: #7c3aed; --acc: #0369a1; --isl: var(--bg); }
    :root[data-theme="light"] .search-island { --sg-causal: #fbbf24; --sg-contrast: #fb7185; --sg-similar: #34d399; --sg-usage: #a78bfa; --acc: #7dd3fc; }
    .post-card .hero-recent-item { flex-direction: row; align-items: center; gap: 12px; color: var(--tx-1); }
    .post-card .hero-recent-thumbwrap { flex: none; width: 112px; }
    .post-card .hero-recent-thumb { border-color: rgb(var(--ov) / 0.12); }
    .post-card .hero-recent-text { flex: 1; }
    .post-card .hero-recent-title { text-shadow: none; color: var(--tx-hi); }
    .kg-card { padding: 8px 4px; list-style: none; }
    .post-card a { text-decoration: none; }
    .series-steps .series-card { margin: 0; }
    .series-steps .series-card + .series-card { margin-top: 14px; }
    .series-card .hero-recent-text[aria-current="true"] .hero-recent-title { color: var(--primary); }  /* 지금 읽는 편 */
    .dock-tab, .dock-btn { transition: opacity 0.15s ease, background 0.2s ease, color 0.2s ease; }
    .explore-pop { display: flex; flex-direction: column; color: var(--tx-1); }
    .explore-pop[hidden] { display: none; }
    body.explore-open .list-tools { display: none; }
    .explore-pop-head { position: absolute; top: -12px; right: -6px; z-index: 2; }  /* 소제목 없이 닫기 아이콘만 모서리에 걸쳐 띄운다 */
    .explore-pop-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--tx-hi) 14%, var(--bg)); color: var(--tx-hi); box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.45); cursor: pointer; }
    .explore-pop-close:hover { background: color-mix(in srgb, var(--tx-hi) 24%, var(--bg)); }
    .explore-pop-body { min-height: 0; overflow-y: auto; padding: 14px; border-radius: inherit; }
    .explore-view[hidden] { display: none; }
    /* 분류 트리맵(2026-11-25 사용자 지시): d3-hierarchy treemap으로 대분류 안에 분류를 놓는다. 칸 이름은 항상 보이고 건수가 바뀌면 칸이 부드럽게 다시 배치된다 */
    .explore-tree { position: relative; width: 100%; height: 240px; overflow: clip; overflow-clip-margin: 4px; transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1); }  /* 높이는 JS가 줄 수에 맞추고, 숨은 칸이 옛 자리에 남아 팝업에 스크롤바를 만들지 않게 밖은 자른다 */
    .explore-tree[hidden], .explore-cats[hidden] { display: none; }
    .xt-tile, .xt-group, .xt-back { position: absolute; box-sizing: border-box; margin: 0; font: inherit; color: var(--tx-hi); }
    .xt-tile, .xt-group { --mk: color-mix(in srgb, var(--tc) 70%, var(--tx-hi)); transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.2s ease; }
    .xt-tile { display: flex; align-items: center; padding: 0 10px; overflow: hidden; text-align: left; cursor: pointer; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tc) 30%, rgb(var(--ov) / 0.08)); background: linear-gradient(140deg, color-mix(in srgb, var(--tc) 30%, var(--bg)) 0%, color-mix(in srgb, var(--tc) 10%, var(--bg)) 100%); }
    .xt-name { white-space: nowrap; font-size: 12.5px; font-weight: 600; line-height: 1.2; }  /* 이름은 줄바꿈·생략 없이 한 줄(칸 폭은 JS가 이름 폭을 재서 보장) */
    .xt-tile:hover, .xt-tile:focus-visible { border-color: var(--mk); }
    .xt-tile:focus-visible, .xt-head:focus-visible, .xt-back:focus-visible { outline: 2px solid var(--mk, var(--tx-hi)); outline-offset: 1px; }
    .xt-tile.is-sel { border-color: var(--mk); box-shadow: 0 0 0 2px var(--mk) inset; }
    .xt-tile.is-dim, .xt-group.is-dim { opacity: 0.3; }
    .xt-tile.is-super .xt-name { font-size: 14px; }
    .xt-group { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--tc) 22%, rgb(var(--ov) / 0.08)); background: color-mix(in srgb, var(--tc) 6%, transparent); }
    .xt-head { position: absolute; left: 0; top: 0; right: 0; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; white-space: nowrap; border: 0; background: none; color: var(--tx-3); font: inherit; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; cursor: pointer; }
    .xt-head::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
    .xt-head:hover { color: var(--tx-hi); }
    .xt-back { left: 0; top: 0; height: 26px; padding: 0 12px; border: 1px solid rgb(var(--ov) / 0.2); border-radius: 999px; background: none; font-size: 0.72rem; cursor: pointer; }
    .xt-back:hover { background: rgb(var(--ov) / 0.1); }
    .xt-tile.is-off, .xt-group.is-off, .xt-back.is-off { opacity: 0; pointer-events: none; }
    @media (prefers-reduced-motion: reduce) { .explore-tree, .xt-tile, .xt-group { transition: none; } }
    /* 날짜 잔디: 둥근 칸, 선택한 하루·달은 테두리 */
    .explore-pop .dash-day { border-radius: 5px; background: rgb(var(--ov) / 0.06); }
    .explore-pop .dash-day.lv1 { background: color-mix(in srgb, var(--primary) 38%, rgb(var(--ov) / 0.04)); }
    .explore-pop .dash-day.lv2 { background: color-mix(in srgb, var(--primary) 68%, rgb(var(--ov) / 0.04)); }
    .explore-pop .dash-day.lv3 { background: var(--primary); }
    .explore-pop a.dash-day { cursor: pointer; }
    .explore-pop .dash-day.is-sel { outline: 2px solid var(--tx-hi); outline-offset: 1px; }
    .explore-pop .dash-month { justify-self: start; padding: 2px 6px; margin: -2px -6px; border: 0; border-radius: 6px; background: transparent; color: var(--tx-3); font: inherit; font-size: 0.68rem; line-height: 1; white-space: nowrap; cursor: pointer; }
    .explore-pop .dash-month:hover, .explore-pop .dash-month.is-sel { color: var(--tx-hi); background: rgb(var(--ov) / 0.12); }
    .explore-pop .dash-month.is-dim { opacity: 0.35; }
    .explore-cats { display: flex; flex-wrap: wrap; gap: 6px; }
    .explore-cat { --mk: color-mix(in srgb, var(--tc) 70%, var(--tx-hi)); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--tc) 28%, rgb(var(--ov) / 0.08)); border-radius: 999px; background: linear-gradient(140deg, color-mix(in srgb, var(--tc) 26%, var(--bg)), color-mix(in srgb, var(--tc) 8%, var(--bg))); color: var(--tx-hi); font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: opacity 0.18s ease, border-color 0.18s ease; }
    .explore-cat i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
    .explore-cat b { font-variant-numeric: tabular-nums; color: var(--tx-3); }
    .explore-cat.is-sel { border-color: var(--mk); box-shadow: 0 0 0 1px var(--mk) inset; }
    .explore-cat.is-dim { opacity: 0.25; }
    /* 컬렉션(예전 하단 독의 Trends·Projects… 계층 줄): 패널 안에서는 줄바꿈해 모두 보인다 */
    .explore-pop .dock-scope { display: block; flex: none; overflow: visible; }
    .explore-pop .dock-scope-row { flex-wrap: wrap; gap: 6px; overflow: visible; padding: 2px 0; }
    .explore-pop .dock-chip:not(.is-back) { border: 1px solid rgb(var(--ov) / 0.14); background: rgb(var(--ov) / 0.04); color: var(--tx-2); }
    .explore-pop .dock-chip.is-on, .explore-pop .dock-trail .dock-chip { background: none; border-color: transparent; }
    .explore-pop .dock-trail { border: 1px solid rgb(var(--ov) / 0.2); }
    @media (max-width: 760px) { .explore-count { margin-left: 0; } }
    .list-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--dock-text); background: var(--bg); border: 1px solid var(--dock-border); border-radius: 50%; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
    .list-icon:hover { color: var(--tx-hi); background: rgb(var(--ov) / 0.14); }
    .list-icon.is-on { color: var(--bg); background: var(--tx-hi); border-color: var(--tx-hi); }
    .list-icon svg .sort-arrow { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: 7px 12px; }
    #sortDate[data-dir="asc"] .sort-arrow { transform: scaleY(-1); }
    .list-icon[hidden], .list-empty[hidden] { display: none; }
    .list-empty { margin: 40px 0; text-align: center; color: var(--tx-4); font-size: 0.9rem; }
    /* 대분류·분류를 한 줄에: 하단 독 계층 줄과 같은 표현(‹ 원형 버튼 + 고른 대분류 음영 알약 + 슬래시). 대분류를 고르면 줄이 옆으로 밀린다 */
    .topic-chips.slide-forward { animation: scopeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .topic-chips.slide-back { animation: scopeBack 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .topic-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: var(--dock-text); background: rgb(var(--ov) / 0.06); border: 1px solid var(--dock-border); border-radius: 50%; cursor: pointer; }
    .topic-back:hover { background: rgb(var(--ov) / 0.12); }
    .topic-trail { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 0.86rem; font-weight: 700; color: var(--tx-hi); background: rgb(var(--ov) / 0.11); border-radius: 999px; white-space: nowrap; }
    .topic-back[hidden], .topic-trail[hidden] { display: none; }
    .topic-chip.is-super { border-color: var(--dock-border); }
    @media (prefers-reduced-motion: reduce) { .topic-chips.slide-forward, .topic-chips.slide-back { animation: none; } }
    .topic-chip[hidden], .dock-chip[hidden] { display: none; }  /* 0건인 분류·계층은 노출하지 않는다 */
    .topic-chip span {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--text-muted);
      margin-left: 2px;
    }
    .topic-chip:hover { background: var(--bg-alt); }
    .topic-chip.is-active { background: var(--chip, var(--tx-1)); color: #ffffff; }
    .topic-chip.is-active:not([style]) { color: var(--inv); }
    .topic-chip.is-active span { color: inherit; opacity: 0.8; }

    /* 아티클 그리드: 폭에 따라 한 줄에 놓이는 개수가 달라진다(넓으면 5~6개, 좁은 휴대폰은 2개) */
    .article-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 28px 20px;
      margin-top: 18px;
    }
    .article-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: inherit; }
    .article-tile-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
    .article-tile[hidden] { display: none; }
    .article-tile-thumb {
      display: block;
      aspect-ratio: 16 / 10;
      border-radius: var(--radius-box);
      overflow: hidden;
      background: var(--code-bg);
      border: 1px solid var(--bar-line);
      transition: border-color 0.15s ease;
    }
    .article-tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .article-tile:hover .article-tile-thumb { border-color: rgb(var(--ov) / 0.3); }
    .article-tile-title {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-size: 0.92rem;
      font-weight: 600;
      line-height: 1.45;
      color: var(--text-main);
    }
    .article-tile:hover .article-tile-title { color: var(--primary); }
    .article-tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 0.74rem; }
    .article-tile-cat { font-weight: 700; color: var(--cat, var(--text-muted)); }
    .article-tile-date { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); white-space: nowrap; }
    .article-tile-date::before { content: ''; display: inline-block; width: 3px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 50%; background: currentColor; opacity: 0.6; }
    /* 쪽 이동: 글이 많아져도 스크롤이 끝없이 길어지지 않게 나눈다 */
    .pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
    .pager[hidden] { display: none; }
    .pager button {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      font: inherit;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--tx-3);
      background: var(--bg-alt);
      border: 1px solid var(--border);
      border-radius: 999px;
      cursor: pointer;
    }
    .pager button:hover:not(:disabled) { background: var(--border); color: var(--text-main); }
    .pager button[aria-current="page"] { color: var(--inv); background: var(--tx-1); border-color: var(--tx-1); cursor: default; }
    .pager button:disabled { opacity: 0.35; cursor: default; }
    .article-tile-desc { display: none; }
    /* 2단 기준 폭(1100px)보다 좁아지면 한 줄에 글 하나씩: 왼쪽 썸네일, 오른쪽은 위에서 아래로 위계를 둔다.
       ① 분류(분류 색)·날짜를 작은 머리글로, ② 제목을 가장 크고 밝게, ③ 상세설명은 작고 흐리게. 글 사이는 가는 선으로 나누고,
       글씨 묶음은 썸네일 높이의 가운데에 모은다. 제목과 설명을 합쳐 3줄로 맞춘다 */
    @media (max-width: 1099px) {
      .article-grid { grid-template-columns: 1fr; gap: 0; }
      .article-tile {
        display: grid;
        grid-template-columns: clamp(180px, 26vw, 240px) minmax(0, 1fr);
        column-gap: 18px;
        padding: 18px 0;
        border-bottom: 1px solid var(--border-light);
      }
      .article-tile:first-child { padding-top: 6px; }
      .article-tile-text { gap: 6px; min-height: 0; overflow: hidden; justify-content: center; }
      .article-tile-meta { order: -1; }
      .article-tile-title { -webkit-line-clamp: 2; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
      .article-tile-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem;
        line-height: 1.55;
        color: var(--tx-4);
      }
    }
    @media (max-width: 640px) {
      .article-tile { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; }
      .article-tile-thumb { aspect-ratio: 1 / 1; }
      .article-tile-title { font-size: 0.92rem; }
      .article-tile-desc { font-size: 0.76rem; line-height: 1.5; }
      .article-tile-meta { font-size: 0.7rem; }
    }

    /* 게시글 하단: 출처 및 참고자료 */
    .post-references,
    .post-articlemap {
      margin-top: 3rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--tx-1);
    }
    .post-references h2,
    .post-articlemap h2 {
      font-size: 1.1rem !important;
      margin: 0 0 0.75rem 0 !important;
    }
    .reference-list {
      margin: 0;
      padding-left: 1.4rem;
      font-size: 0.9rem;
      line-height: 1.55;
    }
    .reference-list li {
      margin: 0.55rem 0;
    }
    .reference-list a {
      font-weight: 600;
      color: #2563eb;
      text-decoration: none;
      word-break: break-word;
    }
    .reference-list a:hover {
      text-decoration: underline;
    }
    .reference-meta,
    .reference-note {
      display: block;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .reference-meta {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.72rem;
    }

    /* 소개 페이지 하단 '블로그 현황' */

    /* 하단: 최근 3개월 작성·방문 기록(작은 잔디) */

    /* 하단: 접이식 관계 맵 */

    .site-view {
      animation: viewFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
      width: 100%;
    }
    @keyframes viewFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .cover-dark-blur-overlay {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }

    /* ========================================================
       [풀스크린 책 표지 히어로 (자연스러운 문서 흐름 기반 스크롤)]
       ======================================================== */
    /* 표지는 첫 화면에 머무는 뒤 배경이고, 본문이 브라우저의 기본 스크롤로 그 위를 커튼처럼 덮고 올라온다(스크롤을 가로채지 않으므로 끌어당기는 느낌·건너뜀이 없다) */
    .article-cover-hero {
      position: sticky;
      top: 0;
      z-index: 0;
      width: 100%;
      color: #ffffff;
      background: #0f172a;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }

    .hero-cover-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }
    .hero-cover-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: blur(10px) brightness(0.5);
      transform: scale(1.08);
      display: block;
    }
    .cover-dark-blur-overlay {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }

    .hero-cover-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      padding: 2.5rem 2rem;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      will-change: opacity, transform;
      transition: opacity 0.15s ease-out;
    }
    .hero-cover-title {
      font-size: clamp(2rem, 5.5vw, 3.25rem);
      font-weight: 800;
      line-height: 1.35;
      letter-spacing: -0.03em;
      white-space: normal;
      word-break: keep-all;
      text-align: left;
      color: #ffffff;
      text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
      margin: 0;
      padding: 0;
    }
    .hero-cover-description {
      font-size: clamp(1rem, 2.2vw, 1.25rem);
      font-weight: 400;
      line-height: 1.65;
      letter-spacing: -0.015em;
      color: rgb(var(--ov) / 0.82);
      text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
      word-break: keep-all;
      text-align: left;
      margin: 0.85rem 0 0 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* 제목 위: 발행일 · 카테고리 */
    .hero-meta-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin: 0 0 1.1rem;
      font-size: 0.88rem;
      color: rgb(var(--ov) / 0.78);
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }
    .hero-meta-dot {
      width: 3px;
      height: 3px;
      border-radius: 50%;
      background: rgb(var(--ov) / 0.5);
    }
    /* 분류 이름표는 어디서나 그 분류의 표지 색(--cat, category_css가 data-cat으로 부여)으로 포인트를 준다 */
    .hero-meta-category {
      padding: 0.2rem 0.65rem;
      border-radius: 999px;
      background: color-mix(in srgb, var(--cat, #60a5fa) 26%, transparent);
      border: 1px solid color-mix(in srgb, var(--cat, #60a5fa) 55%, transparent);
      color: var(--cat, #dbeafe);
      font-weight: 600;
      font-size: 0.8rem;
      text-shadow: none;
    }
    .hero-recent-cat, .search-result-cat { font-weight: 700; color: var(--cat, inherit); }
    /* 카테고리 뒤: 링크 복사 아이콘 */
    .hero-copy-btn, .hero-graph-btn {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgb(var(--ov) / 0.08);
      border: 1px solid rgb(var(--ov) / 0.22);
      color: var(--tx-hi);
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
    }
    .hero-copy-btn:hover, .hero-graph-btn:hover {
      background: rgb(var(--ov) / 0.18);
      border-color: rgb(var(--ov) / 0.4);
    }
    .hero-copy-btn .icon-done { display: none; }
    .hero-copy-btn.is-copied {
      background: rgba(34, 197, 94, 0.25);
      border-color: rgba(134, 239, 172, 0.6);
    }
    .hero-copy-btn.is-copied .icon-copy { display: none; }
    .hero-copy-btn.is-copied .icon-done { display: block; }

    /* ============================================================================
       [화면 틀] 위·아래는 검정 띠, 가운데는 차콜 한 장. 모서리·카드 테두리 없이 일직선으로 맞닿는다
       ============================================================================ */
    html, body {
      background-color: var(--bg-card) !important;
    }
    main.site-main {
      width: 100% !important;
      max-width: var(--max-width) !important;
      margin: var(--masthead-h) auto 0 !important;
      padding: 40px var(--gutter) 56px !important;
      background: transparent !important;
      border: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }
    .site-footer {
      border-top: none !important;
      color: var(--text-muted) !important;
      font-size: 0.78rem !important;
      padding: 6px 16px calc(var(--dock-h) + 72px) !important;
      margin: 0 auto !important;
    }

    /* 게시글 표지: 한 화면 높이(위 띠·독은 그 위에 얹힌다). 스크롤하면 본문 시트가 올라와 덮고, 표지는 어두워지며 글씨가 위로 흐려진다 */
    .article-cover-hero {
      margin-top: 0 !important;
      height: 100vh !important;
      height: 100dvh !important;
      min-height: 420px;
      border-radius: 0 !important;
      box-shadow: none !important;
    }
    .article-cover-hero::after { content: ''; position: absolute; inset: 0; background: #000; opacity: calc(var(--p, 0) * 0.5); pointer-events: none; }
    .article-cover-hero.is-covered { visibility: hidden; }
    body[data-page-mode="article"] main.site-main, body[data-page-mode="home"] main.site-main {
      position: relative; z-index: 1;
      margin-top: 0 !important;
      max-width: none !important;
      padding-left: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter))) !important;
      padding-right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter))) !important;
      background: var(--bg-card) !important;
      border-radius: 0 !important;
    }
    body[data-page-mode="article"] .site-footer, body[data-page-mode="home"] .site-footer { position: relative; z-index: 1; background: var(--bg-card); }
    /* 게시글(2026-11-03 사용자 개편): 표지는 첫 화면 높이로 그대로 두되 커튼으로 덮지 않고, 본문과 함께 스크롤한 만큼만 올라간다(자동으로 넘기는 동작 없음).
       표지는 뒤 배경으로 머물고 본문 시트가 그 위를 덮으며 올라온다(스크롤한 만큼만, 자동으로 넘기지 않음). 시트가 표지를 거의 덮어 위쪽 띠 높이만 남으면
       그 자리가 표지 배경 그대로의 제목 띠(.post-bar, 위 띠와 같은 높이)로 고정되고 제목이 전광판처럼 흐른다. 하단 독의 제목 알약은 없다 */
    body[data-page-mode="article"] .article-cover-hero::after, body[data-page-mode="home"] .article-cover-hero::after { display: none; }
    body[data-page-mode="article"] .site-dock .dock-title { display: none; }
    body[data-page-mode="article"] #dockUpBtn { margin-right: auto; }
    .post-bar { display: none; }
    body[data-page-mode="article"] .post-bar, body[data-page-mode="home"] .post-bar {
      display: block;
      position: fixed; left: 0; right: 0; top: var(--masthead-h); z-index: 9440;
      height: var(--masthead-h);
      overflow: hidden; color: #ffffff; background: #0f172a;
      border-bottom: 1px solid var(--bar-line);
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: top 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0s linear 0.2s;
    }
    body[data-page-mode="article"].bars-hidden .post-bar, body[data-page-mode="home"].bars-hidden .post-bar { top: 0; }
    body[data-page-mode="article"] .post-bar.is-on, body[data-page-mode="home"] .post-bar.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: top 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0s; }
    /* 제목 띠의 배경은 표지 배경(.hero-cover-bg)의 복제본이다: 표지와 같은 크기로 위에 붙여 윗부분 띠만 보이므로 시트가 덮고 남은 표지 띠와 이어진다 */
    .post-bar > .hero-cover-bg { height: var(--hero-h, 100dvh); }
    :root[data-theme="light"] .post-bar { color: var(--tx-hi); background: #f4f6f9; }
    .post-bar-inner { position: relative; z-index: 1; height: 100%; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; }
    body[data-page-mode="home"] .dock-title { display: none; }
    body[data-page-mode="home"] #dockSearchBtn { margin-left: auto; }
    body[data-page-mode="graph"] #dockSearchBtn { margin-left: auto; }  /* 가운데 칩 줄이 비어 숨겨져도 검색 버튼은 다른 페이지처럼 오른쪽 끝 */
    body[data-page-mode="home"] .dock-title.post-bar-title { display: flex; }
    body[data-page-mode="article"] .post-bar.is-on { cursor: pointer; }
    body[data-page-mode="article"] .post-bar.is-on:hover .dock-title-text { text-decoration: underline; text-underline-offset: 3px; }
    .dock-title.post-bar-title { background: none; padding: 0; height: 100%; font-size: 1rem; font-weight: 700; color: inherit; }
    /* 홈 첫 화면: 최신 글 표지 전체가 그 글로 가는 링크. 설명·복사 버튼 없이 날짜·분류·제목만 둔다 */
    .hero-link { position: absolute; inset: 0; z-index: 3; }
    .hero-link:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
    .hero-graph-btn { margin-left: -0.25rem; }  /* 링크 복사 바로 옆 */
    .nobr { white-space: nowrap; }  /* TF-IDF 같은 하이픈 단어가 줄 끝에서 갈라지지 않게 */
    body[data-page-mode="home"] .article-cover-hero .hero-cover-title { word-break: keep-all; overflow-wrap: break-word; }
    body[data-page-mode="home"] .article-cover-hero .hero-cover-title { transition: text-decoration-color 0.2s ease; text-decoration: underline 2px transparent; text-underline-offset: 10px; }
    body[data-page-mode="home"] .article-cover-hero:hover .hero-cover-title { text-decoration-color: currentColor; }
    .hero-scroll-cue { position: absolute; left: 50%; bottom: calc(var(--dock-h) + 14px); z-index: 2; width: 36px; height: 36px; margin-left: -18px; display: flex; align-items: center; justify-content: center; color: #ffffff; opacity: calc(0.7 - var(--p, 0) * 3); pointer-events: none; animation: cueBob 2.4s ease-in-out infinite; }
    .hero-scroll-cue svg { transform: rotate(90deg); }
    :root[data-theme="light"] .hero-scroll-cue { color: var(--tx-hi); }
    @keyframes cueBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
    @media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; } }
    /* 홈 본문 시트: 지도 입구 한 줄 → 최근 글 → 전체 보기 */
    /* 홈 시트: 시트가 한 화면 이상이어야 표지를 끝까지 덮고 올라온다. 위 띠 아래에서 시작한다 */
    body[data-page-mode="home"] main.site-main { min-height: calc(100dvh - var(--footer-h, 96px)); }  /* 위·아래 여백은 게시글 본문 시트와 같은 값(40px, 휴대폰 28px/44px)을 쓴다 */
    /* 연재로 읽기(2026-11-03 사용자 재지시: 모션·썸네일 폐기, 수직 목록): 연재마다 이름·`시리즈 읽기` 한 줄 아래에 순서가 세로로 이어진 번호 원(분류 색 배경)과 제목, 앞 3편만 보이고 나머지는 `외 N편`. 같은 목록 모양을 게시글의 재생목록 팝업도 쓴다 */
    .series-section { display: flex; flex-direction: column; gap: 18px; }
    .series-top { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; min-width: 0; }  /* 제목과 탭은 폭이 좁아도 항상 한 줄(탭 줄만 가로 스크롤) */
    .series-head { flex: none; margin: 0; white-space: nowrap; font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--tx-hi); }
    .series-tabs-wrap { position: relative; flex: 1; min-width: 0; }
    .series-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .series-tabs::-webkit-scrollbar { display: none; }
    .series-tab { flex: none; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--tx-4); font: inherit; font-size: 0.82rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
    .series-tab:hover { color: var(--tx-hi); }
    .series-tab.is-on { background: rgb(var(--ov) / 0.12); color: var(--tx-hi); font-weight: 700; }
    .series-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    /* 고른 연재의 목록과 버튼은 하나의 면으로 묶는다: 라이트는 흰색, 다크는 검은색(위 띠·하단 독과 같은 --bg) */
    .series-panels { display: grid; }
    .series-row { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 14px 22px 20px; background: var(--bg); border-radius: var(--radius-box); }
    /* 연재가 3편이든 10편이든 면의 높이가 같도록 모든 패널을 한 칸에 겹쳐 쌓고(가장 큰 패널이 높이를 정한다) 안 고른 패널은 보이지 않게만 한다. 버튼은 늘 면의 맨 아래에 있다 */
    .series-row[hidden] { display: flex; visibility: hidden; pointer-events: none; }
    /* 앞 3편 뒤의 편은 아래로 갈수록 사라지듯 비치고(마스크 그라데이션, 눌리지 않음), 가운데의 `시리즈 읽기 +N`이 나머지로 들어가는 입구다 */
    .series-step.is-peek { pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.38)); mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0.38)); }
    .series-step.is-peek-2 { -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.38), transparent); mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.38), transparent); }
    .series-step.is-peek-only { -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.7), transparent); mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.7), transparent); }
    .series-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; }
    .series-cta { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 18px; font-size: 0.84rem; font-weight: 700; color: var(--tx-hi); background: rgb(var(--ov) / 0.12); border-radius: 999px; transition: background 0.2s ease; }
    .series-cta:hover { background: rgb(var(--ov) / 0.2); }
    .series-cta-count { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 24px; padding: 0 7px; border-radius: 999px; background: rgb(var(--ov) / 0.14); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; }
    .series-cta .icon-chev { width: 14px; height: 14px; margin-left: -2px; }
    .series-steps { margin: 0; padding: 0; list-style: none; }
    .series-step { position: relative; }
    .series-step + .series-step { margin-top: 2px; }
    .series-step:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 38px; bottom: -10px; width: 2px; background: var(--line-2); }
    .series-step a { display: flex; align-items: center; gap: 14px; margin: 0 -8px; padding: 8px 14px 8px 8px; color: var(--tx-hi); border-radius: 999px; transition: background 0.2s ease; }
    .series-step a:hover { background: rgb(var(--ov) / 0.06); }
    .series-step a[aria-current="true"] { background: rgb(var(--ov) / 0.1); }
    .series-step a[aria-current="true"] .series-step-title { font-weight: 700; }
    .series-dot { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--dot, var(--primary)); }
    .series-dot .series-check { display: none; }
    .series-step.is-read .series-n { display: none; }
    .series-step.is-read .series-check { display: block; }
    .series-step-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; font-weight: 600; line-height: 1.45; }
    .series-step a:hover .series-step-title { text-decoration: underline; text-underline-offset: 3px; }
    /* 출처 모음(2026-11-03): 글들이 가장 많이 인용한 사이트 카드. 자료 제목은 새 탭으로 나가고 메모는 글쓴이가 적은 사용처다 */
    .source-section { display: flex; flex-direction: column; gap: 18px; }
    /* 고른 탭의 패널만 그린다: 탭마다 카드 수가 달라도 높이가 그 패널에 맞춰져 아래 푸터와의 여백이 늘 같다(2026-11-03 사용자 지시, 이전의 높이 통일은 폐기) */
    .source-panel[hidden] { display: none; }
    /* 카드는 한 번에 3장(1100px 이상)·2장(640px 이상)·1장 반(그보다 좁게)만 보이고 나머지는 오른쪽으로 밀어 본다(2026-11-04 사용자 지시, 가로 스크롤 안내 화살표 포함) */
    .source-panel { position: relative; }
    .source-grid { --cols: 1.12; display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    .source-grid::-webkit-scrollbar { display: none; }
    .source-grid > .source-card { flex: 0 0 calc((100% - 16px * (var(--cols) - 1)) / var(--cols)); min-width: 0; scroll-snap-align: start; }
    @media (min-width: 640px) { .source-grid { --cols: 2; } }
    @media (min-width: 1100px) { .source-grid { --cols: 3; } }
    .source-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; background: var(--bg); border-radius: var(--radius-box); }
    .source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .source-name { margin: 0; min-width: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--tx-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .source-count { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tx-hi); color: var(--bg); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; }  /* 인용한 글 수 포인트: 라이트는 검은 원, 다크는 하얀 원 */
    .source-docs { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .source-doc { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--tx-hi); font-size: 0.88rem; font-weight: 600; line-height: 1.45; }
    .source-doc .icon-ext { flex: none; margin-top: 5px; color: var(--tx-4); }
    .source-doc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .source-doc:hover .source-doc-title { text-decoration: underline; text-underline-offset: 3px; }
    .source-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--tx-4); }
    /* 재생목록 팝업(게시글, 하단 독의 목록 아이콘): 독 바로 위에 올라오는 카드 */
    .dock-btn[hidden] { display: none; }
    .series-pop { position: fixed; left: 50%; transform: translateX(-50%); z-index: 9550; width: var(--panel-w); max-height: min(62dvh, 480px); display: flex; flex-direction: column; background: var(--bg); color: var(--tx-1); border: 1px solid rgb(var(--ov) / 0.16); border-radius: var(--radius-panel); overflow: hidden; }
    .series-pop[hidden] { display: none; }
    .series-pop-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px 20px; }
    .series-pop-name { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--tx-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .series-pop-pos { flex: none; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--tx-4); }
    .series-pop-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgb(var(--ov) / 0.08); color: var(--tx-hi); cursor: pointer; }
    .series-pop-close:hover { background: rgb(var(--ov) / 0.16); }
    .series-pop .series-steps { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 16px 24px; }
    .hero-recent-map { display: inline-flex; align-items: center; gap: 6px; color: inherit; background: rgb(255 255 255 / 0.14); border-radius: 999px; transition: background 0.2s ease; }
    .hero-recent-map:hover { background: rgb(255 255 255 / 0.26); }
    :root[data-theme="light"] .hero-recent-map { background: rgb(var(--ov) / 0.08); }
    :root[data-theme="light"] .hero-recent-map:hover { background: rgb(var(--ov) / 0.16); }
    :root[data-theme="light"] .hero-recent-map { color: var(--tx-hi); background: rgb(255 255 255 / 0.8); border: 1px solid rgb(var(--ov) / 0.18); }
    .hero-recent-map { position: absolute; top: 6px; right: 6px; z-index: 1; width: 28px; height: 28px; justify-content: center; background: rgb(7 9 14 / 0.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    /* Dashboard(2026-11-04): 블로그 현황 카드 6칸. 방문 칸 셋은 /api/stats로 채우고 못 불러오면 숨는다. 색은 변수·분류 색만 쓴다 */
    .dash-section { display: flex; flex-direction: column; gap: 18px; }
    .series-tab[hidden] { display: none; }
    /* 패널은 어느 탭이든 같은 높이(300px)이고, 안의 그래프는 그 높이와 폭을 채우도록 그린다(2026-11-04 사용자 지시) */
    /* 내용 크기는 어느 탭이든 같다: 세 패널을 한 칸에 겹쳐 쌓아 가장 큰 패널이 높이를 정하고(고르지 않은 패널은 보이지 않게만 숨김) 폭이 바뀌어도 잘리지 않는다.
       그래프 · 맨 아래 작은 글씨 설명과 참고사항(범례는 2026-11-04 사용자 지시로 없앴다). 그래프 칸은 어느 폭에서도 한 줄이고 모자라면 가로로 민다 */
    .dash-section .source-panels { display: grid; }
    .dash-section .dash-panel { grid-area: 1 / 1; container-type: inline-size; min-width: 0; }
    .dash-section .dash-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
    /* LLM 활용 현황은 다른 탭보다 낮아서(2026-11-24 사용자 지시: 빈 공간 줄이기) 이 탭이 열려 있을 때는 숨은 탭이 자리를 차지하지 않게 한다 */
    .dash-section .source-panels:has(#dashPanel-llm:not([hidden])) .dash-panel[hidden] { display: none; }
    #dashPanel-llm .dash-block { flex: 1 1 100%; min-width: 0; }  /* 최소 폭 300px 때문에 좁은 화면에서 가로로 밀리지 않게 한다 */
    .dash-block { height: 256px; }
    .dash-card { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 14px; height: 100%; min-width: 0; padding: 22px 26px 18px; background: var(--bg); border-radius: var(--radius-box); }
    /* 그래프 칸들은 폭이 좁아져도 줄바꿈·위아래 쌓임 없이 한 줄로 두고 모자라면 가로로 밀어 본다(2026-11-04 사용자 지시) */
    .dash-main { display: flex; gap: 28px; min-width: 0; min-height: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .dash-main::-webkit-scrollbar { display: none; }
    /* LLM 활용 현황(2026-11-23 사용자 지시): 모델별 맡은 일 트리맵(면적 = 맡은 일 수) + 시점별 요약 줄 */
    /* 절제된 디자인(2026-11-24 사용자 지시, 트리맵 지침 검색 반영): 바탕은 테마 토큰의 평평한 면, 모델 색은 작은 점·시점 글자·올릴 때 테두리에만 쓰고, 글자는 --tx-hi로 대비를 높이며 장식(광채·그림자·외곽선 글자)은 쓰지 않는다 */
    .llm-wrap { display: flex; flex: 1; min-height: 0; width: 100%; max-width: 960px; margin: 0 auto; }
    .llm-tm { position: relative; flex: 1; min-width: 0; min-height: 0; }
    .llm-top, .llm-sub { position: absolute; inset: 0; }
    .llm-top[hidden], .llm-sub[hidden] { display: none; }
    /* 뒤로가기는 트리맵 왼쪽 바깥 중앙의 원형 아이콘(2026-11-24 사용자 지시): 하위 화면에서 아이콘이 나올 때만 왼쪽 자리를 만들고, 전체 화면은 그 자리까지 트리맵이 채운다 */
    .llm-side { flex: none; display: grid; place-items: center; width: 0; overflow: visible; }
    .llm-wrap.is-deep .llm-side { width: 38px; margin-right: 10px; }
    .llm-back { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgb(var(--ov) / 0.18); background: var(--bg); color: var(--tx-hi); box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.35); cursor: pointer; transition: transform 0.18s ease; }
    .llm-back[hidden] { display: none; }
    .llm-back:hover { transform: scale(1.08); }
    .llm-back:focus-visible { outline: 2px solid var(--tx-hi); outline-offset: 2px; }
    .llm-top .llm-tile, .llm-leaf { cursor: pointer; }
    .llm-leaf:focus-visible .llm-tile-in, .llm-leaf[aria-expanded="true"] .llm-tile-in, .llm-leaf:hover .llm-tile-in { border-color: var(--mk); }
    .llm-desc { display: none; }
    /* 가장 하위 칸을 누르면 뜨는 자연어 설명 말풍선(2026-11-24 사용자 지시): 사이트의 다른 말풍선처럼 바탕·글자색을 뒤집어 두 테마 모두 대비를 확보한다 */
    .llm-pop { position: absolute; z-index: 4; display: none; box-sizing: border-box; width: max-content; max-width: min(300px, calc(100% - 4px)); padding: 12px 15px 13px; border-radius: 14px; background: var(--tx-hi); color: var(--bg); box-shadow: 0 14px 34px -10px rgb(0 0 0 / 0.45); font-size: 0.8rem; line-height: 1.6; }
    .llm-pop.is-open { display: block; animation: llm-pop-in 0.16s ease; }
    .llm-pop b { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 0.86rem; }
    .llm-pop b::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mc); }
    .llm-pop::after { content: ''; position: absolute; left: var(--tx, 50%); width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
    .llm-pop.is-below::after { top: -5px; }
    .llm-pop.is-above::after { bottom: -5px; }
    .llm-pop.is-inside::after { display: none; }
    @keyframes llm-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    .llm-top .llm-tile:focus-visible .llm-tile-in { border-color: var(--mk); outline: 2px solid var(--mk); outline-offset: 1px; }
    .llm-tile { position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); box-sizing: border-box; padding: 3px; container: llmt / size; transition: opacity 0.2s ease; }
    /* 좁은 화면(패널 560px 이하)은 정사각형 기준으로 다시 나눈 위치를 쓴다: 가로로 긴 배치를 그대로 줄이면 칸이 가늘어져 글이 여러 줄로 꺾인다 */
    @container (max-width: 560px) { .llm-tile { left: var(--nl); top: var(--nt); width: var(--nw); height: var(--nh); } }
    .llm-tile-in { --mk: color-mix(in srgb, var(--mc) 70%, var(--tx-hi)); position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; overflow: hidden; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--mc) 26%, rgb(var(--ov) / 0.08)); color: var(--tx-hi); background: linear-gradient(140deg, color-mix(in srgb, var(--mc) 28%, var(--bg)) 0%, color-mix(in srgb, var(--mc2, var(--mc)) 10%, var(--bg)) 100%); transition: border-color 0.2s ease; }
    .llm-tile:hover .llm-tile-in { border-color: var(--mk); }
    /* 모델 로고(pages/llm_logos/<id>.svg)는 모델 색으로 칠한 연한 워터마크로 칸 오른쪽 아래에 깔고, 글자는 그 위에 둔다 */
    .llm-tile.has-logo .llm-tile-in::before { content: ''; position: absolute; right: -10px; bottom: -16px; height: min(72%, 150px); aspect-ratio: 1; background: var(--mk); opacity: 0.16; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; pointer-events: none; }
    .llm-tile-in > small, .llm-tile-in > b, .llm-tile-in > ul { position: relative; }
    .llm-tile-in small { padding-right: 26px; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; color: var(--tx-4); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
    .llm-tile-in small::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mc); }
    .llm-tile-in b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
    .llm-tile ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
    .llm-tile li { display: inline-flex; flex: none; align-items: center; max-width: 100%; padding: 3px 10px; border-radius: 999px; border: 1px solid rgb(var(--ov) / 0.14); font-size: 0.74rem; color: var(--tx-1); }
    .llm-tile li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .llm-t-go { position: absolute; right: 11px; top: 10px; display: grid; color: var(--tx-4); transition: color 0.2s ease, transform 0.2s ease; pointer-events: none; }
    .llm-tile:hover .llm-t-go { color: var(--mk); transform: translateX(3px); }
    /* 칸이 작으면 글이 여러 줄로 꺾이는 대신 내용을 줄인다: 낮은 칸은 알약을 숨기고, 아주 낮은 칸은 제작사 줄도 숨겨 제목만 남기며, 좁은 칸은 아이콘을 뺀다(전체 목록은 칸의 title과 하위 화면에 있다) */
    @container llmt (max-height: 118px) { .llm-tile ul { display: none; } .llm-tile-in { justify-content: center; } }
    @container llmt (max-height: 84px) { .llm-tile-in small { display: none; } .llm-tile-in { padding: 8px 14px; } }
    @container llmt (max-width: 160px) { .llm-tile-in { padding-left: 10px; padding-right: 8px; } .llm-tile-in b { font-size: 0.95rem; } .llm-tile-in small { letter-spacing: 0.06em; } }
    @container llmt (max-width: 120px) { .llm-t-go { display: none; } .llm-tile-in small { padding-right: 0; } }
    .llm-tile.is-dim { opacity: 0.25; }
    .dash-block { display: flex; flex-direction: column; flex: 1 0 300px; min-width: 0; min-height: 0; scroll-snap-align: start; }
    .dash-block:only-child { flex: 1 1 100%; }
    /* 한 탭에 그래프가 셋 이상이면 둘일 때의 너비(칸 폭의 절반)로 나누고, 나머지는 좌우로 밀어서 본다(2026-11-05 사용자 지시). 좁은 화면은 둘일 때와 같이 최소 300px */
    .dash-main:has(.dash-block:nth-child(3)) > .dash-block { flex: 0 0 max(300px, calc((100% - 28px) / 2)); }
    /* 한 탭에 시각화가 둘 이상이면 칸 사이(간격의 한가운데)에 세로 구분선을 긋는다. 칸 안쪽 여백은 두지 않아 모든 칸의 폭과 제목 위치가 같다(2026-11-05 사용자 지시) */
    .dash-block + .dash-block { position: relative; }
    .dash-block + .dash-block::before { content: ''; position: absolute; top: 0; bottom: 0; left: -14px; width: 1px; background: var(--line-1); }
    .dash-block > :not(.dash-sub) { flex: 1; min-height: 0; }
    .dash-sub { flex: none; margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; color: var(--tx-3); }
    /* 설명·유의사항은 카드 오른쪽 위 `i` 아이콘으로 접어 두고, 올리거나 누르면 말풍선으로 연다(2026-11-05 사용자 지시) */
    .dash-card { grid-template-rows: minmax(0, 1fr); }
    .dash-info { position: absolute; top: 8px; right: 10px; z-index: 4; }
    .dash-info-btn { box-sizing: border-box; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--tx-4); font: italic 700 0.72rem/1 Georgia, serif; cursor: pointer; }
    .dash-info-btn:hover, .dash-info.is-open .dash-info-btn, .dash-info-btn:focus-visible { color: var(--tx-1); border-color: var(--tx-3); }
    .dash-foot { position: absolute; top: 26px; right: 0; width: min(340px, calc(100vw - 48px)); box-sizing: border-box; margin: 0; padding: 10px 12px; border: 1px solid var(--line-1); border-radius: 10px; background: var(--bg); box-shadow: 0 8px 24px rgb(0 0 0 / 0.22); font-size: 0.74rem; line-height: 1.6; color: var(--tx-3); word-break: keep-all; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
    .dash-info:hover .dash-foot, .dash-info:focus-within .dash-foot, .dash-info.is-open .dash-foot { opacity: 1; visibility: visible; transform: none; }
    /* 많이 읽힌 글(2026-11-05 고도화): 순위·썸네일·제목·분류·날짜·조회 수. 줄 배경의 길이가 조회 수 비율, 색은 그 글의 분류 색 */
    /* 조회 기간: 일별 조회 막대 위에서 창과 손잡이를 끌어 기간을 고른다 */
    .dash-range { display: flex; flex-direction: column; gap: 4px; flex: none; }
    .dash-range-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
    .dash-range-label { font-size: 0.8rem; font-weight: 700; color: var(--tx-2); font-variant-numeric: tabular-nums; }
    .dash-range-head .dash-sum { margin: 0; overflow: visible; gap: 6px; flex-wrap: wrap; }
    /* 타임라인 바(2026-11-24 사용자 지시: 더 얇고 세련되게): 배경 상자 없이 가는 파형, 선택 창은 옅은 면과 가는 테두리, 손잡이는 가는 알약 */
    .dash-range-track { position: relative; height: 38px; background: transparent; overflow: hidden; touch-action: none; user-select: none; cursor: pointer; }
    .dash-range-inner { position: absolute; inset: 0 10px; }
    .dash-range-bars { position: absolute; inset: 3px 0; }
    .dash-wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .dash-wave path { fill: rgb(var(--ov) / 0.14); }
    .dash-wave.is-on path { fill: color-mix(in srgb, var(--primary) 82%, transparent); }
    .dash-range-win { position: absolute; top: 1px; bottom: 1px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 7%, transparent); cursor: grab; }
    .dash-range-win:active { cursor: grabbing; }
    .dash-range-h { position: absolute; top: 50%; width: 6px; height: 18px; padding: 0; border: 2px solid var(--bg); box-sizing: content-box; border-radius: 999px; background: var(--primary); transform: translate(-50%, -50%); cursor: ew-resize; }
    .dash-range-h.is-a { left: 0; }
    .dash-range-h.is-b { left: 100%; }
    .dash-range-h::before { content: ''; position: absolute; inset: -6px -8px; }
    .dash-range-h:focus-visible { outline: 2px solid var(--tx-hi); outline-offset: 2px; }
    .dash-range-ticks { display: flex; justify-content: space-between; padding: 0 10px; font-size: 0.6rem; color: var(--tx-4); font-variant-numeric: tabular-nums; }
    /* 방문 국가 세계지도: 국가별 조회가 많을수록 진하게(--k) 칠하고, 지도에 없는 작은 나라는 점으로 찍는다 */
    .dash-visits { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
    #dashPanel-flow .dash-block, #dashPanel-llm .dash-block { height: 660px; }  /* 두 탭의 내용 높이는 같다(2026-11-24) */
    .dash-vbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; }
    .dash-group { display: flex; flex-direction: column; min-height: 0; border: 1px solid rgb(var(--ov) / 0.12); border-radius: 16px; overflow: hidden; }
    .dash-group.is-loading .dash-mapwrap { opacity: 0.55; transition: opacity 0.15s ease; }
    .dash-group .dash-range { padding: 8px 14px 6px; border-top: 1px solid rgb(var(--ov) / 0.1); background: rgb(var(--ov) / 0.025); }
    .dash-mapwrap { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: rgb(var(--ov) / 0.04); }
    .dash-map { cursor: grab; touch-action: none; user-select: none; }
    .dash-map.is-drag { cursor: grabbing; }
    .dash-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
    .dash-zoom button { width: 28px; height: 28px; padding: 0; border: 1px solid rgb(var(--ov) / 0.18); border-radius: 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--tx-2); font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
    .dash-zoom button:hover { color: var(--tx-hi); border-color: rgb(var(--ov) / 0.4); }
    /* 권역 칩과 국가 말풍선(2026-11-24 사용자 지시): 지도와 기간 막대만 두고, 권역은 지도 위 칩으로, 국가는 지도를 눌러 말풍선으로 본다 */
    .dash-conts { position: absolute; top: 8px; left: 8px; right: 48px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
    .dash-cont { pointer-events: auto; display: inline-flex; gap: 6px; align-items: baseline; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgb(var(--ov) / 0.16); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(6px); color: var(--tx-3); font: inherit; font-size: 0.72rem; cursor: pointer; }
    .dash-cont:hover { color: var(--tx-hi); border-color: rgb(var(--ov) / 0.4); }
    .dash-cont b { font-weight: 700; color: var(--tx-2); }
    .dash-cont[aria-pressed="true"] { background: var(--tx-hi); color: var(--bg); border-color: var(--tx-hi); }
    .dash-cont[aria-pressed="true"] b { color: inherit; }
    .dash-side-empty { margin: 0; font-size: 0.74rem; color: var(--tx-4); }
    .dash-pop { position: absolute; z-index: 6; box-sizing: border-box; width: min(300px, calc(100% - 16px)); padding: 12px 14px 10px; border-radius: 16px; border: 1px solid rgb(var(--ov) / 0.16); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.5); color: var(--tx-1); animation: dashPopIn 0.16s ease-out; }
    .dash-pop[hidden] { display: none; }
    @keyframes dashPopIn { from { opacity: 0; transform: translateY(4px) scale(0.98); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: reduce) { .dash-pop { animation: none; } }
    .dash-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .dash-pop-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; color: var(--tx-hi); }
    .dash-pop-head span { flex: none; display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 9px; border: 1px solid rgb(var(--ov) / 0.14); border-radius: 99px; font: 700 0.76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tx-hi); }
    .dash-pop-head small { font: 500 0.6rem/1 system-ui, sans-serif; color: var(--tx-4); }
    .dash-pop-x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid rgb(var(--ov) / 0.18); background: transparent; color: var(--tx-3); cursor: pointer; }
    .dash-pop-x svg { width: 11px; height: 11px; }
    .dash-pop-x:hover { color: var(--tx-hi); border-color: rgb(var(--ov) / 0.4); }
    .dash-pop-sec + .dash-pop-sec { margin-top: 10px; }
    .dash-pop-sec h4 { margin: 0 0 4px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; color: var(--tx-4); }
    .dash-pop-sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
    .dash-pop-sec li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 10px; border-radius: 8px; font-size: 0.76rem; color: var(--tx-2); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 24%, transparent) var(--p), rgb(var(--ov) / 0.05) var(--p)); }
    .dash-pop-sec li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
    .dash-pop-sec li a:hover { text-decoration: underline; }
    .dash-pop-sec li b { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; }
    .dash-map.has-sel .dash-land:not(.is-sel), .dash-map.has-sel .dash-pin:not(.is-sel) { opacity: 0.4; }
    .dash-land.is-sel:not(.is-hit) { fill: rgb(var(--ov) / 0.2); }
    .dash-land.is-cc { stroke: var(--tx-hi); stroke-width: 1.4; }
    .dash-land { cursor: pointer; vector-effect: non-scaling-stroke; }
    .dash-lbl { text-anchor: middle; dominant-baseline: middle; fill: var(--tx-hi); font-weight: 700; paint-order: stroke; stroke: var(--bg); stroke-width: 0.28em; stroke-linejoin: round; pointer-events: none; }
    @container (min-width: 900px) { #dashPanel-flow .dash-block, #dashPanel-llm .dash-block { height: 560px; } }
    .dash-map { position: absolute; inset: 0; }
    .dash-map svg { display: block; width: 100%; height: 100%; }
    .dash-land { fill: rgb(var(--ov) / 0.1); stroke: var(--bg); stroke-width: 0.8; transition: fill-opacity 0.15s ease; }
    .dash-land.is-hit { fill: var(--primary); fill-opacity: var(--k); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 60%, transparent)); }
    .dash-land:hover { fill: rgb(var(--ov) / 0.22); }
    .dash-land.is-hit:hover { fill-opacity: 1; }
    .dash-pulse { fill: none; stroke: var(--primary); stroke-width: 1.4; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: dashPulse 2.4s ease-out infinite; }
    @keyframes dashPulse { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .dash-pulse { animation: none; opacity: 0.5; } }
    .dash-pin { fill: var(--primary); fill-opacity: 0.85; stroke: var(--bg); stroke-width: 1; }
    .dash-map .dash-tip { top: 0; transform: none; pointer-events: none; display: flex; gap: 6px; align-items: baseline; }
    .dash-map-legend { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 6px; font-size: 0.66rem; color: var(--tx-4); }
    .dash-map-legend i { width: 64px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgb(var(--ov) / 0.1), var(--primary)); }
    /* 유입 경로: 구성 비율 막대 + 경로별 줄 */
    /* 방문 추이 보조: 요약 칩·눈금 숫자·오늘 점 */
    .dash-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(var(--ov) / 0.07); font-size: 0.78rem; color: var(--tx-2); }
    .dash-chip small { font-size: 0.68rem; color: var(--tx-4); }
    .dash-chip b { color: var(--tx-hi); font-variant-numeric: tabular-nums; }
    /* 눌러서 이동하고, 올리면 서로 연결되어 강조된다(분류 ↔ 월별 막대, 2026-11-04 사용자 지시) */
    .dash-day { transition: opacity 0.18s ease; }
    .dash-day.is-dim { opacity: 0.25; }
    /* 일별 발행 잔디(깃허브 기여 그래프형, 2026-11-05 사용자 지시) */
    .dash-heat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; max-width: 400px; margin: 0 auto; }
    .dash-heat-m, .dash-heat-grid { display: grid; grid-template-columns: repeat(var(--w), 1fr); gap: 3px; }
    .dash-heat-m span { font-size: 0.66rem; line-height: 1; color: var(--tx-4); white-space: nowrap; }
    .dash-heat-grid { grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
    .dash-day { display: block; aspect-ratio: 1; border-radius: 3px; background: rgb(var(--ov) / 0.08); }
    .dash-day.is-void { visibility: hidden; }
    .dash-day.lv1 { background: color-mix(in srgb, var(--primary) 40%, transparent); }
    .dash-day.lv2 { background: color-mix(in srgb, var(--primary) 70%, transparent); }
    .dash-day.lv3 { background: var(--primary); }
    a.dash-day:hover, a.dash-day:focus-visible { outline: 2px solid var(--tx-hi); outline-offset: 1px; }
    .dash-card { position: relative; }
    .dash-tip { position: absolute; z-index: 5; max-width: 260px; padding: 7px 10px; border-radius: 10px; background: var(--tx-hi); color: var(--bg); font-size: 0.76rem; font-weight: 600; line-height: 1.5; pointer-events: none; white-space: normal; transform: translate(-50%, -100%); box-shadow: 0 4px 14px rgb(0 0 0 / 0.25); }
    .dash-tip[hidden] { display: none; }
    .dash-val { text-align: right; font-weight: 700; color: var(--tx-hi); font-variant-numeric: tabular-nums; }
    .dash-visits { display: flex; flex-direction: column; }
    .dash-visits svg { width: 100%; height: 100%; overflow: visible; }
    .dash-sum { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 4px 20px; margin: 0 0 10px; font-size: 0.84rem; color: var(--tx-2); }
    .dash-sum::-webkit-scrollbar { display: none; }
    .dash-sum > * { flex: none; }
    .dash-sum b { color: var(--tx-hi); font-variant-numeric: tabular-nums; }
    @container (max-width: 759px) {
      .dash-card { padding: 20px 22px 16px; }
      .dash-main { gap: 18px; }
      .dash-block + .dash-block::before { left: -9px; }
      .dash-main:has(.dash-block:nth-child(3)) > .dash-block { flex-basis: max(300px, calc((100% - 18px) / 2)); }
    }
    @container (max-width: 479px) {
      .dash-card { padding: 18px 16px 14px; }
    }
    .home-view { gap: clamp(28px, 3.4vw, 44px); padding-top: 0; }
    /* 첫 화면의 최근 글 묶음: 좁으면 표지 아래쪽에 가로 한 줄 스크롤, 넓으면(1100px 이상) 표지 오른쪽에 세로 */
    /* 대표 글(표지)과 구분되도록 최근 글 묶음은 반투명 유리 면에 담는다: 좁으면 독 위에 붙은 가로 띠, 넓으면 오른쪽 떠 있는 카드 */
    .hero-recent { position: fixed; z-index: 9430; left: 0; right: 0; top: 0; transform: translate3d(0, var(--band-y, calc(100dvh - var(--dock-h) - 300px)), 0); transition: opacity 0.3s ease; padding: 12px 0 10px; color: #ffffff; background: var(--bg); border-top: 1px solid rgb(255 255 255 / 0.14); }
    /* 제목 아래 한 묶음(추천 문장은 그대로 두고, 아래 수치·버튼 줄만 최근 글 묶음과 같은 반투명 유리 면에 담는다): 읽어야 하는 이유 한 줄(추천 문장) + 핵심 수치 + 그래프로 보기. 위 `발행일 · 분류` 줄과 같은 글자 크기(0.88rem)·같은 서체로 맞춘다 */
    /* 홈 표지 왼쪽: 머리글(추천 아티클), 분류 태그(누르면 분류 목록) + 공유·그래프 아이콘. 내용은 클릭이 표지 링크로 통과하게 하고 버튼만 받는다 */
    #articleCoverHero { transition: opacity 0.3s ease; }
    html.hero-pending #articleCoverHero { opacity: 0; transition: none; }
    .hero-feature-title { margin-right: 0.2rem; color: var(--tx-hi); text-shadow: none; white-space: nowrap; pointer-events: none; }  /* 머리글과 분류 태그·아이콘은 한 줄(높이 28px로 오른쪽 `최신 아티클` 줄과 같은 높이) */
    body[data-page-mode="home"] .hero-meta-row { min-height: 28px; flex-wrap: nowrap; }
    body[data-page-mode="home"] .hero-cover-content { z-index: 4; pointer-events: none; }
    body[data-page-mode="home"] .hero-meta-row > *:not(.hero-feature-title) { pointer-events: auto; }
    .hero-facts { position: relative; z-index: 4; max-width: 100%; margin-top: 1.3rem; }
    /* 추천 문구: 핵심 요약 한 문장. 음영 없이 제목 아래에 둔다 */
    .hero-featured-head { margin: 0; font-size: 0.85rem; font-weight: 400; line-height: 1.75; opacity: 0.72; word-break: keep-all; text-wrap: pretty; }  /* 요약 문장과 `읽는 데…` 문장은 같은 색·같은 글꼴 */
    /* 홈 스크롤(2026-11-04 사용자 지시): 본문 시트는 추천 아티클만 덮는다. 최신 아티클 띠는 시트 윗선에 붙어 함께 올라가다가 추천 아티클이 제목 띠 크기로 줄어들면 그 밑에 멈춰 둘이 함께 상단에 고정된다 */
    html.hero-pending .hero-recent { opacity: 0; transition: none; }
    .hero-recent, :root[data-theme="light"] .hero-recent { border-bottom: 1px solid var(--bar-line); }  /* 위 띠·하단 독과 같은 옅은 선: 고정된 띠와 아래 본문 시트의 경계 */
    .hero-recent.is-stuck { transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
    /* 하단 독의 글자 알약 버튼(홈 추천·최신, 게시글 출처·관련 글) */
    .dock-tab { position: relative; overflow: hidden; flex: 0 1 auto; min-width: 0; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--dock-border); background: rgb(var(--ov) / 0.11); color: var(--dock-text); font: inherit; font-size: 0.82rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
    .dock-tab[aria-expanded="true"] { background: var(--tx-hi); color: var(--bg); }
    /* 게시글(2026-11-04 사용자 지시, 모든 폭): 오른쪽 열·본문 끝 섹션 없이 하단 독 왼쪽의 `출처 및 참고자료`·`관련있는 아티클` 버튼(항상 노출)을 눌러 팝업으로 본다 */
    .dock-article, .aside-pop, .aside-backdrop { display: none; }
    body[data-page-mode="article"] .post-aside { display: none; }
    body[data-page-mode="article"] .dock-article { display: block; position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .dock-article-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .dock-article-row::-webkit-scrollbar { display: none; }
    .dock-article-row > .dock-tab { flex: none; }  /* 줄이지 않고 넘치면 가로로 민다 */
    body[data-page-mode="article"] #dockUpBtn { margin-right: 0; }
    .aside-backdrop { position: fixed; inset: 0; z-index: 9435; background: rgba(2, 6, 23, 0.28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
    .aside-backdrop:not([hidden]) { display: block; }
    .aside-pop { position: fixed; left: 50%; transform: translateX(-50%); z-index: 9550; width: var(--panel-w); max-height: min(72dvh, 600px); overflow-y: auto; padding: 18px 18px 20px; background: var(--bg); color: var(--tx-1); border: 1px solid rgb(var(--ov) / 0.16); border-radius: var(--radius-panel); }
    .aside-pop:not([hidden]) { display: block; animation: recentPopIn 0.2s ease; }
    .aside-pop .post-references, .aside-pop .post-articlemap { margin: 0; padding: 0; border: 0; }
    .aside-pop h2 { display: none !important; }  /* 팝업 이름은 독 버튼이 이미 말한다(aria-label은 유지) */
    .aside-pop .reference-list { font-size: 0.84rem; line-height: 1.55; padding-left: 1.2rem; }
    .aside-pop .reference-list li { margin-bottom: 0.6rem; }
    .aside-pop .post-articlemap:not([hidden]) ~ .aside-pop-empty { display: none; }
    .aside-pop-empty { margin: 0; font-size: 0.88rem; color: var(--tx-3); }
    @media (prefers-reduced-motion: reduce) { .aside-pop { animation: none !important; } }
    /* 좁은 화면(폴드 외부 화면 등, 2026-11-04 사용자 지시): 최신 아티클 띠가 본문을 너무 가려 띠를 없애고, 하단 독 왼쪽의 `추천 아티클`·`최신 아티클` 버튼을 눌러 팝업으로 본다.
       추천 아티클 버튼과 팝업의 바탕은 그 글의 표지 배경(.hero-cover-bg 복제본)이다 */
    .dock-home, .recent-pop, .recent-backdrop { display: none; }
    @media (max-width: 639px) {
      /* 첫 화면에서는 최신 아티클 띠가 표지 아래쪽에 그대로 보이고, 스크롤하면 본문 시트가 그 위를 덮는다(띠는 시트 뒤에 머문다) */
      body[data-page-mode="home"] .hero-recent { z-index: 0; border-bottom: 0; }
      body[data-page-mode="home"] .hero-recent.is-covered { visibility: hidden; }
      /* 띠가 절반 이상 가려지면(home-past: 시트 윗선이 띠의 가운데에 닿는 시점) 독 왼쪽에 두 버튼이 나타난다 */
      body[data-page-mode="home"].home-past .dock-home { display: flex; flex: 1 1 auto; min-width: 0; gap: 8px; }
      .dock-tab.is-feat { color: #ffffff; border-color: rgb(255 255 255 / 0.22); }
      :root[data-theme="light"] .dock-tab.is-feat { color: var(--tx-hi); background: #f4f6f9; border-color: rgb(var(--ov) / 0.18); }
      .dock-tab.is-feat[aria-expanded="true"], :root[data-theme="light"] .dock-tab.is-feat[aria-expanded="true"] { border-color: transparent; box-shadow: none; background: var(--tx-hi); color: var(--bg); }  /* 열린 추천 탭은 팝업과 같은 단색이라 이음새가 끊기지 않는다 */
      .dock-tab.is-feat[aria-expanded="true"] .hero-cover-bg { display: none; }
      .dock-tab > span { position: relative; z-index: 1; }
      .dock-tab .hero-cover-bg, .recent-pop .hero-cover-bg { position: absolute; inset: 0; }
      .dock-tab .hero-cover-bg img { transform: scale(1.4); }
      .recent-backdrop { position: fixed; inset: 0; z-index: 9435; background: rgba(2, 6, 23, 0.28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
      .recent-pop { position: fixed; left: 50%; transform: translateX(-50%); z-index: 9550; width: var(--panel-w); max-height: min(70dvh, 560px); flex-direction: column; background: var(--bg); color: var(--tx-1); border: 1px solid rgb(var(--ov) / 0.16); border-radius: var(--radius-panel); overflow: hidden; }
      .recent-backdrop:not([hidden]) { display: block; }
      .recent-pop:not([hidden]) { display: flex; animation: recentPopIn 0.2s ease; }
      .recent-pop ul { position: relative; z-index: 1; margin: 0; padding: 16px; list-style: none; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
      .recent-pop li { display: block; min-width: 0; }
      .recent-pop .hero-recent-item { flex-direction: row; align-items: center; gap: 12px; color: var(--tx-1); }
      .recent-pop .hero-recent-thumbwrap { flex: none; width: 112px; }
      .recent-pop .hero-recent-thumb { border-color: rgb(var(--ov) / 0.12); }
      .recent-pop .hero-recent-text { flex: 1; }
      .recent-pop .hero-recent-title { text-shadow: none; color: var(--tx-hi); }
      /* 추천 아티클 팝업: 그 글의 표지 배경 위에 글자만(라벨·제목·요약), 누르면 그 글로 */
      .recent-pop .hero-cover-bg { display: none; }  /* 팝업은 다른 캡슐과 같은 반전 단색: 표지 이미지 바탕은 이음새에서 끊겨 보인다 */
      .recent-feat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; color: var(--tx-hi); }
      .recent-feat-title { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.45; word-break: keep-all; }
      .recent-feat-hook { margin: 0; font-size: 0.85rem; line-height: 1.7; opacity: 0.8; word-break: keep-all; }
      .recent-feat:hover .recent-feat-title { text-decoration: underline; text-underline-offset: 3px; }
    }
    @keyframes recentPopIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
    @media (prefers-reduced-motion: reduce) { .recent-pop { animation: none !important; } }
    .hero-recent-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter))); margin-bottom: 0.4rem; }
    .hero-recent-head { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.4; }  /* 게시글 오른쪽 열의 소제목(출처 및 참고자료 등)과 같은 규격 */
    .hero-recent ul { display: flex; gap: 14px; margin: 0; padding: 8px max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter))) 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
    .hero-recent ul::-webkit-scrollbar { display: none; }
    .hero-recent li { flex: 1 0 168px; min-width: 168px; scroll-snap-align: start; }  /* 폭이 넓어지면 다섯 편이 남는 폭을 나눠 채우고, 좁으면 168px씩 가로 스크롤 */
    .hero-recent-item { display: flex; flex-direction: column; gap: 8px; color: inherit; }
    .hero-recent-thumbwrap { position: relative; display: block; }
    .hero-recent-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-box); overflow: hidden; border: 1px solid rgb(255 255 255 / 0.22); background: transparent; }
    .hero-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .hero-recent-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .hero-recent-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.84rem; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 8px rgb(0 0 0 / 0.45); }
    .hero-recent-meta { font-size: 0.72rem; opacity: 0.78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-recent-item:hover .hero-recent-thumb { border-color: rgb(255 255 255 / 0.5); }
    .hero-recent-item:hover .hero-recent-title { text-decoration: underline; text-underline-offset: 3px; }
    :root[data-theme="light"] .hero-recent { color: var(--tx-hi); background: var(--bg); border-color: rgb(var(--ov) / 0.12); }
    :root[data-theme="light"] .hero-recent-thumb { border-color: rgb(var(--ov) / 0.1); }
    :root[data-theme="light"] .hero-recent-title { text-shadow: none; }
    :root[data-theme="light"] .hero-recent-item:hover .hero-recent-thumb { border-color: rgb(var(--ov) / 0.3); }
    /* 홈(640px 이상): 스크롤해서 고정되면 추천 아티클이 최신 아티클 띠의 왼쪽 첫 칸으로 열려 좌우로 나란히 놓인다(2026-11-06 사용자 지시, 처음엔 1280px 이상만 → 중간 폭도 같게).
       추천 제목 띠(#postBar)는 쓰지 않는다. 1280px 이상은 카드 여섯 칸(추천 1 + 최신 5)이 같은 폭을 나누고, 640~1279px은 추천 칸이 고정 폭이며 최신 아티클은 오른쪽에서 가로로 넘겨 본다.
       고정 전후로 띠 높이가 달라지면 고정 판정이 흔들리므로 썸네일 높이는 고정한다. 640px 미만(폰)은 띠가 고정되지 않고 하단 독 버튼의 팝업을 쓴다 */
    .hero-recent-feat, .hero-recent-featbg { display: none; }
    body[data-page-mode="home"] .post-bar { display: none !important; }
    @media (min-width: 640px) {
      body[data-page-mode="home"] .hero-recent {
        display: grid; grid-template-columns: 0px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start;
        --pad: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
        --feat-col: 182px;  /* 추천 칸 폭(카드 168px + 간격 14px): 고정되면 이만큼 열린다 */
        --feat-bg: calc(var(--pad) + 176px);  /* 표지 배경 폭: 바깥 여백 + 추천 칸 - 구분선 위치 6px */
        padding-inline: var(--pad);
        transition: opacity 0.3s ease, grid-template-columns 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      }
      /* 추천 아티클 칸의 바탕은 표지 배경(.hero-cover-bg) 복제본이다. 브라우저 왼쪽 끝에서 최신 아티클 영역 앞(구분선)까지 깔린다 */
      body[data-page-mode="home"] .hero-recent-featbg { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: var(--pad); overflow: hidden; pointer-events: none; opacity: 0; z-index: 0; transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease; }
      body[data-page-mode="home"] .hero-recent.is-stuck .hero-recent-featbg { width: var(--feat-bg); opacity: 1; transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.05s; }
      body[data-page-mode="home"] .hero-recent-headrow, body[data-page-mode="home"] .hero-recent-body { position: relative; z-index: 1; }
      body[data-page-mode="home"] .hero-recent.is-stuck { transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), grid-template-columns 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
      body[data-page-mode="home"] .hero-recent:has(.hero-recent-feat:not([hidden])).is-stuck { grid-template-columns: var(--feat-col) minmax(0, 1fr); }
      body[data-page-mode="home"] .hero-recent-headrow, body[data-page-mode="home"] .hero-recent ul { padding-inline: 0; grid-column: 2; }
      body[data-page-mode="home"] .hero-recent-headrow { grid-row: 1; }
      body[data-page-mode="home"] .hero-recent-body { grid-column: 2; grid-row: 2; min-width: 0; }
      body[data-page-mode="home"] .hero-recent-feat { display: block; grid-column: 1; grid-row: 1 / span 2; position: relative; min-width: 0; overflow: hidden; padding-right: 14px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
      body[data-page-mode="home"] .hero-recent.is-stuck .hero-recent-feat { opacity: 1; visibility: visible; transition: opacity 0.3s ease 0.1s, visibility 0s; }
      body[data-page-mode="home"] .hero-recent-feat::after { content: ""; position: absolute; right: 6px; top: 4px; bottom: 4px; width: 1px; background: var(--bar-line); }
      body[data-page-mode="home"] .hero-recent-feat .hero-recent-headrow { padding: 0; }
      body[data-page-mode="home"] .hero-recent-feat .hero-recent-item { padding-top: 8px; }
      body[data-page-mode="home"] .hero-recent-thumb { aspect-ratio: auto; height: 128px; }
      /* 카드가 좁아져도 날짜는 끝까지 보이고, 줄어드는 쪽은 분류 이름이다 */
      body[data-page-mode="home"] .hero-recent-meta { display: flex; gap: 0.3em; }
      body[data-page-mode="home"] .hero-recent-meta .hero-recent-cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    }
    @media (min-width: 1280px) {
      /* 여섯 칸이 같은 폭: 추천 칸 = (내용 폭 - 간격 70px) / 6 + 간격 14px. 배경 폭은 띠 전체 폭 기준이라 같은 식을 풀어 쓴다 */
      body[data-page-mode="home"] .hero-recent {
        --feat-col: calc((100% - 70px) / 6 + 14px);
        --feat-bg: calc(var(--pad) + (100% - 2 * var(--pad) - 70px) / 6 + 8px);
      }
    }
    body[data-page-mode="home"] .hero-scroll-cue { display: none; }  /* 좁은 폭은 아래 줄이 자리를 쓴다 */
    /* 모든 폭(2026-11-03 사용자 지시: 넓은 폭도 좁은 폭과 같게, 최신 아티클은 표지 아래쪽 띠): 위 띠 아래부터 아래 최신 아티클 띠 위까지의 빈 영역 한가운데에 추천 내용을 놓는다(띠 높이는 JS가 재서 --home-band로 준다. 폰·폴더블 외부 화면처럼 세로로 긴 비율에서도 위로 치우치지 않게) */
    body[data-page-mode="home"] .article-cover-hero .hero-cover-content { padding-top: calc(var(--masthead-h) + 20px) !important; padding-bottom: calc(var(--dock-h) + var(--home-band, 292px) + 20px) !important; }
    .article-cover-hero .hero-cover-content {
      max-width: var(--max-width) !important;
      margin: 0 auto !important;
      padding: calc(var(--masthead-h) + 24px) var(--gutter) calc(var(--dock-h) + 24px) !important;
    }
    /* 책 표지처럼 여유로운 행간: 제목은 글자 크기의 150%, 설명은 한글 본문 관행(160~180%)의 중간인 170% */
    .article-cover-hero .hero-cover-title {
      font-size: clamp(1.75rem, 4.2vw, 2.55rem) !important;
      line-height: 1.5 !important;
      letter-spacing: -0.025em;
    }
    .article-cover-hero .hero-cover-description {
      font-size: clamp(0.95rem, 1.8vw, 1.15rem) !important;
      line-height: 1.7 !important;
      margin-top: 1.1rem !important;
    }

    /* 어두운 바탕에 맞춘 본문 색 */
    .post-body p,
    .post-body ul,
    .post-body ol { color: var(--tx-2); }
    .post-body blockquote { color: var(--tx-3); }
    .post-body h2, .post-body h3 { color: var(--text-main); }
    .post-body pre { background: var(--code-bg); border: 1px solid var(--bar-line); box-shadow: none; scrollbar-color: var(--line-2) var(--code-bg); }
    .post-body pre code.hljs { background: transparent; }
    .post-body pre::-webkit-scrollbar { height: 10px; background: var(--code-bg); }
    .post-body pre::-webkit-scrollbar-track { background: var(--code-bg); }
    .post-body pre::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 2px solid var(--code-bg); }
    .post-body pre::-webkit-scrollbar-corner { background: var(--code-bg); }
    .post-body :not(pre) > code { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
    details { background: var(--bg-alt); border-color: var(--border); }
    details summary { color: var(--tx-2); }
    details[open] summary { border-bottom-color: var(--border); }
    .post-references, .post-articlemap { border-top-color: var(--border); }
    .reference-list a{ color: var(--primary); }

    /* 검색 아일랜드: 가운데 차콜과 구분되도록 윤곽을 준다 */
    /* 독 위에 뜨는 패널(검색 결과·시리즈 목록) 공통 규격: 팝업과 독 사이 간격(`--panel-gap` = 독 윗선에서 검색 아이콘까지의 간격 11px)·모서리는 썸네일과 같은 12px, 폭은 독의 왼쪽 버튼 시작선부터 오른쪽 버튼 끝선까지 */
    :root { --dock-real: calc(1px + 10px + 36px + max(12px, env(safe-area-inset-bottom, 12px))); --panel-gap: 11px; --panel-bottom: calc(var(--dock-real) + var(--panel-gap) + var(--end-lift, 0px)); --radius-panel: var(--radius-box); --panel-w: min(calc(100% - 2 * var(--gutter)), calc(var(--max-width) - 2 * var(--gutter))); }
    .search-island {
      width: var(--panel-w);
      border-color: rgb(var(--ov) / 0.16);
      --island-bg: var(--bg);
    }
    .search-backdrop { z-index: 9460; }
    /* 맨 위로 버튼: 검색 버튼과 같은 세로선(오른쪽 끝 정렬)·같은 36px 원형, 독 윗선에서 패널 간격(11px) 위에 놓인다. 독이 숨으면 함께 내려간다 */
    .top-btn {
      position: fixed; z-index: 9440;
      right: max(var(--gutter), calc((100% - var(--max-width)) / 2 + var(--gutter)));
      bottom: var(--panel-bottom);
      width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
      border-radius: 50%; border: 1px solid var(--dock-border); background: var(--bg); color: var(--dock-text);
      cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    }
    .top-btn[hidden] { display: none; }
    .top-btn.is-on { opacity: 1; transform: none; pointer-events: auto; }
    .top-btn:hover { background: rgb(var(--ov) / 0.14); color: var(--tx-hi); }
    body.bars-hidden .top-btn { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    body.bars-hidden { --end-lift: 0px; }
    body.search-open .top-btn { display: none; }

    /* 게시글 2단 배치(2026-11-04 사용자 지시로 출처·관련 아티클은 모든 폭에서 하단 독 버튼 + 팝업으로 통일): 넓은 화면(1100px 이상)에서 본문은 왼쪽,
       오른쪽 300px 열은 비워 둔다(관련 테크 뉴스를 넣을 자리로 검토 중). 오른쪽 열의 옛 박스·붙박이 스타일은 삭제했다 */
    .reference-more {
      display: none;
      margin-top: 0.5rem;
      padding: 0;
      font: inherit;
      font-size: 0.8rem;
      color: var(--primary);
      background: none;
      border: 0;
      cursor: pointer;
    }
    .post-toc { display: none; }
    @media (min-width: 1100px) {
      .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 48px;
        align-items: start;
      }
      /* 목차 타임라인(2026-11-04 사용자 지시): 오른쪽 빈 열에 본문 소제목을 세로 선과 점으로 잇고, 지금 읽는 위치를 따라 강조한다. 위 띠·제목 띠를 피해 붙박이로 따라온다 */
      .post-toc:not([hidden]) { display: block; position: sticky; top: calc(var(--masthead-h) + 24px); padding: 20px 18px; background: var(--bg); border-radius: var(--radius-box); transition: top 0.32s cubic-bezier(0.16, 1, 0.3, 1); }  /* 박스: 라이트는 흰색, 다크는 검정(--bg) */
      body.bars-hidden .post-toc:not([hidden]) { top: 24px; }
      body.post-bar-on .post-toc:not([hidden]) { top: calc(var(--masthead-h) * 2 + 24px); }
      body.post-bar-on.bars-hidden .post-toc:not([hidden]) { top: calc(var(--masthead-h) + 24px); }
      .post-toc ol { position: relative; margin: 0; padding: 0; list-style: none; }
      .post-toc ol::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
      .post-toc li { position: relative; }
      .post-toc a { display: block; padding: 6px 0 6px 24px; font-size: 0.86rem; line-height: 1.5; color: var(--tx-4); text-decoration: none; word-break: keep-all; transition: color 0.2s ease; }
      .post-toc a::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--tx-5); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
      .post-toc a:hover { color: var(--tx-1); }
      .post-toc li.is-read a::before { background: var(--tx-5); }
      .post-toc li.is-active a { color: var(--tx-hi); font-weight: 700; }
      .post-toc li.is-active a::before { background: var(--primary); border-color: var(--primary); transform: scale(1.25); }
    }

    @media (max-width: 767px) {
      :root { --gutter: 16px; }
      main.site-main { padding-top: 28px !important; padding-bottom: 44px !important; }
      .article-cover-hero .hero-cover-content { padding-top: calc(var(--masthead-h) + 16px) !important; padding-bottom: calc(var(--dock-h) + 16px) !important; }
    }
    /* 라이트 모드 보정: 변수로 못 옮긴 색 */

    :root[data-theme="light"] .post-body :not(pre) > code { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
    :root[data-theme="light"] .post-body p, :root[data-theme="light"] .post-body ul, :root[data-theme="light"] .post-body ol { color: var(--text-main); }
    :root[data-theme="light"] .kg-stack img { border-color: var(--bg-card); }
    :root[data-theme="light"] .article-tile-thumb { background: var(--bg-alt); }
    :root[data-theme="light"] .article-tile-cat { color: color-mix(in srgb, var(--cat, #475569) 38%, #0f172a); }
    :root[data-theme="light"] .kg-chips .dock-trail .dock-chip, :root[data-theme="light"] .kg-chips .dock-trail small, :root[data-theme="light"] .kg-chips .dock-slash { color: rgba(15, 23, 42, 0.85); }
    /* 라이트 모드의 게시글 표지: 흰 바탕에 표지 색이 은은히 비치고 글자는 짙게 */
    :root[data-theme="light"] .article-cover-hero { background: #f4f6f9; color: var(--tx-hi); }
    :root[data-theme="light"] .article-cover-hero::after { background: #ffffff; opacity: calc(var(--p, 0) * 0.55); }
    :root[data-theme="light"] .hero-cover-bg img { filter: blur(10px) saturate(0.95); }
    :root[data-theme="light"] .cover-dark-blur-overlay { background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.86) 100%); }
    :root[data-theme="light"] .article-cover-hero .hero-cover-title { color: var(--tx-hi); text-shadow: none; }
    :root[data-theme="light"] .article-cover-hero .hero-cover-description { color: var(--tx-3); text-shadow: none; }
    :root[data-theme="light"] .hero-meta-row { color: var(--tx-3); text-shadow: none; }
    :root[data-theme="light"] .hero-meta-category { color: color-mix(in srgb, var(--cat, #2563eb) 45%, #0f172a); background: color-mix(in srgb, var(--cat, #2563eb) 14%, transparent); border-color: color-mix(in srgb, var(--cat, #2563eb) 45%, transparent); }
    :root[data-theme="light"] .hero-recent-cat, :root[data-theme="light"] .search-result-cat { color: color-mix(in srgb, var(--cat, #475569) 45%, #0f172a); }
    :root[data-theme="light"] #dockDrawer .hero-recent-cat, :root[data-theme="light"] #dockDrawer .search-result-cat { color: color-mix(in srgb, var(--cat, #94a3b8) 70%, #ffffff); }  /* 라이트 모드의 서랍은 검정 바탕이라 글자를 밝게 */
    :root:not([data-theme="light"]) #dockDrawer .hero-recent-cat, :root:not([data-theme="light"]) #dockDrawer .search-result-cat { color: color-mix(in srgb, var(--cat, #475569) 45%, #0f172a); }  /* 다크 모드의 서랍은 흰 바탕이라 글자를 어둡게 */
    :root[data-theme="light"] .hero-copy-btn.is-copied { background: rgba(22, 163, 74, 0.14); border-color: rgba(22, 163, 74, 0.5); }
    /* 테마 전환 버튼: 지금 모드의 반대 모양(다크일 때 해, 라이트일 때 달)을 보여 준다 */
    .theme-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: auto; padding: 0; color: var(--dock-text); background: rgb(var(--ov) / 0.06); border: 1px solid var(--dock-border); border-radius: 50%; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
    .theme-toggle:hover { background: rgb(var(--ov) / 0.12); }
    .site-masthead .lang-toggle { margin-left: auto; margin-right: 6px; }
    .site-masthead .lang-toggle + .lang-menu + .theme-toggle { margin-left: 0; }
    .lang-menu { position: fixed; top: calc(var(--masthead-h) - 2px); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 9700; display: flex; flex-direction: column; min-width: 148px; padding: 6px; border-radius: var(--radius-box); background: var(--isl); border: 1px solid rgb(var(--ov) / 0.14); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
    .lang-menu[hidden] { display: none; }
    .lang-menu button { font: inherit; font-size: 0.86rem; text-align: left; padding: 8px 12px; border: 0; border-radius: 10px; color: var(--tx-1); background: transparent; cursor: pointer; }
    .lang-menu button:hover { background: rgb(var(--ov) / 0.08); }
    .lang-menu button[aria-checked="true"] { font-weight: 700; color: var(--acc); }
    .theme-toggle .icon-moon { display: none; }
    :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
    :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
