/* News list (blog home) and single news post. Colours and sizes come from tokens only. */

.dp-news { padding-bottom: var(--sec-gap); }
.dp-news > h1 { margin: var(--space-6) 0 var(--space-4); }
/* The tabs are inside the page's padding already. */
.dp-news .dp-tabs { padding-left: 0 !important; padding-right: 0 !important; margin: 0 0 var(--space-6); }

/* The list: the newest news wide on the first page (photo left, text right), then three in a row.
   Each card: photo, date, title, a short excerpt. */
.dp-news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; list-style: none; margin: 0; padding: 0; }
.dp-news__list > li { margin: 0 !important; min-width: 0; }
.dp-news__card { display: flex; flex-direction: column; height: 100%; margin: 0; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; font-family: var(--font-giga); color: var(--text); }
.dp-news__card > * { margin: 0 !important; }
.dp-news__pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.dp-news__pic { overflow: hidden; }
.dp-news__text { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; }
.dp-news__text > * { margin: 0 !important; }
.dp-news__date { font-size: 14px; color: var(--text-muted); }
.dp-news__title, .dp-news__title a { font: 400 22px/1.25 var(--font-giga); color: var(--ink); text-decoration: none; }
.dp-news__excerpt { font-size: 16px; line-height: 1.55; color: var(--text); }
.dp-news__excerpt p { margin: 0; }
.dp-news__excerpt .wp-block-post-excerpt__more-link { display: none; }

body:not(.paged) .dp-news__query .dp-news__list > li:first-child { grid-column: 1 / -1; }
body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__card { display: grid; grid-template-columns: 7fr 5fr; }
body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__pic { aspect-ratio: auto !important; min-height: 380px; }
body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__text { justify-content: center; gap: 16px; padding: 40px; }
body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__title,
body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__title a { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }

.dp-news .wp-block-query-pagination { justify-content: center; gap: 8px; margin-top: var(--space-8); font-family: var(--font-giga); }
.dp-news .wp-block-query-pagination a, .dp-news .wp-block-query-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.dp-news .wp-block-query-pagination .current { background: var(--ink); color: var(--surface); }

@media (max-width: 1100px) {
	.dp-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.dp-news__list { grid-template-columns: 1fr; gap: 24px; }
	body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__card { display: flex; }
	body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__pic { min-height: 0; aspect-ratio: 3 / 2 !important; }
	body:not(.paged) .dp-news__query .dp-news__list > li:first-child .dp-news__text { padding: 20px 24px 24px; }
	.dp-news__title, .dp-news__title a { font-size: 20px; }
}

/* A news post: crumbs, then category and date, the title, a wide cover; the text in a reading column
   (about 70 characters a line) with its photos a little wider; three other news at the end. */
.dp-article { padding-bottom: var(--sec-gap); }
.dp-article .dp-crumbs { padding: 0 !important; }
.dp-article__head { max-width: 860px; margin: var(--space-6) auto 0; }
.dp-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-family: var(--font-giga); font-size: 14px; color: var(--text-muted); }
.dp-article__meta > * { margin: 0; }
/* No category chosen: WordPress's «Uncategorized» is not shown. */
.dp-article__cat:has(a[href*="uncategorized"]) { display: none; }
.dp-article__cat a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.dp-article__title { margin: var(--space-3) 0 0; font: 400 clamp(32px, 4.4vw, 52px)/1.12 var(--font-giga); color: var(--ink); text-wrap: balance; }
.dp-article__cover { max-width: 1100px; margin: 40px auto 0 !important; }
.dp-article__cover img { border-radius: var(--radius-card); }
.dp-article__body { max-width: 720px; margin: 48px auto 0; font-family: var(--font-giga); font-size: 18px; line-height: 1.7; color: var(--text); }
.dp-article__body > * { max-width: 100%; margin-top: 0; margin-bottom: 1.1em; }
.dp-article__body h2, .dp-article__body h3 { margin-top: 1.6em; margin-bottom: .5em; font-family: var(--font-giga); font-weight: 400; color: var(--ink); line-height: 1.25; }
.dp-article__body h2 { font-size: 28px; }
.dp-article__body h3 { font-size: 22px; }
.dp-article__body ul, .dp-article__body ol { padding-left: 1.2em; }
.dp-article__body li + li { margin-top: .4em; }
/* Photos step out of the text column, wider than the text (as on rhs.org.uk), centred on it. */
.dp-article__body .wp-block-image { width: min(920px, calc(100vw - 32px)); max-width: none; margin: 40px 0 40px 50%; transform: translateX(-50%); }
.dp-article__body .wp-block-image img { width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: none; }
.dp-article__body .wp-block-video { margin: 40px 0; }
.dp-article__body .wp-block-video video { display: block; width: auto; max-width: 100%; height: auto; max-height: min(640px, 75vh); margin-inline: auto; border-radius: var(--radius-card); }
.dp-article__body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--text-muted); text-align: left; }
.dp-article__body a { color: var(--ink); }
/* «Інші новини»: a section of the page width (.dp-wrap.dp-season-sec), the cards of the news list. */
.dp-article__more .dp-title { margin: 0 0 var(--space-8); }
.dp-article__more .dp-news__pic { display: block; aspect-ratio: 3 / 2; }
@media (max-width: 781px) {
	.dp-article__body { font-size: 17px; margin-top: 32px; }
	.dp-article__cover { margin-top: 24px !important; }
}
.dp-news__title a:hover, .dp-news__title:hover { color: var(--ink); text-decoration: none; }
