.lbag-article {
	--lbag-ink: #10213d;
	--lbag-muted: #64748b;
	--lbag-line: #dbe4ef;
	--lbag-soft: #f5f8fc;
	--lbag-primary: #1769e0;
	--lbag-primary-dark: #0f4da8;
	--lbag-accent: #eaf2ff;
	--lbag-warning: #fff8df;
	--lbag-danger: #b42318;
	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	color: var(--lbag-ink);
	font-size: clamp(16px, 2.2vw, 18px);
	line-height: 1.78;
	word-break: keep-all;
	overflow-wrap: break-word;
}

.lbag-article[data-lbag-article="flooded-car"] {
	--lbag-primary: #075985;
	--lbag-primary-dark: #0c4a6e;
	--lbag-accent: #e6f5fb;
}

.lbag-article[data-lbag-article="family-photo"] {
	--lbag-primary: #9a4b12;
	--lbag-primary-dark: #78350f;
	--lbag-accent: #fff3e6;
}

.lbag-article[data-lbag-article="blood-sugar"] {
	--lbag-primary: #087f5b;
	--lbag-primary-dark: #065f46;
	--lbag-accent: #e9f8f2;
}

.lbag-article *,
.lbag-article *::before,
.lbag-article *::after {
	box-sizing: inherit;
}

.lbag-article a {
	color: var(--lbag-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

.lbag-article p,
.lbag-article ul,
.lbag-article ol {
	margin: 0 0 1.25em;
}

.lbag-article li + li {
	margin-top: .56em;
}

.lbag-article h2 {
	margin: 2.45em 0 .8em;
	color: var(--lbag-ink);
	font-size: clamp(1.45rem, 4.8vw, 2rem);
	font-weight: 800;
	line-height: 1.34;
	letter-spacing: -.035em;
}

.lbag-article h3 {
	margin: 0 0 .72em;
	font-size: 1.15em;
	line-height: 1.45;
}

.lbag-eyebrow {
	margin-bottom: .75rem !important;
	color: var(--lbag-primary);
	font-size: .9em;
	font-weight: 800;
	letter-spacing: .01em;
}

.lbag-lead {
	margin-bottom: 1.7rem !important;
	color: #334155;
	font-size: clamp(1.06rem, 3vw, 1.22rem);
	line-height: 1.72;
}

.lbag-lead strong {
	color: var(--lbag-ink);
}

.lbag-now {
	margin: 1.7rem 0 1.25rem;
	padding: clamp(1.15rem, 4vw, 1.75rem);
	border: 1px solid #c9d9ed;
	border-radius: 24px;
	background: linear-gradient(145deg, var(--lbag-accent), #fff 70%);
	box-shadow: 0 12px 36px rgba(15, 35, 65, .07);
}

.lbag-now--danger {
	border-top: 5px solid var(--lbag-danger);
}

.lbag-now h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.38rem, 4.5vw, 1.8rem);
}

.lbag-steps {
	margin-left: 0 !important;
	padding: 0;
	list-style: none;
	counter-reset: lbag-step;
}

.lbag-steps li {
	position: relative;
	min-height: 2rem;
	padding-left: 3rem;
	counter-increment: lbag-step;
}

.lbag-steps li::before {
	position: absolute;
	top: .05rem;
	left: 0;
	display: grid;
	width: 2.15rem;
	height: 2.15rem;
	place-items: center;
	border-radius: 50%;
	background: var(--lbag-primary);
	color: #fff;
	font-size: .8rem;
	font-weight: 800;
	content: counter(lbag-step);
}

.lbag-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	margin-top: 1.25rem;
}

.lbag-btn,
.lbag-article a.lbag-btn {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: .72rem 1rem;
	border: 1px solid var(--lbag-line);
	border-radius: 14px;
	background: #fff;
	color: var(--lbag-ink);
	font-size: .92em;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.lbag-btn--primary,
.lbag-article a.lbag-btn--primary {
	border-color: var(--lbag-primary);
	background: var(--lbag-primary);
	color: #fff;
}

.lbag-btn--urgent,
.lbag-article a.lbag-btn--urgent {
	border-color: #fee2e2;
	background: #fff1f1;
	color: #a61b1b;
}

.lbag-warning {
	margin: 1.4rem 0;
	padding: 1.15rem 1.25rem;
	border-left: 5px solid #d49b00;
	border-radius: 4px 16px 16px 4px;
	background: var(--lbag-warning);
	color: #5b4211;
}

.lbag-branch-grid,
.lbag-related-grid,
.lbag-check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem;
}

