/*
 * Rescue Theme: layout and component styles.
 * Colours, fonts and sizes come from theme.json (Site Editor > Styles), so everything here uses the
 * --wp--preset--* variables and re-colours with the style variations. Original work, GPL-2.0-or-later.
 */

:root {
	--rt-base: var(--wp--preset--color--base);
	--rt-text: var(--wp--preset--color--contrast);
	--rt-primary: var(--wp--preset--color--primary);
	--rt-link: var(--wp--preset--color--link);
	--rt-secondary: var(--wp--preset--color--secondary);
	--rt-tertiary: var(--wp--preset--color--tertiary);
	--rt-deep: var(--wp--preset--color--deep);
	--rt-highlight: var(--wp--preset--color--highlight);
	--rt-soft: var(--wp--preset--color--soft);
	--rt-notice: var(--wp--preset--color--notice);
	--rt-line: var(--wp--preset--color--line);
	--rt-alert: #f8fc8d;
	--rt-radius-panel: var(--wp--custom--radius--panel, 16px);
}

/* ---------- Base, focus, skip link, reduced motion ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks { padding-inline: 0; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--rt-secondary);
	outline-offset: 2px;
}
.rt-band :where(a, button, input, select, textarea, summary):focus-visible,
.site-footer .rt-newsletter :where(a, button, input, select, textarea):focus-visible {
	outline-color: var(--rt-base);
}

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	background: var(--rt-base); clip-path: none; color: var(--rt-text); display: block; font-weight: 600;
	height: auto; left: 8px; padding: 0.9rem 1.4rem; top: 8px; width: auto; z-index: 100000; text-decoration: none;
	box-shadow: 0 0 0 3px var(--rt-secondary);
}
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Links inside running text are underlined so colour is not the only cue. */
.entry-content p a, .wp-block-post-content p a, .wp-block-post-content li a, .rt-section p a, .rt-notice a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- Header ---------- */
.site-header { background: var(--rt-base); position: relative; z-index: 40; }
.site-header__inner { gap: 1.25rem; padding: 0.5rem 1.25rem; max-width: 1280px; box-sizing: border-box; }
@media (min-width: 783px) {
	.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
}
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
	background: var(--rt-soft); border-radius: 0 0 50% 50% / 0 0 100% 100%; clip-path: inset(0 0 0 0);
	transform: scaleY(-1); transform-origin: center; opacity: 0.9;
}
.site-main--home .rt-slides { margin-top: 2.25rem; }
.rt-slides { gap: 1.25rem; }
.rt-slides .wp-block-image { margin: 0; }
.rt-slides img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 3px solid var(--rt-secondary); box-sizing: border-box; }

.rescue-brand { flex: 0 0 auto; }
.rescue-brand__link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--rt-text); }
.rescue-brand__logo { display: block; width: auto; height: auto; max-height: var(--wp--custom--header--logo-height, 100px); max-width: 220px; object-fit: contain; }
.rescue-brand__name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.rescue-brand__text { display: flex; flex-direction: column; }
.rescue-brand__tagline { font-size: 0.8rem; opacity: 0.8; }
.rescue-brand__mark { color: var(--rt-secondary); display: inline-flex; }

.site-nav { flex: 1 1 auto; }
.site-nav .wp-block-navigation__container { gap: 0.15rem 0.4rem; }
.site-nav { font-size: 0.95rem; }
.site-nav .wp-block-navigation-item__content { padding: 0.55rem 0.75rem; text-decoration: none; }
.site-nav .wp-block-navigation-item__content:hover { color: var(--rt-primary); }
.site-nav .current-menu-item > .wp-block-navigation-item__content,
.site-nav .current-menu-ancestor > .wp-block-navigation-item__content,
.site-nav [aria-current="page"] { color: var(--rt-primary); }
.site-nav .wp-block-navigation__submenu-container {
	background: var(--rt-base); border: 1px solid var(--rt-line); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.25);
	min-width: 14rem; padding: 0.35rem 0;
}
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1rem; }
.site-nav .wp-block-navigation__responsive-container-open { background: var(--rt-secondary); color: var(--rt-base); padding: 0.55rem; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }

