@layer components {
	.ebg-document-page {
		padding-block: clamp(3rem, 6vw, 5.5rem);
		background-color: var(--ebg-surface-0, #ECF0F0);
		min-height: 60vh;
	}

	.ebg-document-card {
		max-width: min(1440px, 100%);
		margin-inline: auto;
		background: var(--ebg-surface-1, #FFFFFF);
		border: 1px solid var(--ebg-surface-3, #D8E5E5);
		border-radius: var(--radius-m, 16px);
		padding: clamp(2.5rem, 5vw, 4.5rem);
		box-shadow: 0 4px 24px rgb(12 30 33 / 0.04);
	}

	.ebg-document-header {
		margin-bottom: clamp(2rem, 4vw, 3rem);
		padding-bottom: clamp(1.5rem, 3vw, 2rem);
		border-bottom: 1px solid var(--ebg-surface-3, #D8E5E5);
	}

	.ebg-document-title {
		font-family: var(--font-display, var(--font-sans, sans-serif));
		/* CSS-WP-03: discrete rem steps, no clamp()/vw on type */
		font-size: 2rem;
		@media (min-width: 48em) { font-size: 2.375rem; }
		@media (min-width: 80em) { font-size: 2.75rem; }
		font-weight: 700;
		line-height: 1.15;
		color: var(--ebg-surface-anchor, #0C1E21);
		margin: 0 0 0.75rem;
		letter-spacing: -0.02em;
	}

	.ebg-document-meta {
		font-family: var(--font-mono, monospace);
		font-size: var(--fs-13, 0.8125rem);
		color: var(--ebg-ink-3, #67787A);
	}

	.ebg-document-content {
		color: var(--ebg-body-ink, var(--ebg-ink-2, #364E52));
		font-size: var(--fs-16, 1rem);
		line-height: 1.75;
	}

	.ebg-document-content h2 {
		font-family: var(--font-display, var(--font-sans, sans-serif));
		/* CSS-WP-03: discrete rem steps, no clamp()/vw on type */
		font-size: 1.35rem;
		@media (min-width: 48em) { font-size: 1.5rem; }
		@media (min-width: 80em) { font-size: 1.75rem; }
		font-weight: 700;
		color: var(--ebg-surface-anchor, #0C1E21);
		margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
		margin-bottom: 1rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid var(--ebg-surface-3, #D8E5E5);
		letter-spacing: -0.01em;
	}

	.ebg-document-content h3 {
		font-family: var(--font-sans, sans-serif);
		/* CSS-WP-03: discrete rem steps, no clamp()/vw on type */
		font-size: 1.125rem;
		@media (min-width: 48em) { font-size: 1.25rem; }
		@media (min-width: 80em) { font-size: 1.3rem; }
		font-weight: 600;
		color: var(--ebg-surface-anchor, #0C1E21);
		margin-top: clamp(1.5rem, 3vw, 2rem);
		margin-bottom: 0.75rem;
	}

	.ebg-document-content p {
		margin-top: 0;
		margin-bottom: 1.25rem;
	}

	.ebg-document-content ul,
	.ebg-document-content ol {
		margin-top: 0;
		margin-bottom: 1.5rem;
		padding-left: 1.5rem;
	}

	.ebg-document-content li {
		margin-bottom: 0.5rem;
	}

	.ebg-document-content a {
		color: var(--ebg-accent, #146e6e);
		text-decoration: underline;
		text-underline-offset: 3px;
		transition: color 0.15s ease;
	}

	.ebg-document-content a:hover,
	.ebg-document-content a:focus-visible {
		color: var(--ebg-accent-bright, #00DFC0);
	}

	.ebg-document-content strong {
		color: var(--ebg-surface-anchor, #0C1E21);
		font-weight: 600;
	}

	.ebg-document-content table {
		width: 100%;
		border-collapse: collapse;
		margin-block: 1.75rem;
		font-size: var(--fs-14, 0.875rem);
	}

	.ebg-document-content th,
	.ebg-document-content td {
		padding: 12px 14px;
		text-align: left;
		border: 1px solid var(--ebg-surface-3, #D8E5E5);
	}

	.ebg-document-content th {
		background-color: var(--ebg-surface-0, #ECF0F0);
		font-weight: 600;
		color: var(--ebg-surface-anchor, #0C1E21);
	}

	.ebg-document-content tr:nth-child(even) td {
		background-color: rgb(236 240 240 / 0.4);
	}

	.ebg-doc-callout {
		background: var(--ebg-surface-0, #ECF0F0);
		border-left: 4px solid var(--ebg-accent, #146e6e);
		border-radius: 0 var(--radius-s, 8px) var(--radius-s, 8px) 0;
		padding: 1.25rem 1.5rem;
		margin-bottom: 2rem;
	}

	.ebg-doc-callout p:last-child {
		margin-bottom: 0;
	}
}
