/* ==========================================================================
   Headline Stack — black top-story slab + oversized numbered headlines
   (Headline Hub demo · Arena header)
   ========================================================================== */
.epg-headline { --hl-ink: #111111; --hl-slab: #111111; --hl-slab-fg: #ffffff; }
[data-theme="dark"] .epg-headline { --hl-ink: var(--text-main); --hl-slab: color-mix(in srgb, var(--accent) 7%, #0c0c0f); }

/* --- Lead slab --- */
.epg-headline__lead { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 440px; overflow: hidden; background: var(--hl-slab); color: var(--hl-slab-fg); }
[data-theme="dark"] .epg-headline__lead { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.epg-headline__lead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); }
.epg-headline__media { position: relative; display: block; min-height: 100%; overflow: hidden; border-radius: 0; }
.epg-headline__media img, .epg-headline__media .epj-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.epg-headline__lead:hover .epg-headline__media img { transform: scale(1.04); }
/* red slash cutting the image into the slab */
.epg-headline__media::after { content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 16%; background: linear-gradient(to right, transparent, var(--hl-slab) 85%); }
.epg-headline__slash { position: absolute; top: -10%; right: 9%; bottom: -10%; z-index: 1; width: 34px; background: var(--accent); transform: skewX(-16deg); box-shadow: -22px 0 0 -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.epg-headline__lead-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 48px 48px 54px 24px; }
.epg-headline__flags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.epg-headline__flag { display: inline-block; padding: 7px 12px 6px; background: var(--accent-fill, var(--accent)); color: var(--on-accent-fill, #fff); font: 800 11px/1 var(--font-heading); letter-spacing: 1.8px; text-transform: uppercase; }
.epg-headline .epg-headline__kicker { color: var(--accent-text, var(--accent)); font: 800 12px/1 var(--font-heading); letter-spacing: 1.5px; text-transform: uppercase; }
.epg-headline .epg-headline__kicker::before { content: '/'; margin-right: 6px; font-weight: 900; }
.epg-headline__lead .epg-headline__kicker { color: rgba(255, 255, 255, .78); }
.epg-headline__lead .epg-headline__kicker::before { color: var(--accent); }
.epg-headline__lead-title { margin: 0 0 18px; font-family: var(--font-heading); font-size: clamp(1.9rem, 1.1rem + 2.1vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.epg-headline__lead-title a { color: #fff; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 92% / 0 .12em; transition: background-size .45s; }
.epg-headline__lead-title a:hover { background-size: 100% .12em; }
.epg-headline__excerpt { max-width: 46ch; margin: 0 0 26px; color: rgba(255, 255, 255, .72); font-size: 1rem; line-height: 1.65; }
.epg-headline__lead-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.epg-headline__lead .epj-meta { color: rgba(255, 255, 255, .6); }
.epg-headline__lead .epj-meta__by { color: #fff; }
.epg-headline__more { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font: 800 12px/1 var(--font-heading); letter-spacing: 1.4px; text-transform: uppercase; }
.epg-headline__more i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--accent); font-size: 16px; transition: transform .25s; }
.epg-headline__more:hover i { transform: translateX(4px); }

/* --- Numbered headline stack --- */
.epg-headline__list { margin: 34px 0 0; padding: 0; list-style: none; border-top: 4px solid var(--hl-ink); counter-reset: none; }
.epg-headline__row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 52px; gap: 28px; align-items: center; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--border); }
.epg-headline__row::marker { content: none; }
.epg-headline__row::before { content: ''; position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; background: var(--accent); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.epg-headline__row:hover::before { width: 100%; }
.epg-headline__n { position: relative; display: block; padding-right: 26px; color: transparent; font: 800 5.2rem/.85 var(--font-heading); letter-spacing: -.06em; font-variant-numeric: tabular-nums; -webkit-text-stroke: 1.5px var(--hl-ink); transition: color .3s, -webkit-text-stroke-color .3s; }
.epg-headline__n::after { content: ''; position: absolute; top: 6%; right: 2px; bottom: 6%; width: 7px; background: var(--accent); transform: skewX(-16deg); }
.epg-headline__row:hover .epg-headline__n { color: var(--accent-text, var(--accent)); -webkit-text-stroke-color: var(--accent); }
.epg-headline__row-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.epg-headline__title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.35rem, .95rem + 1.35vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.epg-headline__title a { color: var(--text-main); transition: color .2s; }
.epg-headline__title a:hover { color: var(--accent-text, var(--accent)); }
.epg-headline__go { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--hl-ink); color: var(--hl-ink); font-size: 22px; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.epg-headline__row:hover .epg-headline__go { border-color: var(--accent); background: var(--accent-fill, var(--accent)); color: var(--on-accent-fill, #fff); transform: rotate(45deg); }

/* --- Responsive --- */
@media (max-width: 992px) {
	.epg-headline__lead { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.epg-headline__media { aspect-ratio: 16 / 9; min-height: 0; }
	.epg-headline__media::after { top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 34%; background: linear-gradient(to bottom, transparent, var(--hl-slab)); }
	.epg-headline__lead-body { padding: 8px 32px 40px; }
	.epg-headline__row { grid-template-columns: 104px minmax(0, 1fr) 44px; gap: 22px; }
	.epg-headline__n { font-size: 4.2rem; }
	.epg-headline__go { width: 44px; height: 44px; font-size: 19px; }
}
@media (max-width: 600px) {
	.epg-headline__slash { width: 20px; right: 12%; }
	.epg-headline__lead-body { padding: 4px 20px 32px; }
	.epg-headline__lead-title { font-size: 1.75rem; }
	.epg-headline__excerpt { font-size: .95rem; }
	.epg-headline__list { margin-top: 24px; }
	.epg-headline__row { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; padding: 20px 0; }
	.epg-headline__n { padding-right: 20px; font-size: 2.7rem; }
	.epg-headline__n::after { width: 5px; }
	.epg-headline__title { font-size: 1.25rem; }
	.epg-headline__go { display: none; }
}
/* Category kicker: at least 24px tall to tap (WCAG target size) */
.epg-headline .epg-headline__kicker { display: inline-flex; align-items: center; min-height: 24px; }
