/*
Theme Name: Home Remedies Web
Template: twentytwentyfive
Description: Natural-health child theme of Twenty Twenty-Five for HomeRemediesWeb.com. Colours, type and spacing live in theme.json; this file holds component styles theme.json can't express.
Version: 2.5.1
Text Domain: hrw
*/

/* ---------- Base ---------- */
html { scroll-padding-top: 5.5rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--sage); color: var(--wp--preset--color--contrast); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1 em, h2 em { font-style: italic; color: var(--wp--preset--color--primary); }
img { height: auto; }

.hrw-eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--clay);
}

/* ---------- Header ---------- */
.hrw-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Solid, not backdrop-filter: a filter would trap the fixed mobile-menu overlay inside the header. */
	box-shadow: 0 1px 0 rgba(29,43,34,.02), 0 6px 20px -14px rgba(29,43,34,.25);
}
.admin-bar .hrw-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .hrw-header { top: 0; } }
.hrw-brand .wp-block-site-logo img { display: block; }
.hrw-brand .wp-block-site-title { white-space: nowrap; }

.hrw-nav .wp-block-navigation-item__content { padding: 0.35rem 0; }
.hrw-nav .current-menu-item > a,
.hrw-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--primary); }

/* Mobile overlay menu */
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1rem, 6vw, 2.5rem);
}
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	gap: 0.25rem;
}
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	font-weight: 500;
}
.hrw-nav .wp-block-navigation__responsive-container-open,
.hrw-nav .wp-block-navigation__responsive-container-close { padding: 0.4rem; }

.hrw-header-search .wp-block-search__button,
.hrw-header .wc-block-mini-cart__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.45rem;
	border-radius: 999px;
	border: 0;
}
.hrw-header-search .wp-block-search__button:hover,
.hrw-header .wc-block-mini-cart__button:hover { background: var(--wp--preset--color--sage); }
.hrw-header-search.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper { border: 0; }
.hrw-header-search .wp-block-search__input {
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	padding-inline: 1rem;
}
.hrw-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--clay); color: #fff; }

/* ---------- Search pill ---------- */
.hrw-search-pill { max-width: 34rem; }
.hrw-search-center { margin-inline: auto; width: 100%; }
.hrw-search-pill .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 999px;
	padding: 0.35rem;
	box-shadow: var(--wp--preset--shadow--soft);
}
.hrw-search-pill .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0.55rem 1rem;
	font-size: var(--wp--preset--font-size--medium);
}
.hrw-search-pill .wp-block-search__input:focus { outline: none; }
.hrw-search-pill .wp-block-search__inside-wrapper:focus-within { border-color: var(--wp--preset--color--primary) !important; }
.hrw-search-pill .wp-block-search__button { margin-left: 0.35rem; }

/* ---------- Chips ---------- */
.hrw-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.25rem; }
.hrw-chips-center { justify-content: center; }
.hrw-chips span { color: var(--wp--preset--color--muted); font-weight: 600; margin-right: 0.25rem; }
.hrw-chips a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.hrw-chips a:hover { background: var(--wp--preset--color--sage); border-color: var(--wp--preset--color--sage); color: var(--wp--preset--color--primary-dark); }

/* ---------- Hero ---------- */
.hrw-hero { position: relative; overflow: hidden; }
.hrw-hero::before { /* soft leaf-green glow */
	content: "";
	position: absolute;
	width: 60vw; height: 60vw;
	max-width: 760px; max-height: 760px;
	right: -12vw; top: -20%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--leaf) 28%, transparent), transparent);
	pointer-events: none;
}
.hrw-hero > * { position: relative; }
.hrw-hero h1 { max-width: 15ch; }
.hrw-hero-media { position: relative; }
.hrw-hero-image { margin: 0; }
.hrw-hero-image img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; box-shadow: var(--wp--preset--shadow--lift); }
.hrw-hero-badge { position: absolute; left: -1.75rem; bottom: 1.75rem; max-width: 13rem; }
.hrw-hero-badge p { margin: 0; line-height: 1.35; }
.hrw-badge-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* ---------- Topic cards ---------- */
.hrw-topic {
	position: relative;
	gap: 0.4rem !important;
	padding: 1.75rem;
	border-radius: 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.hrw-topic:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lift); border-color: transparent; }
