/* Codex Syntax page (static/codex/syntax.html). Owns only its own layout; the rendered samples
   are styled by /picasso-markdown.css. */
html, body { margin: 0; background: #F3F4F6; }
.sx-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; width: 100%; box-sizing: border-box; }
#lwIconBand, .ct-header, .sx-toolbar { flex: 0 0 auto; }
.ct-header { background: #1F2937; color: #fff; padding: 8px 12px; display: flex; align-items: center; gap: 8px; min-height: 40px; }
.ct-header h1 { margin: 0; font-size: 15pt; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-header button { color: #fff; background: transparent; border: 1px solid #4B5563; border-radius: 4px; padding: 0 12px; min-height: 40px; font: inherit; font-size: 13px; cursor: pointer; }
.ct-header button:hover { background: #374151; }

.sx-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border-bottom: 1px solid #DDE1E8; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.sx-btn { min-height: 36px; padding: 0 12px; border: 1px solid #C9CDD4; border-radius: 4px; background: #fff; color: #1F2937; font: inherit; font-size: 13px; cursor: pointer; flex: 0 0 auto; }
.sx-btn:hover { background: #F3F4F6; }
.sx-jump { display: flex; gap: 4px; flex: 0 0 auto; }
.sx-jump a { display: inline-block; padding: 8px 10px; font-size: 13px; color: #2563EB; text-decoration: none; border-radius: 4px; }
.sx-jump a:hover { background: #EFF6FF; }

.sx-body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px; }
.sx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.sx-lead { margin: 4px 2px 12px; color: #4B5563; font-size: 14px; }
.sx-loading { color: #6B7280; padding: 20px; }

.sx-section { background: #fff; border: 1px solid #DDE1E8; border-radius: 8px; margin: 0 0 14px; overflow: hidden; }
.sx-section-head { padding: 10px 14px; border-bottom: 1px solid #E5E7EB; background: #F9FAFB; }
.sx-section-head h2 { margin: 0; font-size: 12.5pt; font-weight: 700; color: #111827; scroll-margin-top: 8px; }
.sx-section-head p { margin: 3px 0 0; font-size: 13px; color: #4B5563; }
.sx-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sx-col { min-width: 0; padding: 10px 14px 14px; }
.sx-col + .sx-col { border-left: 1px solid #E5E7EB; }
.sx-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-copy { font-size: 12px; min-height: 30px; padding: 0 10px; border: 1px solid #C9CDD4; border-radius: 4px; background: #fff; color: #374151; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.sx-source { margin: 0; padding: 10px 12px; background: #1F2937; color: #E5E7EB; border-radius: 6px; font: 13px/1.5 Consolas, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .sx-pair { grid-template-columns: minmax(0, 1fr); }
    .sx-col + .sx-col { border-left: none; border-top: 1px solid #E5E7EB; }
    .sx-body { padding: 8px; }
    .sx-col { padding: 10px 10px 12px; }
}
