/* ===== Documentation page (article id 7) — extra blocks + table restyle =====
   Alignment system: the page grid line is at the "Documentation" heading text
   (x=108 left / x=1158 right at desktop). Every block below is a card/panel/table
   whose BOX bleeds ~28px past that line on each side (to x=80 / x=1186) while its
   inner text lands exactly on the 108/1158 line. */

/* -- Get Started + MCP wrapper -- */
.doc-intro-blocks {
	padding-top: 10px;
}

/* Main section rhythm: 40px, with 60px around the page boundaries below. */
.article.top.doc-intro-blocks {
	padding-bottom: 40px;
}
.article.top.doc-reference-tables {
	padding-bottom: 60px;
}
.mod-stimcpsearch {
	margin-top: 60px;
	margin-bottom: 40px;
}

/* -- Get Started -- */
.doc-panel {
	width: calc(100% + 56px);
	margin: 0 -28px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}
.doc-panel-header {
	padding: 16px 28px;
	font-size: 20px;
	font-weight: 600;
	color: #3e3e3e;
	background: #eeeeee;
	border-bottom: 1px solid #e0e0e0;
}
.doc-panel-body {
	padding: 24px 28px;
}
.doc-panel-body > span {
	display: block;
	margin-bottom: 22px;
	color: #616a6b;
}
.doc-getstarted-form {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.doc-getstarted-form label {
	font-weight: 600;
	color: #3e3e3e;
}
.doc-select {
	flex: 1;
	min-width: 220px;
	padding: 12px 42px 12px 16px;
	font-size: 16px;
	color: #3e3e3e;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.doc-select:focus {
	border-color: #338adb;
}
.doc-getstarted-form a.button {
	padding: 12px 28px;
}

/* -- MCP Server (highlighted) -- */
.doc-mcp-panel {
	display: flex;
	align-items: center;
	gap: 28px;
	width: calc(100% + 56px);
	margin: 40px -28px 0;
	padding: 22px 28px;
	background: linear-gradient(135deg, #0669bf, #338adb);
	border-radius: 8px;
	color: #fff;
}
.doc-mcp-text {
	flex: 1;
}
.doc-mcp-text h3 {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}
.doc-mcp-text span {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
}
.doc-mcp-panel a.button {
	flex-shrink: 0;
	background: #fff;
	border-color: #fff;
	color: #0669bf;
}
.doc-mcp-panel a.button:hover {
	text-decoration: underline;
}

/* -- Tables restyled to the new card style; bled to 80-1186 so the first cell
      text lands on the 108 line (override the template's full-bleed table.article
      breakout AND its 60px first-cell padding, on this page only) -- */
.article table.article {
	width: calc(100% + 56px);
	margin: 0 -28px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}
.article table.article th {
	background: #eeeeee;
	border-bottom: 1px solid #e0e0e0;
}
.article table.article th:not(:first-child) {
	border-left: 1px solid #e0e0e0;
}
.article table.article td {
	border-bottom: 1px solid #eeeeee;
}
.article table.article tr:last-child td {
	border-bottom: 0;
}
.article table.article th:first-child,
.article table.article td:first-child {
	padding-left: 28px;
}
.article table.article th:last-child,
.article table.article td:last-child {
	padding-right: 28px;
}
.article table.article td:first-child a {
	white-space: nowrap;
}

/* -- Documentation resources: a single modern catalogue card -- */
.doc-reference-tables > br {
	display: none;
}
.doc-reference-tables table.article {
	display: block;
	background: #fff;
}
.doc-reference-tables table.article:first-of-type {
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
}
.doc-reference-tables table.article:nth-of-type(2) {
	border-radius: 0 0 12px 12px;
}
.doc-reference-tables table.article tbody {
	display: block;
}
.doc-reference-tables table.article tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px 115px 74px;
	align-items: center;
	border-bottom: 1px solid #edf0f2;
}
.doc-reference-tables table:nth-of-type(2) tr {
	grid-template-columns: minmax(0, 1fr) auto;
}
.doc-reference-tables table.article tr:first-child {
	display: block;
	background: #eeeeee;
	border-bottom-color: #e0e0e0;
}
.doc-reference-tables table:nth-of-type(2) tr:first-child {
	border-top: 1px solid #e0e0e0;
}
.doc-reference-tables table.article tr:last-child {
	border-bottom: 0;
}
.doc-reference-tables table.article th {
	display: none;
}
.doc-reference-tables table.article th:first-child {
	display: flex;
	align-items: center;
	width: auto;
	padding: 18px 28px;
	background: transparent;
	border: 0;
	text-align: left;
	font-size: 18px;
	line-height: 24px;
}
.doc-reference-tables table.article td {
	width: auto;
	padding: 15px 16px;
	border: 0;
}
.doc-reference-tables table.article td:first-child {
	padding-left: 28px;
}
.doc-reference-tables table.article td:last-child {
	padding-right: 28px;
}
.doc-reference-tables table.article td:not(:first-child) {
	min-width: 0;
	word-break: normal;
}
.doc-reference-tables table.article tr:hover td {
	background: transparent;
}
.doc-reference-tables table.article td:not(:first-child) a {
	display: inline;
	min-width: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.doc-reference-tables table.article td:not(:first-child) a:hover {
	background: transparent;
	color: #338adb;
	text-decoration: underline;
}
.doc-reference-tables table.article td:not(:first-child) a:focus-visible {
	outline: 2px solid #338adb;
	outline-offset: 2px;
	text-decoration: none;
}

/* -- Support (standard highlight wrapper + white store-style button-cards) -- */
.article.doc-support {
	padding-top: 60px;
	padding-bottom: 60px;
}
.article.doc-support > h2 {
	font-size: 28px;
	font-weight: 600;
}
.doc-cards {
	display: flex;
	gap: 20px;
	width: calc(100% + 56px);
	margin: 26px -28px 0;
}
.doc-cards a.doc-card {
	flex: 1;
	display: block;
	padding: 26px 28px;
	background: #fff;
	border: 0;
	border-radius: 8px;
	color: #3e3e3e;
	text-decoration: none;
	transition: none;
}
.doc-cards a.doc-card:hover,
.doc-cards a.doc-card:focus-visible {
	box-shadow: 0 0 0 4px #338adb;
	text-decoration: none;
}
.doc-cards a.doc-card strong {
	display: block;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 600;
	color: #3e3e3e;
}
.doc-cards a.doc-card span {
	display: block;
	font-size: 14px;
	line-height: 20px;
	color: #616a6b;
}

/* One visual level for every section heading on the documentation page. */
.mod-stimcpsearch .stimcp-label,
.doc-panel-header,
.doc-mcp-text h3,
.doc-reference-tables table.article th:first-child {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.28;
}

@media (max-width: 860px) {
	.doc-panel,
	.doc-mcp-panel,
	.doc-cards,
	.article table.article {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	.article table.article th:first-child,
	.article table.article td:first-child {
		padding-left: 15px;
	}
	.article table.article th:last-child,
	.article table.article td:last-child {
		padding-right: 15px;
	}
	.doc-mcp-panel {
		flex-direction: column;
		align-items: flex-start;
	}
	.doc-mcp-panel a.button {
		width: 100%;
	}
	.doc-cards {
		flex-direction: column;
	}
}

@media (max-width: 860px) {
	.article table.article td:first-child a {
		white-space: normal;
	}
	.doc-reference-tables table.article tr {
		grid-template-columns: minmax(0, 1fr) 96px 115px 74px;
	}
	.doc-reference-tables table:nth-of-type(2) tr {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.doc-reference-tables table.article tr:first-child {
		display: block;
	}
	.doc-reference-tables table.article td:first-child {
		grid-column: auto;
		padding: 14px 12px 14px 18px;
	}
	.doc-reference-tables table.article td:not(:first-child) {
		padding: 14px 8px;
		text-align: left;
	}
	.doc-reference-tables table.article td:nth-child(2) {
		padding-left: 8px;
	}
	.doc-reference-tables table.article td:last-child {
		padding-right: 18px;
	}
	.doc-reference-tables table:nth-of-type(2) td:nth-child(2) {
		grid-column: auto;
		padding: 14px 18px 14px 8px;
		text-align: left;
	}
	.doc-reference-tables table.article th:first-child {
		padding: 16px 18px;
	}
}

@media (max-width: 600px) {
	.mod-stimcpsearch {
		margin-top: 60px;
		margin-bottom: 40px;
	}
	.article.top.doc-intro-blocks {
		padding-bottom: 40px;
	}
	.article.top.doc-reference-tables {
		padding-bottom: 60px;
	}
	.doc-mcp-panel {
		margin-top: 40px;
	}
	.article.doc-support {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.doc-reference-tables table.article tr:not(:first-child) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px 24px;
		padding: 16px 18px;
	}
	.doc-reference-tables table.article td:first-child {
		flex: 0 0 100%;
		padding: 0;
	}
	.doc-reference-tables table.article td:not(:first-child),
	.doc-reference-tables table.article td:nth-child(2),
	.doc-reference-tables table.article td:last-child,
	.doc-reference-tables table:nth-of-type(2) td:nth-child(2) {
		grid-column: auto;
		padding: 0;
		text-align: left;
	}
	.doc-getstarted-form {
		align-items: stretch;
	}
	.doc-getstarted-form a.button {
		width: 100%;
	}
}

@media (max-width: 320px) {
	.doc-select {
		box-sizing: border-box;
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}
}
