/*
 * The Hearthside Herald — component and layout styles.
 * Measurements come from the Figma frames; see docs/design-spec.md.
 *
 * Breakpoints (desktop values are the default):
 *   tablet  ≤ 1099px  — Figma "Current Edition — tablet" (834)
 *   mobile  ≤ 699px   — Figma "… — mobile" (390)
 */

:root {
	--herald-gutter: 64px;
	--herald-page-top: 42px;
	--herald-section-gap: 28px;
	--herald-rule-ink: 3px solid var(--wp--preset--color--ink);
	--herald-rule-gold: 2px solid var(--wp--preset--color--gold);
	--herald-rule-sepia: 1px solid var(--wp--preset--color--sepia);
}

@media (max-width: 1099px) {
	:root {
		--herald-gutter: 32px;
		--herald-page-top: 32px;
		--herald-section-gap: 24px;
	}
}

@media (max-width: 699px) {
	:root {
		--herald-gutter: 20px;
		--herald-page-top: 24px;
		--herald-section-gap: 20px;
	}
}

/* ---------- Page ---------- */

.wp-site-blocks {
	padding-top: var(--herald-page-top);
	padding-bottom: var(--herald-page-top);
}

.wp-site-blocks > * + * {
	margin-block-start: var(--herald-section-gap);
}

/* Friz Quadrata sets wider than the Figma serifs; balance display lines so headlines don't strand a word. */
h1,
h2,
h3,
.herald-story__headline,
.herald-subheadline,
.herald-edition-card__title,
.wp-block-pullquote p {
	text-wrap: balance;
}

.herald-article__body p,
.herald-story__excerpt,
.herald-column-body p {
	text-wrap: pretty;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:where(a):focus-visible,
:where(button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
}

.herald-empty {
	font-family: var(--font-body);
	font-style: italic;
	font-size: 13px;
	color: var(--wp--preset--color--ink-muted);
}

/* ---------- Masthead ---------- */

/* Constrained layouts centre children with auto margins; in these flex columns that would shrink them. */
.herald-masthead > *,
.herald-article > *,
.herald-archive-page > *,
.herald-listing > * {
	width: 100%;
}

.herald-masthead > * {
	margin-block: 0 !important;
}

.herald-masthead__meta {
	align-items: center;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: var(--herald-rule-ink);
}

.herald-masthead__meta > * {
	margin: 0;
}

.herald-motto {
	flex: 0 0 auto;
	width: 300px;
	color: var(--wp--preset--color--ink);
}

.herald-issue-meta {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--font-body);
	font-size: 10px;
	line-height: 1.3;
	text-align: right;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.herald-nameplate {
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 4px solid var(--wp--preset--color--gold);
}

.herald-nameplate .wp-block-site-title {
	flex: 1 1 auto;
	margin: 0;
}

.herald-nameplate .wp-block-site-title a {
	text-decoration: none;
}

.herald-shield {
	flex: 0 0 auto;
	margin: 0;
}

.herald-shield img {
	display: block;
	width: 56px;
	height: 56px;
}

/* The masthead face sets about 15em wide on one line; shrink it on narrow desktops instead of wrapping (58px at 1440). */
@media (min-width: 1100px) {
	.herald-nameplate .wp-block-site-title {
		font-size: min(var(--wp--preset--font-size--nameplate), calc((100vw - 290px) / 16));
	}
}

/* The right-hand shield is drawn flipped vertically in every Figma masthead. */
.herald-shield--flipped img {
	transform: scaleY(-1);
}

/* core/navigation repeats its className on the inner list, so target the <nav> only. */
nav.herald-nav {
	padding: 8px 0;
	border-bottom: var(--herald-rule-sepia);
}

.herald-nav .wp-block-navigation__container {
	flex: 1 1 auto;
	justify-content: space-evenly;
	gap: 8px 16px;
}

.herald-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--blue);
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}

.herald-nav .wp-block-navigation-item__content:hover {
	border-bottom-color: var(--wp--preset--color--gold);
	text-decoration: none;
}

.herald-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--gold);
}

