/* ==========================================================================
   News archive and article (VIC-063). Builds on redesign.css tiles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Archive hero + tabs
   -------------------------------------------------------------------------- */
.news-archive-hero { padding-top: 5rem; }
.news-archive-hero-inner { align-items: end; display: flex; gap: 2rem; justify-content: space-between; }
.news-archive-hero .section-kicker { color: var(--accent); }
.news-archive-hero h1 { letter-spacing: -.005em; margin-top: .4rem; }
.news-archive-count { color: var(--green-200); flex-shrink: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; margin: 0; text-align: right; text-transform: uppercase; }
.news-archive-count strong { color: var(--white); display: block; font-family: var(--display); font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: 0; line-height: .9; }

.news-archive-body { background: var(--paper); padding: 2.5rem 0 6rem; }
.news-tabs { border-bottom: 2px solid var(--line); display: flex; gap: .25rem; margin-bottom: 2.5rem; overflow-x: auto; scrollbar-width: none; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tabs a {
	align-items: center;
	color: var(--green-800);
	display: inline-flex;
	flex-shrink: 0;
	font-family: var(--display);
	font-size: 1.15rem;
	gap: .5rem;
	letter-spacing: .05em;
	margin-bottom: -2px;
	min-height: 52px;
	padding: 0 1.1rem;
	position: relative;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease;
}
.news-tabs a::after { background: var(--accent); bottom: 0; content: ""; height: 4px; left: .6rem; position: absolute; right: .6rem; transform: scaleX(0) skewX(-24deg); transform-origin: left; transition: transform .3s var(--ease-out); }
.news-tabs a:hover { color: var(--green-950); }
.news-tabs a:hover::after { transform: scaleX(.4) skewX(-24deg); }
.news-tabs a[aria-current="page"] { color: var(--green-950); }
.news-tabs a[aria-current="page"]::after { transform: scaleX(1) skewX(-24deg); }
.news-tabs a span { background: var(--green-100); border-radius: 3px; color: var(--green-800); font-family: var(--body); font-size: .68rem; font-weight: 800; letter-spacing: 0; padding: .15rem .4rem; }
.news-tabs a[aria-current="page"] span { background: var(--green-950); color: var(--white); }

/* --------------------------------------------------------------------------
   Tiles: stacked card + featured story
   -------------------------------------------------------------------------- */
.news-tile--stack { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.news-tile--stack .news-tile-media { aspect-ratio: 16 / 10; }
.news-tile--stack .news-tile-body { display: flex; flex-direction: column; }
.news-tile--stack h2, .news-tile--stack h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.05; margin: 0 0 .5rem; text-transform: uppercase; }
.news-tile--stack h2 a, .news-tile--stack h3 a { color: var(--green-950); text-decoration: none; }
.news-tile--stack h2 a::after { content: ""; inset: 0; position: absolute; }
.news-tile:has(h2 a:focus-visible) { outline: 3px solid var(--green-800); outline-offset: 3px; }
.news-tile--stack h2 a:focus-visible { outline: none; }
.news-tile-read::before { content: "·"; margin-right: .6rem; }

.news-tile--feature {
	background: var(--green-950);
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	grid-template-rows: none;
	margin-bottom: 2rem;
	min-height: 420px;
}
.news-tile--feature .news-tile-media { aspect-ratio: auto; min-height: 100%; }
.news-tile--feature .news-tile-body { align-self: center; color: var(--green-200); padding: 2.5rem; position: relative; }
.news-tile--feature .news-tile-body::before { background: var(--accent); content: ""; height: 5px; left: 2.5rem; position: absolute; top: 0; transform: skewX(-24deg); width: 64px; }
.news-tile--feature .news-tile-meta { color: var(--green-200); }
.news-tile--feature .news-tile-tag { background: var(--accent); color: var(--green-950); }
.news-tile--feature h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: .98; margin-bottom: 1rem; }
.news-tile--feature h2 a { color: var(--white); }
.news-tile--feature p { color: var(--green-200); font-size: 1rem; }
.news-tile-more { align-items: center; color: var(--lime); display: inline-flex; font-size: .78rem; font-weight: 900; gap: .45rem; letter-spacing: .12em; margin-top: 1.5rem; text-transform: uppercase; }
.news-tile-more svg { transition: transform .25s var(--ease-out); }
.news-tile--feature:hover .news-tile-more svg { transform: translate(2px, -2px); }