.hrw-topic h3, .hrw-topic p { margin: 0; }
.hrw-topic h3 a { color: inherit; text-decoration: none; }
.hrw-topic h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.hrw-topic-icon {
	display: inline-grid; place-items: center;
	width: 3rem; height: 3rem;
	border-radius: 14px;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--primary);
}
.hrw-topic-more { margin-top: auto !important; padding-top: 0.75rem; font-weight: 700; color: var(--wp--preset--color--primary); }

/* ---------- Post cards ---------- */
.hrw-grid > li { display: flex; }
.hrw-card {
	position: relative;
	width: 100%;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.hrw-card:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--lift); border-color: transparent; }
.hrw-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.hrw-card .wp-block-post-featured-image img { transition: transform .5s ease; }
.hrw-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.hrw-card-body { flex: 1; }
.hrw-card .wp-block-post-terms, .hrw-card .wp-block-post-excerpt__excerpt { margin: 0; }
.hrw-card .wp-block-post-excerpt { margin: 0; }
.hrw-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.hrw-card .wp-block-post-terms a { position: relative; z-index: 1; }

/* Placeholder when a post has no featured image */
.hrw-noimg {
	display: grid; place-items: center;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--wp--preset--color--sage), color-mix(in srgb, var(--wp--preset--color--leaf) 35%, var(--wp--preset--color--sage)));
	color: var(--wp--preset--color--primary);
}
.hrw-mini .hrw-noimg { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.hrw-mini .hrw-noimg svg { width: 26px; }

/* Compact "reader favourites" list */
.hrw-mini {
	position: relative;
	padding: 0.75rem;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	height: 100%;
	transition: box-shadow .2s, border-color .2s;
}
.hrw-mini:hover { box-shadow: var(--wp--preset--shadow--soft); border-color: transparent; }
.hrw-mini .wp-block-post-featured-image { flex: none; margin: 0; }
.hrw-mini .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hrw-mini .wp-block-post-terms { margin: 0; }
.hrw-list-grid > li { display: flex; }
.hrw-list-grid > li > .hrw-mini { width: 100%; }

.hrw-more-link a { font-weight: 700; text-decoration: none; }
.hrw-more-link a:hover { text-decoration: underline; }

/* ---------- Bands (archive / page headers) ---------- */
.hrw-band { position: relative; overflow: hidden; }
.hrw-band::after {
	content: "";
	position: absolute; inset: auto -10% -60% auto;
	width: 420px; height: 420px;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--wp--preset--color--leaf) 22%, transparent), transparent);
	pointer-events: none;
}
.hrw-band > * { position: relative; z-index: 1; }
.hrw-band .wp-block-term-description { max-width: 40rem; margin-inline: auto; }
.hrw-band .wp-block-term-description p { margin: 0; }

/* ---------- Pagination ---------- */
.hrw-pagination { gap: 0.4rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.hrw-pagination a, .hrw-pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 2.5rem; height: 2.5rem; padding: 0 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.hrw-pagination a:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.hrw-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hrw-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Article ---------- */
.hrw-pill.wp-block-post-terms a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--primary-dark);
}
.hrw-pill .wp-block-post-terms__separator { display: none; }
.hrw-dek { color: var(--wp--preset--color--muted); }
.hrw-dek p { margin: 0; }
.hrw-meta { color: var(--wp--preset--color--muted); }
.hrw-meta > * { margin: 0; }
.hrw-meta > * + *::before { content: "·"; margin-right: 1.1rem; color: var(--wp--preset--color--border); font-weight: 700; }
.hrw-meta-author { font-weight: 700; color: var(--wp--preset--color--contrast); }
.hrw-meta-updated time::before { content: "Updated "; }
.hrw-article-hero img { border-radius: 20px; }

