.ll-journal-cover {
	margin-inline: 0;
}

.ll-blog-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.ll-journal-cover-photo,
.ll-journal-product-photo {
	overflow: hidden;
}

.ll-journal-cover-photo {
	border: 1px solid var(--ll-border);
	border-radius: var(--ll-radius-lg);
	background: var(--ll-photo);
}

.ll-journal-cover-photo img,
.ll-journal-product-photo img {
	display: block;
	width: 100%;
}

.ll-journal-cover-photo img {
	height: auto;
}

.ll-journal-product-photo img {
	height: 100%;
	object-fit: contain;
}

.ll-journal-cover figcaption {
	margin-top: 8px;
	color: var(--ll-muted);
	font-size: var(--ll-fs-xs);
}

.ll-journal-cover figcaption a {
	color: var(--ll-fg);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ll-journal-products-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.ll-journal-products-heading h2 {
	margin: 0;
}

.ll-journal-category {
	color: var(--ll-accent);
	font-weight: var(--ll-fw-semibold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ll-article .ll-journal-products {
	display: grid;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.ll-article .ll-journal-products > li {
	margin: 0;
	min-width: 0;
}

.ll-journal-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--ll-border-strong);
	border-radius: var(--ll-radius-lg);
	background: var(--ll-surface);
	color: var(--ll-fg);
	text-decoration: none;
}

.ll-journal-product-with-photo {
	grid-template-columns: clamp(72px, 30%, 104px) minmax(0, 1fr);
}

.ll-journal-product:hover {
	border-color: var(--ll-accent);
	color: var(--ll-fg);
	text-decoration: none;
}

.ll-journal-product:focus-visible,
.ll-journal-category:focus-visible,
.ll-journal-cover figcaption a:focus-visible {
	outline: 2px solid var(--ll-accent);
	outline-offset: 3px;
}

.ll-journal-product-photo {
	aspect-ratio: 1;
	border-radius: var(--ll-radius-sm);
	background: var(--ll-photo-frame);
}

.ll-journal-product-details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	line-height: 1.35;
	overflow-wrap: break-word;
}

.ll-journal-product-name {
	font-weight: var(--ll-fw-semibold);
}

.ll-journal-product-note {
	color: var(--ll-muted);
	font-size: var(--ll-fs-xs);
}

.ll-journal-product-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 9px;
	font-size: var(--ll-fs-sm);
}

.ll-journal-product-offer strong {
	white-space: nowrap;
}

.ll-journal-product-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 3px;
	padding: 6px 12px;
	border-radius: 100px;
	background: var(--ll-cta-bg);
	color: var(--ll-cta-fg);
	font-size: var(--ll-fs-sm);
	font-weight: var(--ll-fw-semibold);
}

.ll-journal-product:hover .ll-journal-product-action {
	background: var(--ll-cta-bg-hover);
}

