.lgm-tr {
	--lgm-ink: #14233a;
	--lgm-tide: #0f5c56;
	--lgm-tide-dark: #0c463f;
	--lgm-sand: #f3eee6;
	--lgm-paper: #fffcf8;
	--lgm-line: #e3d9cc;
	--lgm-muted: #5c6b7a;
	max-width: 880px;
	margin: 2rem auto 3rem;
	padding: 0 1.25rem;
	color: var(--lgm-ink);
	font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
	line-height: 1.5;
}

.lgm-tr * { box-sizing: border-box; }

.lgm-tr--login { max-width: 440px; }

.lgm-tr--embed {
	max-width: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
}

.lgm-tr--embed .lgm-tr__list {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.7rem;
}

.lgm-tr--embed .lgm-tr__row {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 4.25rem;
	padding: 0.85rem 1rem 0.85rem 1.15rem;
	background: #fff;
	border: 1px solid #e4ddd2;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(20, 35, 58, 0.04);
	color: #16342c;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.lgm-tr--embed .lgm-tr__row:hover {
	border-color: #0f5c56;
	background: #f4faf8;
	color: #0f5c56;
	text-decoration: none;
}

.lgm-tr--embed .lgm-tr__copy {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.lgm-tr--embed .lgm-tr__label {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.lgm-tr--embed .lgm-tr__excerpt {
	color: var(--lgm-muted);
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.4;
}

.lgm-tr--embed .lgm-tr__thumb {
	flex: 0 0 3.25rem;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 10px;
	overflow: hidden;
	background: var(--lgm-sand);
}

.lgm-tr--embed .lgm-tr__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lgm-tr--embed .lgm-tr__go {
	flex: 0 0 auto;
	margin-left: auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #f3eee6;
	position: relative;
}

.lgm-tr--embed .lgm-tr__row:hover .lgm-tr__go { background: #e5f2ef; }

.lgm-tr--embed .lgm-tr__go::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.4rem;
	height: 0.4rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translate(-65%, -50%) rotate(45deg);
}

.lgm-tr--embed .lgm-tr__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #ece5da;
	font-size: 16px;
	line-height: 1.2;
}

.lgm-tr--embed .lgm-tr__foot.has-switch { justify-content: space-between; }

.lgm-tr--embed a.lgm-tr__switch {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.6rem 1rem;
	background: #f4faf8;
	border: 1px solid #d5e6e1;
	border-radius: 999px;
	color: #0f5c56;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lgm-tr--embed a.lgm-tr__switch:hover {
	background: #e7f3f0;
	border-color: #0f5c56;
	color: #0c463f;
	text-decoration: none;
}

.lgm-tr--embed .lgm-tr__switch-arrow { transition: transform 0.15s ease; }

.lgm-tr--embed a.lgm-tr__switch:hover .lgm-tr__switch-arrow { transform: translateX(3px); }

.lgm-tr--embed a.lgm-tr__logout {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.6rem 0.25rem;
	color: var(--lgm-muted);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
}

.lgm-tr--embed a.lgm-tr__logout:hover {
	color: var(--lgm-tide-dark);
	text-decoration: underline;
}

.lgm-tr--embed .lgm-tr__empty {
	margin: 0;
	padding: 1.1rem 1.15rem;
	background: #faf7f2;
	border: 1px dashed #e0d6c8;
	border-radius: 14px;
	color: var(--lgm-muted);
	font-size: 0.98rem;
}

@media (max-width: 480px) {
	.lgm-tr--embed .lgm-tr__foot.has-switch { justify-content: flex-start; }
}

p.lgm-tr.lgm-tr--back {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0 0 1.25rem;
	padding: 0;
	clear: both;
	float: none;
	flex: 0 0 100%;
	font-family: inherit;
	font-size: 16px;
}

p.lgm-tr.lgm-tr--back a.lgm-tr__back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: auto;
	margin: 0;
	padding: 0.55rem 0.95rem;
	background: #f4faf8;
	border: 1px solid #d5e6e1;
	border-radius: 999px;
	color: #0f5c56;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
}

p.lgm-tr.lgm-tr--back a.lgm-tr__back::before,
p.lgm-tr.lgm-tr--back a.lgm-tr__back::after {
	content: none;
}

p.lgm-tr.lgm-tr--back a.lgm-tr__back:hover {
	background: #e7f3f0;
	color: #0c463f;
	text-decoration: none;
}

.lgm-tr__title {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 0.4rem;
}

.lgm-tr__lead,
.lgm-tr__meta { color: var(--lgm-muted); }

.lgm-tr a { color: var(--lgm-tide-dark); }

.lgm-tr__bar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-end;
	margin-bottom: 1.25rem;
}

.lgm-tr__list { display: grid; gap: 0.9rem; }

.lgm-tr__card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: center;
	background: var(--lgm-paper);
	border: 1px solid var(--lgm-line);
	border-radius: 16px;
	overflow: hidden;
	padding: 0.2rem 1rem;
}

.lgm-tr__card.has-media {
	grid-template-columns: 140px minmax(0, 1fr);
	padding: 0 1rem 0 0;
}

.lgm-tr__media img,
.lgm-tr__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lgm-tr__media { aspect-ratio: 4 / 3; background: var(--lgm-sand); }

.lgm-tr__hero {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 1rem;
	background: var(--lgm-sand);
}

.lgm-tr__card h2 { font-size: 1.2rem; margin: 0 0 0.3rem; }

.lgm-tr__card h2 a,
.lgm-tr__links a { text-decoration: none; }

.lgm-tr__card p { margin: 0; color: var(--lgm-muted); }

.lgm-tr__sub { margin: 2rem 0 0.6rem; font-size: 1.25rem; }

.lgm-tr__links { padding-left: 1.1rem; }

.lgm-tr__links li { margin: 0.35rem 0; }

.lgm-tr__form,
.lgm-tr__field { display: grid; gap: 0.35rem; }

.lgm-tr__form { gap: 0.85rem; }

.lgm-tr__field label,
.lgm-tr__check { font-weight: 700; }

.lgm-tr__field input {
	width: 100%;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #cfc3b4;
	border-radius: 10px;
	padding: 0.7rem 0.75rem;
}

.lgm-tr__check { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; }

.lgm-tr__button {
	appearance: none;
	border: 0;
	background: var(--lgm-tide);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.lgm-tr__button:hover { background: var(--lgm-tide-dark); color: #fff; }

.lgm-tr__button--ghost {
	background: transparent;
	color: var(--lgm-tide-dark);
	border: 1px solid var(--lgm-tide);
}

.lgm-tr__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.lgm-tr__notice {
	background: #fde8e1;
	color: #7a2610;
	border-radius: 12px;
	padding: 0.75rem 0.9rem;
}

.lgm-tr__hp {
	position: absolute;
	left: -10000px;
	height: 0;
	overflow: hidden;
}

.lgm-tr :focus-visible {
	outline: 2px solid var(--lgm-tide);
	outline-offset: 2px;
}

.lgm-tr__prose { max-width: 65ch; }

.lgm-tr__pager { margin-top: 1.25rem; }

.lgm-tr__pager .page-numbers {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--lgm-line);
	border-radius: 8px;
	text-decoration: none;
}

.lgm-tr__pager .current { background: var(--lgm-tide); color: #fff; border-color: var(--lgm-tide); }

@media (max-width: 640px) {
	.lgm-tr__card { grid-template-columns: 1fr; padding: 0 0 0.8rem; }
	.lgm-tr__card div { padding: 0 1rem; }
}
