:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #1c2430;
  --muted: #667085;
  --line: #d8dee8;
  --accent: #0f766e;
  --accent-weak: #e6f4f1;
  --warn: #9a5800;
  --warn-bg: #fff6df;
  --code: #263238;
  --shadow: 0 18px 50px rgba(28, 36, 48, 0.08);
}

* { box-sizing: border-box; }
*, *::before, *::after {
  min-width: 0;
}
html {
  color-scheme: light;
  min-width: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  min-width: 0;
  overflow-x: hidden;
}
p,
li,
dd,
figcaption {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
a {
  color: #075985;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: #0f766e; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 249, 0.94);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 0 16px;
}
.brand-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  min-width: 0;
}
.brand { min-width: 180px; }
.brand a {
  display: inline-flex;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}
.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
}
.top-nav a:hover { color: var(--accent); }
.top-nav .root-home-link {
  color: var(--ink);
  font-weight: 750;
}
.search-wrap {
  position: relative;
  z-index: 60;
}
.search-input {
  width: 100%;
  min-height: 58px;
  border: 2px solid #b7c0cc;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.18rem;
  padding: 0 18px;
  outline: none;
  box-shadow: var(--shadow);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14), var(--shadow);
}
.search-results {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  display: none;
  max-height: min(420px, 70vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  z-index: 40;
}
.search-results[aria-hidden="false"] { display: block; }
.result-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.result-item:last-child { border-bottom: 0; }
.result-item[aria-selected="true"], .result-item:hover { background: var(--accent-weak); }
.result-type {
  align-self: start;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 8px;
  text-align: center;
}
.result-title { font-weight: 720; }
.result-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
}
.layout {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 0 56px;
  min-width: 0;
}
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 30px;
  align-items: start;
}
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
.article > * {
  max-width: 100%;
}
.article h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.article h2 {
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.42rem;
}
.article h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}
.article ul {
  margin: 10px 0 16px;
  padding-left: 1.25rem;
}
.article li {
  margin: 4px 0;
}
.lead { color: #344054; font-size: 1.08rem; }
.placeholder {
  border-left: 4px solid var(--accent);
  background: var(--accent-weak);
  color: #31524f;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
}
.doc-entry-link {
  margin: 8px 0 22px;
}
.doc-entry-link a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  color: var(--ink);
  font-weight: 700;
  padding: 6px 12px;
  text-decoration: none;
}
.doc-entry-link a:hover {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}
.side-panel {
  position: sticky;
  top: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  min-width: 0;
}
.side-panel h2, .side-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
}
.toc {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc a {
  color: #344054;
  text-decoration: none;
}
.toc a:hover { color: var(--accent); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.info-card, .block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  padding: 16px;
}
.info-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.info-card dd {
  margin: 3px 0 0;
  font-weight: 680;
  overflow-wrap: anywhere;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.link-card {
  display: block;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.link-card span {
  color: var(--muted);
  font-size: 0.92rem;
}
.link-card:hover { border-color: var(--accent); background: var(--accent-weak); }
.more-link {
  margin: 14px 0 0;
}
.more-link a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 2px 10px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}
.status-note {
  border: 1px solid #f2cf89;
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  padding: 12px 14px;
}
.video-grid {
  display: grid;
  gap: 16px;
}
.video-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #101828;
}
.video-box iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.video-caption {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 12px;
}
.chart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.95rem;
  table-layout: fixed;
  max-width: 100%;
}
.chart-table th, .chart-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.chart-table th {
  background: #eef2f6;
  color: #344054;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.doc-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.95rem;
}
.doc-table th,
.doc-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.doc-table th {
  background: #eef2f6;
  color: #344054;
}
.code-sample {
  margin: 14px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #eef2f6;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
}
.code-sample code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}
.doc-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.community-label {
  display: inline-flex;
  border: 1px solid #f2cf89;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 1px 8px;
}
.radar-list {
  display: grid;
  gap: 12px;
}
.radar-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
.radar-table-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.radar-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.radar-table th,
.radar-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
}
.radar-table th {
  background: #eef2f6;
  color: #344054;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.radar-table td:last-child {
  width: 96px;
  font-variant-numeric: tabular-nums;
}
.comment-board {
  display: grid;
  gap: 16px;
}
.comment-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  min-width: 0;
}
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 14px;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px var(--line);
}
.comment-form textarea:focus {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.comment-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.comment-form-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px) minmax(0, auto) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.comment-help {
  color: var(--muted);
  font-size: 0.88rem;
}
.comment-password-label {
  display: block;
  min-width: 0;
}
.comment-password-label input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 6px 10px;
}
.comment-password-label input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.comment-submit,
.comment-pager button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}
.comment-submit {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.comment-submit[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}
.comment-status {
  margin: 0;
  color: var(--warn);
  font-size: 0.9rem;
}
.comment-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.comment-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  padding: 14px;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 0;
}
.comment-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.comment-delete:hover {
  color: var(--accent);
}
.comment-body {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.comment-empty {
  margin: 0;
  color: var(--muted);
}
.turnstile-slot {
  max-width: 100%;
  min-height: 0;
}
.radar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}
.radar-name { font-weight: 730; }
.radar-bar {
  height: 12px;
  border-radius: 999px;
  background: #e5e9f0;
  overflow: hidden;
}
.radar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #eef1f5;
  color: var(--muted);
}
.site-footer a {
  color: #075985;
  overflow-wrap: anywhere;
}
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0;
  font-size: 0.9rem;
}
.footer-inner p { margin: 4px 0; }
.ad-slot {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  text-align: center;
  contain: layout paint;
}
.ad-slot:not([hidden]) {
  display: block;
}
.ad-slot-top:not([hidden]) {
  min-height: 90px;
  margin: 0 0 20px;
}
.site-header .ad-slot-top:not([hidden]) {
  margin: 0 0 12px;
}
.ad-slot-inline:not([hidden]) {
  width: min(300px, 100%);
  min-height: 250px;
  margin: 24px 0;
}
.ad-slot-footer:not([hidden]) {
  min-height: 90px;
  margin: 0 0 16px;
}
.ad-slot-side:not([hidden]) {
  width: 160px;
  min-height: 600px;
  margin: 18px auto 0;
}
.adsbygoogle,
.kakao_ad_area {
  max-width: 100% !important;
  margin: 0 auto;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 10px;
}
.skip-link:focus { left: 8px; z-index: 100; }
.notice {
  border: 1px solid var(--line);
  background: var(--warn-bg);
  color: #3f2d11;
  border-radius: 8px;
  padding: 10px 12px;
}
@media (max-width: 860px) {
  .brand-row { align-items: start; flex-direction: column; gap: 10px; }
  .doc-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .article { padding: 22px; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header {
    position: static;
  }
  .header-inner, .layout, .footer-inner {
    width: calc(100% - 16px);
    max-width: 1120px;
  }
  .header-inner {
    padding: 12px 0;
  }
  .brand {
    min-width: 0;
    width: 100%;
  }
  .brand a {
    font-size: 1.35rem;
  }
  .tagline {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .top-nav {
    width: 100%;
    gap: 6px;
  }
  .top-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 2px 8px;
  }
  .search-input {
    min-height: 50px;
    border-width: 1px;
    font-size: 1rem;
    padding: 0 12px;
    box-shadow: none;
  }
  .search-results {
    position: absolute;
    inset: calc(100% + 6px) 0 auto 0;
    max-height: min(360px, calc(100vh - 96px));
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(28, 36, 48, 0.16);
    z-index: 80;
  }
  .result-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 5px 10px;
    padding: 10px 12px;
  }
  .result-type {
    min-width: 46px;
    width: 46px;
    padding: 1px 0;
  }
  .result-meta {
    grid-column: 2;
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .layout {
    padding: 18px 0 34px;
    overflow-x: hidden;
  }
  .article {
    width: 100%;
    max-width: calc(100vw - 16px);
    border-radius: 8px;
    padding: 16px;
    overflow-x: hidden;
  }
  .article p,
  .article li,
  .article dd,
  .article a,
  .lead,
  .placeholder,
  .badge,
  .comment-body {
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .article h1 {
    font-size: 2rem;
    line-height: 1.12;
  }
  .article h2 {
    margin-top: 28px;
    font-size: 1.26rem;
  }
  .article h3 {
    font-size: 1rem;
  }
  .chart-table,
  .doc-table,
  .radar-table {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow-x: visible;
    white-space: normal;
    font-size: 0.84rem;
  }
  .chart-table th,
  .chart-table td,
  .doc-table th,
  .doc-table td,
  .radar-table th,
  .radar-table td {
    padding: 7px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .code-sample {
    padding: 12px;
    overflow-x: hidden;
  }
  .code-sample code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .link-grid { grid-template-columns: 1fr; }
  .link-card {
    min-height: 0;
  }
  .info-card, .block, .link-card { padding: 12px; }
  .meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .badge {
    display: block;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
  }
  .video-caption {
    font-size: 0.84rem;
  }
  .radar-row { grid-template-columns: 92px minmax(0, 1fr) 42px; gap: 8px; }
  .ad-slot-top:not([hidden]),
  .ad-slot-footer:not([hidden]) {
    min-height: 100px;
  }
  .ad-slot-inline:not([hidden]) {
    min-height: 100px;
    width: 100%;
  }
  .article > .ad-slot {
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .ad-slot .kakao_ad_area {
    max-width: none !important;
  }
  .comment-form-row {
    grid-template-columns: 1fr auto;
  }
  .comment-form textarea {
    min-height: 118px;
    padding: 12px;
  }
  .comment-help {
    order: 1;
  }
  .comment-submit {
    order: 2;
  }
  .comment-password-label {
    grid-column: 1 / -1;
    order: 3;
  }
  .turnstile-slot {
    grid-column: 1 / -1;
    order: 4;
  }
  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .comment-delete {
    min-height: 32px;
    padding: 0;
  }
  .footer-inner {
    font-size: 0.84rem;
  }
}

@media (max-width: 380px) {
  .header-inner, .layout, .footer-inner {
    width: calc(100% - 12px);
    max-width: 1120px;
  }
  .article {
    max-width: calc(100vw - 12px);
    padding: 14px;
  }
  .article > .ad-slot {
    width: calc(100% + 28px);
    max-width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
  }
  .article h1 {
    font-size: 1.72rem;
  }
  .top-nav a {
    font-size: 0.9rem;
  }
  .search-results {
    inset: calc(100% + 6px) 0 auto 0;
  }
}