.hrw-prose { font-size: 1.0625rem; }
@media (min-width: 782px) { .hrw-prose { font-size: 1.125rem; } }
.single .hrw-prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 3.6em;
	line-height: 0.8;
	padding: 0.08em 0.1em 0 0;
	color: var(--wp--preset--color--primary);
}
.hrw-prose h2 { padding-top: 0.25em; }
.hrw-prose h2::before {
	content: ""; display: block;
	width: 2.5rem; height: 3px; border-radius: 3px;
	background: var(--wp--preset--color--leaf);
	margin-bottom: 0.9rem;
}
.hrw-prose ul, .hrw-prose ol { padding-left: 1.35em; }
.hrw-prose li { margin-bottom: 0.45em; }
.hrw-prose li::marker { color: var(--wp--preset--color--primary); }
.hrw-prose b, .hrw-prose strong { font-weight: 700; color: var(--wp--preset--color--contrast); }
.hrw-prose table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--small); display: block; overflow-x: auto; }
.hrw-prose th, .hrw-prose td { border-bottom: 1px solid var(--wp--preset--color--border); padding: 0.6rem 0.75rem; text-align: left; }
.hrw-prose iframe, .hrw-prose video { max-width: 100%; }
.hrw-prose .references-heading { font-size: var(--wp--preset--font-size--large); }
.hrw-prose .references {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	padding: 1rem 1.25rem;
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	overflow-wrap: anywhere;
}

/* Imported article images: keep floats inside the text column. */
.wp-block-post-content.is-layout-constrained > .alignright {
	float: right;
	max-width: min(42%, 320px);
	margin: 0.35em max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) 1em 1.75em;
}
.wp-block-post-content .alignright img { width: 100%; border-radius: 14px; }
.wp-block-post-content.is-layout-constrained > figure.aligncenter { margin-inline: auto; }
.wp-block-post-content figure.aligncenter img { border-radius: 16px; }

.hrw-callout p { margin: 0; }

/* ---------- Comments ---------- */
.hrw-comments { max-width: var(--wp--style--global--content-size); margin-inline: auto !important; }
.hrw-comments .wp-block-comments-title { font-size: var(--wp--preset--font-size--x-large); }
.hrw-comments .wp-block-comment-template { list-style: none; padding: 0; margin: var(--wp--preset--spacing--50) 0 0; }
.hrw-comments .wp-block-comment-template li { margin: 0; }
.hrw-comments .wp-block-comment-template ol { list-style: none; padding-left: clamp(1rem, 4vw, 2.5rem); margin: 0; border-left: 2px solid var(--wp--preset--color--sage); }
.hrw-comment {
	padding: 1.25rem 1.4rem;
	margin-bottom: 0.9rem;
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
}
.hrw-comment .wp-block-comment-content p { margin: 0.25rem 0; }
.hrw-comment .wp-block-comment-content { overflow-wrap: anywhere; }
.hrw-comment-form {
	margin-top: var(--wp--preset--spacing--40);
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--wp--preset--color--surface);
}
.hrw-comment-form .comment-reply-title { margin-top: 0; font-size: var(--wp--preset--font-size--large); }
.hrw-comment-form input:not([type=submit]):not([type=checkbox]),
.hrw-comment-form textarea {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 0.7rem 0.9rem;
	background: var(--wp--preset--color--white);
	font: inherit;
}
.hrw-comment-form input:focus, .hrw-comment-form textarea:focus { outline: 2px solid var(--wp--preset--color--leaf); outline-offset: 1px; }

/* ---------- Newsletter + footer ---------- */
.hrw-newsletter { position: relative; overflow: hidden; gap: var(--wp--preset--spacing--40); }
.hrw-newsletter > * { position: relative; }
.hrw-newsletter::after {
	content: "";
	position: absolute; right: -60px; bottom: -80px;
	width: 280px; height: 280px; border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--leaf) 30%, transparent);
}
.hrw-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.hrw-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.hrw-footer-heading {
	margin: 0 0 1rem !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leaf) !important;
}
.hrw-footer-rule { border-color: rgba(227,236,217,.15) !important; opacity: 1; }
.hrw-disclaimer { opacity: 0.75; margin: 0; }

