/*
Theme Name: The Duck Call
Theme URI: https://goldeneyesblog.com
Author: The Duck Call
Description: The theme for The Duck Call, an independent blog on the PWHL's Vancouver Goldeneyes. A child theme of Twenty Twenty-Five.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: duck-call
*/

/* ---------------------------------------------------------------
   Shared values
   --------------------------------------------------------------- */

:root {
	/* Same value as the root padding in theme.json, set here so it works anywhere. */
	--dc-gutter: clamp(16px, 2.4vw + 6px, 40px);
	/* Distance from the screen edge to the 1240px container edge. */
	--dc-edge: max(var(--dc-gutter), calc((100vw - 1240px) / 2));
	--dc-sans: var(--wp--preset--font-family--schibsted-grotesk);
	--dc-serif: var(--wp--preset--font-family--newsreader);
	--dc-navy: var(--wp--preset--color--navy);
	--dc-ink: var(--wp--preset--color--ink);
	--dc-paper: var(--wp--preset--color--paper);
	--dc-paper-2: var(--wp--preset--color--paper-2);
	--dc-gold: var(--wp--preset--color--gold);
	--dc-slate: var(--wp--preset--color--slate);
	--dc-mist: var(--wp--preset--color--mist);
	--dc-teaser-dek: clamp(17px, 0.19vw + 16.26px, 19px);
	/* Halfway between paper and paper-2, for the faint stripe behind every other story on phones. */
	--dc-paper-tint: #EFE7D8;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */

body {
	font-synthesis: none;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks {
	overflow-x: clip;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

/* On short pages the navy footer grows to fill the rest of the screen,
   so there's never an empty strip above or below it. */
.wp-site-blocks > footer {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer > .dc-footer {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer > .dc-footer > * {
	width: 100%;
	box-sizing: border-box;
}

/* The copyright line stays at the very bottom when the footer grows. */
.wp-site-blocks > footer > .dc-footer > .dc-footer__copyright {
	margin-top: auto !important;
	padding-top: 56px;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

main.dc-main > * {
	margin-block-start: 0;
}

/* No italics anywhere. */
em,
i,
cite,
dfn,
var,
address,
blockquote,
.wp-block-quote,
.wp-block-pullquote {
	font-style: normal !important;
}

h1, h2, h3, h4, h5, h6, p, figcaption, blockquote {
	text-wrap: pretty;
}

h1, h2, h3 {
	text-wrap: balance;
}

a {
	text-decoration-color: var(--dc-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

a:hover {
	color: var(--dc-navy);
	text-decoration-color: var(--dc-gold);
}

:focus-visible {
	outline: 3px solid var(--dc-ink);
	outline-offset: 2px;
}

.has-navy-background-color :focus-visible,
.dc-header :focus-visible,
.dc-footer :focus-visible,
.wp-block-navigation__responsive-container.is-menu-open :focus-visible {
	outline-color: var(--dc-gold);
}

.has-gold-background-color :focus-visible {
	outline-color: var(--dc-ink);
}

.wp-block-button__link,
.wp-element-button,
input,
button,
select,
textarea {
	border-radius: 0 !important;
	min-height: 44px;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-separator {
	border: 0 !important;
	height: 0 !important;
	background: none !important;
	margin-block: 40px !important;
}

/* Byline lines: author · series · date · read time. */
.dc-byline {
	font-family: var(--dc-sans);
	font-size: var(--wp--preset--font-size--byline);
	line-height: 1.5;
	color: var(--dc-slate);
	row-gap: 2px;
}

.dc-byline > * {
	margin: 0;
}

.dc-byline > :not(:last-child)::after {
	content: "\00B7";
	margin: 0 0.45em;
	text-decoration: none;
	display: inline-block;
}

.dc-byline__author {
	font-weight: 700;
	color: var(--dc-ink);
}

.dc-byline a {
	color: inherit;
}

.dc-byline--on-navy {
	color: var(--dc-mist);
}

.dc-byline--on-navy .dc-byline__author {
	color: var(--dc-paper);
}

.has-gold-background-color .dc-byline,
.has-gold-background-color .dc-byline__author {
	color: var(--dc-ink);
}

.has-gold-background-color a {
	text-decoration-color: var(--dc-ink);
}

/* Deks and post titles in lists. */
.wp-block-post-excerpt {
	margin: 0;
}

.wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--dc-gold);
	text-decoration-thickness: 2px;
}

.wp-block-post-featured-image {
	margin: 0;
}

.wp-block-post-featured-image > a,
.wp-block-post-featured-image img {
	display: block;
}

.dc-section-heading {
	margin: 0;
	line-height: 1.1;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.dc-header__bar {
	min-height: 64px;
	gap: 16px 32px;
}

.dc-header .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

.dc-header .wp-block-site-title a {
	color: var(--dc-paper);
}

.dc-header__links {
	gap: 30px;
}

.dc-nav,
.dc-nav .wp-block-navigation-item__content {
	color: var(--dc-paper);
}

.dc-nav .wp-block-navigation-item__content {
	padding-block: 10px;
}

.dc-nav .wp-block-navigation-item__content:hover {
	color: var(--dc-paper);
	text-decoration: underline;
	text-decoration-color: var(--dc-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.dc-subscribe {
	flex-shrink: 0;
}

/* The badge at the left of the header on every page but the homepage,
   where the large badge sits in the masthead instead. */
.dc-header__badge {
	margin: 0 !important;
	line-height: 0;
	flex-shrink: 0;
}

.dc-header__badge img {
	display: block;
	width: 52px !important;
	height: auto;
}

/* The Sports Page BC credit, at the right end of the header's open space.
   It needs a laptop-width header, so it hides below 1160px. */
.dc-header__partner {
	margin: 0 40px 0 auto !important;
	align-items: center;
	gap: 12px !important;
	flex-shrink: 0;
}

.dc-header__partner-text {
	margin: 0 !important;
	font-family: var(--dc-sans);
	font-size: 13px;
	letter-spacing: 0.01em;
	line-height: 1;
	color: rgba(244, 238, 226, 0.74);
	white-space: nowrap;
}

.dc-header__partner-logo {
	margin: 0 !important;
	line-height: 0;
}

.dc-header__partner-logo img {
	display: block;
	width: 151px !important;
	height: auto;
}

@media (max-width: 1159px) {
	.dc-header__partner {
		display: none !important;
	}
}

.dc-subscribe .wp-block-button__link {
	padding: 10px 20px;
	font-size: 15px;
	white-space: nowrap;
}

.dc-subscribe .wp-block-button__link:hover {
	background-color: var(--dc-paper) !important;
	color: var(--dc-ink) !important;
}

/* The Menu button: a 3-line icon and the word Menu. */
.dc-nav .wp-block-navigation__responsive-container-open {
	gap: 10px;
	align-items: center;
	min-height: 44px;
	padding: 0;
	font-family: var(--dc-sans);
	font-size: 16px;
	font-weight: 600;
	color: var(--dc-paper);
}

.dc-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 20px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 0h20v2H0zM0 6h20v2H0zM0 12h20v2H0z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M0 0h20v2H0zM0 6h20v2H0zM0 12h20v2H0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The open menu. */
.dc-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px var(--dc-gutter) 40px;
}

.dc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
	align-items: flex-start;
}

.dc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 4px;
	align-items: flex-start;
}

.dc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--dc-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	padding-block: 8px;
}

.dc-nav .wp-block-navigation__responsive-container-close {
	top: 16px;
	right: var(--dc-gutter);
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-family: var(--dc-sans);
	font-size: 16px;
	font-weight: 600;
	color: var(--dc-paper);
}

/* Fold the links behind Menu below 782px, where they'd no longer fit in 1 row. */
@media (min-width: 600px) and (max-width: 781px) {
	.dc-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.dc-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 781px) {
	.dc-header__bar,
	.dc-header__links {
		gap: 14px;
	}

	.dc-header__title {
		margin-right: auto !important;
	}

	.dc-header__badge img {
		width: 44px !important;
	}

	.dc-header--home .dc-nav {
		margin-right: auto;
	}

	.dc-subscribe .wp-block-button__link {
		padding: 10px 16px;
	}
}

/* On the narrowest phones, the Menu button shows its icon only. */
@media (max-width: 389px) {
	.dc-header:not(.dc-header--home) .wp-block-navigation__responsive-container-open {
		font-size: 0;
	}
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.dc-footer {
	padding-block: 64px 40px;
	font-family: var(--dc-sans);
	font-size: 15px;
	line-height: 1.6;
}

.dc-footer__columns {
	gap: 40px 64px !important;
}

.dc-footer__name {
	margin: 0;
	font-family: var(--dc-serif);
	font-size: var(--wp--preset--font-size--site-title);
	font-weight: 600;
	line-height: 1.1;
}

.dc-footer__blurb {
	margin: 14px 0 0;
	max-width: 440px;
}

.dc-footer__lists {
	gap: 32px !important;
}

.dc-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dc-footer__links li + li {
	margin-top: 8px;
}

.dc-footer__links a {
	color: var(--dc-paper);
}

.dc-footer__links a:hover {
	color: var(--dc-paper);
	text-decoration-color: var(--dc-paper);
}

.dc-footer__copyright {
	margin: 0 auto !important;
	font-size: 14px;
}

/* ---------------------------------------------------------------
   Homepage masthead
   --------------------------------------------------------------- */

.dc-masthead__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 330px);
	align-items: center;
	gap: 0 48px;
	padding-block: 40px;
}

.dc-masthead__inner > * {
	margin: 0 !important;
}

.dc-masthead__badge img {
	display: block;
	width: 196px !important;
	height: auto;
}

.dc-masthead__tagline {
	margin: 0;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	max-width: 560px;
}

.dc-masthead__series p {
	margin: 0;
	font-family: var(--dc-sans);
	font-size: 15px;
	line-height: 1.45;
	color: var(--dc-slate);
}

.dc-masthead__series p + p {
	margin-top: 10px;
}

.dc-masthead__series a {
	color: var(--dc-ink);
}

/* Tablet widths: the series explainer moves under the badge and tagline, in 3 columns. */
@media (min-width: 782px) and (max-width: 1099px) {
	.dc-masthead__inner {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 28px 40px;
		padding-block: 32px 36px;
	}

	.dc-masthead__badge img {
		width: 160px !important;
	}

	.dc-masthead__series {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 32px;
	}

	.dc-masthead__series p + p {
		margin-top: 0;
	}
}

@media (max-width: 781px) {
	.dc-masthead__inner {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 20px 20px;
		padding-block: 24px 28px;
	}

	.dc-masthead__badge img {
		width: 124px !important;
	}

	.dc-masthead__series {
		grid-column: 1 / -1;
	}

	.dc-masthead__series p {
		font-size: 16px;
	}
}

/* ---------------------------------------------------------------
   Split rows: a photo running off 1 screen edge beside text
   (homepage lead and postgame band)
   --------------------------------------------------------------- */

.dc-split {
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

.dc-split > .wp-block-column {
	margin: 0 !important;
}

.dc-split__image {
	align-self: stretch !important;
	min-height: 420px;
}

.dc-split__photo,
.dc-split__photo > a {
	height: 100%;
}

.dc-split__photo img,
.dc-more__image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 30%;
}

.dc-split__text {
	padding: 56px var(--dc-edge) 56px 56px;
}

.dc-split__text > * {
	margin-block: 0;
}

.dc-lead__title {
	margin: 0;
	line-height: 1.04;
	letter-spacing: -0.01em;
}

.dc-lead .dc-dek {
	margin-top: 22px;
	font-size: clamp(18px, 0.19vw + 17.26px, 20px);
	line-height: 1.5;
	color: var(--wp--preset--color--dek);
}

.dc-lead .dc-byline,
.dc-postgame .dc-byline {
	margin-top: 22px;
}

/* Tablet widths: give the text half the row and tighten its padding. */
@media (min-width: 782px) and (max-width: 1099px) {
	.dc-split > .wp-block-column {
		flex-basis: 50% !important;
	}

	.dc-split__text {
		padding: 40px var(--dc-edge) 40px 36px;
	}

	.dc-dive__row > .wp-block-column:first-child {
		flex-basis: 58% !important;
	}

	.dc-dive__row {
		gap: 32px 40px !important;
	}
}

@media (max-width: 781px) {
	.dc-split__image {
		min-height: 0;
	}

	.dc-split__photo img {
		aspect-ratio: 4 / 3;
		height: auto !important;
	}

	.dc-split__text {
		padding: 28px var(--dc-gutter) 36px;
	}
}

/* ---------------------------------------------------------------
   Latest and archive lists
   --------------------------------------------------------------- */

/* Latest keeps its own space below, so it never runs into the next band
   when the Dive and postgame bands are hidden. */
.dc-latest {
	padding-block: 64px 80px;
}

.dc-latest__head {
	margin-bottom: 36px !important;
}

.dc-river__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dc-river__list > li {
	margin: 0;
}

.dc-teaser > * {
	margin: 0 !important;
}

.dc-teaser__title {
	line-height: 1.12;
}

.dc-teaser__dek {
	font-size: var(--dc-teaser-dek);
	line-height: 1.5;
	color: var(--wp--preset--color--dek);
}

/* Typographic list: byline column on the left, headline and dek on the right. */
.dc-river__list > li + li {
	margin-top: 48px;
}

.dc-teaser {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	column-gap: 0;
	row-gap: 10px;
}

.dc-teaser__image {
	display: none;
}

.dc-teaser__title {
	grid-column: 2;
	grid-row: 1;
}

.dc-teaser__dek {
	grid-column: 2;
	grid-row: 2;
	max-width: 700px;
}

.dc-teaser__byline {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: start;
	display: block !important;
	padding-top: 6px;
	padding-right: 24px;
	font-size: 14px;
}

.dc-teaser__byline > * {
	display: inline;
}

.dc-teaser__byline > :not(:last-child)::after {
	content: none;
}

.dc-teaser__byline .dc-byline__author,
.dc-teaser__byline .dc-byline__time {
	display: block;
}

.dc-teaser__byline .dc-byline__series::after {
	content: ", ";
	display: inline;
	margin: 0;
}

.dc-teaser__byline a {
	text-decoration: none;
}

/* The first post is a feature row: text left, photo running off the right edge.
   On archives it only applies on page 1. Search results stay a plain list. */
.dc-river--home .dc-river__list > li:first-child,
body:not(.paged) .dc-river:not(.dc-river--plain) .dc-river__list > li:first-child {
	margin-bottom: 72px;
}

.dc-river--home .dc-river__list > li:first-child + li,
body:not(.paged) .dc-river:not(.dc-river--plain) .dc-river__list > li:first-child + li {
	margin-top: 0;
}

.dc-river--home li:first-child .dc-teaser,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser {
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto auto auto 1fr;
	column-gap: 56px;
	row-gap: 0;
	margin-right: calc(-1 * var(--dc-edge)) !important;
}

.dc-river--home li:first-child .dc-teaser__image,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__image {
	display: block;
	grid-column: 2;
	grid-row: 1 / -1;
	min-height: 420px;
}

.dc-river--home li:first-child .dc-teaser__image > a,
.dc-river--home li:first-child .dc-teaser__image img,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__image > a,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.dc-river--home li:first-child .dc-teaser__title,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__title {
	grid-column: 1;
	grid-row: 2;
	font-size: var(--wp--preset--font-size--feature) !important;
	line-height: 1.08;
}

.dc-river--home li:first-child .dc-teaser__dek,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__dek {
	grid-column: 1;
	grid-row: 3;
	margin-top: 18px !important;
}

.dc-river--home li:first-child .dc-teaser__byline,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline {
	grid-column: 1;
	grid-row: 4;
	display: flex !important;
	flex-wrap: wrap;
	margin-top: 18px !important;
	padding: 0;
	font-size: var(--wp--preset--font-size--byline);
}

.dc-river--home li:first-child .dc-teaser__byline > *,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline > * {
	display: block;
}

.dc-river--home li:first-child .dc-teaser__byline > :not(:last-child)::after,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline > :not(:last-child)::after {
	content: "\00B7";
	margin: 0 0.45em;
	display: inline-block;
}

.dc-river--home li:first-child .dc-teaser__byline a,
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline a {
	text-decoration: underline;
	text-decoration-color: var(--dc-gold);
}

@media (max-width: 781px) {
	.dc-latest {
		padding-block: 40px 48px;
	}

	.dc-latest__head {
		margin-bottom: 20px !important;
	}

	/* Each story is its own full-width band, and every other band is faintly shaded,
	   so stories read as separate units without lines or boxes. */
	.dc-river__list > li,
	.dc-river__list > li + li {
		margin: 0 calc(-1 * var(--dc-gutter)) !important;
		padding: 30px var(--dc-gutter);
	}

	.dc-river__list > li:nth-child(even) {
		background: var(--dc-paper-tint);
	}

	.dc-teaser,
	.dc-river--home li:first-child .dc-teaser,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser {
		display: flex;
		flex-direction: column;
		margin-right: 0 !important;
		gap: 0;
	}

	.dc-teaser__dek {
		margin-top: 8px !important;
		font-size: 17px;
		line-height: 1.45;
	}

	.dc-teaser__byline,
	.dc-river--home li:first-child .dc-teaser__byline,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline {
		display: flex !important;
		flex-wrap: wrap;
		margin-top: 10px !important;
		padding: 0;
		font-size: var(--wp--preset--font-size--byline);
	}

	.dc-teaser__byline > * {
		display: block;
	}

	.dc-teaser__byline > :not(:last-child)::after,
	.dc-teaser__byline .dc-byline__series::after {
		content: "\00B7";
		margin: 0 0.45em;
		display: inline-block;
	}

	.dc-river--home .dc-river__list > li:first-child,
	body:not(.paged) .dc-river:not(.dc-river--plain) .dc-river__list > li:first-child {
		padding-top: 0;
		padding-bottom: 36px;
	}

	.dc-river--home li:first-child .dc-teaser__image,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__image {
		order: -1;
		min-height: 0;
		margin: 0 calc(-1 * var(--dc-gutter)) 24px !important;
	}

	.dc-river--home li:first-child .dc-teaser__image img,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__image img {
		aspect-ratio: 3 / 2;
		height: auto !important;
	}

	.dc-river--home li:first-child .dc-teaser__dek,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__dek,
	.dc-river--home li:first-child .dc-teaser__byline,
	body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser__byline {
		margin-top: 10px !important;
	}
}

.dc-pagination {
	margin-top: 64px !important;
	font-family: var(--dc-sans);
}

.dc-pagination a {
	color: var(--dc-ink);
}

.dc-no-results {
	margin: 0;
	font-size: var(--dc-teaser-dek);
}

/* ---------------------------------------------------------------
   The Dive band
   --------------------------------------------------------------- */

.dc-dive {
	margin-top: 0 !important;
}

.dc-dive .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dc-dive__band {
	padding-block: 64px;
}

.dc-dive__row {
	gap: 32px 72px !important;
	margin-block: 0 !important;
}

.dc-dive__title {
	margin: 0;
	line-height: 1;
	letter-spacing: -0.02em;
}

.dc-dive__title a:hover {
	text-decoration-color: var(--dc-ink);
}

.dc-dive__dek {
	color: var(--dc-ink) !important;
	font-size: var(--dc-teaser-dek);
	line-height: 1.5;
}

.dc-dive__text .dc-byline {
	margin-top: 18px;
}

@media (max-width: 781px) {
	.dc-dive {
		margin-top: 0 !important;
	}

	.dc-dive__band {
		padding-block: 40px;
	}

	.dc-dive__row {
		gap: 20px !important;
	}
}

/* ---------------------------------------------------------------
   Postgame band
   --------------------------------------------------------------- */

.dc-postgame .wp-block-post-template,
.dc-lead .wp-block-post-template,
.dc-more .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dc-postgame__title {
	margin: 0;
	line-height: 1.06;
}

.dc-postgame__title a:hover {
	text-decoration-color: var(--dc-gold);
}

.dc-postgame__dek {
	margin-top: 18px !important;
	font-size: clamp(16px, 0.19vw + 15.26px, 18px);
	line-height: 1.5;
}

.dc-observations {
	list-style: none;
	margin: 22px 0 0 !important;
	padding: 0;
}

.dc-observations li {
	display: flex;
	gap: 0.9em;
	margin: 0;
	font-family: var(--dc-serif);
	font-size: clamp(18px, 0.19vw + 17.26px, 20px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--dc-paper);
}

.dc-observations li + li {
	margin-top: 8px;
}

.dc-observations__number {
	color: var(--dc-gold);
	min-width: 1em;
}

/* In the editor, the sample list shows plain numbers. */
.editor-styles-wrapper .dc-observations {
	list-style: decimal;
	padding-left: 1.4em;
}

.editor-styles-wrapper .dc-observations li {
	display: list-item;
}

/* ---------------------------------------------------------------
   Newsletter band
   --------------------------------------------------------------- */

.dc-newsletter {
	padding-block: 60px;
}

.dc-newsletter__columns {
	gap: 28px 64px !important;
	margin-block: 0 !important;
}

.dc-newsletter__heading {
	margin: 0;
	line-height: 1.08;
}

.dc-newsletter__text {
	margin: 14px 0 0;
	max-width: 520px;
	font-family: var(--dc-sans);
	font-size: 17px;
	line-height: 1.55;
}

.dc-signup,
.dc-signup .wp-block-jetpack-subscriptions__container {
	margin: 0;
	font-family: var(--dc-sans);
}

.dc-signup .wp-block-jetpack-subscriptions__form-elements {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.dc-signup p {
	margin: 0 !important;
}

.dc-signup #subscribe-email {
	flex: 1 1 240px;
	min-width: 0;
}

.dc-signup #subscribe-email .screen-reader-text {
	position: static !important;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 10px;
	clip: auto;
	clip-path: none;
	overflow: visible;
	font-size: 14px;
	font-weight: 600;
	color: var(--dc-ink);
	word-wrap: normal;
}

.dc-signup input[type="email"] {
	box-sizing: border-box;
	width: 100% !important;
	height: 54px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	background: var(--wp--preset--color--white) !important;
	color: var(--dc-ink);
	font-family: var(--dc-sans) !important;
	font-size: 17px !important;
}

.dc-signup input[type="email"]::placeholder {
	color: transparent;
}

.dc-signup button[type="submit"] {
	height: 54px;
	margin: 0 !important;
	padding: 0 30px !important;
	border: 0 !important;
	background: var(--dc-navy) !important;
	color: var(--dc-paper) !important;
	font-family: var(--dc-sans) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.dc-signup button[type="submit"]:hover {
	background: var(--dc-ink) !important;
}

@media (max-width: 781px) {
	.dc-newsletter {
		padding-block: 44px;
	}

	.dc-signup #subscribe-submit,
	.dc-signup button[type="submit"] {
		width: 100%;
	}
}

/* ---------------------------------------------------------------
   Meet the Flock section and roster table
   --------------------------------------------------------------- */

.dc-flock {
	padding-block: 64px 80px;
}

.dc-flock--hub {
	padding-block: 8px 56px;
}

.dc-flock__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 32px;
	margin-bottom: 28px;
}

.dc-flock__head > * {
	margin: 0 !important;
}

.dc-flock__intro {
	font-family: var(--dc-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--dc-slate);
}

.dc-roster-part {
	margin: 0 !important;
}

.dc-roster {
	margin: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dc-roster table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
}

.dc-roster th {
	padding: 0 16px 12px;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.dc-roster td {
	padding: 12px 16px;
	font-size: 15px;
	vertical-align: middle;
}

.dc-roster td:first-child {
	width: 56px;
	font-family: var(--dc-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	color: var(--dc-navy);
	font-variant-numeric: lining-nums tabular-nums;
}

.dc-roster td:nth-child(2) {
	font-family: var(--dc-serif);
	font-size: 19px;
	font-weight: 500;
}

.dc-roster td:nth-child(2) a {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.dc-flock {
		padding-block: 44px 56px;
	}

	.dc-flock__head {
		margin-bottom: 20px;
	}

	.dc-roster {
		margin-right: calc(-1 * var(--dc-gutter)) !important;
	}

	.dc-roster table {
		min-width: 720px;
	}

	.dc-roster th,
	.dc-roster td {
		padding-inline: 12px;
	}
}

/* Tables in posts and the roster: paper-2 stripes, no borders. */
.wp-block-table :is(table, thead, tbody, tfoot, tr, th, td) {
	border: 0 !important;
}

.wp-block-table thead {
	border: 0;
}

.wp-block-table tbody tr:nth-child(odd) {
	background: var(--dc-paper-2);
}

.wp-block-table th,
.wp-block-table td {
	padding: 10px 14px;
}

.wp-block-table figcaption {
	text-align: left;
}

/* ---------------------------------------------------------------
   Article
   --------------------------------------------------------------- */

.dc-article__head {
	padding-block: 64px 36px;
}

.dc-article__title {
	margin: 0;
}

.dc-article__dek {
	margin-top: 20px !important;
}

.dc-article__byline {
	margin-top: 24px !important;
}

.dc-featured {
	margin: 0;
}

.dc-featured img {
	width: 100%;
	height: 640px !important;
	object-fit: cover;
	object-position: 50% 30%;
}

.wp-block-post-featured-image .dc-featured-caption a {
	display: inline;
}

.dc-featured-caption,
.dc-content > .wp-block-image figcaption,
.dc-content > .wp-block-embed figcaption,
.dc-content > .wp-block-gallery > figcaption {
	box-sizing: content-box;
	max-width: var(--wp--style--global--content-size, 600px);
	margin: 12px auto 0;
	padding-inline: var(--dc-gutter);
	text-align: left;
}

.dc-content {
	padding-block: 44px 0;
}

.dc-content > * {
	margin-block: 0;
}

.dc-content > * + * {
	margin-block-start: 24px;
}

.dc-content > h2 {
	margin-block-start: 52px;
}

.dc-content > h3 {
	margin-block-start: 36px;
}

.dc-content > h2 + *,
.dc-content > h3 + * {
	margin-block-start: 14px;
}

.dc-content > :is(.wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-video, .wp-block-quote, .wp-block-pullquote, .wp-block-list, .wp-block-table),
.dc-content > :is(.wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-video, .wp-block-quote, .wp-block-pullquote, .wp-block-list, .wp-block-table) + * {
	margin-block-start: 36px;
}

/* Images in the body break out to the full screen width. */
.dc-content > .wp-block-image,
.dc-content > .wp-block-gallery,
.dc-content > .wp-block-video {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	float: none !important;
}

.dc-content > .wp-block-image img,
.dc-content > .wp-block-video video {
	display: block;
	width: 100% !important;
	height: auto;
}

.dc-content > .alignfull {
	width: auto;
}

/* Embedded clips. */
.dc-content > .wp-block-embed {
	margin-inline: auto;
}

.dc-content .wp-block-embed__wrapper iframe {
	width: 100%;
}

/* Quotes and pull quotes: indented, upright. */
.dc-content > .wp-block-quote,
.dc-content > .wp-block-pullquote {
	text-align: left;
}

.wp-block-quote p,
.wp-block-pullquote p {
	font-size: inherit;
	line-height: inherit;
}

.wp-block-pullquote blockquote {
	margin: 0;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--dc-sans);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--dc-slate);
}

/* The Basics list on Meet the Flock posts. */
.is-style-basics {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 8px 20px;
	padding: 26px 30px !important;
	list-style: none;
	background: var(--dc-paper-2);
	font-size: 18px;
	line-height: 1.45;
}

.is-style-basics li {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	margin: 0;
}

.is-style-basics li:not(:has(.dc-basics__label)) {
	display: block;
}

.dc-basics__label {
	padding-top: 2px;
	font-family: var(--dc-sans);
	font-size: 15px;
	font-weight: 700;
}

.dc-independence {
	padding-block: 52px 40px;
}

.dc-independence__note {
	margin: 0;
	font-family: var(--dc-sans);
	font-size: 16px;
	line-height: 1.6;
}

/* More from the same series. */
.dc-more {
	padding-top: 64px;
}

.dc-more__head {
	box-sizing: border-box;
	max-width: calc(1240px + 2 * var(--dc-gutter));
	margin: 0 auto 28px !important;
	padding-inline: var(--dc-gutter);
}

.dc-more__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-more__list > li {
	margin: 0;
}

.dc-more__item {
	height: 100%;
}

.dc-more__item > * {
	margin: 0 !important;
}

.dc-more__image img {
	width: 100%;
	height: 400px !important;
	object-fit: cover;
}

.dc-more__text {
	padding: 24px 40px 64px;
}

.dc-more__list > li:first-child .dc-more__text {
	padding-left: var(--dc-edge);
}

.dc-more__list > li:last-child .dc-more__text {
	padding-right: var(--dc-edge);
}

.dc-more__list > li:only-child .dc-more__text {
	padding-right: 40px;
}

.dc-more__title {
	margin: 0;
	line-height: 1.12;
}

.dc-more .dc-byline {
	margin-top: 12px !important;
	font-size: 14px;
}

.dc-more .dc-byline a {
	text-decoration: none;
}

@media (max-width: 781px) {
	.dc-article__head {
		padding-block: 32px 24px;
	}

	.dc-featured img {
		height: auto !important;
		aspect-ratio: 4 / 3;
	}

	.dc-content {
		padding-top: 28px;
	}

	.dc-content > * + * {
		margin-block-start: 20px;
	}

	.dc-content > h2 {
		margin-block-start: 40px;
	}

	.dc-content > h2 + *,
	.dc-content > h3 + * {
		margin-block-start: 12px;
	}

	.dc-content > .wp-block-embed {
		width: 100vw;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
	}

	.is-style-basics {
		display: block;
		width: 100vw;
		max-width: 100vw !important;
		box-sizing: border-box;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		padding: 22px var(--dc-gutter) !important;
		font-size: 17px;
	}

	.is-style-basics li {
		display: block;
	}

	.is-style-basics li + li {
		margin-top: 6px;
	}

	.dc-independence {
		padding-block: 40px 32px;
	}

	.dc-more {
		padding-top: 44px;
	}

	.dc-more__head {
		margin-bottom: 20px !important;
	}

	.dc-more__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.dc-more__image img {
		height: auto !important;
		aspect-ratio: 3 / 2;
	}

	.dc-more__text,
	.dc-more__list > li:first-child .dc-more__text,
	.dc-more__list > li:last-child .dc-more__text {
		padding: 18px var(--dc-gutter) 36px;
	}
}

/* ---------------------------------------------------------------
   Pages, archives, search and 404
   --------------------------------------------------------------- */

.dc-page__head {
	padding-block: 64px 0;
}

.dc-page__title {
	margin: 0;
}

.dc-page .dc-content {
	padding-block: 32px 80px;
}

/* A page that ends with the newsletter band (Subscribe) runs straight into the footer.
   Matched on the band itself, since Jetpack can add hidden elements after it. */
.dc-page .dc-content:has(> .dc-newsletter) {
	padding-bottom: 0;
}

.dc-content--no-title {
	padding-top: 0 !important;
}

.dc-archive-head {
	padding-block: 56px 40px;
}

.dc-archive-head__inner > * {
	margin: 0 !important;
}

.dc-archive-head__title {
	margin: 0;
}

.dc-archive-head__dek {
	margin-top: 14px !important;
	max-width: 760px;
	font-size: var(--wp--preset--font-size--dek);
	line-height: 1.42;
	color: var(--wp--preset--color--dek);
}

.dc-archive-head__dek p {
	margin: 0;
}

.dc-archive-body {
	padding-block: 24px 80px;
}

.dc-search {
	margin-top: 28px !important;
	max-width: 620px;
}

.dc-search .wp-block-search__inside-wrapper {
	gap: 10px;
	padding: 0 !important;
	border: 0 !important;
}

.dc-search .wp-block-search__input {
	min-height: 54px;
	font-family: var(--dc-sans);
	font-size: 17px;
}

.dc-search .wp-block-search__button {
	margin: 0 !important;
	padding: 0 28px;
	background: var(--dc-navy);
	color: var(--dc-paper);
	font-family: var(--dc-sans);
	font-weight: 700;
}

.dc-404 .dc-archive-head {
	padding-bottom: 96px;
}

@media (max-width: 781px) {
	.dc-page__head {
		padding-top: 32px;
	}

	.dc-archive-head {
		padding-block: 32px 24px;
	}

	.dc-archive-body {
		padding-bottom: 56px;
	}
}

/* ---------------------------------------------------------------
   Posts without a featured photo: the text takes the whole row,
   so no empty half-panel is left where the photo would go.
   --------------------------------------------------------------- */

.dc-split__image:not(:has(img)) {
	display: none;
}

.dc-split:not(:has(.dc-split__image img)) .dc-split__text {
	flex-basis: 100% !important;
	padding-left: var(--dc-edge);
}

.dc-split:not(:has(.dc-split__image img)) .dc-split__text > * {
	max-width: 900px;
}

.dc-river--home li:first-child .dc-teaser:not(:has(.dc-teaser__image img)),
body:not(.paged) .dc-river:not(.dc-river--plain) li:first-child .dc-teaser:not(:has(.dc-teaser__image img)) {
	grid-template-columns: minmax(0, 1fr);
	margin-right: 0 !important;
}

.dc-teaser__image:not(:has(img)),
.dc-more__image:not(:has(img)),
.dc-featured:not(:has(img)) {
	display: none !important;
}

/* ---------------------------------------------------------------
   Jetpack contact form (Contact page): styled like the newsletter signup
   --------------------------------------------------------------- */

.jetpack-contact-form__form,
.wp-block-jetpack-contact-form {
	font-family: var(--dc-sans);
}

.jetpack-contact-form__form .grunion-field-label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--dc-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--dc-ink);
}

.jetpack-contact-form__form .grunion-label-required {
	margin-left: 0.35em;
	font-weight: 400;
	color: var(--dc-slate);
}

.jetpack-contact-form__form .grunion-field-wrap,
.jetpack-contact-form__form > div {
	margin-bottom: 24px;
}

.jetpack-contact-form__form input.grunion-field,
.jetpack-contact-form__form textarea.grunion-field {
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid var(--dc-slate) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--white);
	color: var(--dc-ink);
	font-family: var(--dc-sans);
	font-size: 17px;
	line-height: 1.5;
}

.jetpack-contact-form__form textarea.grunion-field {
	min-height: 180px;
	padding: 14px 18px;
}

.jetpack-contact-form__form button,
.jetpack-contact-form__form .wp-block-button__link {
	width: auto;
	min-height: 54px;
	padding: 0 30px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--dc-navy) !important;
	color: var(--dc-paper) !important;
	font-family: var(--dc-sans) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
}

.jetpack-contact-form__form button:hover,
.jetpack-contact-form__form .wp-block-button__link:hover {
	background: var(--dc-ink) !important;
}

.dc-content > .wp-block-jetpack-contact-form {
	margin-block-start: 40px;
}
