/* Layout for Sandboxes, use-case, and Security pages. */

main section.page-hero {
  padding-top: 40px;
  padding-bottom: 28px;
}
.page-hero .lead {
  max-width: 40em;
}
.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px 40px;
  align-items: center;
}
.page-hero-copy .lead {
  max-width: none;
}
.page-hero-visual {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 960px) {
  .page-hero-split {
    grid-template-columns: 1fr;
  }
}
.crumbs-top {
  margin: 0 0 20px;
}
.crumbs [aria-current="page"] {
  color: var(--se-ink);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.chip {
  display: inline-block;
  border: 1px solid var(--se-line);
  background: var(--se-surface);
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 13px/1.4 var(--se-font-sans);
  color: var(--se-ink);
}
.micro {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--se-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px 40px;
  align-items: center;
}
.split-top {
  align-items: start;
}
.visual {
  margin: 0;
  background: var(--se-surface);
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius-feature);
  padding: 12px;
}
.visual img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.visual-wide {
  margin: 0 0 28px;
}

.stack-list {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 18px;
}
.stack-list li strong {
  display: block;
}
.stack-list p {
  margin: 4px 0 0;
  color: var(--se-muted);
  font-size: 16px;
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.modes .mode-visual {
  margin: 0 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.modes .mode-visual img {
  max-height: 280px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.shape {
  margin: 14px 0 0;
  font: 600 14px/1.5 var(--se-font-mono);
  color: var(--se-primary);
}
.trait {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.trait svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  stroke: var(--se-primary);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.code-modes {
  margin-top: 20px;
}
.code-editor {
  margin-top: 16px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 36, 67, 0.12);
}
.code-editor-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: #252526;
  border-bottom: 1px solid #333;
}
.code-editor-dots {
  display: inline-flex;
  gap: 6px;
}
.code-editor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}
.code-editor-dots span:nth-child(1) { background: #ff5f57; }
.code-editor-dots span:nth-child(2) { background: #febc2e; }
.code-editor-dots span:nth-child(3) { background: #28c840; }
.code-editor-titlebar .code-tabs {
  margin: 0;
}
.code-editor-split {
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
  min-height: 280px;
}
.code-editor-sash {
  background: #333;
  cursor: col-resize;
  position: relative;
}
.code-editor-sash::after {
  content: "";
  position: absolute;
  inset: 20% 1px;
  border-radius: 2px;
  background: #555;
}
.code-editor-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
}
.code-editor-pane + .code-editor-pane {
  border-left: 0;
}
.code-editor-pane-label {
  margin: 0;
  padding: 8px 14px;
  font: 600 12px/1.4 var(--se-font-mono);
  color: #cccccc;
  background: #2d2d2d;
  border-bottom: 1px solid #333;
}
.code-editor-pane .code {
  margin: 0;
  padding: 16px 14px 20px;
  background: transparent;
  border-radius: 0;
  flex: 1;
  overflow: auto;
}
.code-editor-pane .code-panel {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (max-width: 960px) {
  .code-editor-split {
    grid-template-columns: 1fr;
  }
  .code-editor-sash {
    display: none;
  }
}

.code-panel {
  margin-top: 28px;
  background: var(--se-dark);
  border-radius: var(--se-radius-feature);
  padding: 20px;
}
.code-panel pre {
  margin: 0;
}

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
ol.steps li p {
  margin: 0;
}
.narrow {
  max-width: 720px;
}
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.text-links a {
  font-weight: 600;
  text-decoration: none;
}

.context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.context-links li {
  margin: 0;
}
.context-label {
  font: 600 12px/1.4 var(--se-font-mono);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--se-muted);
}

p code, li code, td code {
  font-family: var(--se-font-mono);
  font-size: 0.92em;
  background: var(--se-primary-soft);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.bottom-cta.solo {
  grid-template-columns: 1fr;
}

.hero-home {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.15fr);
}
.hero-home .hero-cta {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 32px;
}
.hero-home .hero-cta .micro {
  margin-top: 12px;
}
.hero-visual {
  width: 100%;
  height: auto;
}
.sdk-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
}
.sample-out {
  margin-top: 16px;
  background: var(--se-surface);
  border: 1px solid var(--se-line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
}
.sample-out .note {
  grid-column: 1 / -1;
  margin: 0;
}
.sample-out p {
  margin: 0;
  font-family: var(--se-font-mono);
  font-size: 14px;
}
.sample-out strong {
  display: block;
  font-size: 18px;
}
.job-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.job-list a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding-top: 14px;
  border-top: 2px solid var(--se-line);
}
.job-art {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 12px;
}
.job-list a:hover {
  border-top-color: var(--se-primary);
}
.job-list h3 {
  font-size: 18px;
}
.job-list p {
  color: var(--se-muted);
  font-size: 15px;
}

@media (max-width: 960px) {
  .split, .modes, .steps, .sdk-split, .hero-home, .job-list {
    grid-template-columns: 1fr;
  }
  .visual-first {
    order: -1;
  }
  .section-head-actions {
    justify-items: start;
    text-align: left;
  }
}
