/* ---------------------------------------------------------------------------
   Newsroom layout — front page, section fronts, news river, data band.

   The visual language is a print section front translated to the web:
   hairline rules instead of boxes, a strict headline hierarchy, tabular
   figures for anything numeric, and whitespace doing the work that borders
   would otherwise do.
   --------------------------------------------------------------------------- */

/* --- Shared editorial primitives ---------------------------------------- */

.kicker {
	display: block;
	margin: 0 0 0.5rem;
	color: var(--hc-accent-text);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.3;
	text-transform: uppercase;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker--small { font-size: 0.66rem; margin-bottom: 0.3rem; }
.kicker--light { color: var(--hc-accent); }

.story-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--hc-ink-3);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

.text-link--light { color: var(--hc-accent); }
.text-link--light:hover { color: var(--hc-accent); }

/* --- Lead block ---------------------------------------------------------- */

.newsroom-lead {
	padding: clamp(1.5rem, 3.5vw, 2.75rem) 0 clamp(1.75rem, 4vw, 3rem);
	border-bottom: 1px solid var(--hc-line);
}
.newsroom-lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: start;
}

.lead-story__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
	border-radius: var(--hc-radius);
	background: var(--hc-surface-3);
}
.lead-story__media img { width: 100%; height: 100%; object-fit: cover; }

.lead-story__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.9rem, 4.4vw, 3.15rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.03;
}
.lead-story__title a { text-decoration: none; }
.lead-story__title a:hover { color: var(--hc-link-hover); }

.lead-story__dek {
	max-width: 40rem;
	margin-bottom: 0.85rem;
	color: var(--hc-ink-2);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.5;
	text-wrap: pretty;
}

/* Right rail: numbered top stories, divided by hairlines. */
.lead-rail { min-width: 0; }
.rail-label {
	margin: 0 0 0.9rem;
	padding-bottom: 0.55rem;
	border-bottom: 2px solid var(--hc-heading);
	color: var(--hc-heading);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-story {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0.85rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--hc-line);
}
.rail-story:last-child { border-bottom: 0; }
.rail-story:first-child { padding-top: 0; }
.rail-story__media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--hc-surface-3);
}
.rail-story__media img { width: 100%; height: 100%; object-fit: cover; }
.rail-story__title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.28;
}
.rail-story__title a { text-decoration: none; }
.rail-story__title a:hover { color: var(--hc-link-hover); }

@media (max-width: 900px) {
	.newsroom-lead__grid { grid-template-columns: 1fr; }
	.rail-story { grid-template-columns: 68px minmax(0, 1fr); }
}

/* --- Market data band ---------------------------------------------------- */

.data-band {
	padding: clamp(2rem, 4.5vw, 3.25rem) 0;
	background: var(--hc-paper);
	border-bottom: 1px solid var(--hc-line);
}
.data-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: start;
}
.data-band h2 { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.data-band__intro > p { max-width: 40rem; color: var(--hc-ink-2); font-size: 0.98rem; }

.data-band__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	gap: 1px;
	margin: 1.25rem 0 0.85rem;
	background: var(--hc-line);
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius-sm);
	overflow: hidden;
}
.data-band__stats > div { padding: 0.85rem 1rem; background: var(--hc-surface); }
.data-band__stats dt {
	margin-bottom: 0.2rem;
	color: var(--hc-ink-3);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.data-band__stats dd {
	margin: 0;
	color: var(--hc-heading);
	font-size: 1.35rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}
.data-band__note,
.data-band__caption { margin: 0; color: var(--hc-ink-3); font-size: 0.75rem; line-height: 1.5; }

.data-band__table { min-width: 0; }
.data-band__table h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.data-band__table .text-link { margin-top: 0.9rem; font-size: 0.85rem; }

.rank-list { list-style: none; margin: 0.85rem 0 0; padding: 0; }
.rank-list li {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--hc-line);
	font-size: 0.94rem;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list__pos { color: var(--hc-ink-3); font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-list__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list__name a { text-decoration: none; font-weight: 600; }
.rank-list__name a:hover { text-decoration: underline; }
.rank-list__value { color: var(--hc-heading); font-weight: 700; }

@media (max-width: 860px) {
	.data-band__grid { grid-template-columns: 1fr; }
}

/* --- News river ---------------------------------------------------------- */

.news-river__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.news-river { list-style: none; margin: 0; padding: 0; }
.river-item {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr) 160px;
	gap: 1.25rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--hc-line);
	align-items: start;
}
.river-item:first-child { padding-top: 0; }
.river-item:last-child { border-bottom: 0; }
.river-item__time {
	color: var(--hc-ink-3);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	padding-top: 0.15rem;
	white-space: nowrap;
}
.river-item__body { min-width: 0; }
.river-item__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.24;
}
.river-item__title a { text-decoration: none; }
.river-item__title a:hover { color: var(--hc-link-hover); }
.river-item__dek {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--hc-ink-2);
	font-size: 0.9rem;
	line-height: 1.5;
}
.river-item__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 8px;
	background: var(--hc-surface-3);
}
.river-item__media img { width: 100%; height: 100%; object-fit: cover; }

