/* LT3D Magazine Core — scoped to .lt3d-* only. Tokens match the Kadence palette set by LT3D Website Setup. */
:root {
	--lt3d-ink: #16191b;
	--lt3d-green: #c9df56;
	--lt3d-ivory: #f8f6ef;
	--lt3d-gray: #d5d8d6;
	--lt3d-teal: #657c80;
	--lt3d-ink-2: #2c3134;
	--lt3d-muted: #3d4447;
	--lt3d-radius: 6px;
	--lt3d-gap: 24px;
	--lt3d-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lt3d-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[class*="lt3d-"] { box-sizing: border-box; }
.lt3d-featured, .lt3d-latest-articles, .lt3d-latest-videos, .lt3d-tiles, .lt3d-related { font-family: var(--lt3d-body); color: var(--lt3d-ink); }
.lt3d-featured a, .lt3d-latest-articles a, .lt3d-latest-videos a, .lt3d-tiles a, .lt3d-related a { color: inherit; text-decoration: none; }
.lt3d-featured a:hover h3, .lt3d-card__title a:hover, .lt3d-hero__title a:hover { text-decoration: underline; }
[class*="lt3d-"] a:focus-visible, [class*="lt3d-"] button:focus-visible { outline: 3px solid var(--lt3d-green); outline-offset: 2px; box-shadow: 0 0 0 5px var(--lt3d-ink); }

.lt3d-chip { display: inline-block; align-self: flex-start; background: var(--lt3d-green); color: var(--lt3d-ink); font: 700 12px/1.6 var(--lt3d-body); padding: 1px 8px; border-radius: var(--lt3d-radius); text-transform: uppercase; letter-spacing: .02em; }
.lt3d-meta { margin: 0; font-size: 14px; color: var(--lt3d-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lt3d-card__title { margin: 4px 0; font: 700 18px/1.25 var(--lt3d-head); }
.lt3d-card__dek { margin: 0; font-size: 14px; line-height: 1.45; color: var(--lt3d-muted); }
.lt3d-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lt3d-noimg { width: 100%; height: 100%; min-height: 80px; background: var(--lt3d-gray); }
.lt3d-button { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 10px 20px; border-radius: var(--lt3d-radius); background: var(--lt3d-green); color: var(--lt3d-ink) !important; font: 700 16px/1.2 var(--lt3d-body); }
.lt3d-button:hover { background: #d6e877; }

/* Section heads */
.lt3d-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.lt3d-section-title { margin: 0; display: flex; align-items: center; gap: 12px; font: 800 34px/1.15 var(--lt3d-head); }
.lt3d-section-title::before { content: ""; width: 10px; height: .9em; background: var(--lt3d-green); transform: skewX(-14deg); }
.lt3d-more { font-weight: 700; font-size: 16px; white-space: nowrap; padding: 10px 0; }
.lt3d-more span { color: #6f8420; }

/* Featured */
.lt3d-featured { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--lt3d-gap); }
.lt3d-hero { position: relative; background: var(--lt3d-ink); color: var(--lt3d-ivory); border-radius: var(--lt3d-radius); overflow: hidden; min-height: 420px; }
.lt3d-hero__slide { display: grid; height: 100%; }
.lt3d-hero__slide[hidden] { display: none; }
.lt3d-hero__media, .lt3d-hero__body { grid-area: 1 / 1; }
.lt3d-hero__media { position: relative; }
.lt3d-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,25,27,.94) 0%, rgba(22,25,27,.8) 42%, rgba(22,25,27,0) 72%); }
.lt3d-hero__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px 40px 72px; max-width: 560px; }
.lt3d-hero__title { margin: 0; font: 800 52px/1.08 var(--lt3d-head); color: var(--lt3d-ivory); }
.lt3d-hero .lt3d-card__dek { color: var(--lt3d-gray); font-size: 18px; }
.lt3d-hero__dots { position: absolute; z-index: 2; left: 28px; bottom: 12px; display: flex; }
.lt3d-dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lt3d-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lt3d-green); }
.lt3d-dot[aria-pressed="true"]::before { background: var(--lt3d-green); }
.lt3d-featured__stack { display: flex; flex-direction: column; gap: 16px; }
.lt3d-featured__stack .lt3d-row-card { flex: 1; }

