
  * {
    box-sizing: border-box;
  }

  :root {
    --text-main: #191919;
    --text-body: #2f2f2f;
    --text-muted: #6f6f6f;
    --line-soft: #ececec;
    --surface-code: #f6f6f3;
    --accent: #df0f57;
    --content-width: 760px;
    --topbar-height: 44px;
    --sidebar-width: 300px;
    --layout-width: 1100px;
    --link-color: #0b6bcb;
    --focus-ring: #1a73e8;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    background: #fff;
    color: var(--text-main);
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  a {
    color: inherit;
  }

  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .topbar-inner {
    width: 100%;
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }

  .topbar-home,
  .topbar-home:visited,
  .topbar-home:hover,
  .topbar-home:active {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    text-underline-offset: 3px;
  }

  .topbar-home:hover {
    text-decoration: underline;
  }

  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    max-width: var(--layout-width);
    margin: 0 auto;
    height: calc(100vh - var(--topbar-height));
  }

  .sidebar {
    overflow-y: auto;
    border-right: 1px solid var(--line-soft);
    background: #fff;
    padding: 28px 14px 28px;
  }

  .sidebar-inner {
    width: 100%;
  }

  .series-title {
    margin: 0 0 14px;
    padding: 0 8px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.04em;
    color: var(--text-main);
  }

  .toc {
    display: flex;
    flex-direction: column;
    gap: 2;
  }

  .toc-group {
    margin-bottom: 6px;
  }

  .toc-group-title {
    margin: 10px 0 4px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #df0f57;
    text-transform: uppercase;
  }

  .toc a {
    display: block;
    padding: 5px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .toc a:hover {
    background: #f3f3f3;
  }

  .toc a.active {
    background: #f3f3f3;
    color: #111;
    font-weight: 600;
  }

  .main {
    overflow-y: auto;
    background: #fff;
  }

  .content-wrap {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 52px 56px 96px;
  }

  .doc-header {
    margin-bottom: 48px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .doc-category {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
  }

  .doc-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -0.06em;
    color: var(--text-main);
  }

  .doc-meta {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    letter-spacing: -0.01em;
  }

  .content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.03em;
    color: var(--text-body);
    text-align: left;
  }

  .content strong {
    font-weight: 700;
    color: #0f172a;
    background-color: rgba(189, 242, 239, 0.4);
    padding: 0 1px;
    border-radius: 1px;
  }

  .content mark {
    color: #0f172a;
    background-color: rgba(189, 242, 239, 0.4);
    padding: 0 1px;
    border-radius: 1px;
  }

  .content b {
    font-weight: 700;
  }

  .content > *:first-child {
    margin-top: 0 !important;
  }

  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h5,
  .content h6 {
    margin-top: 44px;
    margin-bottom: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.04em;
    color: var(--text-main);
  }

  .content h1 { font-size: 34px; }
  .content h2 { font-size: 28px; }
  .content h3 { font-size: 23px; }
  .content h4 { font-size: 19px; }
  .content h5 { font-size: 17px; }
  .content h6 { font-size: 15px; }

  .content p {
    margin: 0 0 18px;
  }

  .content a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: rgba(11, 107, 203, 0.45);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
  }

  .content a:hover {
    text-decoration-color: rgba(11, 107, 203, 0.9);
  }

  .content ul,
  .content ol {
    margin: 0 0 24px;
    padding-left: 1.4em;
    text-align: left;
  }

  .content li {
    margin-bottom: 5px;
    padding-left: 0.1em;
  }

  .content li > ul,
  .content li > ol {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .content blockquote {
    margin: 28px 0;
    padding: 6px 0 6px 18px;
    border-left: 3px solid #d9d9d9;
    color: #555;
    text-align: left;
  }

  .content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
  }

  .content table:not(.ax-table) {
    border-collapse: collapse;
    width: auto;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.6;
    table-layout: auto;
  }

  .content table:not(.ax-table) th,
  .content table:not(.ax-table) td {
    border: 1px solid #e0e0e0;
    padding: 6px 18px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
  }

  .content table:not(.ax-table) th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
  }

  .content table:not(.ax-table) th:first-child,
  .content table:not(.ax-table) td:first-child {
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
  }

  .content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 40px 0 48px;
    border-radius: 0px;
  }

  .content code {
    display: inline-block;
    padding: 0.16em 0.45em;
    border-radius: 6px;
    background: var(--surface-code);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    color: #3b3b3b;
    vertical-align: baseline;
  }

  .content pre {
    margin: 28px 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--surface-code);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content pre code {
    display: block;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.92em;
    line-height: 1.75;
    white-space: pre;
  }

  .reference-heading {
    margin-top: 16px;
    padding-top: 24px;
    font-weight: 600;
  }

  .doc-nav {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding-top: 0;
    border-top: 0;
  }

  .doc-nav a,
  .doc-nav .nav-placeholder {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    min-height: auto;
    text-decoration: none;
  }

  .doc-nav a:hover {
    background: transparent;
  }

  .doc-nav-next {
    margin-left: auto;
    text-align: right;
  }

  .nav-label {
    display: inline;
    margin-right: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #2f2f2f;
    text-decoration: none !important;
  }

  .doc-nav a:hover .nav-label {
    text-decoration: none !important;
  }

  .nav-title {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-main);
    text-decoration: none;
  }

  .doc-nav a:hover .nav-title {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .nav-placeholder {
    display: none;
  }

  .post-footer {
    margin-top: 60px;
    padding-top: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6f6f6f;
    text-align: left;
  }

  .error {
    color: #b00020;
    font-size: 15px;
    line-height: 1.7;
  }

  .topbar-home:focus-visible,
  .toc a:focus-visible,
  .doc-nav a:focus-visible,
  .content a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 4px;
  }

  @media (max-width: 1100px) {
    .layout {
      grid-template-columns: 1fr;
      height: auto;
    }

    .sidebar {
      overflow-y: visible;
      border-right: 0;
      border-bottom: 1px solid var(--line-soft);
      padding: 16px 12px 14px;
    }

    .main {
      overflow-y: visible;
    }

    .series-title {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .toc-group {
      margin-bottom: 4px;
    }

    .toc-group-title {
      margin: 7px 0 4px;
      font-size: 11px;
    }

    .toc a {
      padding: 4px 8px;
      font-size: 13px;
      line-height: 1.3;
    }

    .content-wrap {
      padding: 36px 18px 72px;
    }

    .doc-title {
      font-size: 36px;
    }

    .doc-nav {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .doc-nav-next {
      margin-left: 0;
      text-align: left;
    }
  }

  @media (max-width: 768px) {
    .topbar-inner {
      padding: 0 16px;
    }

    .content-wrap {
      padding: 28px 18px 64px;
    }

    .doc-header {
      margin-bottom: 40px;
    }

    .doc-title {
      font-size: 31px;
      line-height: 1.3;
    }

    .content {
      font-size: 17px;
      line-height: 1.76;
    }

    .content h1 {
      margin: 44px 0 16px;
      font-size: 24px;
    }

    .content h2 {
      margin: 40px 0 16px;
      font-size: 22px;
    }

    .content h3 {
      margin: 34px 0 14px;
      font-size: 20px;
    }

    .content h4 {
      margin: 28px 0 12px;
      font-size: 17px;
    }

    .content h5 {
      margin: 24px 0 10px;
      font-size: 15px;
    }

    .content h6 {
      margin: 22px 0 8px;
      font-size: 13px;
    }

    .content img {
      margin: 24px 0 32px;
      border-radius: 12px;
    }

    .content table:not(.ax-table) {
      font-size: 14px;
    }

    .content table:not(.ax-table) th,
    .content table:not(.ax-table) td {
      padding: 5px 10px;
    }

    .content pre {
      margin: 24px 0;
      padding: 16px;
      border-radius: 12px;
    }

    .post-footer {
      margin-top: 48px;
      font-size: 12px;
    }
  }

/* ===== Docs 페이지 스크롤바: 오버레이 스타일 ===== */

/* Firefox */
html,
body,
.sidebar,
.main {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html:hover,
body:hover,
.sidebar:hover,
.main:hover {
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

html:hover::-webkit-scrollbar-thumb,
body:hover::-webkit-scrollbar-thumb,
.sidebar:hover::-webkit-scrollbar-thumb,
.main:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}

html:hover::-webkit-scrollbar-thumb:hover,
body:hover::-webkit-scrollbar-thumb:hover,
.sidebar:hover::-webkit-scrollbar-thumb:hover,
.main:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

/* docs.html 본문 우측 잘림 방지 */
.main {
  overflow-x: hidden;
}

.content-wrap {
  padding-right: 32px;
  box-sizing: border-box;
}
/* ═══════════════════════════════
   AX 진단표
   ═══════════════════════════════ */
.ax-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ax-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  border-left: none;
  border-right: none;
}
.ax-table th,
.ax-table td {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 9px 6px;
  vertical-align: middle;
  text-align: center;
}
.ax-table thead th {
  border-top: 2px solid #222;
  border-bottom: 1px solid #bbb;
  background: #f5f5f5;
  font-weight: 700;
  font-size: 13px;
}
.ax-table .c-num { width: 34px; }
.ax-table .c-cat { width: 52px; }
.ax-table .c-item { width: auto; }
.ax-table .c-w  { width: 44px; }
.ax-table .c-yn { width: 46px; }
.ax-cat-cell {
  font-weight: 700;
  font-size: 12px;
  color: #444;
  background: #fafafa;
  word-break: keep-all;
  vertical-align: middle;
  border-top: none;
  border-bottom: none;
}

.ax-cat-cell.cat-first {
  border-top: 2px solid #ccc !important;
  border-bottom: none !important;
}

.ax-cat-cell.cat-last {
  border-bottom: 2px solid #ccc !important;
}
tr.group-first td {
  border-top: 2px solid #ccc;
}
.ax-item {
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: normal;
  padding-left: 8px;
}
.ax-q {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 2px;
}
.ax-d {
  font-size: 12.5px;
  line-height: 1.45;
  color: #666;
}
.ax-yn { cursor: pointer; }
.ax-yn label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  cursor: pointer;
}
.ax-table input[type=radio] {
  transform: scale(1.15);
  cursor: pointer;
}
.ax-actions { margin-top: 20px; display: flex; gap: 10px; }
.ax-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.ax-btn-p { background: #111; color: #fff; }
.ax-btn-s { background: #eee; color: #111; }
#axError {
  margin-top: 16px; padding: 12px 14px;
  border-radius: 8px; background: #fff0f0;
  color: #b00020; border: 1px solid #ffd0d0;
  line-height: 1.6;
}
#axResult {
  margin-top: 16px; padding: 16px;
  border-radius: 10px; background: #f7f7f7;
  line-height: 1.7;
}
#axError:empty, #axResult:empty { display: none; }

@media (max-width: 600px) {
  .ax-table { font-size: 12.5px; }
  .ax-table th.c-cat,
  .ax-table td.ax-cat-cell { display: none; }
  .ax-table .c-num { width: 22px; font-size: 11px; }
  .ax-table .c-w  { width: 30px; font-size: 11px; }
  .ax-table .c-yn { width: 36px; }
  .ax-table th, .ax-table td { padding: 7px 3px; }
  .ax-q { font-size: 12.5px; }
  .ax-d { font-size: 11.8px; }
  .ax-yn label { min-height: 34px; }
}
#axTable tbody tr:last-child td {
  border-bottom: 2px solid #222;
}
.ax-wrap {
  position: relative;
  z-index: 0;
}
#axTable tbody tr:last-child .ax-cat-cell {
  background: transparent;
}
#axTable tbody tr:last-child td {
  border-bottom: 2px solid #222;
}

#axTable tbody tr:last-child .ax-cat-cell {
  border-bottom: 2px solid #222 !important;
}

.ux-design-book .toc a {
  margin-bottom: 6px;
}

.ux-design-book .toc-group {
  margin-bottom: 10px;
}
