/*
 * Component presentation for the COSMY News homepage and story template.
 * Global typography, layout, links, header and footer are inherited from the
 * unmodified Twenty Twenty-Five parent theme.
 */

:root {
	--cosmy-ink: var(--wp--preset--color--cosmy-ink, #151818);
	--cosmy-paper: var(--wp--preset--color--cosmy-paper, #f4f1ea);
	--cosmy-accent: var(--wp--preset--color--cosmy-accent, #dbff4b);
	--cosmy-soft: var(--wp--preset--color--cosmy-soft, #e8e4db);
	--cosmy-history-card: var(--wp--preset--color--cosmy-history, #e7e8e6);
	--cosmy-muted: var(--wp--preset--color--cosmy-muted, #686c68);
}

.cosmy-news-site,
.cosmy-news-site *,
.cosmy-home-site,
.cosmy-home-site *,
.cosmy-story-site,
.cosmy-story-site *,
.cosmy-source-site,
.cosmy-source-site *,
.cosmy-topic-site,
.cosmy-topic-site *,
.cosmy-router-site,
.cosmy-router-site * {
	box-sizing: border-box;
}

.cosmy-news-site.wp-block-group { margin-block-start: 0; }

.cosmy-preview-bar {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background: #171919;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.35;
}

.cosmy-preview-bar strong { color: var(--cosmy-accent); }
.cosmy-preview-bar a { color: #fff; text-decoration: underline; }

.cosmy-territory-label {
	display: block;
	margin: .2em 0 0;
	font-size: clamp(25px, 3vw, 44px);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.05;
}
.cosmy-territory-trigger { color: inherit; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.cosmy-territory-trigger:hover { text-decoration: none; }
/* Inline middle aligns the box centre to the parent font's x-height, not the text baseline. */
.cosmy-territory-label > .wp-block-button { display: inline-flex; vertical-align: middle; margin-inline-start: 8px; }
.cosmy-territory-label .wp-block-button__link { padding: 4px 18px; font-family: inherit; font-size: var(--wp--preset--font-size--small, 14px); font-weight: 400; letter-spacing: normal; line-height: 1.2; }
/* Native outline variant must outrank the later solid global button styles.
 * Only paint is shared here; radius remains owned by WordPress global styles. */
:where(.cosmy-territory-label, .cosmy-location-dialog) .is-style-outline > .wp-element-button, :where(.cosmy-territory-label, .cosmy-location-dialog) .wp-element-button.is-style-outline { border: 1px solid var(--cosmy-ink); background: transparent; color: var(--cosmy-ink); }
.cosmy-territory-label .wp-element-button:focus-visible, .cosmy-location-dialog .wp-element-button:focus-visible { outline: 2px solid var(--cosmy-ink); outline-offset: 3px; }
.cosmy-location-dialog {
	width: min(720px, calc(100vw - 32px));
	max-height: min(780px, calc(100vh - 32px));
	padding: 0;
	border: 0;
	background: var(--cosmy-paper);
	box-shadow: 0 28px 80px rgba(0,0,0,.32);
	color: var(--cosmy-ink);
}
.cosmy-location-dialog::backdrop { background: rgba(21,24,24,.66); }
.cosmy-location-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.cosmy-location-dialog-head, .cosmy-location-context, .cosmy-location-dialog-foot { flex: 0 0 auto; }
.cosmy-location-dialog-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 28px 30px 22px; border-bottom: 1px solid #c8c5bd; }
.cosmy-location-dialog-intro { grid-row: 1; grid-column: 1 / 3; }
.cosmy-location-dialog-head h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.cosmy-location-dialog-head button { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; border: 0; background: var(--cosmy-ink); color: #fff; cursor: pointer; font-family: inherit; font-size: 26px; line-height: 1; }
.cosmy-location-back { grid-row: 1; grid-column: 1; }
.cosmy-location-back[hidden] { display: none; }
.cosmy-location-close { grid-row: 1; grid-column: 3; align-self: start; }
.cosmy-location-search { display: block; grid-row: 2; grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cosmy-location-search input { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #aaa79f; border-radius: 0; background: #fff; font-family: inherit; font-size: 16px; line-height: 1.3; text-transform: none; }
.cosmy-location-dialog.is-nested .cosmy-location-dialog-head { padding-top: 18px; padding-bottom: 18px; }
.cosmy-location-dialog.is-nested .cosmy-location-dialog-intro { display: none; }
.cosmy-location-dialog.is-nested .cosmy-location-search { grid-row: 1; grid-column: 2; }
.cosmy-location-dialog.is-nested .cosmy-location-close { align-self: center; }
.cosmy-location-dialog.is-nested .cosmy-location-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cosmy-location-dialog.is-nested .cosmy-location-search input { margin-top: 0; }
.cosmy-location-context { padding: 18px 30px 12px; }
.cosmy-location-current-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; }
.cosmy-location-current { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.08; overflow-wrap: anywhere; }
.cosmy-location-current[hidden] { display: none; }
.cosmy-location-breadcrumbs { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.cosmy-location-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.cosmy-location-breadcrumbs li { display: flex; min-width: 0; gap: 8px; }
.cosmy-location-breadcrumbs li + li::before { content: "/"; color: var(--cosmy-muted); }
.cosmy-location-breadcrumbs button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cosmy-location-breadcrumbs button:hover { text-decoration: none; }
.cosmy-location-breadcrumbs button, .cosmy-location-breadcrumbs span { overflow-wrap: anywhere; }
.cosmy-location-status { margin: 10px 30px; color: var(--cosmy-muted); font-size: 13px; font-weight: 400; }
.cosmy-location-dialog-foot .cosmy-location-status { margin: 0; color: #fff; }
.cosmy-location-dialog > .cosmy-location-current { padding: 18px 30px 2px; }
.cosmy-location-empty { margin: 12px 0; color: var(--cosmy-muted); font-size: 14px; }
.cosmy-location-results { min-height: 0; max-height: 420px; overflow-y: auto; padding: 0 30px 18px; }
.cosmy-location-result { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border-top: 1px solid #ccc8bf; }
.cosmy-location-dialog .cosmy-location-result-name { display: flex; min-width: 0; width: 100%; flex-direction: column; padding: 14px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; }
button.cosmy-location-result-name { cursor: pointer; }
button.cosmy-location-result-name strong { text-decoration: underline; text-underline-offset: 3px; }
button.cosmy-location-result-name:hover strong { text-decoration: none; }
.cosmy-location-result strong { display: flex; min-width: 0; align-items: baseline; gap: 6px; font-size: 15px; }
.cosmy-location-result strong > span:first-child { min-width: 0; }
.cosmy-location-result-count { flex: 0 0 auto; color: var(--cosmy-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.cosmy-location-result small { overflow: hidden; color: var(--cosmy-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cosmy-location-dialog .cosmy-location-select { display: inline-flex; padding: 10px 14px; font-family: inherit; font-size: 12px; font-weight: 800; text-decoration: none; }
.cosmy-location-select.is-disabled { background: transparent; color: var(--cosmy-muted); border-color: currentColor; }
.cosmy-location-select[hidden] { display: none; }
.cosmy-location-dialog-foot { display: flex; justify-content: space-between; gap: 20px; padding: 18px 30px; background: var(--cosmy-ink); color: #fff; font-size: 12px; }
.cosmy-location-dialog-foot span { color: #bdc1be; text-align: right; }

.cosmy-topic-filter span { color: var(--cosmy-muted); font-variant-numeric: tabular-nums; }
.cosmy-topic-filter.is-active span { color: inherit; }

.cosmy-daily-briefing {
	width: 100%;
}

/* Component paint comes from the editable WordPress palette. Explicit block
 * text colors also reach metadata rather than being hidden by fixed grays. */
:where([class*="wp-block-cosmy-news-"].has-text-color) {
	--cosmy-ink: currentColor;
	--cosmy-muted: currentColor;
}
.cosmy-daily-heading { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #d1cec6; }
.cosmy-daily-kicker { color: var(--cosmy-muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cosmy-daily-datetime { display: flex; flex-direction: column; gap: 0; }
.cosmy-daily-weekday,
.cosmy-daily-date,
.cosmy-daily-time { display: block; font-size: 1.875em; font-weight: 650; letter-spacing: -.025em; line-height: 1.14; }
.cosmy-daily-time { font-variant-numeric: tabular-nums; }
.cosmy-daily-time-separator { display: inline-block; width: .32em; text-align: center; animation: cosmy-clock-colon 1s steps(1, end) infinite; }
@keyframes cosmy-clock-colon { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cosmy-daily-time-separator { animation: none; } }
.cosmy-feed-controls { --cosmy-controls-space: 24px; margin: 0; padding: var(--cosmy-controls-space) 0 0; background: transparent; border: 0; }
.cosmy-feed-loading { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; padding: 0; }
.cosmy-feed-loading > button { min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.cosmy-feed-loading > button.is-style-outline { color: inherit; background: transparent; border: 1px solid currentColor; }
.cosmy-feed-loading > label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.cosmy-feed-loading input { width: 18px; height: 18px; accent-color: var(--cosmy-ink, #151918); }
.cosmy-feed-loading-status { flex-basis: 100%; margin: 0; text-align: center; font-size: 13px; color: var(--cosmy-muted, #666); }
.cosmy-feed-loading-status:empty { display: none; }
.cosmy-feed-loading [hidden] { display: none; }
.cosmy-feed-loading > button:disabled { opacity: .6; cursor: default; }
.cosmy-feed-controls > .cosmy-pagination { margin: var(--cosmy-controls-space) 0 0; padding: var(--cosmy-controls-space) 0 0; border-top: 1px solid #cbc8bf; flex-wrap: wrap; }
.cosmy-news-grid > .cosmy-news-card:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.cosmy-reading-disclosure.wp-element-button { min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; background: transparent; color: var(--cosmy-ink); border: 1px solid currentColor; cursor: pointer; }
.cosmy-topic-filters.has-inline-disclosure { overflow: visible; }
.cosmy-topic-filters > [hidden] { display: none !important; }
.cosmy-topic-filters > .cosmy-topics-toggle { flex: 0 0 auto; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid #aaa79f; background: transparent; color: inherit; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.cosmy-topic-filters.is-expanded { flex-wrap: wrap; overflow: visible; }
.cosmy-forecast-toggle { display: none; }
.cosmy-weather-days[hidden] { display: none; }
@media (max-width: 820px) {
	.cosmy-home-site h1.wp-block-heading { font-size: clamp(2.5rem, 10.5vw, 3.75rem) !important; line-height: .98 !important; letter-spacing: -.045em !important; }
	.cosmy-feed-controls { --cosmy-controls-space: 20px; }
	.has-compact-weather .cosmy-daily-kicker { display: none; }
	.has-compact-weather .cosmy-daily-datetime { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
	.has-compact-weather .cosmy-daily-datetime > * { font-size: 18px; }
	.has-compact-weather .cosmy-daily-time { margin-left: auto; }
	.has-compact-weather .cosmy-daily-heading { padding-bottom: 12px; }
	.has-compact-weather .cosmy-weather-current { padding: 16px 0; }
	.has-compact-weather .cosmy-weather-current strong { font-size: 36px; }
	.has-compact-weather .cosmy-weather-current p b { white-space: normal; }
	.has-compact-weather .cosmy-forecast-toggle { display: inline-block; }
	.has-compact-weather .cosmy-weather-days { margin-top: 16px; }
}
.cosmy-weather-current { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 20px; }
.cosmy-weather-current > div { display: flex; align-items: center; gap: 12px; }
.cosmy-weather-current i { display: block; width: 38px; color: #4d6478; font-size: 34px; font-style: normal; line-height: 1; text-align: center; }
.cosmy-weather-current strong { font-size: 48px; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.cosmy-weather-current p { display: flex; min-width: 0; flex-direction: column; margin: 0; text-align: right; }
.cosmy-weather-current p b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cosmy-weather-current p span { color: var(--cosmy-muted); font-size: 12px; }
.cosmy-weather-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 16px 0; border-top: 1px solid #d1cec6; border-bottom: 1px solid #d1cec6; list-style: none; }
.cosmy-weather-days li { display: grid; justify-items: center; gap: 5px; padding: 0 8px; border-right: 1px solid #e0ddd5; font-variant-numeric: tabular-nums; }
.cosmy-weather-days li:last-child { border-right: 0; }
.cosmy-weather-days span { font-size: 10px; font-weight: 750; text-transform: uppercase; }
.cosmy-weather-days i { color: #4d6478; font-size: 19px; font-style: normal; line-height: 1; }
.cosmy-weather-days b { font-size: 15px; }
.cosmy-weather-days small { color: var(--cosmy-muted); font-size: 12px; }
.cosmy-weather-credit { display: flex; flex-wrap: wrap; gap: 3px 5px; margin: 14px 0 0; color: var(--cosmy-muted); font-size: 10px; }
.cosmy-weather-credit a { text-decoration: underline; text-underline-offset: 3px; }
.cosmy-weather-unavailable { display: flex; flex-direction: column; gap: 3px; padding-top: 26px; }
.cosmy-weather-unavailable strong { font-size: 18px; }
.cosmy-weather-unavailable span { color: var(--cosmy-muted); font-size: 13px; }
.cosmy-ranking-note { margin: 22px 0 0; color: var(--cosmy-muted); font-size: 12px; }
.cosmy-ranking-note summary { width: fit-content; cursor: pointer; color: var(--cosmy-ink); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.cosmy-ranking-note p { max-width: 760px; margin: 12px 0 0; line-height: 1.55; }
.cosmy-headlines-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); border-top: 1px solid #b8b5ae; }
.cosmy-headline-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px); gap: 24px; padding: 24px 0 24px 32px; border-bottom: 1px solid #b8b5ae; }
.cosmy-headline-card--lead { grid-row: span 2; grid-template-columns: 1fr; align-content: start; padding: 28px 42px 30px 0; border-right: 1px solid #b8b5ae; }
.cosmy-headline-card:not(.has-image) { grid-template-columns: 1fr; }
.cosmy-headline-card .cosmy-remote-hero { grid-column: 1 / -1; margin: 0; }
.cosmy-headline-card > .cosmy-card-image-link { display: block; grid-column: 1 / -1; }
.cosmy-headline-image { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; object-fit: cover; }
.cosmy-headline-card:not(.cosmy-headline-card--lead) .cosmy-remote-hero { grid-column: 2; grid-row: 1; }
.cosmy-headline-card:not(.cosmy-headline-card--lead) > .cosmy-card-image-link { grid-row: 1; grid-column: 2; }
.cosmy-headline-card:not(.cosmy-headline-card--lead) .cosmy-headline-image { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.cosmy-headline-copy { min-width: 0; }
.cosmy-headline-card h3 { margin: 6px 0 18px; font-size: clamp(20px, 2.1vw, 30px); font-weight: 520; letter-spacing: -.03em; line-height: 1.12; }
.cosmy-headline-card--lead h3 { margin-top: 18px; font-size: clamp(32px, 4.3vw, 58px); }
.cosmy-headline-brief { max-width: 680px; margin: -4px 0 22px; color: var(--cosmy-muted); font-size: 16px; line-height: 1.5; }
.cosmy-headline-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cosmy-headline-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--cosmy-muted); font-size: 12px; }
.cosmy-headline-meta strong,
.cosmy-headline-meta .cosmy-source-link { overflow: hidden; max-width: 260px; color: var(--cosmy-ink); text-overflow: ellipsis; white-space: nowrap; }
.cosmy-headline-source-icon { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 3px; background: #fff; object-fit: contain; }
.cosmy-headline-source-icon.cosmy-source-mark { background: var(--cosmy-ink); color: var(--cosmy-accent); font-size: 9px; font-style: normal; font-weight: 800; }
.cosmy-headlines-empty { padding: 38px; border: 1px solid #b8b5ae; }
.cosmy-source-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cosmy-source-name-row > .cosmy-source-link { min-width: 0; }
.cosmy-headline-meta .cosmy-source-link { max-width: min(360px, 100%); white-space: normal; }
.cosmy-source-name-row .cosmy-source-link-label, .cosmy-headline-meta .cosmy-source-link-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.cosmy-source-caption { min-width: 0; }
.cosmy-source-caption small { display: block; color: var(--cosmy-muted); font-size: 12px; }
.cosmy-source-name-row .cosmy-source-link-label { font-size: 13px; font-weight: 700; }
.cosmy-source-verified { display: inline-flex; position: relative; width: 15px; height: 15px; flex: 0 0 15px; color: #1875ca; vertical-align: middle; margin-inline: 3px; cursor: help; }
.cosmy-source-verified svg { width: 15px; height: 15px; }
.cosmy-source-verified-tooltip { display: none; position: absolute; z-index: 10; bottom: calc(100% + 8px); right: 0; width: min(260px, 70vw); padding: 10px; background: var(--cosmy-ink); color: white; font: 13px/1.4 sans-serif; white-space: normal; text-align: left; box-shadow: 0 2px 8px #0002; }
.cosmy-source-verified:is(:hover,:focus) .cosmy-source-verified-tooltip { display: block; }
.cosmy-source-verified:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.cosmy-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #b8b5ae; }
.cosmy-news-card { display: flex; min-height: 420px; flex-direction: column; padding: 30px 32px 28px 0; border-bottom: 1px solid #b8b5ae; }
.cosmy-news-card--historical-anniversary { background: var(--cosmy-history-card); }
.cosmy-news-card:nth-child(odd) { padding-right: 42px; border-right: 1px solid #b8b5ae; }
.cosmy-news-card:nth-child(even) { padding-left: 42px; }
.cosmy-card-top { display: flex; min-height: 26px; gap: 16px; justify-content: space-between; }
.cosmy-topic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cosmy-topic-list a,
.cosmy-draft-label { padding: 5px 8px; background: var(--cosmy-soft); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cosmy-topic-list a:hover { background: var(--cosmy-accent); }
.cosmy-draft-label { background: #ffe297; }
.cosmy-card-image { width: 100%; aspect-ratio: 16 / 9; margin: 24px 0 2px; object-fit: cover; }
.cosmy-card-image-link { display: block; color: inherit; }
.cosmy-card-image-link:focus-visible { outline: 3px solid var(--cosmy-ink); outline-offset: 3px; }
.cosmy-remote-hero { margin: 24px 0 2px; }
.cosmy-remote-hero .cosmy-card-image { margin: 0; }
.cosmy-remote-hero figcaption { margin-top: 6px; color: var(--cosmy-muted); font-size: 11px; line-height: 1.35; }
.cosmy-remote-hero figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.cosmy-news-card h3 { margin: 32px 0 18px; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.05; }
.cosmy-card-brief { max-width: 630px; margin: 0 0 34px; color: #464a47; font-size: 17px; line-height: 1.55; }
.cosmy-card-source { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: auto; }
.cosmy-card-source-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff; object-fit: contain; }
img.cosmy-card-source-icon { box-sizing: border-box; padding: 6px; border-radius: 0; }
.cosmy-story-source-icon, .cosmy-archive-source-icon { display: inline-block; width: 24px; height: 24px; object-fit: contain; vertical-align: middle; font-size: 16px; font-style: normal; text-align: center; }
.cosmy-archive-source-icon { width: 36px; height: 36px; margin-inline-end: 12px; }
.cosmy-card-source-icon.cosmy-source-mark { background: var(--cosmy-ink); color: var(--cosmy-accent); font-size: 15px; font-style: normal; font-weight: 800; }
.cosmy-card-source a:not(.cosmy-card-read),
.cosmy-card-source > span { display: flex; min-width: 0; flex-direction: column; }
.cosmy-card-source a.cosmy-source-link { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; gap: 2px 5px; }
.cosmy-card-source a.cosmy-source-link small { grid-column: 1 / -1; }
.cosmy-card-source strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cosmy-card-source small { color: var(--cosmy-muted); font-size: 12px; }
.cosmy-card-read { font-size: 12px; font-weight: 800; }
.cosmy-card-read:hover { text-decoration: underline; text-underline-offset: 4px; }
.cosmy-empty-feed { padding: 60px; border: 1px solid #b8b5ae; text-align: center; }

.is-style-feed-heading { align-items: flex-end; }
.is-style-feed-heading > .wp-block-heading { margin-left: auto; text-align: right; }
.is-style-feed-header { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 0.42rem; min-height: 1.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.is-style-feed-header > * { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }

.wp-block-cosmy-news-feed.is-style-newspaper-grid .cosmy-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cosmy-feed-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 20px; font-size: 13px; }
.cosmy-feed-heading-row { display: flex; align-items: center; gap: 24px; min-width: 0; }
.cosmy-feed-heading-row > :is(h1, h2) { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.cosmy-feed-heading-row > .cosmy-feed-layout { flex: 0 0 auto; margin: 0; }
.cosmy-feed-heading-row + .wp-block-cosmy-news-feed { margin-block-start: 24px; }
.cosmy-feed-heading-row + .wp-block-cosmy-news-feed .cosmy-topic-filters { margin-top: 0; }
.cosmy-feed-layout .wp-element-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--cosmy-muted); background: transparent; color: var(--cosmy-ink); font: inherit; cursor: pointer; }
.cosmy-feed-layout svg { display: block; flex: 0 0 20px; }
.cosmy-feed-layout .wp-element-button[aria-pressed="true"] { background: var(--cosmy-ink); color: var(--cosmy-paper); border-color: var(--cosmy-ink); }
.cosmy-feed-layout .wp-element-button:hover { border-color: var(--cosmy-ink); text-decoration: underline; text-underline-offset: 3px; }
.cosmy-feed-layout .wp-element-button:focus-visible { outline: 2px solid var(--cosmy-ink); outline-offset: 3px; }

:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-grid,
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-grid { display: block; }

:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card,
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card:nth-child(odd),
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card:nth-child(even) {
	display: grid;
	min-height: 0;
	grid-template-areas:
		"top image"
		"title image"
		"brief image"
		"source image";
	grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
	gap: 9px 32px;
	padding: 24px 0;
	border-right: 0;
}
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card:not(.has-image) { grid-template-areas: "top" "title" "brief" "source"; grid-template-columns: 1fr; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-card-top { grid-area: top; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-card-image-link,
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-remote-hero { grid-area: image; margin: 0; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-card-image { margin: 0; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card h3 { grid-area: title; margin: 4px 0 2px; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.08; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-card-brief { display: -webkit-box; overflow: hidden; grid-area: brief; margin: 0 0 8px; font-size: 15px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-card-source { grid-area: source; margin-top: 4px; }

.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card,
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card:nth-child(odd),
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card:nth-child(even) {
	display: grid;
	min-height: 0;
	grid-template-areas:
		"top image"
		"title image"
		"source image";
	grid-template-columns: minmax(0, 1fr) 170px;
	gap: 8px 28px;
	padding: 22px 0;
	border-right: 0;
}
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card:not(.has-image) { grid-template-areas: "top" "title" "source"; grid-template-columns: 1fr; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-top { grid-area: top; min-height: 20px; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-image-link,
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-remote-hero { grid-area: image; margin: 0; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-image { margin: 0; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-remote-hero figcaption { display: none; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card h3 { grid-area: title; margin: 4px 0; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.12; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-brief { display: none; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-source { grid-area: source; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; margin-top: 6px; }
.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-card-source-icon { width: 30px; height: 30px; }

.cosmy-topic-filters { display: flex; overflow-x: auto; gap: 8px; margin: -18px 0 28px; padding: 0 0 10px; scrollbar-width: thin; }
.cosmy-topic-filter { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border: 1px solid #aaa79f; font-size: 14px; line-height: 1.4; font-weight: 750; }
.cosmy-topic-filter:hover,
.cosmy-topic-filter.is-active { border-color: var(--cosmy-ink); background: var(--cosmy-ink); color: var(--cosmy-accent); }
.cosmy-feed-summary { display: flex; justify-content: flex-end; margin: 0 0 14px; color: var(--cosmy-muted); font-size: 12px; }
.cosmy-geo-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 42px; color: var(--cosmy-muted); font-size: 12px; }
.cosmy-geo-breadcrumbs a:hover { color: var(--cosmy-ink); text-decoration: underline; text-underline-offset: 4px; }
.cosmy-geo-breadcrumbs [aria-current="page"] { color: var(--cosmy-ink); font-weight: inherit; }
.wp-block-cosmy-news-geography-navigation .cosmy-geo-breadcrumbs { margin: 0; font-size: inherit; font-weight: inherit; }
.wp-block-cosmy-news-geography-navigation .cosmy-geo-breadcrumbs a { font-weight: inherit; }
.cosmy-geo-breadcrumbs.has-territory-change { display: block; line-height: 1.7; overflow-wrap: anywhere; }
.cosmy-geo-breadcrumbs.has-territory-change > span[aria-hidden] { margin-inline: .4em; }
.cosmy-geo-current-group { display: inline-flex; max-width: 100%; align-items: baseline; gap: .55em; vertical-align: baseline; }
.cosmy-geo-current-group > [aria-current="page"] { min-width: 0; }
.cosmy-geo-current-group > .wp-block-button { display: inline-flex; flex: 0 0 auto; align-self: center; }
.cosmy-geo-breadcrumbs.has-territory-change .wp-block-button__link { padding: 3.4px 11.9px; font: inherit; font-size: .85em; line-height: 1.35; letter-spacing: normal; white-space: nowrap; }
:where(.cosmy-geo-breadcrumbs) .is-style-outline > .wp-element-button { border: 1px solid var(--cosmy-ink); background: transparent; color: var(--cosmy-ink); }
.cosmy-geo-breadcrumbs .wp-element-button:focus-visible { outline: 2px solid var(--cosmy-ink); outline-offset: 3px; }
.cosmy-pagination { display: flex; gap: 8px; align-items: center; justify-content: center; padding-top: 42px; }
.cosmy-pagination a,
.cosmy-pagination > span:not([aria-hidden]) { display: grid; min-width: 38px; height: 38px; place-items: center; border: 1px solid #aaa79f; font-size: 13px; font-weight: 800; }
.cosmy-pagination a:hover,
.cosmy-pagination .is-active { border-color: var(--cosmy-ink); background: var(--cosmy-ink); color: var(--cosmy-accent); }
.cosmy-pagination > span[aria-hidden] { padding: 0 3px; }

.cosmy-archive-main {
	width: min(calc(100% - var(--wp--style--root--padding-left, 2rem) - var(--wp--style--root--padding-right, 2rem)), var(--wp--style--global--wide-size, 1320px));
	margin: 0 auto;
	padding: clamp(64px, 8vw, 110px) 0 120px;
}
.cosmy-archive-intro { max-width: 940px; }
.cosmy-archive-intro h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.055em; line-height: .98; overflow-wrap: anywhere; }
.cosmy-archive-intro h1 span { color: var(--cosmy-muted); font-weight: 450; }
.cosmy-archive-intro > p { max-width: 820px; margin: 28px 0 0; color: var(--cosmy-muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.45; }
.cosmy-archive-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 34px; padding: 17px 0; border-top: 1px solid #b8b5ae; border-bottom: 1px solid #b8b5ae; font-size: 13px; }
.cosmy-archive-meta > span:first-child { font-weight: 800; }
.cosmy-archive-status { color: var(--cosmy-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cosmy-archive-meta a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.cosmy-archive-feed { margin-top: clamp(54px, 7vw, 92px); }
.cosmy-source-archive .cosmy-archive-intro, .cosmy-topic-archive .cosmy-archive-intro { max-width: none; }
.cosmy-source-archive-heading { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 32px; }
.cosmy-source-eyebrow, .cosmy-topic-eyebrow { margin: 0 0 12px; font-size: 18px; font-weight: 400; color: var(--cosmy-muted); }
.cosmy-source-archive-heading > .cosmy-archive-source-icon { width: 100px; height: 100px; margin: 0; object-fit: scale-down; justify-self: end; }
.cosmy-source-archive-heading > .cosmy-source-mark { display: flex; align-items: center; justify-content: center; font-size: 32px; }
.cosmy-source-archive-details { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; }
.cosmy-source-description, .cosmy-topic-description { max-width: 65ch; margin: 24px 0 0; font-size: clamp(18px, 1.5vw, 20px); font-weight: 400; line-height: 1.5; color: var(--cosmy-muted); overflow-wrap: anywhere; }
.cosmy-source-events-heading, .cosmy-archive-events-heading { margin: 0 0 24px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
img:is(.cosmy-card-source-icon, .cosmy-headline-source-icon, .cosmy-story-source-icon, .cosmy-archive-source-icon, .cosmy-source-icon) { object-fit: scale-down; background: transparent; padding: 0; border-radius: 0; }
@media (max-width: 600px) {
	.cosmy-source-archive-heading { grid-template-columns: minmax(0, 1fr) 64px; gap: 16px; }
	.cosmy-source-archive-heading > .cosmy-archive-source-icon { width: 64px; height: 64px; }
	.cosmy-source-archive-copy { display: contents; }
	.cosmy-source-archive-copy > .cosmy-source-eyebrow { grid-column: 1; margin: 0; }
	.cosmy-source-archive-copy > h1 { grid-column: 1; grid-row: 2; }
	.cosmy-source-archive-heading > .cosmy-archive-source-icon { grid-column: 2; grid-row: 1 / span 2; }
	.cosmy-source-description, .cosmy-source-archive-details { grid-column: 1 / -1; margin-top: 8px; }
}

.cosmy-source-link {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	width: fit-content;
}

.cosmy-source-icon,
.cosmy-source-icon-fallback {
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 24px;
	height: 24px;
}

.cosmy-source-icon {
	display: block;
	border-radius: 0;
	background: transparent;
	object-fit: scale-down;
}

.cosmy-source-icon-fallback {
	display: grid;
	place-items: center;
	border-radius: 4px;
	background: var(--cosmy-ink);
	color: var(--cosmy-accent);
	font-size: 11px;
	font-weight: 800;
}

.cosmy-external-link-mark {
	display: inline-block;
	font-size: .86em;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.cosmy-story-main {
	display: grid;
	width: min(calc(100% - var(--wp--style--root--padding-left, 2rem) - var(--wp--style--root--padding-right, 2rem)), var(--wp--style--global--wide-size, 1320px));
	grid-template-columns: minmax(0, 820px) minmax(240px, 1fr);
	gap: 100px;
	margin: 0 auto;
	padding: 90px 0 120px;
}

.cosmy-story-top { display: flex; gap: 20px; justify-content: space-between; margin-bottom: 36px; }
.cosmy-story-location { margin: -16px 0 28px; color: var(--cosmy-muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.cosmy-story-location a { text-decoration: underline; text-underline-offset: 4px; }
.cosmy-story-location a:hover { color: var(--cosmy-ink); }
.cosmy-story-topics { margin-top: 48px; padding-top: 22px; border-top: 1px solid #aaa79f; }
.cosmy-story-source-row { display: flex; gap: 18px; align-items: center; margin: 30px 0 46px; }
.cosmy-story-source { display: flex; width: 100%; min-width: 0; gap: 12px; margin: 0; color: var(--cosmy-muted); font-size: 13px; }
.cosmy-story-source-name { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cosmy-story-source-date { flex: 0 0 auto; white-space: nowrap; }
.cosmy-story-source a { color: var(--cosmy-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.cosmy-story-source-date::before { content: "·"; margin-right: 12px; }
.cosmy-story-image { display: block; width: min(100%, 960px); aspect-ratio: 16 / 9; margin: 0 0 48px; object-fit: cover; }
.cosmy-story-main .cosmy-remote-hero { width: min(100%, 960px); margin: 0 0 48px; }
.cosmy-story-main .cosmy-remote-hero .cosmy-story-image { margin: 0; }
.cosmy-story-video { width: min(100%, 960px); margin: 0 0 48px; }
.cosmy-story-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.cosmy-story-video-placeholder { display: grid; min-height: 260px; place-content: center; justify-items: start; gap: 10px; padding: 36px; border: 1px solid #b8b5ae; background: #f0efe9; }
.cosmy-story-video-placeholder p { max-width: 650px; margin: 0; }
.cosmy-story-video-placeholder button { margin-top: 8px; padding: 12px 18px; border: 1px solid #151515; border-radius: 0; background: #151515; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.cosmy-story-video-placeholder button:hover { background: #fff; color: #151515; }
.cosmy-story-video figcaption { margin-top: 8px; color: var(--cosmy-muted); font-size: 12px; line-height: 1.4; }
.cosmy-story-video figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.cosmy-story-content h3,
.cosmy-story-content h4 { margin: 48px 0 18px; }
.cosmy-story-content ul { padding-left: 22px; }
.cosmy-story-content li { margin-bottom: 10px; }
.cosmy-story-content blockquote { margin: 42px 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--cosmy-accent); font-size: 22px; }
.cosmy-story-content blockquote p { margin: 0 0 8px; }
.cosmy-story-content cite { color: var(--cosmy-muted); font-size: 13px; font-style: normal; }
.cosmy-story-content .cosmy-news-source,
.cosmy-story-content > ul:last-child { padding: 20px 24px; background: var(--cosmy-soft); font-size: 14px; }
.cosmy-story-content .cosmy-news-source { display: grid; gap: 14px; }
.cosmy-story-content .cosmy-news-source > p {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 4px 8px;
	align-items: start;
	margin: 0;
}
.cosmy-story-content .cosmy-news-source > p > .cosmy-source-link {
	display: block;
	overflow-wrap: anywhere;
	min-width: 0;
	grid-row: 1;
	grid-column: 2;
}
.cosmy-story-content .cosmy-news-source > p > br { display: none; }
.cosmy-story-content .cosmy-news-source > p > time { grid-row: 2; grid-column: 1 / -1; }
.cosmy-story-content .cosmy-news-source .cosmy-source-icon,
.cosmy-story-content .cosmy-news-source .cosmy-source-icon-fallback { width: 18px; height: 18px; grid-row: 1; grid-column: 1; }
.cosmy-story-content .cosmy-news-reader-comment { margin-top: 0; padding: 24px 28px; border-left: 5px solid var(--cosmy-accent); background: var(--cosmy-soft); }
.cosmy-story-content .cosmy-news-reader-comment p { margin: 0; }
.cosmy-story-content img { max-width: 100%; height: auto; }
.cosmy-story-main aside { align-self: start; padding: 28px; border-top: 4px solid var(--cosmy-ink); background: var(--cosmy-accent); }
.cosmy-story-main aside a { font-size: 13px; font-weight: 800; }

@media (max-width: 820px) {
	.cosmy-preview-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
	.cosmy-location-dialog-head,
	.cosmy-location-context,
	.cosmy-location-results,
	.cosmy-location-dialog-foot { padding-left: 18px; padding-right: 18px; }
	.cosmy-location-dialog-foot { align-items: flex-start; flex-direction: column; }
	.cosmy-location-dialog-foot span { text-align: left; }
	.cosmy-daily-briefing { max-width: 460px; }
	.cosmy-daily-briefing { }
	.cosmy-headlines-grid { grid-template-columns: 1fr; }
	.cosmy-headline-card,
	.cosmy-headline-card--lead { grid-row: auto; grid-template-columns: 1fr; padding: 26px 0; border-right: 0; }
	.cosmy-headline-card:not(.cosmy-headline-card--lead) .cosmy-remote-hero,
	.cosmy-headline-card:not(.cosmy-headline-card--lead) > .cosmy-card-image-link,
	.cosmy-headline-card:not(.cosmy-headline-card--lead) .cosmy-headline-image { grid-row: auto; grid-column: 1; aspect-ratio: 16 / 9; }
	.cosmy-headline-card--lead h3 { font-size: clamp(30px, 9vw, 44px); }
	.cosmy-news-grid,
	.wp-block-cosmy-news-feed.is-style-newspaper-grid .cosmy-news-grid { grid-template-columns: 1fr; }
	.cosmy-feed-layout { display: none; }
	.cosmy-news-card,
	.cosmy-news-card:nth-child(odd),
	.cosmy-news-card:nth-child(even) { min-height: 380px; padding: 28px 0; border-right: 0; }
	:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card,
	:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card:nth-child(odd),
	:is(.wp-block-cosmy-news-feed.is-style-news-list, [data-cosmy-feed-layout="list"] .wp-block-cosmy-news-feed.has-reader-layout) .cosmy-news-card:nth-child(even),
	.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card,
	.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card:nth-child(odd),
	.wp-block-cosmy-news-feed.is-style-compact-list .cosmy-news-card:nth-child(even) {
		grid-template-areas: "top" "image" "title" "brief" "source";
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 26px 0;
	}
	.cosmy-card-source { grid-template-columns: 42px minmax(0, 1fr); }
	.cosmy-card-read { grid-column: 2; }
		.cosmy-topic-filters { margin-top: -10px; }
	.is-style-feed-heading { align-items: flex-start; flex-direction: column; }
	.is-style-feed-heading > .wp-block-heading { margin-left: 0; text-align: left; }
	.cosmy-archive-main { padding: 56px 0 80px; }
	.cosmy-archive-intro h1 { font-size: clamp(38px, 11vw, 56px); }
	.cosmy-archive-meta { align-items: flex-start; flex-direction: column; }
		.cosmy-story-main { grid-template-columns: 1fr; gap: 55px; padding: 64px 0 80px; }
	.cosmy-story-source-row { align-items: flex-start; flex-direction: column; gap: 12px; }
	.cosmy-story-source { align-items: flex-start; flex-direction: column; gap: 4px; }
	.cosmy-story-source span::before { content: none; }
}
/* Native evidence-grounded reading aid inside the article, independent of comments. */
.cosmy-news-explainers {
	background: color-mix(in srgb, currentColor 5%, transparent);
	border-inline-start: 3px solid color-mix(in srgb, currentColor 22%, transparent);
	padding: 1rem 1.25rem;
	margin-block: 1.5rem;
	overflow-wrap: anywhere;
}
.cosmy-news-explainers > p { font-size: .95em; line-height: 1.5; margin-block: .65em 0; }
.cosmy-news-explainers > .cosmy-news-explainers__label { font-size: .8em; margin-top: 0; }