.rescue-donate .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; padding: 1.05rem 1.25rem; }
.rescue-donate .rescue-icon { flex: 0 0 auto; }
/* The button keeps its shape; when the header is crowded the menu wraps onto a second row instead. */
.rescue-donate { flex: 0 0 auto; }
.rescue-donate .wp-block-button__link { white-space: nowrap; }
.site-nav { min-width: 0; }
.rescue-donate .wp-block-button__link:focus-visible { outline-offset: 3px; }

@media (max-width: 781px) {
	.site-header__inner { flex-wrap: wrap !important; justify-content: center; text-align: center; padding-block: 0.75rem; }
	.rescue-brand__logo { max-height: 72px; max-width: 70vw; }
	.rescue-brand { order: 2; flex-basis: auto; }
	.site-nav { order: 1; flex: 0 0 100%; justify-content: flex-end; margin-bottom: -0.5rem; }
	.rescue-donate { order: 3; flex: 0 0 100%; }
	.rescue-donate { width: 100%; max-width: 100%; box-sizing: border-box; }
	.rescue-donate .wp-block-button, .rescue-donate .wp-block-button__link { width: 100%; box-sizing: border-box; justify-content: center; }
	.site-header::after { height: 14px; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link { text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.wp-block-button.is-style-green .wp-block-button__link { background: var(--rt-highlight); color: var(--rt-tertiary); font-weight: 600; font-size: 0.95rem; padding: 0.85rem 2.25rem; }
.wp-block-button.is-style-green .wp-block-button__link:hover,
.wp-block-button.is-style-green .wp-block-button__link:focus { background: var(--rt-tertiary); color: var(--rt-base); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--rt-primary); border: 2px solid currentColor; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--rt-primary); color: var(--rt-base); }

/* ---------- Layout helpers: bands, sections ---------- */
.wp-site-blocks .rt-band, .wp-site-blocks .rt-section, .wp-site-blocks .rt-footer-main, .wp-site-blocks .rt-footer-bar,
.wp-site-blocks .rt-newsletter { margin-block: 0; }
.rt-band { position: relative; padding: 5rem 1.25rem; }
.rt-band--blue { background: var(--rt-secondary); color: var(--rt-base); }
.rt-band--green { background: var(--rt-tertiary); color: var(--rt-base); }
.rt-band--navy { background: var(--rt-deep); color: var(--rt-base); }
.rt-band--blue h1, .rt-band--blue h2, .rt-band--blue h3, .rt-band--blue h4, .rt-band--blue h5,
.rt-band--navy h1, .rt-band--navy h2, .rt-band--navy h3, .rt-band--green h1, .rt-band--green h2, .rt-band--green h3, .rt-band--green h4, .rt-band--green h5 { color: var(--rt-base); }
.rt-band--navy a:not(.wp-block-button__link), .rt-band--blue a:not(.wp-block-button__link), .rt-band--green a:not(.wp-block-button__link) { color: var(--rt-base); }
.rt-band h2 { margin-bottom: 1.25rem; }
.rt-band p { font-size: 0.95rem; }
.rt-section { padding: 3.25rem 1.25rem; }
.rt-section--soft { background: var(--rt-soft); }
.rt-section--intro { padding-block: 4.5rem 2.5rem; }
.rt-cta { padding-block: 2.5rem; background: var(--rt-soft); text-align: center; }

.rt-curve-bottom { padding-bottom: 8rem; overflow: hidden; }
.rt-curve-bottom::after {
	content: ""; position: absolute; left: -8%; right: -8%; bottom: -1px; height: 64px; background: var(--rt-soft);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Icons are drawn as masks so page content never needs inline SVG (which WordPress strips for some users). */
.rt-badge::before, .rt-icon-square::before, .rt-icon-circle::before {
	content: ""; display: block; flex: 0 0 auto; width: 52%; height: 52%; background: currentColor;
	-webkit-mask: var(--rt-ic) center / contain no-repeat; mask: var(--rt-ic) center / contain no-repeat;
}
.rt-icon-square::before, .rt-icon-circle::before { width: 58%; height: 58%; }

/* Round and rounded-square icon badges that sit on the top edge of a band or panel. */
.rt-badge {
	position: absolute; left: 50%; display: flex; align-items: center; justify-content: center; color: var(--rt-base);
	transform: translateX(-50%); z-index: 2;
}
.rt-badge--on-edge, .rt-badge--inline { width: 104px; height: 104px; top: -52px; border-radius: 50%; background: var(--rt-tertiary); }
.rt-band--blue .rt-badge--on-edge { background: var(--rt-secondary); }
.rt-band--green .rt-badge--on-edge { background: var(--rt-tertiary); }
.rt-band--navy .rt-badge--on-edge { background: var(--rt-deep); }
.rt-badge--inline { position: static; transform: none; margin: -3.5rem auto 1rem; background: var(--rt-secondary); }
.rt-badge--top { width: 84px; height: 84px; top: -42px; border-radius: 16px; background: var(--rt-secondary); }
.rt-badge--top::before { width: 46px; height: 46px; }
.wp-block-html:has(> .rt-badge) { display: contents; }

.rt-icon-square { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; background: var(--rt-secondary); color: var(--rt-base); border-radius: 4px; }
.rt-icon-square--white { background: var(--rt-base); color: var(--rt-tertiary); width: 52px; height: 52px; flex-basis: 52px; border-radius: 0; }
.rt-icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rt-soft); color: var(--rt-secondary); margin: 0 auto 0.75rem; }
.rt-giftcard .wp-block-html { text-align: center; }