.news-archive-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pagination */
.news-archive .news-pagination { justify-content: center; margin-top: 3rem; }
.news-archive .news-pagination .page-numbers { align-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--green-800); display: inline-flex; font-family: var(--display); font-size: 1.05rem; justify-content: center; min-height: 46px; min-width: 46px; padding: 0 .9rem; }
.news-archive .news-pagination .page-numbers:hover { background: var(--white); border-color: var(--accent); color: var(--green-950); }
.news-archive .news-pagination .page-numbers.current { background: var(--green-950); border-color: var(--green-950); color: var(--white); }

/* Empty state */
.news-empty { align-items: center; background: var(--white); border-left: 6px solid var(--accent); border-radius: 6px; display: flex; gap: 2rem; padding: 2.5rem; }
.news-empty img { flex-shrink: 0; height: 88px; width: 88px; }
.news-empty h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin: 0 0 .6rem; text-transform: uppercase; }
.news-empty p { color: var(--muted); margin: 0 0 1.25rem; max-width: 56ch; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.reading-progress { height: 4px; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; z-index: 40; }
.admin-bar .reading-progress { top: 32px; }
.reading-progress span { background: linear-gradient(90deg, var(--accent), var(--lime)); display: block; height: 100%; transform: scaleX(0); transform-origin: left; }

.news-article-page { background: var(--white); }
.article-hero {
	background: var(--green-950);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
	color: var(--white);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}
.article-hero::before { background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(53, 183, 125, .06) 46px 92px); content: ""; inset: 0; position: absolute; z-index: -1; }
.article-hero--photo { min-height: min(72vh, 640px); }
.article-hero-media { inset: 0; position: absolute; z-index: -1; }
.article-hero-media::after { background: linear-gradient(0deg, rgba(4, 26, 19, .96) 0%, rgba(4, 26, 19, .7) 38%, rgba(4, 26, 19, .2) 70%, rgba(4, 26, 19, .7) 100%); content: ""; inset: 0; position: absolute; }
.article-hero-image { height: 100%; object-fit: cover; object-position: center 35%; width: 100%; animation: hero-zoom 18s ease-out both; }
.article-hero-inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; padding-bottom: calc(28px + 3rem); padding-top: 2.5rem; }
.article-hero:not(.article-hero--photo) .article-hero-inner { padding-top: 3.5rem; }
.article-breadcrumbs { align-items: center; display: flex; font-size: .8rem; font-weight: 700; gap: .6rem; margin-bottom: auto; padding-bottom: 2.5rem; }
.article-breadcrumbs a { color: var(--white); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.article-breadcrumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.article-breadcrumbs span { color: rgba(183, 230, 207, .5); }
.article-tag { align-self: flex-start; background: var(--accent); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); color: var(--green-950); font-size: .72rem; font-weight: 900; letter-spacing: .16em; margin-bottom: 1rem; padding: .3rem 1rem; text-transform: uppercase; }
.article-hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; margin: 0 0 1.25rem; max-width: 18ch; overflow-wrap: break-word; text-transform: uppercase; text-wrap: balance; }
.article-meta { align-items: center; color: var(--green-200); display: flex; flex-wrap: wrap; font-size: .85rem; font-weight: 700; gap: .5rem 1.25rem; }
.article-meta > * + *::before { background: var(--accent); content: ""; display: inline-block; height: 6px; margin-right: 1.25rem; transform: translateY(-2px) skewX(-24deg); width: 6px; }
.article-caption { color: var(--muted); font-size: .8rem; margin-bottom: 0; margin-top: .9rem; }

.article-layout { display: grid; gap: 3rem; grid-template-columns: 56px minmax(0, 740px); justify-content: center; margin: 4rem auto 5rem; max-width: 1120px; padding-inline: 1.5rem; }
.article-share { align-items: center; align-self: start; display: flex; flex-direction: column; gap: .6rem; position: sticky; top: 110px; }
.article-share-label { color: var(--muted); font-size: .6rem; font-weight: 900; letter-spacing: .16em; margin-bottom: .25rem; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.share-button { align-items: center; background: var(--green-100); border: 0; border-radius: 50%; color: var(--green-900); cursor: pointer; display: inline-flex; height: 46px; justify-content: center; position: relative; transition: background .2s ease, color .2s ease, transform .3s var(--ease-out); width: 46px; }
.share-button:hover, .share-button:focus-visible, .share-button.is-copied { background: var(--accent); color: var(--green-950); transform: translateY(-2px); }
.share-copied { background: var(--green-950); border-radius: 4px; color: var(--white); font-size: .7rem; font-weight: 700; left: calc(100% + .6rem); padding: .3rem .55rem; pointer-events: none; position: absolute; white-space: nowrap; }
.share-copied:empty { display: none; }

.article-body { min-width: 0; }
.article-body .news-article-content > p:first-of-type { border-left: 4px solid var(--accent); color: var(--green-950); font-weight: 600; padding-left: 1.25rem; }
.article-body .news-article-content :is(h2, h3) { text-transform: uppercase; }
.article-body .news-article-content blockquote { background: var(--green-100); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; color: var(--green-950); font-family: var(--display); font-size: 1.5rem; line-height: 1.2; padding: 1.25rem 1.5rem; }

.article-cta { align-items: center; background: var(--green-950); border-radius: 6px; color: var(--white); display: grid; gap: 1.5rem 2rem; grid-template-columns: minmax(0, 1fr) auto; margin: 3rem 0 0; overflow: hidden; padding: 2rem 2.25rem; position: relative; }
.article-cta::after { background: var(--accent); bottom: 0; content: ""; height: 5px; left: 0; position: absolute; width: 100%; }
.article-cta .section-kicker { color: var(--accent); }
.article-cta h2 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; margin: 0 0 .5rem; text-transform: uppercase; }
.article-cta p { color: var(--green-200); margin: 0; }

