/* Blog Studio — shared + layout variants (v2) */

.azb-blog {
	--azb-font: "Segoe UI", system-ui, -apple-system, sans-serif;
	--azb-text: #1a1a2e;
	--azb-muted: #5c5c6f;
	--azb-border: #e8e8ef;
	--azb-accent: #0666ff;
	--azb-accent-dark: #0047b3;
	--azb-radius: 12px;
	--azb-max: 820px;
	font-family: var(--azb-font);
	color: var(--azb-text);
	line-height: 1.75;
	font-size: 1.0625rem;
}

.azb-blog__subtitle {
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--azb-muted);
	margin: 0 0 1.5rem;
	line-height: 1.45;
}

.azb-blog__intro {
	font-size: 1.125rem;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--azb-border);
}

.azb-blog__richtext strong,
.azb-blog__richtext b {
	font-weight: 700;
	color: var(--azb-text);
}

.azb-blog__richtext a {
	color: var(--azb-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.azb-blog__section {
	margin-bottom: 2.75rem;
}

.azb-blog__h2 {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.azb-blog__figure {
	margin: 0 0 1.5rem;
	border-radius: var(--azb-radius);
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.azb-blog__figure img {
	display: block;
	width: 100%;
	height: auto;
}

.azb-blog__body p {
	margin: 0 0 1rem;
}

/* Comparison table */
.azb-blog__compare {
	margin: 3rem 0;
}

.azb-blog__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--azb-border);
	border-radius: var(--azb-radius);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.azb-blog__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	min-width: 480px;
}

.azb-blog__table th,
.azb-blog__table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--azb-border);
}

.azb-blog__table thead th {
	background: #f4f6fb;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--azb-muted);
}

.azb-blog__table tbody th {
	background: #fafbfc;
	font-weight: 600;
	width: 28%;
}

.azb-blog__table tbody tr:last-child th,
.azb-blog__table tbody tr:last-child td {
	border-bottom: none;
}

/* Internal links */
.azb-blog__related {
	margin: 2.5rem 0;
	padding: 1.5rem 1.75rem;
	background: #f4f6fb;
	border-radius: var(--azb-radius);
	border-left: 4px solid var(--azb-accent);
}

.azb-blog__related-list {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.azb-blog__related-list a {
	font-weight: 600;
}

/* FAQ */
.azb-blog__faq {
	margin: 3rem 0;
}

.azb-blog__faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.azb-blog__faq-item {
	border: 1px solid var(--azb-border);
	border-radius: var(--azb-radius);
	padding: 0.25rem 1rem;
	background: #fff;
}

.azb-blog__faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.75rem 0;
	list-style: none;
}

.azb-blog__faq-item summary::-webkit-details-marker {
	display: none;
}

.azb-blog__faq-a {
	padding-bottom: 1rem;
	color: var(--azb-muted);
}

/* CTA band */
.azb-blog__cta {
	margin: 3.5rem 0 1rem;
}

.azb-blog__cta-inner {
	text-align: center;
	padding: 2.5rem 2rem;
	background: linear-gradient(135deg, #0666ff 0%, #0047b3 100%);
	border-radius: var(--azb-radius);
	color: #fff;
}

.azb-blog__cta-text {
	margin: 0 0 1.25rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.azb-blog__cta-btn {
	display: inline-block;
	padding: 0.9rem 2rem;
	background: #fff;
	color: var(--azb-accent-dark) !important;
	text-decoration: none !important;
	font-weight: 700;
	border-radius: 8px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.azb-blog__cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* —— Enterprise (RingCentral-style) —— */
.azb-blog--enterprise {
	max-width: var(--azb-max);
	margin: 0 auto 3rem;
}

.azb-blog--enterprise .azb-blog__h2 {
	color: #0d1117;
}

.azb-blog--enterprise .azb-blog__intro {
	background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
	padding: 1.5rem 1.75rem;
	border-radius: var(--azb-radius);
	border: 1px solid var(--azb-border);
	border-bottom: none;
	margin-bottom: 2rem;
}

/* —— Classic —— */
.azb-blog--classic {
	max-width: 720px;
	margin: 0 auto 2rem;
}

.azb-blog--classic .azb-blog__cta-inner {
	background: #1a1a2e;
}

/* —— Magazine + TOC —— */
.azb-blog-magazine-wrap {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2.5rem;
	max-width: 1100px;
	margin: 0 auto 3rem;
	align-items: start;
}

.azb-blog-magazine-toc {
	position: sticky;
	top: 100px;
	padding: 1.25rem;
	background: #f8f9fc;
	border-radius: var(--azb-radius);
	font-size: 0.9rem;
}

.azb-blog-magazine-toc__title {
	font-weight: 700;
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--azb-muted);
}

.azb-blog-magazine-toc ol {
	margin: 0;
	padding-left: 1.1rem;
}

.azb-blog-magazine-toc a {
	color: var(--azb-text);
	text-decoration: none;
}

.azb-blog-magazine-toc a:hover {
	color: var(--azb-accent);
}

@media (max-width: 900px) {
	.azb-blog-magazine-wrap {
		grid-template-columns: 1fr;
	}

	.azb-blog-magazine-toc {
		position: static;
	}
}

@media (max-width: 640px) {
	.azb-blog {
		font-size: 1rem;
	}

	.azb-blog__h2 {
		font-size: 1.35rem;
	}
}
