/* Shared SDK section controls. Imported by the site and copied into the reference. */
.sdk-context-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 32px; padding: 8px; border: 1px solid #e9e9ef; border-radius: 8px; background: #fcfcfd; font-size: .8125rem; line-height: 1.5; }
.sdk-context-links { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sdk-context-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border-radius: 6px; color: #64646f; font-weight: 500; white-space: nowrap; text-decoration: none; }
.sdk-context-nav a:hover { background: #f4f4f7; color: #18181b; text-decoration: none; }
.sdk-context-nav a[aria-current] { color: #b94316; background: #fff1e9; font-weight: 600; }
.sdk-context-nav a.sdk-reference-link { color: #b94316; }
.sdk-context-version { padding: 0 8px; color: #64646f; font: 11px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: nowrap; }

/* Direct downloads stay visible on both current and historical SDK pages. */
.sdk-downloads { margin: 24px 0 32px; padding: 20px; border: 1px solid #e9e9ef; border-radius: 8px; background: #fcfcfd; }
.sdk-download-version { margin: 0 0 12px; color: #64646f; font-size: 12px; line-height: 1.6; }
.sdk-download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sdk-download-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid #d9d9e1; border-radius: 6px; background: #fff; color: #27272a; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.sdk-download-actions a:hover { border-color: #b94316; color: #b94316; text-decoration: none; }
.sdk-download-actions a.sdk-download-primary { border-color: #b94316; background: #b94316; color: #fff; }
.sdk-download-actions a.sdk-download-primary:hover { border-color: #96350f; background: #96350f; }
.sdk-download-actions a.sdk-download-guide { border-color: transparent; background: transparent; color: #b94316; }
.sdk-download-actions a:focus-visible { outline: 2px solid #b94316; outline-offset: 3px; }
@media (max-width: 560px) {
  .sdk-downloads { padding: 16px; }
  .sdk-download-actions { align-items: stretch; }
  .sdk-download-actions a { flex: 1 1 170px; }
}

/* Reference chrome follows the existing DTRAC site header and reading grid. */
body[data-page] { --accent: #b94316; --accent-hover: #96350f; --accent-soft: #fff1e9; --ink: #18181b; --body: #27272a; --muted: #64646f; --line: #e9e9ef; --surface: #f8f8fa; --sidebar: 240px; --header: 108px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; font-size: 16px; }
.sdk-site-header { position: fixed; inset: 0 0 auto; z-index: 35; background: #fff; border-bottom: 1px solid #e9e9ef; }
.sdk-site-header .header-inner { display: flex; align-items: center; height: 64px; padding: 0 28px; gap: 32px; }
.sdk-site-header .brand { display: flex; align-items: center; gap: 12px; width: 180px; min-width: 0; flex-shrink: 0; }
.sdk-site-header .brand-link { display: flex; align-items: center; gap: 9px; color: #18181b; }
.sdk-site-header .brand-link:hover { text-decoration: none; }
.sdk-site-header .brand-link strong { font-size: 18px; letter-spacing: -.045em; font-weight: 700; }
.sdk-site-header .brand-link img { width: 28px; height: 28px; border-radius: 7px; }
.sdk-site-header .brand-docs { color: #64646f; font-size: 12px; border-left: 1px solid #e9e9ef; padding-left: 12px; }
.sdk-site-header .header-search { flex: 1; }
.sdk-site-header .search-open { display: flex; align-items: center; width: min(100%,360px); max-width: none; height: 36px; gap: 9px; padding: 0 12px; border: 1px solid #e9e9ef; border-radius: 7px; background: #f8f8fa; color: #64646f; font-size: 13px; }
.sdk-site-header .search-open:hover { border-color: #dc9b77; }
.sdk-site-header kbd { font-family: inherit; font-size: 12px; margin-left: auto; padding: 0 4px; border: 1px solid #e9e9ef; background: #fff; }
.sdk-site-header .header-tools { display: flex; align-items: center; gap: 24px; }
.sdk-site-header .header-guide, .sdk-site-header .language-switch { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #64646f; font-size: 13px; white-space: nowrap; }
.sdk-site-header .header-guide:hover, .sdk-site-header .language-switch:hover { color: #b94316; text-decoration: none; }
.sdk-site-header .language-short { display: none; }
.sdk-site-header .product-tabs { display: flex; align-items: stretch; gap: 28px; padding: 0 28px; height: 43px; border-top: 1px solid #f4f4f7; overflow-x: auto; scrollbar-width: none; }
.sdk-site-header .product-tabs a { display: flex; align-items: center; border-bottom: 2px solid transparent; color: #64646f; font-size: 13px; white-space: nowrap; }
.sdk-site-header .product-tabs a:hover { color: #18181b; text-decoration: none; }
.sdk-site-header .product-tabs a:first-child { min-width: 180px; }
.sdk-site-header .product-tabs a[aria-current] { border-color: #eb5e28; color: #b94316; font-weight: 600; }
body[data-page] .sidebar { width: var(--sidebar); padding: 26px 16px; background: #fff; }
body[data-page] .nav-link { padding: 7px 10px; font-size: 14px; line-height: 1.5; color: #64646f; }
body[data-page] .nav-link.active { background: #fff1e9; color: #b94316; font-weight: 500; }
body[data-page] .nav-link.active::before { background: #eb5e28; }
body[data-page] .nav-group h2 { color: #18181b; font-size: 12px; }
body[data-page] .doc-layout { grid-template-columns: minmax(0,760px) 172px; gap: 48px; padding: 42px 48px 0; margin-left: var(--sidebar); max-width: 1200px; }
body[data-page] .breadcrumb { gap: 7px; margin-bottom: 24px; font-size: 12px; color: #64646f; }
body[data-page] .breadcrumb a { color: #64646f; }
body[data-page] .breadcrumb a:hover { color: #b94316; }
body[data-page] .breadcrumb [aria-current] { color: #27272a; }
body[data-page] h1 { color: #18181b; font-size: 40px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
body[data-page] .lead { color: #64646f; font-size: 17px; line-height: 1.75; }
body[data-page] .eyebrow { font-size: 12px; color: #b94316; }
body[data-page] .meta { font-size: 12px; }
body[data-page] .warm { color: #b94316; background: #fff1e9; }
body[data-page] .toc { font-size: 12px; }
body[data-page] .toc nav a.current { color: #b94316; border-color: #eb5e28; }
body[data-page] .codebox { background: #202027; border-color: #3c3c48; }
body[data-page] .codebar { background: #292932; border-color: #3c3c48; }

@media (max-width: 1200px) {
  body[data-page] .doc-layout { grid-template-columns: minmax(0,1fr); max-width: 900px; gap: 0; padding: 36px 40px 0; }
}
@media (max-width: 833px) {
  body[data-page] { --header: 64px; --sidebar: min(280px,calc(100vw - 48px)); }
  .sdk-site-header .header-inner { padding: 0 14px; gap: 12px; }
  .sdk-site-header .brand { flex: 1; width: auto; gap: 5px; }
  .sdk-site-header .brand-link { gap: 7px; }
  .sdk-site-header .brand-docs, .sdk-site-header .product-tabs, .sdk-site-header .header-guide, .sdk-site-header .language-full { display: none; }
  .sdk-site-header .header-search { flex: 0; }
  .sdk-site-header .header-tools { gap: 0; }
  .sdk-site-header .language-short { display: inline; }
  .sdk-site-header .language-switch { justify-content: center; width: 44px; height: 44px; }
  .sdk-site-header .mobile-toggle { display: inline-flex; width: 36px; min-width: 36px; height: 44px; border: 0; background: transparent; }
  .sdk-site-header .search-open { width: 44px; height: 44px; min-width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .sdk-site-header .search-open > span, .sdk-site-header .search-open kbd { display: none; }
  body[data-page] .doc-layout { margin-left: 0; padding: 30px 24px 0; }
  body[data-page] .breadcrumb { margin-bottom: 20px; }
  body[data-page] h1 { font-size: 34px; }
  body[data-page] .nav-link { min-height: 44px; display: flex; align-items: center; }
  body[data-page] .doc-heading { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .sdk-context-nav { gap: 0; margin-bottom: 26px; padding: 6px; }
  .sdk-context-links { width: 100%; }
  .sdk-context-nav a { flex: 1; min-height: 44px; padding: 8px; }
  .sdk-context-version { display: none; }
}
@media print { .sdk-site-header, .sdk-context-nav { display: none; } }