/* ---------- WooCommerce touches ---------- */
.woocommerce-page main .wc-block-components-product-name,
.wc-block-grid__product-title { font-family: var(--wp--preset--font-family--heading); }
.wc-block-components-product-image img, .wp-block-woocommerce-product-image-gallery img { border-radius: 16px; }
.wc-block-components-button:not(.is-link) { border-radius: 999px; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { color: var(--wp--preset--color--primary); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.hrw-hero h1 { max-width: none; }
	.hrw-hero-badge { left: 1rem; bottom: 1rem; }
	.hrw-hero-image img { aspect-ratio: 4 / 3; }
	.hrw-newsletter { flex-direction: column; align-items: flex-start !important; }
	.hrw-footer .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.hrw-footer .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.hrw-brand .wp-block-site-logo img { width: 36px !important; }
	.hrw-brand .wp-block-site-title { font-size: 1.15rem; }
	.wp-block-post-content.is-layout-constrained > .alignright { float: none; max-width: 100%; margin: 1.25em 0; }
	.single .hrw-prose > p:first-of-type::first-letter { font-size: 3em; }
	.hrw-meta > * + *::before { margin-right: 0.6rem; }
	.hrw-meta { column-gap: 0.6rem !important; }
	.hrw-article-hero img { border-radius: 14px; }
	.hrw-comment { padding: 1rem; }
	.hrw-pagination .page-numbers:not(.current):not(.prev):not(.next) { display: none; } /* keep phones to prev / current / next */
	.hrw-pagination .wp-block-query-pagination-numbers .page-numbers.current { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) {
	.hrw-card, .hrw-topic, .hrw-card img { transition: none !important; }
	.hrw-card:hover, .hrw-topic:hover { transform: none; }
}

/* ---------- Refinements ---------- */
.hrw-article-hero img { width: 100%; }
.hrw-meta-read::after { content: " read"; }
@media (max-width: 600px) {
	.hrw-meta > * + *::before { content: none; }
	.hrw-meta { gap: 0.25rem 1rem !important; }
	.hrw-hero-badge { padding: 0.6rem 0.85rem !important; max-width: 10.5rem; left: 0.75rem; bottom: 0.75rem; }
	.hrw-badge-num { font-size: 1.35rem; }
}
@media (max-width: 781px) {
	.hrw-newsletter > * { flex-basis: auto !important; width: 100%; }
	.hrw-newsletter::after { width: 180px; height: 180px; right: -50px; bottom: -70px; }
}
.hrw-comment .wp-block-comment-reply-link a { color: var(--wp--preset--color--primary); }
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 0.5rem;
}
@media (max-width: 600px) {
	.hrw-header .wp-block-group.alignwide > .wp-block-group:last-child { gap: 0.1rem !important; }
	/* Expanded header search drops below the bar, full width */
	.hrw-header-search:not(.wp-block-search__searchfield-hidden) {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: clamp(1rem, 4vw, 2.5rem);
		right: clamp(1rem, 4vw, 2.5rem);
	}
	.hrw-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
		width: 100% !important;
		background: var(--wp--preset--color--white);
		border-radius: 999px;
		box-shadow: var(--wp--preset--shadow--lift);
	}
	.hrw-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: 100% !important; flex: 1; }
}

.hrw-brand { flex-shrink: 1; min-width: 0; }
.hrw-brand .wp-block-site-logo { flex-shrink: 0; }
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { justify-content: flex-start !important; text-align: left; }
@media (max-width: 380px) { .hrw-brand .wp-block-site-title { font-size: 1.05rem; } }
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { width: 100%; }
.hrw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; }
@media (max-width: 380px) {
	.hrw-brand .wp-block-site-title { white-space: normal; line-height: 1.05; max-width: 10.5rem; }
}

/* ==========================================================================
   Contact form ([hrw_contact_form], mu-plugins/hrw-contact-form.php)
   ========================================================================== */