.article-pager { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; padding: 1.5rem 0; }
.article-pager-link { display: grid; gap: .35rem; text-decoration: none; }
.article-pager-link--next { grid-column: 2; text-align: right; }
.article-pager-link span { color: var(--green-700); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.article-pager-link strong { color: var(--green-950); font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; transition: color .2s ease; }
.article-pager-link:hover strong { color: var(--accent-strong); }
.article-back { align-items: center; color: var(--green-800); display: inline-flex; font-size: .85rem; font-weight: 800; gap: .5rem; margin-top: 1.75rem; min-height: 44px; text-decoration: none; }
.article-back:hover { text-decoration: underline; text-underline-offset: .25em; }

.article-related { background: var(--paper); padding: 4.5rem 0 5.5rem; }
.article-related .section-heading { align-items: end; display: flex; gap: 1.5rem; justify-content: space-between; margin-bottom: 2rem; }
.article-related .section-heading h2 { font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: .95; margin: 0; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-tile--feature { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
	.news-tile--feature .news-tile-media { aspect-ratio: 16 / 9; min-height: 0; }
	.reading-progress { top: 0; }
}
@media (max-width: 782px) { .admin-bar .reading-progress { top: 46px; } }
@media (max-width: 700px) {
	.news-archive-hero { padding-top: 3.5rem; }
	.news-archive-hero-inner { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
	.news-archive-count { text-align: left; }
	.news-archive-count strong { display: inline; font-size: 2rem; margin-right: .3rem; }
	.news-archive-body { padding: 1.5rem 0 4rem; }
	.news-tabs { margin-left: -1.15rem; margin-right: -1.15rem; padding: 0 .55rem; }
	.news-tabs a { font-size: 1rem; padding: 0 .7rem; }
	.news-archive-grid { gap: 1.25rem; grid-template-columns: 1fr; }
	.news-tile--feature .news-tile-body { padding: 1.75rem 1.4rem; }
	.news-tile--feature .news-tile-body::before { left: 1.4rem; }
	.news-tile--stack .news-tile-body { padding: 1.1rem 1.2rem 1.3rem; }
	.news-empty { align-items: flex-start; flex-direction: column; gap: 1.25rem; padding: 1.75rem; }

	.article-hero--photo { min-height: 520px; }
	.article-hero-inner { padding-bottom: calc(28px + 2rem); }
	.article-breadcrumbs { padding-bottom: 2rem; }
	.article-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
	.article-layout { display: flex; flex-direction: column-reverse; gap: 2rem; margin: 2.5rem auto 3.5rem; padding-inline: 1.15rem; }
	.article-share { border-top: 1px solid var(--line); flex-direction: row; padding-top: 1.5rem; position: static; width: 100%; }
	.article-share-label { margin: 0 .5rem 0 0; transform: none; writing-mode: horizontal-tb; }
	.share-copied { left: auto; right: 0; top: calc(100% + .4rem); }
	.article-cta { grid-template-columns: 1fr; padding: 1.75rem 1.4rem; }
	.article-pager { grid-template-columns: 1fr; }
	.article-pager-link--next { grid-column: auto; text-align: left; }
	.article-related { padding: 3.5rem 0 4rem; }
	.article-related .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.article-hero-image { animation: none; }
	.news-tabs a, .news-tabs a::after, .news-tile-more svg, .share-button, .article-pager-link strong { transition: none; }
	.share-button:hover, .share-button.is-copied, .news-tile--feature:hover .news-tile-more svg { transform: none; }
}