@media (min-width: 740px) {
	.ll-journal-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ll-article[data-journal-slug] :is(h1, h2, h3) {
	text-wrap: balance;
	overflow-wrap: break-word;
}

.ll-article[data-journal-slug] :is(h2, h3, section, table)[id] {
	scroll-margin-block-start: 5rem;
}

.ll-article[data-journal-slug] p {
	text-wrap: pretty;
}

.ll-legacy-content .ll-expert-header {
	margin-block: 20px;
	padding-inline-start: 14px;
	border-inline-start: 2px solid var(--ll-border-strong);
	color: var(--ll-muted);
	font-size: var(--ll-fs-sm);
}

.ll-expert-info strong {
	display: block;
	color: var(--ll-fg);
}

.ll-journal-table {
	margin-block: 20px;
	border: 1px solid var(--ll-border);
	border-radius: var(--ll-radius-lg);
	overflow: hidden;
	background: var(--ll-surface);
}

.ll-journal-table-scroll {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ll-legacy-content .ll-journal-table table {
	width: 100%;
	max-width: none;
	border-collapse: collapse;
	font-size: var(--ll-fs-sm);
}

.ll-journal-table :is(th, td) {
	padding: 12px clamp(10px, 2vw, 16px);
	border-bottom: 1px solid var(--ll-border);
	text-align: start;
	vertical-align: top;
	overflow-wrap: normal;
	word-break: normal;
}

.ll-journal-table-wide :is(th, td) {
	min-width: 7.25rem;
}

.ll-journal-table-wide tr > :first-child {
	min-width: 9rem;
}

.ll-journal-table thead {
	background: var(--ll-bg-alt);
}

.ll-journal-table tbody tr:last-child > * {
	border-bottom: 0;
}

.ll-journal-table-caption,
.ll-journal-table-hint {
	margin: 0;
	padding: 10px 14px;
}

.ll-journal-table-caption {
	color: var(--ll-fg);
	font-weight: var(--ll-fw-semibold);
}

.ll-journal-table-hint {
	padding-block-start: 0;
	color: var(--ll-muted);
	font-size: var(--ll-fs-xs);
}

.ll-journal-table-hint:first-child {
	padding-block-start: 10px;
}

.ll-journal-faq {
	margin-block: 10px;
	border: 1px solid var(--ll-border);
	border-radius: var(--ll-radius-md);
	background: var(--ll-surface);
}

.ll-journal-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: inherit;
	cursor: pointer;
	list-style: none;
	font-weight: var(--ll-fw-semibold);
}

.ll-journal-faq summary::-webkit-details-marker {
	display: none;
}

.ll-journal-faq summary::after {
	content: "+";
	color: var(--ll-accent);
	font-size: 1.3em;
	line-height: 1;
}

.ll-journal-faq[open] summary::after {
	content: "−";
}

.ll-journal-faq-answer {
	padding: 0 14px 14px;
	font-weight: var(--ll-fw-regular);
}

.ll-journal-faq-answer .ll-faq-answer > :first-child {
	margin-top: 0;
}

.ll-journal-faq-answer .ll-faq-answer > :last-child {
	margin-bottom: 0;
}

.ll-journal-gallery {
	margin-block: 20px;
}

.ll-journal-gallery-viewport {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	border: 1px solid var(--ll-border);
	border-radius: var(--ll-radius-lg);
	background: var(--ll-surface);
}

.ll-journal-gallery-track {
	display: flex;
}

.ll-journal-gallery-slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
}

.ll-legacy-content .ll-journal-gallery-slide img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.ll-journal-gallery-caption {
	padding: 12px 14px 14px;
}

.ll-journal-gallery-caption :is(h3, p) {
	margin: 0;
}

.ll-journal-gallery-caption p {
	margin-top: 4px;
	color: var(--ll-muted);
}

.ll-journal-gallery-controls {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.ll-journal-gallery-controls button,
.ll-journal-contact-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--ll-border-strong);
	border-radius: 100px;
	background: var(--ll-surface);
	color: var(--ll-fg);
	font: inherit;
	cursor: pointer;
}

.ll-journal-gallery-controls button {
	min-width: 44px;
}

.ll-journal-gallery-controls button:disabled {
	opacity: 0.45;
	cursor: default;
}

.ll-journal-contact-link {
	justify-content: flex-start;
	background: var(--ll-cta-bg);
	color: var(--ll-cta-fg);
	text-decoration: none;
}

.ll-journal-contact-link:hover {
	background: var(--ll-cta-bg-hover);
	color: var(--ll-cta-fg);
	text-decoration: none;
}

.ll-journal-table-scroll:focus-visible,
.ll-journal-faq summary:focus-visible,
.ll-journal-gallery-viewport:focus-visible,
.ll-journal-gallery-controls button:focus-visible,
.ll-journal-contact-link:focus-visible {
	outline: 2px solid var(--ll-accent);
	outline-offset: 2px;
}

.ll-journal-table-scroll:focus-visible {
	outline-offset: -2px;
}