.hrw-lede { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.55; }
.hrw-contact {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--soft);
	scroll-margin-top: 6rem;
}
.hrw-contact__field { display: grid; gap: 0.4rem; }
.hrw-contact label { font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.hrw-contact input[type="email"],
.hrw-contact textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.8rem 1rem;
	font: inherit;
	font-size: 1rem; /* 16px stops iOS zooming on focus */
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.hrw-contact textarea { min-height: 10rem; resize: vertical; line-height: 1.6; }
.hrw-contact input::placeholder,
.hrw-contact textarea::placeholder { color: var(--wp--preset--color--taupe); opacity: .8; }
.hrw-contact input:focus,
.hrw-contact textarea:focus {
	outline: none;
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(140, 198, 63, .35);
}
.hrw-contact [aria-invalid="true"] { border-color: #B3261E; }
.hrw-contact__error { margin: 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: #B3261E; }
.hrw-contact__alert {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: var(--wp--preset--font-size--small);
	color: #8C1D18;
	background: #FBEAE8;
	border-radius: 12px;
}
.hrw-contact .wp-block-button { margin: 0; }
.hrw-contact button { cursor: pointer; }
.hrw-contact__note { margin: 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); }
.hrw-contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hrw-contact--sent { background: var(--wp--preset--color--sage); border-color: transparent; box-shadow: none; gap: 0.5rem; }
.hrw-contact--sent p { margin: 0; }
.hrw-contact__title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--x-large); line-height: 1.2; color: var(--wp--preset--color--primary-dark); }
@media (max-width: 600px) {
	.hrw-contact .wp-block-button,
	.hrw-contact button { width: 100%; }
}

/* ==========================================================================
   Affiliate product box + disclosure (mu-plugins/hrw-affiliates.php)
   ========================================================================== */
.hrw-product {
	display: flex;
	gap: clamp(1rem, 3vw, 1.75rem);
	align-items: center;
	margin-block: 2.5rem;
	padding: clamp(1rem, 3vw, 1.5rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.hrw-product__media { flex: 0 0 9.5rem; display: block; }
.hrw-product__img {
	display: block;
	width: 100%;
	height: 9.5rem;
	object-fit: contain;
	background: var(--wp--preset--color--white);
	border-radius: 12px;
}
.hrw-product__body { flex: 1; min-width: 0; display: grid; gap: 0.5rem; justify-items: start; }
.hrw-product__body p { margin: 0; }
.hrw-product__kicker {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--clay);
}
.hrw-product__title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.25; }
.hrw-product__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hrw-product__title a:hover { color: var(--wp--preset--color--primary); }
.hrw-product__text { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); line-height: 1.55; }
.hrw-product .wp-block-button { margin-top: 0.35rem; }
.hrw-product--missing { display: block; color: #8C1D18; background: #FBEAE8; border-color: transparent; }
.hrw-disclosure {
	font-size: var(--wp--preset--font-size--x-small) !important;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	padding: 0.6rem 0.9rem;
	background: var(--wp--preset--color--surface);
	border-radius: 10px;
}
@media (max-width: 600px) {
	.hrw-product { flex-direction: column; align-items: stretch; text-align: left; }
	.hrw-product__media { flex-basis: auto; }
	.hrw-product__img { height: 11rem; }
	.hrw-product .wp-block-button, .hrw-product .wp-block-button__link { width: 100%; text-align: center; }
	.hrw-product__body { justify-items: stretch; }
}

/* ==========================================================================
   AdSense units (mu-plugins/hrw-ads.php)
   ========================================================================== */
.hrw-ad {
	margin-block: 2.5rem;
	padding-block: 0.5rem 1rem;
	border-block: 1px solid var(--wp--preset--color--border);
	text-align: center;
	min-height: 300px; /* reserve the space up front so the text doesn't jump when the ad loads */
	box-sizing: border-box;
	clear: both;
}
.hrw-ad__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--taupe);
}
.hrw-ad .adsbygoogle { width: 100%; min-height: 250px; }
/* Collapse a unit Google couldn't fill instead of leaving a gap. */
.hrw-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.hrw-ad__placeholder {
	display: grid;
	place-items: center;
	min-height: 250px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
	background: repeating-linear-gradient(45deg, var(--wp--preset--color--surface) 0 12px, var(--wp--preset--color--base) 12px 24px);
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: 12px;
}
@media (max-width: 600px) {
	.hrw-ad { margin-block: 2rem; min-height: 290px; }
}