@media (max-width: 1099px) {
	.herald-motto {
		width: 120px;
	}

	.wp-block-site-title {
		font-size: 30px;
	}

	.herald-shield img {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 699px) {
	/* The masthead face runs wide: 26px keeps "THE HEARTHSIDE / HERALD" to two lines, as in Figma. */
	.herald-nameplate .wp-block-site-title {
		font-size: 26px;
		line-height: 1.15;
	}

	.herald-nav .wp-block-navigation__container {
		justify-content: space-between;
		gap: 6px 10px;
	}

	.herald-nav .wp-block-navigation-item__content {
		letter-spacing: 0.02em;
	}
}

/* ---------- Colophon ---------- */

.herald-colophon p {
	margin: 0;
	padding-top: 28px;
	border-top: 2px solid var(--wp--preset--color--ink);
	font-family: var(--font-body);
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

/* ---------- Section header (Reusable Patterns) ---------- */

.herald-section-title,
.wp-block-heading.is-style-herald-section,
.wp-block-post-title.herald-section-title,
.wp-block-query-title.herald-section-title {
	margin: 0;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--wp--preset--color--gold);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.25;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	letter-spacing: 0.04em;
}

.herald-section-title a {
	color: inherit;
	text-decoration: none;
}

.herald-section-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ---------- Story preview (Reusable Patterns: article preview) ---------- */

.herald-section,
.herald-story {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.herald-story__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.herald-story__text > *,
.herald-story > * {
	margin: 0;
}

.herald-story__headline {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 19px;
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}

.herald-story--lead .herald-story__headline {
	font-size: 38px;
	line-height: 1.08;
}

.herald-story__headline a {
	color: inherit;
	text-decoration: none;
}

.herald-story__headline a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.12em;
}

.herald-byline {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 10px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--oxblood);
	letter-spacing: 0.07em;
}

.herald-story__excerpt,
.herald-story__excerpt p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
}

.herald-continue,
.wp-block-post-excerpt__more-link {
	font-family: var(--font-body);
	font-style: italic;
	font-size: 11px;
	line-height: 1.3;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

.herald-continue:hover,
.wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* ---------- Photographs (Reusable Patterns: image with caption) ---------- */

.herald-photo,
.wp-block-image.is-style-herald-sketchplate {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.herald-photo__image,
.wp-block-image.is-style-herald-sketchplate img,
.herald-column-body .wp-block-image img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--ink);
	box-sizing: border-box;
}

.herald-photo--lead .herald-photo__image,
.herald-photo--portrait .herald-photo__image {
	height: 390px;
}

/* Previous edition: the wider lead column carries a 230px panorama. */
.herald-front--wide .herald-photo--lead .herald-photo__image {
	height: 230px;
}

.herald-caption,
.wp-block-image.is-style-herald-sketchplate figcaption,
.herald-column-body .wp-block-image figcaption {
	margin: 0;
	font-family: var(--font-body);
	font-style: italic;
	font-size: 10px;
	line-height: 1.4;
	color: var(--wp--preset--color--ink-muted);
	text-align: left;
}

/* ---------- Pull quote ---------- */

.wp-block-pullquote {
	margin: 0;
	text-align: center;
	break-inside: avoid;
}

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

.wp-block-pullquote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.wp-block-pullquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--font-body);
	font-style: normal;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--oxblood);
	letter-spacing: 0.07em;
}

/* ---------- Column content printed in full ---------- */

.herald-column-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.herald-column-body > * {
	margin: 0;
}

.herald-column-body p,
.herald-column-body li {
	font-size: 13px;
	line-height: 1.5;
}

.is-style-herald-classified,
.herald-column-body p.is-style-herald-classified {
	font-size: 11px;
	line-height: 1.6;
}

.is-style-herald-letter,
.herald-column-body p.is-style-herald-letter {
	font-style: italic;
	line-height: 1.6;
}

.is-style-herald-dilemma {
	font-style: italic;
}

p.is-style-herald-question {
	font-weight: 700;
	line-height: 1.35;
	color: var(--wp--preset--color--blue);
}

.wp-block-list.is-style-herald-plain {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-herald-plain li {
	line-height: 1.6;
}

.wp-block-table.is-style-herald-prices {
	margin: 0;
}

.wp-block-table.is-style-herald-prices table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.8;
}

