/**
 * Just The Wire - wire cards and story records.
 * Calm, typographic, trust-forward. No dark patterns.
 */

.jtw-wire {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1rem;
}

.jtw-wire-empty {
	max-width: 720px;
	margin: 2rem auto;
	color: #666;
}

.jtw-card {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.25rem 0;
}

.jtw-card-top {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.55rem;
}

.jtw-cat {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #1a4568;
}

.jtw-title {
	font-size: 1.32rem;
	line-height: 1.32;
	margin: 0 0 0.55rem 0;
	font-weight: 700;
}

.jtw-title a {
	color: #141414;
	text-decoration: none;
}

.jtw-title a:hover {
	text-decoration: underline;
}

.jtw-summary {
	font-size: 0.98rem;
	line-height: 1.62;
	color: #333;
	margin: 0 0 0.6rem 0;
}

.jtw-meta {
	font-size: 0.78rem;
	color: #8a8a8a;
	margin: 0 0 0.4rem 0;
}

.jtw-sources {
	margin-top: 0.4rem;
}

.jtw-sources summary {
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a4568;
}

.jtw-sources ul {
	margin: 0.5rem 0 0 1.2rem;
	padding: 0;
	font-size: 0.88rem;
	line-height: 1.7;
}

.jtw-sources a {
	color: #1a4568;
}

.jtw-sources-list a {
	color: #1a4568;
}

/* Full story record */
.jtw-story {
	max-width: 720px;
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
}

.jtw-record-kicker {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.jtw-record-title {
	font-size: 1.9rem;
	line-height: 1.25;
	margin: 0 0 0.5rem 0;
	color: #141414;
}

.jtw-record h2 {
	font-size: 1.05rem;
	margin: 1.6rem 0 0.5rem 0;
	color: #1a4568;
}

.jtw-record-summary p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #222;
}

.jtw-record-uncertainty {
	background: #fff8e8;
	border: 1px solid #ecd9a0;
	border-radius: 8px;
	padding: 0.4rem 1.1rem 1rem;
	margin-top: 1.2rem;
}

.jtw-record-uncertainty h2 {
	color: #7a5c14;
	margin-top: 0.8rem;
}

.jtw-record-uncertainty p {
	font-size: 0.96rem;
	line-height: 1.65;
	color: #4d421f;
	margin-bottom: 0;
}

.jtw-record-sources ul {
	margin: 0.5rem 0 0 1.2rem;
	padding: 0;
	font-size: 0.92rem;
	line-height: 1.8;
}

.jtw-source-time {
	color: #8a8a8a;
	font-size: 0.8rem;
	margin-left: 0.4rem;
}

