/* skyu docs — shell styles on top of tokens.css (design: Claude Design export 2026-08) */

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg-app); color: var(--fg-1); font: var(--text-body); font-size: 14px; }
a { color: var(--skyu-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.msym { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; }

/* ---------- Docs shell ---------- */
.ds-shell { display: flex; min-height: 100vh; }
.ds-main { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 32px; padding: 0 32px; }
.ds-article { width: 100%; max-width: 680px; padding: 40px 0 80px; line-height: 1.65; }
.ds-article p { line-height: 1.65; color: var(--fg-1); margin: 0 0 14px; }
.ds-article h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 14px; line-height: 1.15; }
.ds-article h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; letter-spacing: -0.01em; }
.ds-article h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.ds-article ul, .ds-article ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.65; }
.ds-article li { margin: 4px 0; }
.ds-article code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-muted); border: 1px solid var(--border-2); border-radius: 4px; padding: 1px 5px; }
.ds-crumb { font-size: 12.5px; color: var(--fg-2); display: flex; gap: 6px; align-items: center; }
.ds-crumb .sep { color: var(--fg-3); }

/* ---------- Sidebar ---------- */
.ds-aside { width: 256px; flex: none; background: var(--bg-surface); border-right: 1px solid var(--border-2); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.ds-aside .head { padding: 18px 20px 12px; display: flex; align-items: center; gap: 10px; }
.ds-badge { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); border: 1px solid var(--border-1); border-radius: 4px; padding: 2px 6px; }
.ds-themebtn { margin-left: auto; width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--border-1); background: var(--bg-surface); color: var(--fg-2); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.ds-searchbtn { width: 100%; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border-1); border-radius: 25px; background: none; color: var(--fg-3); cursor: pointer; font: var(--text-body); font-size: 13px; }
.ds-searchbtn .kbd { font-family: var(--font-mono); font-size: 11px; margin-left: auto; }
.ds-nav { padding: 4px 10px 20px; }
.ds-nav .gh { display: block; padding: 16px 10px 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.snav { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg-1); text-decoration: none; font-size: 13.5px; }
.snav:hover { background: var(--bg-hover); text-decoration: none; }
.snav.mono { font-family: var(--font-mono); font-size: 13px; }
.snav.on { color: var(--skyu-blue); font-weight: 500; background: rgba(61, 111, 228, 0.07); }
[data-theme="dark"] .snav.on { background: rgba(122, 158, 255, 0.12); }
.ds-aside .foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--border-2); font-size: 12px; color: var(--fg-3); display: flex; justify-content: space-between; align-items: center; }

/* ---------- Mobile topbar + drawer ---------- */
.ds-topbar { display: none; }
.ds-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
@media (max-width: 900px) {
  .ds-topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 48px; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border-2); }
  .ds-topbar button { width: 32px; height: 32px; border: none; background: none; color: var(--fg-1); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
  .ds-aside { display: none; }
  .ds-aside.open { display: flex; position: fixed; z-index: 50; left: 0; top: 0; box-shadow: var(--shadow-pop); }
  .ds-main { padding-top: 48px; }
}

/* ---------- Right rail ("On this page") ---------- */
.ds-rail { width: 180px; flex: none; position: sticky; top: 0; align-self: flex-start; padding: 48px 0 0; font-size: 12.5px; }
.ds-rail .rh { text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; color: var(--fg-3); margin-bottom: 8px; }
.ds-rail a { display: block; padding: 4px 0; color: var(--fg-2); }
.ds-rail a:hover { color: var(--fg-1); text-decoration: none; }
@media (max-width: 1100px) { .ds-rail { display: none; } }

/* ---------- Code blocks (always dark — design constant) ---------- */
.cb { position: relative; background: rgb(22, 25, 32); border: 1px solid rgb(50, 56, 68); border-radius: 8px; margin: 6px 0 20px; }
.cb pre { margin: 0; padding: 14px 48px 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: rgb(229, 232, 238); }
.cb .p { color: rgb(122, 158, 255); }
.cb .o { color: rgb(160, 167, 178); }
.cb .copy { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgb(60, 66, 78); background: rgb(30, 34, 42); color: rgb(160, 167, 178); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- Callouts / tables ---------- */
.callout { border: 1px solid var(--border-1); border-left: 3px solid var(--skyu-blue); border-radius: 0 8px 8px 0; background: var(--surface-1); padding: 12px 16px; margin: 0 0 16px; }
.callout.warn { border-left-color: var(--status-warn-bg); }
.callout.red { border-left-color: var(--accent-red); }
.ds-article table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 0 0 20px; }
.ds-article th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-2); padding: 8px 12px; border-bottom: 1px solid var(--border-1); }
.ds-article td { padding: 8px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.ds-article td code, .ds-article th code { white-space: nowrap; }
.tablewrap { overflow-x: auto; margin: 0 0 20px; }
.tablewrap table { margin: 0; }

/* ---------- Prev / next footer ---------- */
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-2); }
.pn a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; text-decoration: none; }
.pn a:hover .t { text-decoration: underline; }
.pn .k { font-size: 11.5px; color: var(--fg-3); }
.pn .t { font-size: 13.5px; color: var(--skyu-blue); }
.pn a.next { margin-left: auto; text-align: right; }