.wp-block-table.is-style-herald-prices td {
	padding: 0;
	border: 0;
}

.wp-block-table.is-style-herald-prices td:first-child {
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.wp-block-table.is-style-herald-prices td:first-child::after {
	content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
	position: absolute;
	padding-left: 4px;
	color: var(--wp--preset--color--ink-muted);
}

.wp-block-table.is-style-herald-prices td:last-child {
	width: 1%;
	padding-left: 4px;
	text-align: right;
	white-space: nowrap;
}

/* Advertisement and editorial notice boxes */
.wp-block-group.is-style-herald-ad {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	border: 2px solid var(--wp--preset--color--ink);
	text-align: center;
}

.wp-block-group.is-style-herald-ad > * {
	margin: 0;
}

.is-style-herald-ad .herald-ad__name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: 0.03em;
}

.is-style-herald-ad .herald-ad__copy,
.herald-column-body .is-style-herald-ad .herald-ad__copy {
	font-size: 11px;
	line-height: 1.4;
}

.wp-block-group.is-style-herald-notice {
	padding: 18px;
	border: 2px solid var(--wp--preset--color--gold);
}

.wp-block-group.is-style-herald-notice > * {
	margin: 0;
}

.wp-block-group.is-style-herald-notice p {
	font-weight: 700;
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- Front page (Current Edition / Previous edition) ---------- */

.herald-front {
	display: grid;
	grid-template-columns: minmax(0, 630fr) 22px minmax(0, 321fr) 18px minmax(0, 321fr);
	align-items: start;
}

.herald-front--wide {
	grid-template-columns: minmax(0, 730fr) 22px minmax(0, 271fr) 18px minmax(0, 271fr);
}

.herald-front__slot {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.herald-front__slot--lead {
	grid-column: 1;
}

.herald-front__slot--middle {
	grid-column: 3;
}

.herald-front__slot--right {
	grid-column: 5;
}

/* In the lead column the pull quote and interview run the full column width, as in Figma. */
.herald-front__slot--lead .herald-story > p {
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 1099px) {
	/* Figma tablet: lead 480 + rail 270, then the notices in two columns beneath. */
	.herald-front,
	.herald-front--wide {
		grid-template-columns: minmax(0, 480fr) 20px minmax(0, 270fr);
		row-gap: 24px;
	}

	.herald-front__slot--right {
		grid-column: 1 / -1;
		display: block;
		columns: 2;
		column-gap: 20px;
	}

	.herald-front__slot--right > .herald-section {
		break-inside: avoid;
		margin-bottom: 18px;
	}
}

@media (max-width: 699px) {
	.herald-front,
	.herald-front--wide {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.herald-front__slot--right {
		display: flex;
		columns: auto;
		gap: 20px;
	}

	.herald-front__slot--right > .herald-section {
		margin-bottom: 0;
	}

	.herald-front__slot {
		gap: 20px;
	}

	.herald-story--lead .herald-story__headline {
		font-size: 34px;
	}
}

/* ---------- Single article ---------- */

.herald-article {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.herald-article > * {
	margin-block: 0 !important;
}

.herald-article .herald-section-title {
	align-self: stretch;
}

.herald-article__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.herald-article__header > * {
	margin: 0;
}

.herald-article__title {
	font-size: 52px;
	line-height: 1.05;
}

.herald-subheadline {
	max-width: 980px;
	font-family: var(--font-body);
	font-style: italic;
	font-size: 24px;
	line-height: 1.3;
	color: var(--wp--preset--color--ink-muted);
}

.herald-article__header .herald-byline {
	font-size: 11px;
}

.herald-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	grid-template-areas:
		"body image"
		"body related";
	grid-template-rows: auto 1fr;
	column-gap: 28px;
	row-gap: 18px;
	align-items: start;
}

.herald-article__layout > * {
	margin: 0 !important;
}

.herald-article__body {
	grid-area: body;
	column-count: 3;
	column-gap: 22px;
	font-size: 15px;
	line-height: 1.7;
}

.herald-article__body > * {
	margin: 0 0 12px;
}

.herald-article__body > .wp-block-pullquote,
.herald-article__body > .is-style-herald-question,
.herald-article__body > figure,
.herald-article__body > h2,
.herald-article__body > h3 {
	break-inside: avoid;
}

.herald-article__body > .wp-block-pullquote {
	margin-bottom: 12px;
}

.herald-article__body > h2,
.herald-article__body > h3 {
	break-after: avoid;
}

.herald-sketchplate {
	grid-area: image;
}

.herald-related {
	grid-area: related;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.herald-related__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.herald-related__list a {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.3;
	color: var(--wp--preset--color--blue);
}

@media (max-width: 1099px) {
	.herald-article__title {
		font-size: 44px;
	}

	.herald-subheadline {
		font-size: 21px;
	}

	.herald-article__layout {
		grid-template-columns: minmax(0, 1fr) 280px;
	}

	.herald-article__body {
		column-count: 2;
		column-gap: 20px;
	}

	.herald-sketchplate .herald-photo__image {
		height: 320px;
	}
}

@media (max-width: 699px) {
	.herald-article {
		gap: 20px;
	}

	.herald-article__title {
		font-size: 34px;
		line-height: 1.08;
	}

	.herald-subheadline {
		font-size: 18px;
	}

	.herald-article__header .herald-byline {
		font-size: 10px;
	}

	.herald-article__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"image"
			"body"
			"related";
		grid-template-rows: auto;
		row-gap: 20px;
	}

	.herald-article__body {
		column-count: 1;
	}

	.herald-article__body > * {
		margin-bottom: 20px;
	}

	.herald-sketchplate .herald-photo__image {
		height: 390px;
	}
}

/* ---------- Edition archive ---------- */

.herald-archive-page {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.herald-archive-page > * {
	margin-block: 0 !important;
}

.herald-page-intro {
	max-width: 800px;
	margin-left: 0 !important;
	font-size: 15px;
	line-height: 1.6;
}

.herald-page-intro > * {
	margin: 0;
}

.herald-edition-list {
	display: flex;
	flex-direction: column;
}

.herald-edition-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 30px;
	min-height: 250px;
	padding: 24px;
	box-sizing: border-box;
	background: var(--wp--preset--color--paper-light);
	border: 1px solid var(--wp--preset--color--sepia);
	box-shadow: var(--wp--custom--shadow--sheet);
}

/* Bound issues overlap like a stack of papers. */
.herald-edition-card + .herald-edition-card {
	margin-top: -12px;
}

.herald-edition-card:nth-child(even) {
	background: var(--wp--preset--color--paper-dark);
}

.herald-cover {
	display: flex;
	flex: 0 0 220px;
	flex-direction: column;
	gap: 8px;
	height: 200px;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	overflow: hidden;
}

.herald-cover:hover {
	text-decoration: none;
}

.herald-cover__masthead {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--wp--preset--color--gold);
	font-family: var(--font-masthead);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.herald-cover__image {
	display: block;
	height: 90px;
	flex: 0 0 90px;
	background: var(--wp--preset--color--paper-dark);
	overflow: hidden;
}

.herald-cover__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(0.35);
}

.herald-cover__headline {
	margin-top: auto;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.herald-edition-card__details {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.herald-edition-card__details > * {
	margin: 0;
}

.herald-edition-card__title {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 40px;
	line-height: 1.1;
	color: var(--wp--preset--color--blue);
}

.herald-edition-card__title a {
	color: inherit;
	text-decoration: none;
}

.herald-edition-card__date {
	font-family: var(--font-body);
	font-size: 11px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--oxblood);
	letter-spacing: 0.06em;
}

.herald-edition-card__contents {
	font-size: 15px;
	line-height: 1.6;
}

.herald-edition-card .herald-continue {
	font-size: 13px;
}

@media (max-width: 699px) {
	.herald-edition-card {
		flex-direction: column;
		gap: 18px;
		padding: 18px;
	}

	.herald-cover {
		flex-basis: auto;
		width: 100%;
		max-width: 260px;
		height: auto;
	}

	.herald-edition-card__title {
		font-size: 32px;
	}
}

/* ---------- Pagination ---------- */

.herald-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin-top: 28px;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.herald-pagination .current {
	color: var(--wp--preset--color--ink);
}

/* ---------- Story listings (column archives, search) ---------- */

.herald-listing {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.herald-listing > * {
	margin-block: 0 !important;
}

.herald-story-list .wp-block-post-template {
	gap: 28px 22px;
}

.herald-story-list .herald-story {
	gap: 8px;
}

.herald-story-list .wp-block-post-excerpt__more-text {
	margin-top: 8px;
}

@media (max-width: 1099px) {
	.herald-story-list .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 699px) {
	.herald-story-list .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Plain pages ---------- */

.herald-page > .wp-block-post-title {
	margin-bottom: 18px;
}

/* ---------- Submission page ---------- */

.herald-submit-page__layout {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	column-gap: 50px;
	row-gap: 28px;
	align-items: start;
}

.herald-submit-page__layout > * {
	margin: 0 !important;
}

.herald-submit-page__intro {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.herald-submit-page__intro > * {
	margin: 0;
}

.herald-submit-page__intro h1 {
	line-height: 1.1;
}

.herald-submit-page__intro p {
	line-height: 1.65;
}

@media (max-width: 1099px) {
	.herald-submit-page__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.herald-submit-page__intro {
		max-width: 640px;
	}
}

/* ---------- Forms (Reusable Patterns: submission form elements) ---------- */

.herald-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.herald-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.herald-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.herald-field > * {
	margin: 0;
}

.herald-field__label {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	letter-spacing: 0.08em;
}

.herald-form input[type="text"],
.herald-form input[type="email"],
.herald-form input[type="file"],
.herald-form select,
.herald-form textarea {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--sepia);
	border-radius: 0;
	background-color: var(--wp--preset--color--paper-light);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}

.herald-form textarea {
	min-height: 120px;
	padding: 10px 12px;
	resize: vertical;
}

.herald-form select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23254967' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}

.herald-form input[type="file"] {
	display: flex;
	align-items: center;
	padding: 5px;
	font-family: var(--font-body);
	font-size: 11px;
}

.herald-form input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--sepia);
	border-radius: 0;
	background: var(--wp--preset--color--paper);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	letter-spacing: 0.08em;
}

.herald-form input::placeholder,
.herald-form textarea::placeholder {
	color: var(--wp--preset--color--ink-muted);
	opacity: 0.8;
}

.herald-form input:focus-visible,
.herald-form select:focus-visible,
.herald-form textarea:focus-visible {
	border-color: var(--wp--preset--color--blue);
	outline: 1px solid var(--wp--preset--color--blue);
	outline-offset: 0;
}

.herald-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 8px 12px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--sepia);
	background: var(--wp--preset--color--paper-light);
	font-size: 13px;
	line-height: 1.3;
	cursor: pointer;
}

.herald-check input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--wp--preset--color--blue);
}