.news-river__rail { position: sticky; top: calc(var(--hc-header-h) + 1rem); display: grid; gap: 1.5rem; }

.picks__list { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.picks__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--hc-line);
	counter-increment: pick;
}
.picks__list li:last-child { border-bottom: 0; }
.picks__list li::before {
	content: counter(pick);
	flex: 0 0 auto;
	width: 1.2rem;
	color: var(--hc-accent-text);
	font-size: 0.85rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.picks__list a {
	flex: 1;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
.picks__list a:hover { text-decoration: underline; }
.picks__list time { flex: 0 0 auto; color: var(--hc-ink-3); font-size: 0.72rem; white-space: nowrap; }

@media (max-width: 1000px) {
	.news-river__layout { grid-template-columns: 1fr; }
	.news-river__rail { position: static; }
}
@media (max-width: 700px) {
	.river-item { grid-template-columns: minmax(0, 1fr) 96px; gap: 0.9rem; }
	.river-item__time { grid-column: 1 / -1; padding-top: 0; }
}

/* --- Section fronts ------------------------------------------------------ */

.section-blocks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 0;
}
.section-block {
	min-width: 0;
	padding: 0 clamp(1rem, 2vw, 1.6rem);
	border-left: 1px solid var(--hc-line);
}
.section-block:first-child { padding-left: 0; border-left: 0; }
.section-block:last-child { padding-right: 0; }

.section-block__head { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--hc-heading); }
.section-block__head h2 { margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.section-block__head a { text-decoration: none; }
.section-block__head a:hover { color: var(--hc-accent-text); }

.section-block__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 0.7rem;
	border-radius: 8px;
	background: var(--hc-surface-3);
}
.section-block__media img { width: 100%; height: 100%; object-fit: cover; }
.section-block__lead h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.26;
}
.section-block__lead h3 a { text-decoration: none; }
.section-block__lead h3 a:hover { color: var(--hc-link-hover); }
.section-block__dek {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 0.85rem;
	color: var(--hc-ink-2);
	font-size: 0.88rem;
	line-height: 1.5;
}

.section-block__list { list-style: none; margin: 0; padding: 0.85rem 0 0; border-top: 1px solid var(--hc-line); }
.section-block__list li { padding: 0.5rem 0; border-bottom: 1px solid var(--hc-line); }
.section-block__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.section-block__list a {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.section-block__list a:hover { text-decoration: underline; }

@media (max-width: 900px) {
	.section-blocks { gap: 1.75rem; }
	.section-block { padding: 0; border-left: 0; }
}

/* --- Index head (section fronts and the all-stories page) ---------------- */

.index-head {
	padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 clamp(1rem, 2vw, 1.5rem);
	border-bottom: 1px solid var(--hc-line);
}
.index-head h1 {
	margin-bottom: 0.35rem;
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	letter-spacing: -0.035em;
}
.index-head__dek {
	max-width: 46rem;
	margin-bottom: 1.25rem;
	color: var(--hc-ink-2);
	font-size: clamp(0.98rem, 1.5vw, 1.1rem);
	line-height: 1.55;
	text-wrap: pretty;
}
.index-head .category-filter { margin-bottom: 0; }

/* A river whose first entry is the lead story. */
.river-item--lead { display: block; padding-top: 0; padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.lead-story--compact .lead-story__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.lead-story--compact .lead-story__media { border-radius: var(--hc-radius); }

/* --- City Index: dataset-backed market cards ----------------------------- */

.market-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 1px;
	background: var(--hc-line);
	border: 1px solid var(--hc-line);
	border-radius: var(--hc-radius);
	overflow: hidden;
}

.market-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1rem 1.1rem 1.1rem;
	background: var(--hc-surface);
	transition: background 0.16s var(--hc-ease);
}
.market-card:hover { background: var(--hc-surface-2); }
.market-card--reported { border-left: 3px solid var(--hc-accent); }

.market-card__state {
	margin: 0 0 0.15rem;
	color: var(--hc-ink-3);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.market-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}
.market-card__title a { text-decoration: none; }
.market-card__title a:hover { color: var(--hc-link-hover); text-decoration: underline; }
.market-card__flag {
	margin: 0.3rem 0 0;
	color: var(--hc-accent-text);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.market-card__metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
	margin: auto 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--hc-line);
}
.market-card__metrics dt {
	margin-bottom: 0.1rem;
	color: var(--hc-ink-3);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.market-card__metrics dd {
	margin: 0;
	color: var(--hc-heading);
	font-size: 0.92rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* --- Video rail ---------------------------------------------------------- */

.video-rail .section-header { border-bottom-color: var(--hc-inv-line); }
.video-rail .video-card h2 a { color: var(--hc-inv-ink); }
.video-rail .video-card p { color: var(--hc-inv-ink-2); }
.video-rail .article-card__meta { color: var(--hc-inv-ink-2); }
