:root {
  --bg: #ffffff;
  --line: #ececec;
  --line-strong: #d9d9d9;
  --text: #111111;
  --text-secondary: #555555;
  --text-tertiary: #999999;
  --link: #1d6fe0;
  --font: "Instrument Sans", "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --header-h: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--bg); padding: 4px 8px; }

/* Product names ("Airy", "Airy Studio", …) use the airy-web app-switcher wordmark style. */
.brand-name, .eyebrow {
  font-family: "Instrument Sans", var(--font);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 15px; }
.brand-sep { color: var(--line-strong); }
.brand-section { color: var(--text-secondary); }
.lang-switch { font-size: 14px; color: var(--text-secondary); }
.lang-switch:hover { color: var(--text); text-decoration: none; }

/* Layout */
.layout {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 64px;
}
.sidebar, .toc-col {
  position: sticky; top: var(--header-h); align-self: start;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 48px 0;
}
.nav-mobile { display: none; }
.nav-group + .nav-group { margin-top: 28px; }
.nav-heading { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }
a.nav-single { margin: 0; padding: 4px 0; }
a.nav-single:hover { text-decoration: none; }
.sidebar ul, .toc ol { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: block; padding: 4px 0;
  font-size: 14px; line-height: 1.5; color: var(--text-tertiary);
}
.sidebar li a:hover { color: var(--text); text-decoration: none; }
.sidebar li a[aria-current="page"] { color: var(--text); font-weight: 600; }

.toc-heading { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.toc li a {
  display: block; padding: 4px 0;
  font-size: 13px; line-height: 1.5; color: var(--text-tertiary);
}
.toc li a:hover { color: var(--text); text-decoration: none; }

/* Document */
.doc { padding: 48px 0 96px; min-width: 0; max-width: 720px; }
.eyebrow { margin: 0 0 8px; font-size: 15px; color: var(--text-secondary); }
.doc h1 { margin: 0; font-size: 34px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.doc-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
  margin: 20px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--text-secondary);
}
.versions { position: relative; }
.versions > summary { cursor: pointer; list-style: none; color: var(--text-secondary); }
.versions > summary::-webkit-details-marker { display: none; }
.versions > summary::after { content: " ▾"; color: var(--text-tertiary); }
.versions > summary:hover { color: var(--text); }
.versions ol {
  position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 240px;
  margin: 0; padding: 6px 0; list-style: none; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.versions li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 14px; }
.versions li a { color: var(--text); }
.versions li a[aria-current="page"] { font-weight: 600; }
.tag { font-size: 12px; color: var(--text-tertiary); }
.tag-current { color: var(--text); }
.notice {
  margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text-secondary);
}
.notice a { white-space: nowrap; }
.doc-meta + .prose, .notice + .prose { margin-top: 40px; }

.prose { font-size: 16px; color: #222; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2 { margin: 3em 0 0.8em; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.prose h3, .prose h4 { margin: 2.4em 0 0.7em; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--text); }
.prose h2, .prose h3, .prose h4 { position: relative; }
.prose .anchor {
  position: absolute; left: -1em; width: 1em; color: var(--line-strong); opacity: 0; font-weight: 400;
}
.prose .anchor:hover { text-decoration: none; color: var(--text-tertiary); }
.prose :is(h2, h3, h4):hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose ol, .prose ul { padding-left: 1.5em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--text-tertiary); }
.prose li > ol, .prose li > ul { margin: 0.4em 0 0.6em; }
.prose ol ol { list-style: lower-alpha; }
.prose ol ol ol { list-style: lower-roman; }
.prose strong { font-weight: 600; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose em { color: var(--text-secondary); }

.table-wrap { overflow-x: auto; margin: 1.2em 0 1.8em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.prose th, .prose td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 120px; }
.prose th { font-weight: 600; color: var(--text); border-bottom-color: var(--text); }

.prose details { margin: 2.4em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose details > summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; color: var(--text-tertiary); }
.prose details[open] > summary::after { content: "−"; }
.prose details > :last-child { margin-bottom: 1.6em; }
.prose details .anchor { display: none; }

.related { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.related a { font-size: 14px; }
.to-top { margin-top: 48px; font-size: 13px; }
.to-top a { color: var(--text-tertiary); }
.to-top a:hover { color: var(--text); text-decoration: none; }

/* Home: one column per document type, everything visible at once. */
.home { max-width: 1200px; margin: 0 auto; padding: 72px 32px 96px; }
.home h1 { margin: 0 0 12px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lede { margin: 0 0 48px; max-width: 640px; color: var(--text-secondary); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.card { padding-top: 16px; border-top: 1px solid var(--text); }
.card h2 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.card p { margin: 0 0 16px; min-height: 3.2em; font-size: 13px; line-height: 1.6; color: var(--text-tertiary); }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0;
  border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px;
}
.card li:first-child a { border-top: 1px solid var(--line); }
.card li a:hover { text-decoration: none; }
.card li a span:last-child { color: transparent; transition: transform 0.15s, color 0.15s; }
.card li a:hover span:last-child { transform: translateX(3px); color: var(--text); }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card p { min-height: 0; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 32px 48px; font-size: 12px; line-height: 1.7; color: var(--text-tertiary); }
.company { margin: 0 0 6px; font-weight: 600; color: var(--text-secondary); }
.biz { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.biz div { display: flex; gap: 6px; }
.biz dd { margin: 0; color: var(--text-secondary); }
.biz a { color: var(--text-secondary); }
.copy { margin: 12px 0 0; }

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
  .toc-col { display: none; }
}
@media (max-width: 760px) {
  .site-header-inner, .layout, .site-footer-inner { padding-left: 16px; padding-right: 16px; }
  .layout { display: block; }
  .sidebar { position: static; max-height: none; padding: 0; overflow: visible; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; border-bottom: 1px solid var(--line); }
  .nav-mobile > summary {
    cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between;
  }
  .nav-mobile > summary::-webkit-details-marker { display: none; }
  .nav-mobile > summary::after { content: "+"; color: var(--text-tertiary); font-weight: 400; }
  .nav-mobile[open] > summary::after { content: "−"; }
  .nav-mobile nav { padding: 0 0 20px; }
  .doc { padding-top: 32px; }
  .doc h1 { font-size: 28px; }
  .prose .anchor { display: none; }
  .home { padding: 48px 16px 72px; }
  .home h1 { font-size: 30px; }
}

@media print {
  .site-header, .sidebar, .toc-col, .versions, .notice, .related, .to-top, .site-footer .copy { display: none !important; }
  .layout { display: block; padding: 0; }
  body { font-size: 11pt; color: #000; }
  .prose a { color: inherit; }
}