/* ---------- Search modal ---------- */
.sm-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; justify-content: center; align-items: flex-start; padding: 80px 16px 0; }
.sm { width: 560px; max-width: 100%; background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: 12px; box-shadow: var(--shadow-pop); overflow: hidden; }
.sm .bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-2); }
.sm input { flex: 1; border: none; outline: none; background: none; color: var(--fg-1); font: var(--text-body); font-size: 15px; }
.sm .esc { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); border: 1px solid var(--border-2); border-radius: 4px; padding: 2px 6px; }
.sm .list { padding: 8px; max-height: 340px; overflow-y: auto; }
.sm .lbl { display: block; padding: 8px 12px 4px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }
.sm .sr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--fg-1); text-decoration: none; }
.sm .sr:hover, .sm .sr.sel { background: var(--bg-hover); text-decoration: none; }
.sm .sr .tt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sm .foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border-2); font-size: 11.5px; color: var(--fg-3); }
.sm .foot .kbd { font-family: var(--font-mono); border: 1px solid var(--border-2); border-radius: 3px; padding: 1px 4px; }

/* ---------- Gate ---------- */
.gate-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.gate-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.gate { width: 400px; display: flex; flex-direction: column; gap: 24px; }
.gate h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.gate input { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-1); background: var(--bg-surface); color: var(--fg-1); font: var(--text-body); font-size: 14px; outline: none; width: 100%; }
.gate input:focus { border-color: var(--skyu-blue); box-shadow: 0 0 0 2px rgba(61, 111, 228, 0.25); }
.gate input.err { border-color: var(--status-error-bg); }
.gate .error { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--status-error-bg); }
.gate .cta { height: 40px; border-radius: 8px; border: none; background: #3D6FE4; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.gate .cta:hover { background: #3564CE; }
.gate .sentcard { border: 1px solid var(--border-1); border-radius: 8px; background: var(--bg-surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.gate-foot { padding: 20px 32px; display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); }

/* ---------- Public lite page ---------- */
.pub { min-height: 100vh; background: var(--bg-app); color: var(--fg-1); font-size: 15px; }
.pub header.top { position: sticky; top: 0; z-index: 10; background: var(--bg-surface); border-bottom: 1px solid var(--border-2); }
.pub .topin { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 32px; display: flex; align-items: center; gap: 32px; }
.pub .tag { font: var(--text-mono); color: var(--fg-2); font-size: 12px; }
.pub nav.links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.pub .navlink { color: var(--fg-1); font: var(--text-body-md); }
.pub .cta { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--skyu-blue); color: var(--on-accent); font: var(--text-body-md); text-decoration: none; }
.pub .cta:hover { background: var(--skyu-blue-hover); text-decoration: none; }
.pub .cta.lg { height: 36px; padding: 0 18px; }
.g-hero { max-width: 1120px; margin: 0 auto; padding: 88px 32px 72px; display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: start; }
.hero-h1 { font: var(--text-display-1); letter-spacing: var(--tracking-display); font-size: 44px; line-height: 1.05; text-wrap: pretty; margin: 0; }
.pub .sub { font: var(--text-body-lg); color: var(--fg-2); line-height: 1.5; max-width: 40ch; margin: 0; }
.pub .term { background: rgb(22, 25, 32); border: 1px solid rgb(50, 56, 68); border-radius: 8px; padding: 16px 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: rgb(229, 232, 238); }
.pub .term .p { color: rgb(122, 158, 255); }
.pub .term .o { color: rgb(160, 167, 178); }
.pub .term .r { color: rgb(248, 110, 110); }
.pub section.band { border-top: 1px solid var(--border-2); }
.pub section.band.lift { background: var(--bg-surface); }
.pub .bandin { max-width: 1120px; margin: 0 auto; padding: 72px 32px; }
.pub .h2 { font: var(--text-h1); margin: 0 0 40px; }
.g-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.g-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
.pub .card { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pub .stat { font-family: var(--font-mono); font-size: 40px; font-weight: 500; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.pub .tk { border-bottom: 2px dashed var(--fg-3); color: var(--fg-3); }
.pub .muted { color: var(--fg-2); line-height: 1.55; margin: 0; }
.pub .fine { font: var(--text-caption); color: var(--fg-3); margin: 0; }
.pub footer.bot { border-top: 1px solid var(--border-2); background: var(--bg-surface); }
.pub .botin { max-width: 1120px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; gap: 24px; }
.pub .repcard { background: var(--surface-1); border: 1px solid var(--border-1); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-2); }
.pub .rephead { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border-2); font-family: var(--font-mono); font-size: 12px; }
.pub .access input { flex: 1; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-1); background: var(--surface-1); color: var(--fg-1); font: var(--text-body); outline: none; }
.pub .access input:focus { border-color: var(--skyu-blue); box-shadow: 0 0 0 2px rgba(61, 111, 228, 0.25); }
.pub .access button { height: 40px; padding: 0 20px; border-radius: 8px; border: none; background: var(--skyu-blue); color: var(--on-accent); font: var(--text-body-md); cursor: pointer; }
.pub .access button:hover { background: var(--skyu-blue-hover); }
@media (max-width: 860px) {
  .g-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .g-3 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .pub nav.links .navlink { display: none; }
  .hero-h1 { font-size: 34px; }
}
@media (max-width: 520px) { .g-4 { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }
.nf .code { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); }
