.getting-started-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

/* policy-packs-page sets overflow:hidden + flex:1 for table layouts — undo for this page */
.getting-started-page.policy-packs-page {
  flex: 0 1 auto;
  min-height: auto;
  overflow: visible;
}

.getting-started-page .page-head {
  margin-bottom: 0;
}

.gs-glossary,
.gs-role-guide,
.gs-standards-stack {
  padding: 16px 18px;
}

.gs-standards-stack {
  scroll-margin-top: 12px;
}

.gs-role-guide {
  scroll-margin-top: 12px;
}

.gs-glossary {
  scroll-margin-top: 12px;
}

.gs-standards-stack-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.gs-standards-stack-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.gs-standards-stack-tiers {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.gs-stack-tier {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}

.gs-stack-tier-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.gs-stack-tier-body {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gs-stack-subhead {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.gs-stack-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gs-stack-points li + li {
  margin-top: 6px;
}

.gs-role-guide-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.gs-role-guide-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.gs-glossary-title,
.gs-panel-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.gs-role-tabs {
  margin-bottom: 0;
}

#gsPathPanel,
#gsContentPanel {
  scroll-margin-top: 12px;
}

.gs-reference-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gs-reference-panel .gs-glossary {
  margin-top: 0;
}

.gs-glossary {
  margin-top: 4px;
}

.gs-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px 18px 18px;
  min-width: 0;
  max-width: 100%;
}

.gs-panel-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.gs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.gs-step {
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  min-width: 0;
  max-width: 100%;
}

.gs-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.gs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gs-step-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.gs-step-body,
.gs-step-detail {
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.gs-step-detail {
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.gs-substeps {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
}

.gs-substeps li + li {
  margin-top: 6px;
}

.gs-step-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.gs-step-action {
  margin: 10px 0 0;
}

.gs-prompt-wrap {
  margin-top: 12px;
  min-width: 0;
  max-width: 100%;
}

.gs-prompt-wrap .gs-code-label {
  margin: 0 0 6px;
}

.gs-prompt-wrap .gs-code-wrap {
  min-width: 0;
  max-width: 100%;
}

.gs-prompt-wrap .gs-code {
  margin: 0;
  max-width: 100%;
  max-height: 220px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
}

.gs-prompt-wrap .gs-code code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gs-step-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gs-step-link:hover {
  text-decoration: underline;
}

.gs-code-stack {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.gs-code-stack .gs-code-wrap {
  min-width: 0;
  max-width: 100%;
}

.gs-code-label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.gs-code-stack .gs-code-label:first-child {
  margin-top: 0;
}

.gs-code {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111;
  color: #e8e8e8;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
}

.gs-code code {
  white-space: pre;
}

.gs-glossary-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.gs-glossary-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.gs-glossary-list dt {
  margin: 0;
  font-weight: 600;
  font-size: 13.5px;
}

.gs-glossary-list dd {
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.45;
}

.gs-tier-list {
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.gs-tier-item {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.gs-tier-item dt {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.gs-tier-item dd {
  margin: 0;
  color: var(--subtle);
  font-size: 13.5px;
  line-height: 1.5;
}

.gs-role-map-wrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  background: var(--panel);
}

.gs-role-map-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.gs-role-map-table th,
.gs-role-map-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.45;
}

.gs-role-map-table th {
  background: var(--panel-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gs-role-map-table tbody tr:last-child td {
  border-bottom: 0;
}

.gs-role-map-table td:nth-child(2) {
  white-space: nowrap;
}

.gs-role-map-table td strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .gs-glossary-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.gs-mcp-ide-guides {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
}

.gs-mcp-ide-guides--compact {
  margin-top: 8px;
  font-size: 13px;
}

.gs-mcp-setup-note {
  margin: 10px 0 0;
  line-height: 1.6;
}

.gs-mcp-guide-panel {
  margin-bottom: 16px;
}

.gs-product-urls {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.gs-product-urls--compact {
  gap: 6px;
  margin-bottom: 8px;
}

.gs-product-url-row {
  font-size: 14px;
  line-height: 1.55;
}

.gs-product-url-row strong {
  color: var(--heading);
}

.gs-mcp-guide-panel-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