/* Photo credit under an article's featured image (attachment caption). */
.hrw-hero-credit { display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--wp--preset--color--muted); text-align: right; }
.hrw-hero-credit a { display: inline; height: auto; color: inherit; }

/* ==========================================================================
   Newsletter sign-up ([hrw_newsletter], mu-plugins/hrw-newsletter.php)
   ========================================================================== */
.hrw-newsletter__form { flex: 1 1 22rem; max-width: 30rem; min-width: 0; }
/* Keep the decorative circle behind the band's content */
.hrw-newsletter::after { z-index: 0; }
.hrw-newsletter > * { z-index: 1; }
.hrw-nl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; scroll-margin-top: 6rem; }
.hrw-nl p { margin: 0; }
.hrw-nl__row {
	display: flex;
	gap: 0.4rem;
	padding: 0.35rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.hrw-nl__row:focus-within { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px rgba(140, 198, 63, .35); }
.hrw-nl input[type="email"] {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 0.6rem 0.9rem;
	font: inherit;
	font-size: 1rem; /* 16px: no iOS zoom on focus */
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 0;
	outline: none;
}
.hrw-nl input[type="email"]::placeholder { color: var(--wp--preset--color--taupe); }
.hrw-nl .wp-block-button { margin: 0; flex-shrink: 0; }
.hrw-nl button { cursor: pointer; height: 100%; }
.hrw-nl__error { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: #B3261E; padding-left: 1rem; }
.hrw-nl__note { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--muted); padding-left: 1rem; }
.hrw-nl__note a { color: inherit; }
.hrw-nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hrw-nl--done, .hrw-nl--confirm {
	padding: 1.1rem 1.25rem;
	background: var(--wp--preset--color--white);
	border-radius: 18px;
	box-shadow: var(--wp--preset--shadow--soft);
	justify-items: start;
}
.hrw-nl__title { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); font-weight: 600; line-height: 1.25; color: var(--wp--preset--color--primary-dark); }
/* Larger version on the /newsletter/ page */
.hrw-nl--page .hrw-nl__row { padding: 0.45rem; }
.hrw-nl--page input[type="email"] { padding: 0.8rem 1.1rem; font-size: 1.0625rem; }
.hrw-prose .hrw-nl, .hrw-prose #hrw-nl-again { margin-block: 2rem; }
.hrw-nl-perks { list-style: none; padding-left: 0; display: grid; gap: 0.6rem; }
.hrw-nl-perks li { position: relative; padding-left: 2rem; }
.hrw-nl-perks li::before {
	content: "";
	position: absolute; left: 0; top: 0.3em;
	width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--wp--preset--color--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
@media (max-width: 420px) {
	/* Stack on very small phones so the button never squeezes the field */
	.hrw-nl__row { flex-direction: column; border-radius: 18px; }
	.hrw-nl input[type="email"] { flex: none; padding: 0.7rem 0.75rem; }
	.hrw-nl .wp-block-button, .hrw-nl button { width: 100%; height: auto; }
}

/* ==========================================================================
   Share buttons (mu-plugins/hrw-share.php)
   ========================================================================== */
.hrw-share {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
}
.hrw-share__title {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.hrw-share__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hrw-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	box-sizing: border-box; /* the copy <button> is border-box by default; match it on the <a> links */
	min-height: 2.5rem;
	padding: 0.45rem 0.95rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.hrw-share__btn svg { flex-shrink: 0; color: var(--wp--preset--color--primary); }
.hrw-share__btn:hover { background: var(--wp--preset--color--sage); border-color: var(--wp--preset--color--sage); color: var(--wp--preset--color--primary-dark); }
.hrw-share__btn:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
/* Phones: round icon-only buttons; the label stays available to screen readers. */
@media (max-width: 600px) {
	.hrw-share__btn { justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; }
	.hrw-share__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.hrw-share__btn svg { width: 20px; height: 20px; }
}