.rt-title-row { gap: 0.9rem; }
.rt-title-row h1, .rt-title-row h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
hr.wp-block-separator.rt-dotted-rule:not(.is-style-wide):not(.is-style-dots) { border: 0; border-top: 3px dotted #6d767b; background: none; height: 0; opacity: 1; margin-block: 1.1rem; max-width: none; width: 100%; }
hr.wp-block-separator.rt-rule:not(.is-style-wide):not(.is-style-dots) { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.55); background: none; height: 0; opacity: 1; margin-block: 1.5rem; max-width: none; width: 100%; }

/* ---------- Intro row: photo left, text right ---------- */
.rt-intro { gap: 6rem; align-items: center; }
.rt-intro .rt-photo { margin: 0; }
.rt-intro .rt-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto; }
.rt-intro p { font-size: 0.95rem; }
@media (max-width: 781px) { .rt-intro { gap: 1.5rem; } }

.rt-section--lead { padding-block: 2rem 4rem; }
.rt-lead { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.65rem); color: var(--rt-tertiary); line-height: 1.55; max-width: 80rem; margin-inline: auto; }

/* ---------- Notice and alert ---------- */
.rt-notice { background: var(--rt-notice); padding: 1.4rem 1.75rem; margin: 1.5rem auto 5rem; max-width: 1240px; font-size: 0.9rem; line-height: 1.7; }
.rt-notice p { margin: 0; }
.rt-notice__label { color: var(--rt-link); }
.rt-alert { background: var(--rt-alert); border: 2px solid #c9c93f; padding: 1.5rem 2rem; color: #1d1d00; }
.rt-alert__title, .rt-alert p { color: inherit; }
.rt-alert__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.rt-emphasis { color: var(--rt-secondary); font-weight: 500; }

/* ---------- Panels, cards ---------- */
.is-style-panel, .rt-panel {
	background: var(--rt-soft); border: 1px solid var(--rt-line); border-radius: var(--rt-radius-panel);
	box-shadow: var(--wp--preset--shadow--panel, 0 18px 40px -12px rgba(22, 43, 59, 0.28));
}
.rt-panel { position: relative; padding: 3.75rem 1.5rem 2.25rem; margin-top: 2.5rem; }
.rt-panel .wp-block-buttons { margin-top: 2rem; }
.is-style-notice-box { background: var(--rt-notice); padding: 1.25rem 1.5rem; }
.rt-section--featured .rt-panel { background: var(--rt-soft); }
.rt-section--featured h2 { margin-bottom: 0.5rem; }
.rt-section--featured { padding-bottom: 4.5rem; }

.rt-cards { gap: 1.25rem; }
.rt-giftcard { background: var(--rt-soft); border: 1px solid var(--rt-line); padding: 1.75rem 1.5rem; height: 100%; box-sizing: border-box; text-align: center; }
.rt-giftcard h3 { margin-block: 0.25rem 0.5rem; color: var(--rt-secondary); font-size: 1.15rem; }
.rt-giftcard p { font-size: 0.9rem; }
.rt-band .rt-giftcard { background: var(--rt-base); color: var(--rt-text); }
.rt-band .rt-giftcard p { color: var(--rt-text); }
.rt-band .rt-giftcard h3 { color: var(--rt-secondary); }
.rt-card { background: var(--rt-base); border: 6px solid var(--rt-base); color: var(--rt-text); height: 100%; padding: 0.4rem 0.4rem 1.25rem; box-sizing: border-box; min-height: 14rem; }
.rt-card__title.rt-card__title { background: var(--rt-secondary); color: var(--rt-base); font-size: 1rem; margin: 0 0 1rem; padding: 0.8rem 1.25rem; }
.rt-card .wp-block-list { padding-inline: 1.25rem; }
.rt-callout { background: var(--rt-base); color: var(--rt-text); padding: 2rem; margin-top: 2rem; text-align: center; }
.rt-callout h3 { color: var(--rt-secondary); }
.rt-section--other .rt-other-ways { gap: 1.5rem; }
.rt-section--other p { font-size: 0.88rem; }
.rt-form-slot { background: var(--rt-base); color: var(--rt-text); padding: 1.75rem; border-radius: 4px; }
.rt-form-slot--light { background: var(--rt-soft); }
.rt-caps { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Checklist with red chevrons ---------- */
.rt-checklist, ul.rt-checklist { list-style: none; margin: 0; padding: 0; }
.rt-checklist li { border-bottom: 1px dotted var(--rt-line); padding: 0.45rem 0 0.45rem 1.25rem; position: relative; font-size: 0.92rem; }
.rt-checklist li::before {
	content: ""; position: absolute; left: 0.1rem; top: 1.05em; width: 0.4em; height: 0.4em; border-top: 2px solid var(--rt-primary); border-right: 2px solid var(--rt-primary); transform: rotate(45deg);
}
.rt-side-title { font-size: 1.6rem; }
.rt-card .rt-checklist li { font-size: 0.85rem; }

/* ---------- Process steps ---------- */
.rt-band--steps .rt-step { position: relative; margin-block: 0 3.25rem; padding-top: 0; }
.rt-step__head { position: absolute; left: 0; top: 0; z-index: 1; width: min(34.4%, 30rem); min-height: 6rem; display: flex; align-items: center; background: var(--rt-deep); color: var(--rt-base); padding: 0.75rem 1.5rem 0.75rem 6.6rem; box-shadow: var(--wp--preset--shadow--step, 0 14px 30px -10px rgba(0, 0, 0, 0.35)); margin: 0; box-sizing: border-box; }
.rt-step__num { position: absolute; left: 2rem; bottom: 0; margin: 0 !important; width: 3.6rem; height: 3.2rem; background: var(--rt-secondary); color: var(--rt-base); display: flex; align-items: center; justify-content: center; font-weight: 500; }
.rt-step__title.rt-step__title { margin: 0; color: var(--rt-base); font-size: 1.35rem; font-weight: 500; }
.rt-step__body { background: var(--rt-base); color: var(--rt-text); margin-left: 15%; padding: 2rem 2rem 2rem 21%; min-height: 12.5rem; display: flex; align-items: flex-start; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
.rt-step__body p { margin: 0; font-size: 0.9rem; line-height: 1.7; }
@media (max-width: 781px) {
	.rt-step__head { position: static; width: auto; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
	.rt-step__num { position: static; width: 2.4rem; height: 2.4rem; flex: 0 0 2.4rem; }
	.rt-step__body { margin-left: 0; padding: 1.25rem; }
}

/* ---------- Page title panel (page-intro template), FAQ, success stories ---------- */
.page-intro { padding-top: 4rem; }
.page-intro__panel { position: relative; padding: 4.5rem 2rem 3.5rem; text-align: center; }
.page-intro__panel h1 { color: var(--rt-secondary); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0; }
.rt-section--panel { padding-bottom: 0; }
.rt-page-panel { padding: 3rem 1.5rem; }
.rt-page-panel h1 { color: var(--rt-secondary); }
.rt-section--stories .wp-block-search { margin-bottom: 2rem; }
.wp-block-search__inside-wrapper { gap: 0.5rem; }
.wp-block-search__input { border: 1px solid var(--rt-line); padding: 0.65rem 0.9rem; font: inherit; border-radius: 0; background: var(--rt-base); color: var(--rt-text); }
.story-card__title a, .rt-stories .wp-block-post-title a { color: var(--rt-secondary); text-decoration: none; }
.story-card__title { margin-bottom: 0.25rem; font-size: 1.5rem; }
.story-card__meta, .post-meta { font-size: 0.8rem; opacity: 0.8; }
.rt-stories .wp-block-post-template > li { background: var(--rt-base); border: 1px solid var(--rt-line); padding: 0 0 1.25rem; box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.3); }
.rt-stories .wp-block-post-template > li > :not(.story-card__image) { padding-inline: 1.1rem; margin-block-start: 0.75rem; }
.rt-stories .wp-block-post-featured-image img { width: 100%; object-fit: cover; display: block; }
.rt-stories .wp-block-post-excerpt { font-size: 0.88rem; }

.rt-band--faq .wp-block-details, .rt-faq-item { background: var(--rt-base); color: var(--rt-text); margin-block: 0 0.6rem; border: 0; padding: 0; }
.rt-faq-item summary { cursor: pointer; padding: 0.9rem 1.25rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.rt-faq-item summary::-webkit-details-marker { display: none; }
.rt-faq-item summary::after { content: "+"; color: var(--rt-primary); font-size: 1.3rem; line-height: 1; }
.rt-faq-item[open] summary::after { content: "\2212"; }
.rt-faq-item > :not(summary) { padding: 0 1.25rem 1rem; margin: 0; font-size: 0.9rem; }
.rt-band--faq a { color: var(--rt-primary) !important; }
.rt-band--faq .rt-faq-item summary:focus-visible { outline-color: var(--rt-secondary); outline-offset: -3px; }

/* ---------- Contact page ---------- */
.rt-contact { gap: 3rem; }
.rt-contact-panel { padding: 2rem 1.5rem; margin: 0; }
.rt-contact-panel h3 { margin-top: 0; font-size: 1.1rem; }
.rt-contact-panel .rt-photo img { width: 100%; border-radius: 6px; }
.rt-events { border: 1px solid var(--rt-line); border-radius: 4px; padding: 0.75rem 1rem; background: var(--rt-base); }
.rt-events__empty { font-style: italic; font-size: 0.85rem; margin: 0; }
.rt-section--events { padding-top: 5rem; padding-bottom: 4rem; max-width: 1380px; }
.rescue-empty-note { background: var(--rt-notice); border: 1px dashed var(--rt-secondary); padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--rt-text); }

/* ---------- Dog cards from the Rescue Listings plugin ---------- */
.rl-wrap { --rl-gap: 1.25rem; --rl-radius: 0; --rl-border: var(--rt-line); --rl-muted: var(--rt-text); --rl-accent: var(--rt-primary); --rl-card-bg: var(--rt-base); }
.rl-wrap .rl-card { border: 0; border-radius: 0; background: var(--rt-base); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.rl-wrap .rl-card-link { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-content: stretch; text-decoration: none; color: var(--rt-text); }
/* Photo shape comes from the plugin's --rl-photo-ratio (set in Rescue Settings); here the status strip is laid over its bottom edge. */
.rl-wrap .rl-photo { grid-row: 1; grid-column: 1; background: var(--rt-soft); }
.rl-wrap .rl-status {
	grid-row: 1; grid-column: 1; align-self: end; z-index: 1; padding: 0.55rem 0.5rem; background: var(--wp--custom--overlay, rgba(0, 0, 0, 0.62));
	color: #fff; text-align: center; text-transform: none; letter-spacing: 0; font-size: 0.8rem; font-weight: 400;
}
.rl-wrap .rl-name { grid-row: 2; padding: 1.1rem 1.25rem 2.4rem; font-size: 1rem; font-weight: 600; color: var(--rt-link); }
.rl-wrap .rl-card-link:hover .rl-name, .rl-wrap .rl-card-link:focus .rl-name { text-decoration: underline; }
.rl-wrap .rl-meta { grid-row: 3; margin-top: 0; padding: 0.7rem 1.25rem 1rem; background: #fafafa; border-top: 1px solid var(--rt-line); font-size: 0.8rem; color: var(--rt-text); }
.rl-wrap .rl-nophoto { background: var(--rt-soft); }
.rl-wrap .rl-notice { background: var(--rt-base); color: var(--rt-text); border: 1px solid var(--rt-line); }
.rt-band--adopted .rl-wrap .rl-meta, .rt-band--adopted .rl-wrap .rl-status { display: none; }
.rt-band--adopted .rl-wrap .rl-name { padding-bottom: 2.25rem; }
.rt-band--adopted { padding-top: 5rem; }
.rt-band--adopted h2 { margin-top: 0; }
.rt-band--grid { padding-top: 3rem; }

/* Detail view */
.rl-wrap.rl-detail { color: var(--rt-text); }
.rl-detail .rl-back a { font-size: 0.9rem; }
.rl-detail .rl-title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); color: var(--rt-tertiary); }
.rl-detail .rl-main { border-radius: 0; }
.rl-detail .rl-thumbs img { border: 2px solid var(--rt-base); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.rl-detail .rl-facts { background: var(--rt-soft); padding: 1rem 1.25rem; font-size: 0.9rem; }
.rl-detail .rl-facts dt { color: var(--rt-secondary); }
.rt-band--grid:has(.rl-detail) { background: var(--rt-base); color: var(--rt-text); padding-top: 3rem; }
.rt-band--grid:has(.rl-detail) a:not(.wp-block-button__link) { color: var(--rt-link); }
.site-main:has(.rl-detail) .rt-section--intro { display: none; }

/* ---------- Newsletter band ---------- */
.rt-newsletter { padding-block: 3.5rem; }
.rt-newsletter__cols { gap: 3rem; }
.rt-newsletter .rt-title-row { margin-bottom: 1rem; }
.rt-newsletter h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.rt-newsletter p { font-size: 1.05rem; }
.rescue-newsletter-form .wp-block-button__link { display: inline-flex; gap: 0.5rem; align-items: center; }

/* ---------- Footer ---------- */
.rt-footer-main { background: var(--rt-soft); padding: 4rem 1.25rem; }
.rt-footer-cols { gap: 3rem; margin: 0; }
.rt-footer-main h3 { font-size: 1.35rem; font-weight: 500; margin: 1.1rem 0 0.35rem; }
.rt-footer-main .wp-block-column > h3:first-child { margin-top: 0; }
.rt-footer-main { font-size: 0.95rem; }
.rt-footer-main .rescue-contact { font-style: normal; }
.rt-footer-main .rescue-contact p { margin: 0 0 1rem; }
.rt-footer-main .rescue-contact a { color: var(--rt-text); text-decoration: none; }
.rt-footer-main .rescue-contact a:hover { text-decoration: underline; }
.rt-linklist, ul.rt-linklist { list-style: none; margin: 0; padding: 0; }
.rt-linklist li { margin: 0 0 0.75rem; font-size: 0.95rem; }
.rt-linklist a { text-decoration: none; }
.rt-linklist a:hover { text-decoration: underline; }
.rt-footer-main .rescue-legal { font-size: 0.92rem; }
.rt-footer-main .rescue-legal p { margin: 0 0 1.1rem; }
.rt-footer-main .rescue-social { margin-top: 1.25rem; }
.rt-footer-main .rescue-social .wp-block-social-links { gap: 0.75rem; }
.rt-footer-main .wp-block-social-link a { color: var(--rt-secondary); }
.rt-footer-bar { border-top: 1px solid var(--rt-line); padding: 1.5rem 1.25rem; font-size: 0.9rem; background: var(--rt-base); }
.rt-footer-bar p { margin: 0; }
.rescue-copyright { display: flex; flex-wrap: wrap; gap: 0.5rem 3rem; align-items: center; justify-content: space-between; width: 100%; }
.rescue-legal :where(a) { text-decoration: underline; }

/* ---------- Blog and posts (simple) ---------- */
.site-main--padded { padding-block: 3rem 4rem; }
.wp-block-query-pagination { margin-top: 2rem; gap: 1rem; }
.wp-block-post-template.is-layout-grid { gap: 1.5rem; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-comments { margin-top: 3rem; }
.alignfull > .wp-block-post-content, .wp-block-post-content.alignfull { max-width: none; }

/* Social icons from core's social links, in the theme colour instead of each network's own. */
.rescue-social .wp-block-social-links .wp-social-link, .rescue-social .wp-block-social-links .wp-social-link a { color: var(--rt-secondary) !important; background: transparent !important; }
.rescue-social .wp-block-social-links .wp-social-link svg { fill: currentColor; }
.rescue-social .wp-block-social-links .wp-social-link a:hover { color: var(--rt-primary) !important; }

/* Icon shapes (drawn for this theme) */
.rt-ic--heart { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22black%22 d=%22M12 21.5C5 16.7 2 13 2 9a5 5 0 0 1 10-1.5A5 5 0 0 1 22 9c0 4-3 7.7-10 12.5z%22/%3E%3C/svg%3E"); }
.rt-ic--paw { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22black%22%3E%3Ccircle cx=%225.5%22 cy=%2210.5%22 r=%222.2%22/%3E%3Ccircle cx=%229.5%22 cy=%225.8%22 r=%222.2%22/%3E%3Ccircle cx=%2214.5%22 cy=%225.8%22 r=%222.2%22/%3E%3Ccircle cx=%2218.5%22 cy=%2210.5%22 r=%222.2%22/%3E%3Cpath d=%22M12 11c-3 0-6 3.2-6 6 0 2 1.5 3 3 3 1.2 0 1.8-.5 3-.5s1.8.5 3 .5c1.5 0 3-1 3-3 0-2.8-3-6-6-6z%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--dog { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7.5 4.5 3 8l1.2 6.2C4.8 18 7.6 20 12 20s7.2-2 7.8-5.800L21 8l-4.500-3.500-2 2h-5z%22/%3E%3Cpath d=%22M10.500 15.500h3l-1.500 1.800z%22/%3E%3C/g%3E%3Ccircle cx=%229%22 cy=%2211.500%22 r=%221.100%22 fill=%22black%22/%3E%3Ccircle cx=%2215%22 cy=%2211.500%22 r=%221.100%22 fill=%22black%22/%3E%3C/svg%3E"); }
.rt-ic--hands { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 20.500C6 16.500 3 13 3 9.500a4.500 4.500 0 0 1 9-1.500 4.500 4.500 0 0 1 9 1.500c0 3.500-3 7-9 11z%22/%3E%3Cpath d=%22m8.500 12 3 2.500 4-4%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--plane { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21.500 3 2.500 10.500l7 2.500 2.500 7.500z%22/%3E%3Cpath d=%22m9.500 13 12-10%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--phone { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M5 4h4l2 5-2.500 1.500a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z%22/%3E%3C/svg%3E"); }
.rt-ic--pin { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21.500s-7-6-7-11.500a7 7 0 0 1 14 0c0 5.500-7 11.500-7 11.500z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222.500%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--mail { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22m3 7 9 6 9-6%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--info { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 11v6%22/%3E%3C/g%3E%3Ccircle cx=%2212%22 cy=%227.800%22 r=%221.200%22 fill=%22black%22/%3E%3C/svg%3E"); }
.rt-ic--help { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M9.500 9.500a2.500 2.500 0 1 1 3.500 2.300c-.7.400-1 .9-1 1.700%22/%3E%3C/g%3E%3Ccircle cx=%2212%22 cy=%2217%22 r=%221.200%22 fill=%22black%22/%3E%3C/svg%3E"); }
.rt-ic--dollar { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M14.500 9.500C14 8.500 13 8 12 8c-1.500 0-2.500.8-2.500 2s1 1.700 2.500 2 2.500.8 2.500 2-1 2-2.500 2c-1 0-2-.5-2.500-1.500M12 6v2m0 8v2%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--calendar { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.500%22 y=%225%22 width=%2217%22 height=%2215%22 rx=%222%22/%3E%3Cpath d=%22M3.500 10h17M8 3v4M16 3v4%22/%3E%3C/g%3E%3C/svg%3E"); }
.rt-ic--check { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22m5 12.500 4.500 4.500L19 7.500%22/%3E%3C/svg%3E"); }
.rt-ic--home { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M3.500 11 12 4l8.500 7M6 9.500V20h12V9.500M10 20v-5h4v5%22/%3E%3C/svg%3E"); }
.rt-ic--chevron { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E"); }
.rt-ic--people { --rt-ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223.500%22/%3E%3Cpath d=%22M2.500 20c0-3.500 2.800-6 6.500-6s6.500 2.500 6.500 6M16 4.800a3.500 3.500 0 0 1 0 6.400M18 14.500c2 .8 3.500 2.700 3.500 5.500%22/%3E%3C/g%3E%3C/svg%3E"); }

/* Donate page: form column and ways column side by side */
.rt-split-wrap { padding: 0; }
.rt-split { gap: 0; margin: 0; }
.rt-donate-form { background: var(--rt-tertiary); color: var(--rt-base); padding: 3rem 2.5rem; height: 100%; box-sizing: border-box; }
.rt-donate-form h2 { color: var(--rt-base); font-size: 1.75rem; margin: 1rem 0; }
.rt-donate-ways { padding: 3rem 3.5rem; }
.rt-donate-ways h2 { font-size: 1.75rem; }
.rt-way-title.rt-way-title { color: var(--rt-tertiary); font-size: 1.15rem; font-weight: 700; margin-block: 1.75rem 0.25rem; }
.rt-donate-ways p { font-size: 0.9rem; }
@media (max-width: 781px) { .rt-donate-form, .rt-donate-ways { padding: 2rem 1.25rem; } }

/* Smaller sub-headings that keep a correct heading order (h3 under h2) */
.rt-h-sub { font-size: 1.75rem; font-weight: 500; }
.rt-h-col { font-size: 1.2rem; font-weight: 500; }
.rt-card__title.rt-card__title { font-size: 1rem; }

/* Content widths inside the full-width bands (they follow the design's grid, a little narrower than the page margins) */
.rt-slides { max-width: 1260px; margin-inline: auto; }
.rt-section--featured .rt-panel { max-width: 1310px; margin-inline: auto; }
.rt-band--adopted .rl-wrap, .rt-band--grid .rl-wrap { max-width: 1260px; margin-inline: auto; }
.rt-footer-cols, .rt-footer-bar__inner, .rt-newsletter__cols { max-width: 1280px; margin-inline: auto; }

.rt-band--faq .wp-block-details { max-width: 1360px; margin-inline: auto; margin-bottom: 0.6rem; }
.rt-band--faq { padding-block: 3.5rem 4rem; }

/* Phone menu overlay: flat sub-menus */
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 0; }

/* Posts shown as cards (success stories, blog): same photo shape and focal point as the dog cards, equal heights */
.rt-stories .wp-block-post-featured-image img, .story-card__image img { aspect-ratio: var(--rl-photo-ratio, 4 / 3) !important; object-fit: cover !important; object-position: var(--rl-photo-position, center 30%) !important; width: 100%; height: auto; }
.rt-stories .wp-block-post-template > li, .wp-block-post-template.is-layout-grid > li { display: flex; flex-direction: column; }
.rt-stories .wp-block-post-template > li > .wp-block-post-excerpt { flex: 1 1 auto; }

/* Donate page: the embedded payment form needs room. Half the page on wide screens, full width below 1100px, and less padding around it. */
.rt-donate-form .rt-form-slot { padding: 1rem; }
.rt-donate-form .rl-pay iframe { width: 100%; max-width: 100%; border: 0; }
@media (max-width: 1100px) {
	.rt-split { flex-wrap: wrap !important; }
	.rt-split > .wp-block-column { flex-basis: 100% !important; }
}