.lbag-branch,
.lbag-related,
.lbag-check {
	display: flex;
	min-width: 0;
	min-height: 120px;
	flex-direction: column;
	justify-content: center;
	gap: .38rem;
	padding: 1.1rem;
	border: 1px solid var(--lbag-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 35, 65, .035);
}

.lbag-branch,
.lbag-related,
.lbag-article a.lbag-branch,
.lbag-article a.lbag-related {
	color: var(--lbag-ink);
	text-decoration: none;
}

.lbag-branch:hover,
.lbag-related:hover,
.lbag-branch:focus-visible,
.lbag-related:focus-visible {
	border-color: var(--lbag-primary);
	box-shadow: 0 8px 24px rgba(23, 105, 224, .12);
	transform: translateY(-1px);
}

.lbag-branch strong,
.lbag-related strong,
.lbag-check strong {
	font-size: 1.02em;
	line-height: 1.45;
}

.lbag-branch span,
.lbag-related span,
.lbag-check span {
	color: var(--lbag-muted);
	font-size: .87em;
	line-height: 1.55;
}

.lbag-anchor {
	scroll-margin-top: 110px;
}

.lbag-panel,
.lbag-quote,
.lbag-highlight {
	margin: 1.2rem 0 1.4rem;
	padding: 1.2rem 1.3rem;
	border-radius: 18px;
	background: var(--lbag-soft);
}

.lbag-quote {
	border-left: 5px solid var(--lbag-primary);
	color: #334155;
}

.lbag-highlight {
	display: grid;
	gap: .55rem;
	border: 1px solid #c9d9ed;
	background: var(--lbag-accent);
}

.lbag-highlight > strong {
	color: var(--lbag-primary-dark);
	font-size: 1.08em;
}

.lbag-highlight span {
	display: block;
}

.lbag-highlight b {
	display: inline-block;
	min-width: 3.2rem;
	color: var(--lbag-primary-dark);
	font-size: 1.15em;
}

.lbag-table-wrap {
	max-width: 100%;
	margin: 1.2rem 0 1.45rem;
	overflow-x: auto;
	border: 1px solid var(--lbag-line);
	border-radius: 16px;
	-webkit-overflow-scrolling: touch;
}

.lbag-table {
	width: 100%;
	min-width: 620px;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	background: #fff;
	font-size: .9em;
}

.lbag-table th,
.lbag-table td {
	padding: .85rem .9rem;
	border: 0;
	border-bottom: 1px solid var(--lbag-line);
	vertical-align: top;
	text-align: left;
}

.lbag-table th {
	background: var(--lbag-soft);
	color: var(--lbag-ink);
	font-weight: 800;
}

.lbag-table tr:last-child td {
	border-bottom: 0;
}

.lbag-source-list {
	padding-left: 1.25rem;
}

.lbag-source-list a {
	font-weight: 700;
}

.lbag-editorial-note {
	margin-top: 2.5rem !important;
	padding: 1rem 1.15rem;
	border-top: 1px solid var(--lbag-line);
	border-bottom: 1px solid var(--lbag-line);
	color: var(--lbag-muted);
	font-size: .84em;
	line-height: 1.65;
}

@media (max-width: 640px) {
	.lbag-article {
		font-size: 16px;
		line-height: 1.72;
	}

	.lbag-now {
		border-radius: 20px;
	}

	.lbag-action-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.lbag-branch-grid,
	.lbag-related-grid,
	.lbag-check-grid {
		grid-template-columns: 1fr;
	}

	.lbag-branch,
	.lbag-related,
	.lbag-check {
		min-height: 94px;
	}

	.lbag-table {
		min-width: 560px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lbag-branch,
	.lbag-related {
		transition: none;
	}
}