/* Cards */
.lt3d-row-card { display: flex; gap: 16px; background: #fff; border-radius: var(--lt3d-radius); padding: 12px; }
.lt3d-row-card__media { flex: 0 0 132px; aspect-ratio: 4 / 3; border-radius: var(--lt3d-radius); overflow: hidden; align-self: flex-start; }
.lt3d-row-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lt3d-lead-card { background: #fff; border-radius: var(--lt3d-radius); overflow: hidden; display: flex; flex-direction: column; }
.lt3d-lead-card__media { aspect-ratio: 4 / 3; display: block; }
.lt3d-lead-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.lt3d-lead-card .lt3d-card__title { font: 800 26px/1.15 var(--lt3d-head); }

/* Latest articles */
.lt3d-latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--lt3d-gap); align-items: start; }
.lt3d-latest__list { display: flex; flex-direction: column; gap: 16px; }
.lt3d-latest__slot { display: none; }
.lt3d-latest__slot:not(:has(.lt3d-ad)), .lt3d-latest__slot:has(.lt3d-ad--empty) { display: none !important; }

/* Videos */
.lt3d-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lt3d-gap); }
.lt3d-video-card__poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--lt3d-radius); overflow: hidden; background: var(--lt3d-ink-2); }
.lt3d-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--lt3d-ivory); display: grid; place-items: center; }
.lt3d-play path { fill: var(--lt3d-ink); }
.lt3d-duration { position: absolute; right: 8px; bottom: 8px; background: var(--lt3d-ink); color: var(--lt3d-ivory); font: 700 13px/1.4 var(--lt3d-body); padding: 1px 6px; border-radius: 4px; }

/* Category tiles */
.lt3d-tiles__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.lt3d-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 8px; background: #fff; border-radius: var(--lt3d-radius); font-weight: 600; font-size: 16px; min-height: 44px; }
.lt3d-tile:hover { box-shadow: inset 0 0 0 2px var(--lt3d-green); }
.lt3d-icon { width: 40px; height: 40px; color: var(--lt3d-ink); }
.lt3d-icon__fill { fill: var(--lt3d-green); fill-opacity: .55; }

/* Single post */
.lt3d-video { margin: 0 0 24px; }
.lt3d-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--lt3d-radius); overflow: hidden; background: var(--lt3d-ink); }
.lt3d-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lt3d-video__play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(22,25,27,.25); cursor: pointer; }
.lt3d-video__caption { font-size: 14px; margin-top: 8px; }
.lt3d-figure { margin: 0; }
.lt3d-credit { font-size: 13px; color: var(--lt3d-muted); margin-top: 6px; }
.lt3d-related { margin-top: 48px; }
.lt3d-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lt3d-related .lt3d-section-title { font-size: 26px; }

/* Tablet 768–1023 */
@media (max-width: 1023px) {
	.lt3d-featured { grid-template-columns: 1fr; }
	.lt3d-featured__stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lt3d-featured__stack .lt3d-row-card { flex-direction: column; }
	.lt3d-featured__stack .lt3d-row-card__media { flex-basis: auto; width: 100%; }
	.lt3d-hero__title { font-size: 42px; }
	.lt3d-section-title { font-size: 30px; }
	.lt3d-latest { grid-template-columns: 1fr 1fr; }
	.lt3d-latest__slot { display: block; grid-column: 1 / -1; justify-self: center; }
	.lt3d-latest__list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
	.lt3d-related__list { grid-template-columns: 1fr; }
}

/* Mobile 320–767 */
@media (max-width: 767px) {
	:root { --lt3d-gap: 16px; }
	.lt3d-featured__stack, .lt3d-latest, .lt3d-latest__list, .lt3d-video-grid { grid-template-columns: 1fr; }
	.lt3d-featured__stack .lt3d-row-card { flex-direction: row; }
	.lt3d-featured__stack .lt3d-row-card__media, .lt3d-row-card__media { flex: 0 0 104px; width: 104px; }
	.lt3d-hero { min-height: 0; }
	.lt3d-hero__slide { grid-template-rows: auto auto; }
	.lt3d-hero__media { grid-area: 1 / 1; aspect-ratio: 16 / 10; }
	.lt3d-hero__media::after { display: none; }
	.lt3d-hero__body { grid-area: 2 / 1; padding: 20px 20px 64px; }
	.lt3d-hero__title { font-size: 34px; }
	.lt3d-hero__dots { left: 8px; bottom: 8px; }
	.lt3d-section-title { font-size: 26px; }
	.lt3d-lead-card .lt3d-card__title { font-size: 22px; }
	.lt3d-tiles__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.lt3d-tile { padding: 12px 2px; font-size: 12px; }
	.lt3d-icon { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	[class*="lt3d-"] { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
