/* =============================================================================
   news-paper.css — the Local News Hub "digital newspaper" visual system.
   Newspaper rebuild Step 1. Namespaced to .pl-news-single / .pns-* / .nh-* and
   the hub card classes so it can load site-wide without leaking. Serif display
   for headlines + body (no web-font request), section accents, trust cues.
   Spec: Features-Documents/news/NEWSPAPER-REBUILD-SPEC.md §4.2.
   ============================================================================= */

:root {
	--np-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--np-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--np-ink: #15191e;
	--np-body: #23282d;
	--np-muted: #6b7280;
	--np-hair: #e5e7eb;
	--np-paper: #fff;
	--np-soft: #f8f7f4;
	--np-accent: #1f4e79; /* overridden per-archetype */
}

/* ── Single story shell ───────────────────────────────────────────────────── */
.pl-news-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px 64px;
	font-family: var(--np-sans);
	color: var(--np-body);
}
/* Magazine layout: the HERO image spans the full 1200px for impact, while the text blocks (title,
   byline, reaction row, body, boxes) center at a comfortable reading measure so lines never get
   too long. Each block left-aligns its own text inside that centered column. */
.pl-news-single > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.pl-news-single > .pns-hero { max-width: 100%; }
.pl-news-single .pns-body { max-width: 860px; margin-left: auto; margin-right: auto; }
.pl-news-single .pns-back,
.pl-news-single .pns-breadcrumb {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--np-muted);
	text-decoration: none;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .02em;
}
.pl-news-single .pns-back:hover { color: var(--np-accent); }

/* Kicker / eyebrow */
.pns-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--np-sans);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--np-accent);
	margin: 0 0 10px;
	padding-left: 11px;
	border-left: 3px solid var(--np-accent);
}
.pns-breaking {
	background: #c62828;
	color: #fff;
	font-weight: 800;
	font-size: .68rem;
	letter-spacing: .06em;
	padding: 2px 8px;
	border-radius: 3px;
}