.jtw-record-note {
	font-size: 0.85rem;
	color: #6b6b6b;
	margin-top: 1rem;
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

.jtw-pending {
	color: #6b6b6b;
	font-style: italic;
}

/* Share bar */
.jtw-share {
	margin-top: 2rem;
	border-top: 1px solid #eee;
	padding-top: 1.25rem;
}

.jtw-share h2 {
	font-size: 1.05rem;
	margin: 0 0 0.75rem 0;
	color: #1a4568;
}

.jtw-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.jtw-share-buttons a,
.jtw-share-btn {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #1a4568;
	text-decoration: none;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
}

.jtw-share-buttons a:hover,
.jtw-share-btn:hover {
	border-color: #1a4568;
}

.jtw-share-copied {
	font-size: 0.85rem;
	color: #2e7d32;
	margin: 0.5rem 0 0;
}

/* The Fun Wire: lighter section, clearly entertainment */
.jtw-fun-wrap {
	max-width: 720px;
	margin: 2.25rem auto 0;
	padding: 1.25rem 1rem 0.5rem;
	border-top: 2px solid #f0e2b6;
}

.jtw-fun-title {
	font-size: 1.5rem;
	margin: 0 0 0.3rem 0;
	color: #141414;
}

.jtw-fun-title::before {
	content: "\2728";
	margin-right: 0.5rem;
}

.jtw-fun-sub {
	font-size: 0.92rem;
	color: #6b6b6b;
	margin: 0 0 1.5rem 0;
}

.jtw-fun .jtw-card {
	border-color: #f0e2b6;
	background: #fffdf6;
}

.jtw-fun .jtw-cat {
	color: #8a6d1b;
}

.jtw-fun .jtw-sources summary,
.jtw-fun .jtw-sources a {
	color: #8a6d1b;
}

/* Markets: daily top market stories (stocks, bonds, economy) */
.jtw-markets-wrap {
	max-width: 720px;
	margin: 2.25rem auto 0;
	padding: 1.25rem 1rem 0.5rem;
	border-top: 2px solid #c9d8e4;
}

.jtw-markets-title {
	font-size: 1.5rem;
	margin: 0 0 0.3rem 0;
	color: #141414;
}

.jtw-markets-title::before {
	content: "\1F4C8";
	margin-right: 0.5rem;
}

.jtw-markets-sub {
	font-size: 0.92rem;
	color: #6b6b6b;
	margin: 0 0 1.5rem 0;
}

.jtw-markets .jtw-card {
	border-color: #c9d8e4;
	background: #f8fafc;
}

.jtw-markets .jtw-cat {
	color: #1d5a8a;
}

.jtw-markets .jtw-sources summary,
.jtw-markets .jtw-sources a {
	color: #1d5a8a;
}

/* Breaking: urgent developing stories, above the main wire */
.jtw-breaking-wrap {
	max-width: 720px;
	margin: 0 auto 1.75rem;
	padding: 1rem 1rem 0.25rem;
	border: 2px solid #c0392b;
	border-radius: 12px;
	background: #fef7f6;
}

.jtw-breaking-kicker {
	margin: 0 0 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #c0392b;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jtw-breaking-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c0392b;
	animation: jtw-pulse 1.6s ease-in-out infinite;
	flex: 0 0 auto;
}

@keyframes jtw-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.jtw-breaking .jtw-card {
	border-color: #eac4bf;
}

@media (max-width: 640px) {
	.jtw-wire,
	.jtw-fun,
	.jtw-markets,
	.jtw-breaking-wrap,
	.jtw-fun-wrap,
	.jtw-markets-wrap {
		padding-left: 0;
		padding-right: 0;
	}
	.jtw-card {
		padding: 0.95rem 1.05rem;
		margin-bottom: 0.8rem;
	}
	.jtw-title {
		font-size: 1.18rem;
		line-height: 1.28;
		margin-bottom: 0.3rem;
	}
	.jtw-fun-wrap,
	.jtw-markets-wrap {
		margin-top: 1.25rem;
		padding-top: 1rem;
	}
	.jtw-breaking-wrap {
		margin-bottom: 1.25rem;
	}
	/* Bigger site logo, tighter page rhythm on phones. */
	.wp-block-site-logo img,
	.wp-block-site-logo .custom-logo {
		width: 300px !important;
		max-width: 76vw !important;
		height: auto !important;
	}
	header.wp-block-template-part {
		padding-top: 0.75rem !important;
		padding-bottom: 0.75rem !important;
	}
	/* The page title repeats the logo: hide it on phones. Story pages use
	   their own jtw-record-title and are unaffected. */
	.wp-block-post-title {
		display: none !important;
	}
	/* Collapse the theme's page-template whitespace on phones: the header
	   row's bottom padding, the main wrapper's top margin, and the inner
	   full-width group's top padding are what make the big empty zone. */
	header.wp-block-template-part .alignwide {
		padding-bottom: 0 !important;
	}
	main.wp-block-group {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
	main.wp-block-group > .wp-block-group.alignfull:first-child {
		padding-top: 0.5rem !important;
	}
	/* Spacer blocks are pure white space: drop them on phones. */
	.wp-block-spacer {
		display: none !important;
	}
	/* Tighten the remaining stack. */
	.wp-block-post-content > * {
		margin-block-start: 0.65rem !important;
		margin-block-end: 0 !important;
	}
	.wp-block-post-content > *:first-child {
		margin-block-start: 0 !important;
	}
	.wp-block-heading,
	main h2 {
		font-size: 1.65rem !important;
		line-height: 1.2 !important;
		margin-bottom: 0.5rem !important;
	}
}

/* Phase 3: story experience additions */

/* Verification badge in the kicker. */
.jtw-verif {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 9px;
	border-radius: 10px;
	vertical-align: 1px;
}
.jtw-verif-confirmed { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e0c2; }
.jtw-verif-developing { background: #fef6e0; color: #8a6d1a; border: 1px solid #ecd9a0; }
.jtw-verif-single_source { background: #f0f0f0; color: #555; border: 1px solid #d5d5d5; }
.jtw-verif-disputed { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }
.jtw-time { color: #8a8a8a; font-size: 0.82rem; }

/* How we know. */
.jtw-howknow {
	background: #f4f8fb;
	border: 1px solid #d8e6f0;
	border-radius: 8px;
	padding: 0.4rem 1.1rem 1rem;
	margin-top: 1.2rem;
}
.jtw-howknow h2 { margin-top: 0.8rem; }
.jtw-verif-blurb { font-size: 0.98rem; line-height: 1.65; color: #223; margin-bottom: 0.5rem; }
.jtw-coverage-line { font-size: 0.9rem; color: #4a5a68; margin: 0.4rem 0; }
.jtw-origins { font-size: 0.9rem; color: #4a5a68; margin-bottom: 0; }

/* Lean spectrum. */
.jtw-spectrum { margin-top: 1.2rem; }
.jtw-spectrum-note { font-size: 0.85rem; color: #6b6b6b; margin-bottom: 0.6rem; }
.jtw-spectrum-bar {
	display: flex;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: #eee;
	margin-bottom: 0.6rem;
}
.jtw-spec-seg { min-width: 8px; }
.jtw-spec-left { background: #3b6fd4; }
.jtw-spec-center-left { background: #7aa7e8; }
.jtw-spec-center { background: #9aa0a6; }
.jtw-spec-center-right { background: #e8a07a; }
.jtw-spec-right { background: #d43b3b; }
.jtw-spectrum-list { margin: 0.4rem 0 0 1.2rem; padding: 0; font-size: 0.86rem; line-height: 1.7; color: #444; }

/* Compare headlines. */
.jtw-compare { margin-top: 1.2rem; }
.jtw-compare-note { font-size: 0.85rem; color: #6b6b6b; margin-bottom: 0.5rem; }
.jtw-compare ul { margin: 0.5rem 0 0 1.2rem; padding: 0; font-size: 0.92rem; line-height: 1.6; }
.jtw-compare li { margin-bottom: 0.55rem; }
.jtw-compare a { color: #1a4568; }
.jtw-compare-src { display: block; font-size: 0.78rem; color: #8a8a8a; }

/* Origin tags in the sources list. */
.jtw-origin-tag,
.jtw-synd-tag {
	display: inline-block;
	font-size: 0.72rem;
	color: #6b6b6b;
	background: #f0f0f0;
	border-radius: 8px;
	padding: 1px 7px;
	margin-left: 0.4rem;
	vertical-align: 1px;
}
.jtw-synd-tag { background: #fef6e0; color: #8a6d1a; }

/* Phase 4: new homepage cards. Summary visible inline, clamped. */
.jtw-summary {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jtw-prov {
	font-size: 0.82rem;
	color: #6b6b6b;
	margin: 0.55rem 0 0 0;
	line-height: 1.55;
}

.jtw-fullstory {
	color: #1a4568;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.jtw-card {
		padding: 1rem 1.1rem;
	}
	.jtw-title {
		font-size: 1.18rem;
	}
	.jtw-summary {
		font-size: 0.94rem;
		-webkit-line-clamp: 4;
	}
}

/* Phase 5: category hubs and topics nav. */
.jtw-hub {
	max-width: 720px;
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
}

.jtw-hub-kicker {
	font-size: 0.8rem;
	color: #8a8a8a;
	margin-bottom: 0.4rem;
}

.jtw-hub-kicker a {
	color: #1a4568;
	text-decoration: none;
}

.jtw-hub-title {
	font-size: 2rem;
	line-height: 1.2;
	margin: 0 0 0.4rem 0;
	color: #141414;
}

.jtw-hub-desc {
	font-size: 1rem;
	color: #555;
	margin: 0 0 1.4rem 0;
	line-height: 1.6;
}

.jtw-cat-link {
	color: #1a4568;
	text-decoration: none;
}

.jtw-cat-link:hover {
	text-decoration: underline;
}

/* Topics pill nav: horizontal strip, pretty on mobile and desktop. */
.jtw-topics {
	max-width: 720px;
	margin: 0 auto 1.4rem;
	padding: 0 1rem;
}

.jtw-topics ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.jtw-topics ul::-webkit-scrollbar {
	display: none;
}

.jtw-topics li {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.jtw-topics a {
	display: inline-block;
	padding: 0.45rem 1.05rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a4568;
	background: #f2f6fa;
	border: 1px solid #dbe4ec;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jtw-topics a:hover {
	background: #e2ecf5;
	border-color: #1a4568;
	color: #12344f;
}

.jtw-topics li.jtw-topic-active a {
	background: #1a4568;
	border-color: #1a4568;
	color: #fff;
}

/* Sponsors: labeled house-advertising band near the bottom of the page. */
.jtw-sponsor-band {
	background: #f7f5f1;
	border-top: 1px solid #e9e4d9;
	padding: 2.5rem 1rem 2.75rem;
	margin-top: 3rem;
}
.jtw-sponsor-eyebrow {
	text-align: center;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #a09a8d;
	margin: 0 0 1.25rem 0;
}
.jtw-sponsor-card {
	max-width: 680px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e7e1d4;
	border-radius: 14px;
	padding: 1.75rem;
	display: flex;
	gap: 1.5rem;
	align-items: center;
	box-shadow: 0 2px 14px rgba(60, 50, 30, 0.05);
}
.jtw-sponsor-logo {
	flex: 0 0 auto;
}
.jtw-sponsor-logo img {
	width: 190px;
	height: auto;
	display: block;
}
.jtw-sponsor-body {
	flex: 1 1 auto;
	min-width: 0;
}
.jtw-sponsor-name {
	font-size: 1.18rem;
	line-height: 1.3;
	font-weight: 700;
	color: #141414;
	margin: 0 0 0.35rem 0;
}
.jtw-sponsor-blurb {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #55524b;
	margin: 0 0 1.1rem 0;
}
.jtw-sponsor-cta {
	display: inline-block;
	background: #2e7d32;
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.jtw-sponsor-cta:hover,
.jtw-sponsor-cta:focus {
	background: #256728;
	color: #fff;
	text-decoration: none;
}
.jtw-sponsor-note {
	text-align: center;
	font-size: 0.75rem;
	color: #a8a29a;
	margin: 1.1rem 0 0 0;
}
@media (max-width: 600px) {
	.jtw-sponsor-card {
		flex-direction: column;
		text-align: center;
		padding: 1.6rem 1.25rem;
		gap: 1.1rem;
	}
	.jtw-sponsor-logo img {
		width: 165px;
		margin: 0 auto;
	}
	.jtw-sponsor-cta {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}