.herald-field__hint,
.herald-field__error {
	font-family: var(--font-body);
	font-size: 11px;
	line-height: 1.4;
}

.herald-field__hint {
	color: var(--wp--preset--color--ink-muted);
}

.herald-field__error {
	font-weight: 700;
	color: var(--wp--preset--color--oxblood);
}

.herald-field.has-error input,
.herald-field.has-error select,
.herald-field.has-error textarea {
	border-color: var(--wp--preset--color--oxblood);
	border-width: 2px;
}

.herald-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.herald-notice {
	margin: 0 0 18px;
	padding: 18px;
	border: 2px solid var(--wp--preset--color--gold);
	font-size: 13px;
	line-height: 1.6;
}

.herald-notice p {
	margin: 0;
}

.herald-notice--error {
	border-color: var(--wp--preset--color--oxblood);
	font-weight: 700;
}

@media (max-width: 699px) {
	.herald-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Buttons ---------- */

.herald-button {
	display: inline-block;
	align-self: flex-start;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	letter-spacing: 0.08em;
}

.herald-button--primary {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--cream);
}

.herald-button--large {
	padding: 14px 28px;
}

.herald-button:hover {
	background: #1d3a52;
}

/* ---------- Block editor placeholders for story-context blocks ---------- */

.herald-block-placeholder {
	padding: 8px 12px;
	border: 1px dashed var(--wp--preset--color--sepia);
	font-family: var(--font-body);
	font-size: 11px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}