/* Headline + dek (serif display) */
.pns-title {
	font-family: var(--np-serif);
	font-size: clamp(1.7rem, 4.4vw, 2.5rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	color: var(--np-ink);
	font-weight: 700;
}
.pns-dek {
	font-family: var(--np-serif);
	font-size: 1.2rem;
	line-height: 1.5;
	color: #3a4149;
	margin: 0 0 18px;
	font-weight: 400;
}

/* Trust byline */
.pns-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-family: var(--np-sans);
	font-size: .84rem;
	color: var(--np-muted);
	padding: 12px 0;
	margin: 0 0 18px;
	border-top: 1px solid var(--np-hair);
	border-bottom: 1px solid var(--np-hair);
}
.pns-byline .pns-brand { font-weight: 700; color: var(--np-ink); }
.pns-byline .pns-sep { opacity: .45; }
.pns-byline .pns-sources-n { color: #1b7a4b; font-weight: 600; }
.pns-byline .pns-sources-1 { color: #b45309; font-weight: 600; }
.pns-byline .pns-updated { color: #1b7a4b; font-weight: 600; }
.pns-ai-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .78rem;
	color: #555;
	background: var(--np-soft);
	border: 1px solid var(--np-hair);
	border-radius: 999px;
	padding: 3px 10px;
	text-decoration: none;
}
.pns-ai-chip:hover { border-color: #c9ccd1; color: #222; }

/* Hero */
.pns-hero {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-color: #eceff2;
	margin: 0 0 6px;
}
.pl-news-single.pns-arch-obituary .pns-hero { aspect-ratio: 3 / 4; max-width: 320px; }
.pns-credit { color: #9aa0a6; font-size: .76rem; margin: 0 0 18px; font-style: italic; }

/* Meta row (fallback, legacy) */
.pns-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--np-muted); font-size: .82rem; margin-bottom: 8px; }

/* Follow controls */
.pns-follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.pns-follow-lbl { color: var(--np-muted); font-size: .85rem; }
.pns-foll { border: 1px solid var(--np-accent); background: #fff; color: var(--np-accent); border-radius: 999px; padding: 5px 13px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.pns-foll.is-on { background: var(--np-accent); color: #fff; }
.pns-foll[disabled] { opacity: .5; cursor: default; }

/* ── Article body (serif, generous measure) ───────────────────────────────── */
.pns-body { font-family: var(--np-serif); font-size: 1.13rem; line-height: 1.78; color: var(--np-body); }
.pns-body p { margin: 0 0 1.05em; }
.pns-body > .nh-story > p:first-of-type::first-letter,
.pns-body .nh-dek + p::first-letter { /* subtle drop-cap on the lead */ }
.pl-news-single.pns-arch-feature .pns-body .nh-story > p:first-of-type::first-letter {
	float: left; font-size: 3.1rem; line-height: .82; padding: 4px 8px 0 0; color: var(--np-ink); font-weight: 700;
}
.pns-body .nh-dek { font-family: var(--np-serif); font-size: 1.2rem; line-height: 1.5; color: #3a4149; margin: 0 0 18px; }

/* Quotes + context */
.pns-body .nh-quote {
	font-family: var(--np-serif);
	font-size: 1.22rem;
	line-height: 1.5;
	color: var(--np-ink);
	border-left: 3px solid var(--np-accent);
	margin: 22px 0;
	padding: 4px 0 4px 18px;
}
.pns-body .nh-quote cite { display: block; font-size: .9rem; font-style: normal; color: var(--np-muted); margin-top: 8px; }
.pns-body .nh-context { background: var(--np-soft); border-radius: 8px; padding: 12px 16px; font-size: 1.04rem; line-height: 1.65; }

/* The details (key facts box) */
.nh-keyfacts, .pns-body .nh-box.nh-keyfacts {
	font-family: var(--np-sans);
	background: var(--np-soft);
	border: 1px solid var(--np-hair);
	border-left: 3px solid var(--np-accent);
	border-radius: 8px;
	padding: 16px 18px;
	margin: 22px 0;
}
.nh-keyfacts .nh-box-title, .pns-body .nh-box-title {
	margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--np-accent);
}
.nh-keyfacts ul, .pns-body .nh-box ul, .pns-body .nh-keypoints { margin: 0; padding-left: 1.15em; font-size: 1rem; line-height: 1.55; }
.nh-keyfacts li { margin: .3em 0; }
.nh-fact-flag { color: #b45309; font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* Why it matters — pull-quote feel */
.pns-body .nh-why {
	font-family: var(--np-sans);
	background: #fffaf0;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 1.02rem;
	line-height: 1.55;
	margin: 22px 0;
}

/* What's unconfirmed — honesty block */
.nh-unconfirmed, .pns-body .nh-unconfirmed {
	font-family: var(--np-sans);
	background: #fff8f3;
	border: 1px solid #f3d8c4;
	border-left: 3px solid #c2660c;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 22px 0;
}
.nh-unconfirmed .nh-box-title { color: #9a3412; }
.nh-unconfirmed ul { margin: 0; padding-left: 1.15em; font-size: .98rem; line-height: 1.55; color: #5c4636; }

/* Disputed + single-source notice */
.pns-body .nh-disputed { font-family: var(--np-sans); color: #8a6d00; background: #fffbeb; border-radius: 6px; padding: 8px 12px; font-size: .96rem; }
.pns-body .nh-source-notice { font-family: var(--np-sans); color: #9a3412; font-size: .9rem; background: #fff5f5; border-radius: 6px; padding: 8px 12px; }

/* Reported by */
.pns-body .nh-reported-by, .pns-sources {
	font-family: var(--np-sans);
	color: var(--np-muted);
	font-size: .86rem;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--np-hair);
}
.pns-body .nh-reported-by a, .pns-sources a { color: var(--np-accent); text-decoration: none; font-weight: 600; }
.pns-body .nh-reported-by a:hover, .pns-sources a:hover { text-decoration: underline; }

/* Alert banner (weather / safety archetypes) */
.pns-alert-banner {
	display: flex; align-items: center; gap: 10px;
	background: #fdecea; border: 1px solid #f5c6cb; color: #8a1f1f;
	border-radius: 8px; padding: 11px 16px; margin: 0 0 18px;
	font-family: var(--np-sans); font-weight: 600; font-size: .95rem;
}
.pl-news-single.pns-arch-weather .pns-alert-banner { background: #fff4e5; border-color: #f0c98b; color: #92500b; }

/* Trust footer */
.pns-trust-footer {
	margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--np-hair);
	font-family: var(--np-sans); font-size: .86rem;
}
.pns-trust-footer a { color: var(--np-accent); text-decoration: none; font-weight: 600; }

/* Memorial tone (obituary) */
.pl-news-single.pns-arch-obituary { text-align: center; }
.pl-news-single.pns-arch-obituary .pns-title { font-weight: 600; }
.pl-news-single.pns-arch-obituary .pns-body { text-align: left; font-style: italic; color: #3a4149; }
.pl-news-single.pns-arch-obituary .pns-hero { margin: 0 auto 18px; }

/* ── Archetype accent overrides (the section color) ───────────────────────── */
.pns-arch-safety-brief { --np-accent: #c62828; }
.pns-arch-gov          { --np-accent: #1f4e79; }
.pns-arch-business     { --np-accent: #2e7d32; }
.pns-arch-event        { --np-accent: #c2660c; }
.pns-arch-sports       { --np-accent: #1b7a4b; }
.pns-arch-weather      { --np-accent: #b45309; }
.pns-arch-obituary     { --np-accent: #4b5563; }
.pns-arch-feature      { --np-accent: #0e7490; }

/* =============================================================================
   FEED — phone-first, single column. A hero lead story, then clean feed rows
   (headline + small thumbnail) with hairline separators. No card boxes, no
   underlined link-blue titles. Reads like a modern news app on a phone.
   ============================================================================= */
.nf-feed { display: block; }
/* Kill the default <a> underline + link-blue on EVERY news link (the readability fix). */
.nf-feed a, .nf-feed a:hover, .nf-feed a:focus, .nf-feed a:visited { text-decoration: none !important; color: inherit; }

.nf-eyebrow { display: block; font-family: var(--np-sans); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--np-accent); margin: 0 0 5px; }
.nf-badge-breaking { color: #c62828; font-weight: 800; }
.nf-row-meta { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-family: var(--np-sans); font-size: .76rem; color: var(--np-muted); }
.nf-row-meta .nf-row-cat { display: none; } /* category already shown as the colored eyebrow */
.nf-row-meta .nf-cmt { color: var(--np-accent); font-weight: 700; } /* activity: approved comment count */
.nf-row-meta .nf-vws { color: var(--np-muted); font-weight: 600; } /* activity: view count */

/* HERO lead */
.nf-lead-wrap { padding-bottom: 18px; margin-bottom: 2px; border-bottom: 1px solid var(--np-hair); }
.nf-lead { display: block; }
.nf-lead-img { width: 100%; aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #eceff2; border-radius: 10px; margin-bottom: 12px; }
.nf-lead-title { font-family: var(--np-serif); font-size: clamp(1.45rem, 6.2vw, 1.95rem); line-height: 1.16; letter-spacing: -.01em; color: var(--np-ink); margin: 0 0 8px; font-weight: 700; }
.nf-lead-dek { font-family: var(--np-serif); font-size: 1.05rem; line-height: 1.5; color: #3a4149; margin: 0; }
.nf-lead:active .nf-lead-title { color: var(--np-accent); }

/* Section header (Top mode) */
.nf-section { margin-top: 6px; }
.nf-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 2px; padding-left: 10px; border-left: 4px solid var(--np-accent); }
.nf-sec-name { font-family: var(--np-sans); font-size: .9rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--np-ink); }
.nf-sec-head .nf-band-all { font-family: var(--np-sans); font-size: .8rem; font-weight: 600; color: var(--np-accent); }

/* FEED ROW — headline left, thumbnail right, hairline separator */
.nf-rows { display: block; }
.nf-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--np-hair); }
.nf-row-body { flex: 1; min-width: 0; }
.nf-row-title { font-family: var(--np-serif); font-size: 1.12rem; line-height: 1.3; color: var(--np-ink); margin: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-row:active .nf-row-title { color: var(--np-accent); }
.nf-row-img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; background-size: cover; background-position: center; background-color: #eceff2; }

/* Tablet — a little more air, still single column. */
@media (min-width: 640px) {
	.nf-lead-title { font-size: 1.95rem; }
	.nf-row-title { font-size: 1.16rem; }
	.nf-row-img { flex-basis: 116px; width: 116px; height: 88px; }
}

/* Desktop — use the full width: a 2-up featured lead (image | headline) and a
   TWO-COLUMN stream of feed rows. Same clean rows, just laid out across the width. */
@media (min-width: 880px) {
	.nf-lead { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
	.nf-lead-img { margin-bottom: 0; }
	.nf-lead-body { align-self: center; }
	.nf-lead-title { font-size: 2.2rem; }
	.nf-lead-dek { font-size: 1.12rem; }
	.nf-lead-wrap { padding-bottom: 24px; }

	/* Two columns of rows; column-gap separates them, the row hairline separates vertically. */
	.nf-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
	.nf-section .nf-rows { row-gap: 0; }
}

/* Wider desktop — a touch larger lead headline; rows stay 2-up for readability. */
@media (min-width: 1100px) {
	.nf-lead-title { font-size: 2.45rem; }
}

/* Per-category accents (the colored eyebrow + section rule) */
.nf-c-local-gov     { --np-accent: #1f4e79; }
.nf-c-business      { --np-accent: #2e7d32; }
.nf-c-public-safety { --np-accent: #c62828; }
.nf-c-schools       { --np-accent: #6a1b9a; }
.nf-c-sports        { --np-accent: #1b7a4b; }
.nf-c-events        { --np-accent: #c2660c; }
.nf-c-community     { --np-accent: #0e7490; }
.nf-c-real-estate   { --np-accent: #7c5e10; }
.nf-c-weather       { --np-accent: #b45309; }
.nf-c-obituaries    { --np-accent: #4b5563; }
.nf-c-local-news    { --np-accent: #0e7490; }
.nf-c-feature       { --np-accent: #0e7490; }

/* Loading skeleton — single column: hero + feed rows */
.nf-skeleton { display: block; }
.nf-sk-lead { padding-bottom: 18px; border-bottom: 1px solid var(--np-hair); margin-bottom: 2px; }
.nf-sk-img { width: 100%; aspect-ratio: 16/9; border-radius: 10px; margin-bottom: 12px; background: #eceff2; }
.nf-sk-line { height: 13px; border-radius: 4px; margin: 0 0 9px; background: #eceff2; }
.nf-sk-line.big { height: 20px; }
.nf-sk-line.w40 { width: 40%; } .nf-sk-line.w70 { width: 70%; } .nf-sk-line.w90 { width: 90%; }
.nf-sk-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--np-hair); }
.nf-sk-rowtext { flex: 1; }
.nf-sk-thumb { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; background: #eceff2; }
.nf-skeleton .nf-sk-img, .nf-skeleton .nf-sk-line, .nf-skeleton .nf-sk-thumb {
	background: linear-gradient(100deg, #eceff2 30%, #f5f7f9 50%, #eceff2 70%);
	background-size: 200% 100%;
	animation: nfShimmer 1.3s ease-in-out infinite;
}
@keyframes nfShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Legacy hub card polish (only used by old non-frontpage surfaces still emitting .nf-card) */
.nf-card { border: 1px solid var(--np-hair); border-radius: 4px; background: #fff; overflow: hidden; }
.nf-card .nf-card-title, .nf-card h3 { font-family: var(--np-serif); color: var(--np-ink); letter-spacing: -0.005em; }
.nf-card:hover .nf-card-title, .nf-card:hover h3 { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.pl-news-single { padding: 14px 15px 56px; }
	.pns-title { font-size: 1.6rem; }
	.pns-dek, .pns-body .nh-dek { font-size: 1.1rem; }
	.pns-body { font-size: 1.08rem; line-height: 1.72; }
	.pl-news-single.pns-arch-feature .pns-body .nh-story > p:first-of-type::first-letter { font-size: 2.6rem; }
}

/* aspect-ratio fallback for old engines */
@supports not (aspect-ratio: 16 / 9) {
	.pns-hero { height: 0; padding-bottom: 56.25%; }
	.pl-news-single.pns-arch-obituary .pns-hero { padding-bottom: 133%; }
}
