/* DonorSeek Site Tweaks 1.2.0
   Design standard (Option A "Plain ledger"): Public Sans + IBM Plex Mono, white with a light green-grey band,
   one accent colour, hairline rules, plain buttons. Page styles are scoped to body.ds-site (block-built pages);
   header/footer styles to body.ds-chrome (Astra header and footer). Elementor pages are untouched. */

:root {
	--ds-ink: #17211c;
	--ds-muted: #4b5751;
	--ds-rule: #d9dfdb;
	--ds-rule-soft: #eceFed;
	--ds-band: #f5f7f5;
	--ds-field: #b9c3bd;
	--ds-accent: #1c6b4e;
	--ds-accent-dark: #145139;
	--ds-font: 'Public Sans', 'Segoe UI', Arial, sans-serif;
	--ds-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
	--ds-max: 1200px;
	--ds-pad: 24px;
}

/* Point Astra's global colours at the design standard on new pages and the new header/footer,
   so theme defaults (outline buttons, links, scroll-to-top) follow the accent instead of Astra blue. */
body.ds-site,
body.ds-chrome {
	--ast-global-color-0: #1c6b4e;
	--ast-global-color-1: #145139;
	--ast-global-color-2: #17211c;
	--ast-global-color-3: #17211c;
	--ast-global-color-5: #f5f7f5;
	--ast-global-color-7: #d9dfdb;
}

/* ---------- Base (block pages) ---------- */

body.ds-site {
	font-family: var(--ds-font);
	color: var(--ds-ink);
	background: #fff;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.ds-site h1, .ds-site h2, .ds-site h3, .ds-site h4 {
	font-family: var(--ds-font);
	color: var(--ds-ink);
	margin: 0;
	text-wrap: balance;
}
.ds-site h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; }
.ds-site h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.ds-site h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.ds-site p { margin: 0; text-wrap: pretty; }
.ds-site a { color: var(--ds-accent); text-underline-offset: 3px; }
.ds-site a:hover { color: var(--ds-accent-dark); }
.ds-site :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }

/* Astra page wrappers: let the sections run full width and drop default spacing */
.ds-site #content > .ast-container,
.ds-site .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.ds-site #primary { margin: 0; padding: 0; width: 100%; }
.ds-site .entry-content > * { margin-block: 0; }
.ds-site .entry-content { margin: 0; }
.ds-site .entry-header, .ds-site .post-thumb-img-content { display: none; }
.ds-site article.ast-article-single,
.ds-site .ast-separate-container .ast-article-single { padding: 0; margin: 0; background: transparent; }

/* Group inner containers (added by WordPress for classic themes) must not break the layouts below */
.ds-site .wp-block-group > .wp-block-group__inner-container { display: contents; }

/* WordPress adds block-gap margins between children of groups; the layouts here use gap instead */
.ds-site .entry-content .is-layout-flow:not(.ds-prose) > *,
.ds-site .entry-content .wp-block-group:not(.ds-prose) > * { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Layout ---------- */

.ds-section {
	padding: 88px var(--ds-pad);
	border-top: 1px solid var(--ds-rule);
	scroll-margin-top: 80px;
}
.ds-section--band { background: var(--ds-band); }
.ds-section--hero { padding-top: 72px; padding-bottom: 0; border-top: 0; }
.ds-section--first { border-top: 0; }

.ds-wrap {
	max-width: var(--ds-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.ds-wrap--narrow { max-width: 760px; }

.ds-stack { display: flex; flex-direction: column; gap: 20px; }
.ds-stack--tight { gap: 12px; }

.ds-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
	gap: 40px 64px;
	align-items: start;
}
.ds-grid-2.ds-center { align-items: center; }
.ds-grid-2.ds-end { align-items: end; }

.ds-split { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-start; }
.ds-split > :first-child { flex: 1 1 260px; }
.ds-split > :last-child { flex: 3 1 560px; min-width: 0; }

/* ---------- Text pieces ---------- */

.ds-label {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--ds-mono);
	font-size: 13px;
	color: var(--ds-muted);
}
.ds-label::after { content: ""; flex: 1; height: 1px; background: var(--ds-rule); }
.ds-site h2.ds-label { font-family: var(--ds-mono); font-size: 13px; font-weight: 400; color: var(--ds-muted); letter-spacing: 0; line-height: 1.6; }

.ds-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ds-mono);
	font-size: 13px;
	color: var(--ds-muted);
}
.ds-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--ds-accent); flex: none; }

.ds-lead { font-size: 19px; color: var(--ds-muted); }
.ds-muted { color: var(--ds-muted); }
.ds-note { font-size: 14px; color: var(--ds-muted); }
.ds-mission { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.ds-mono { font-family: var(--ds-mono); }

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

.ds-site .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 0; }
.ds-site .wp-block-button { margin: 0; }
.ds-site .wp-block-button__link,
.ds-site .wp-block-button .wp-block-button__link {
	font-family: var(--ds-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 4px;
	padding: 0 20px;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	background: var(--ds-accent);
	color: #fff;
	border: 1.5px solid var(--ds-accent);
	text-decoration: none;
	box-shadow: none;
}
.ds-site .wp-block-button__link:hover { background: var(--ds-accent-dark); border-color: var(--ds-accent-dark); color: #fff; }
.ds-site .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
.ds-site .wp-block-button.is-style-outline .wp-block-button__link { background: #fff; color: var(--ds-accent); border-color: var(--ds-accent); }
.ds-site .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ds-band); color: var(--ds-accent-dark); }
.ds-site .wp-block-button.ds-btn-link .wp-block-button__link {
	background: none; border: 0; padding: 0; min-height: 44px;
	color: var(--ds-accent); text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Hero paths ---------- */

.ds-paths { display: flex; flex-direction: column; border-top: 1px solid var(--ds-rule); }
.ds-path {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ds-rule);
}
.ds-path-text { display: flex; flex-direction: column; }
.ds-path-title { font-weight: 600; }
.ds-path-sub { font-size: 15px; color: var(--ds-muted); }

/* ---------- Screenshots ---------- */

.ds-frame { background: var(--ds-band); border: 1px solid var(--ds-rule); padding: clamp(12px, 2vw, 24px); }
.ds-frame .wp-block-image, .ds-frame figure { margin: 0; }
.ds-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--ds-rule); }
.ds-frame--hero { border-bottom: 0; padding-bottom: 0; }
.ds-frame--hero img { border-bottom: 0; }
.ds-photo img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Crop wide screenshots to the part that matters on small screens */
@media (max-width: 700px) {
	.ds-crop img { height: 240px; object-fit: cover; object-position: var(--ds-focus, 50% 0); }
	.ds-crop--right { --ds-focus: 42% 0; }
	.ds-crop--left { --ds-focus: 0 0; }
}

/* ---------- Lists ---------- */

.ds-site .ds-features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ds-rule); }
.ds-site .ds-features li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--ds-rule); color: var(--ds-muted); font-size: 16px; }
.ds-site .ds-features li strong { display: block; color: var(--ds-ink); font-weight: 600; font-size: 17px; }
/* Two-column variant (charities). Rows share one rule line; collapses to one column on phones. */
.ds-site .ds-features--cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
	column-gap: 64px;
	border-top: 0;
}
.ds-site .ds-features--cols li { border-top: 1px solid var(--ds-rule); margin-top: -1px; }

.ds-site .ds-steps {
	list-style: none;
	counter-reset: ds-step;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	border-top: 2px solid var(--ds-ink);
}
.ds-site .ds-steps li {
	counter-increment: ds-step;
	margin: 0;
	padding: 24px 24px 24px 0;
	border-bottom: 1px solid var(--ds-rule);
	color: var(--ds-muted);
}
.ds-site .ds-steps li::before {
	content: counter(ds-step, decimal-leading-zero);
	display: block;
	font-family: var(--ds-mono);
	font-size: 14px;
	color: var(--ds-accent);
	margin-bottom: 8px;
}
.ds-site .ds-steps li strong { display: block; color: var(--ds-ink); font-weight: 600; font-size: 19px; margin-bottom: 4px; }

.ds-site .ds-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ds-rule); font-size: 15px; }
.ds-site .ds-checks li { position: relative; margin: 0; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--ds-rule-soft); }
.ds-site .ds-checks li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 16px;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--ds-accent);
	border-bottom: 2px solid var(--ds-accent);
	transform: rotate(-45deg);
}

/* ---------- Pricing ---------- */

.ds-pricing { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ds-pricing > .ds-price-table { flex: 3 1 560px; min-width: 0; }
.ds-pricing > .ds-card { flex: 2 1 340px; min-width: 0; }

.ds-site .ds-price-table { margin: 0; background: #fff; border: 1px solid var(--ds-rule); overflow-x: auto; }
.ds-site .ds-price-table table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.ds-site .ds-price-table thead,
.ds-site .ds-price-table tfoot { border: 0; }
.ds-site .ds-price-table th, .ds-site .ds-price-table td { word-break: normal; overflow-wrap: normal; hyphens: none; }
.ds-site .ds-price-table th,
.ds-site .ds-price-table td { border: 0; border-bottom: 1px solid var(--ds-rule-soft); padding: 10px 16px; vertical-align: middle; }
.ds-site .ds-price-table thead th { border-bottom: 1px solid var(--ds-rule); font-weight: 600; padding-top: 18px; padding-bottom: 14px; line-height: 1.35; }
.ds-site .ds-price-table thead th:first-child { font-size: 20px; font-weight: 700; text-align: left; }
.ds-site .ds-price-table th:not(:first-child),
.ds-site .ds-price-table td:not(:first-child) { text-align: center; width: 112px; color: var(--ds-accent); font-weight: 600; }
.ds-site .ds-price-table thead th:not(:first-child) { color: var(--ds-ink); }
.ds-site .ds-price-table th:nth-child(3),
.ds-site .ds-price-table td:nth-child(3) { background: var(--ds-band); }
.ds-site .ds-price-table td:first-child { text-align: left; color: var(--ds-ink); font-weight: 400; }
.ds-site .ds-price-table tfoot td { border-bottom: 0; padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
.ds-site .ds-price-table tfoot td a { color: var(--ds-accent); font-weight: 600; }
.ds-site .ds-price-table .wp-element-caption { display: none; }

.ds-card { background: #fff; border: 1px solid var(--ds-rule); padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.ds-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ds-card-price { font-family: var(--ds-mono); font-weight: 500; font-size: 18px; text-align: right; }

/* ---------- About page ---------- */

.ds-beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 64px; }
.ds-belief {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 4px 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--ds-rule);
}
.ds-belief > * { grid-column: 2; }
.ds-belief > .ds-num { grid-column: 1; grid-row: 1 / span 2; font-family: var(--ds-mono); font-size: 14px; color: var(--ds-accent); padding-top: 4px; }
.ds-belief > p:not(.ds-num) { color: var(--ds-muted); }

.ds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 2px solid var(--ds-ink); }
.ds-stat { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--ds-rule); display: flex; flex-direction: column; gap: 8px; }
.ds-stat-num { font-family: var(--ds-mono); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.ds-source { font-size: 13px; color: var(--ds-muted); }

/* ---------- Long text pages (privacy, terms) ---------- */

.ds-prose { font-size: 17px; }
.ds-prose h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 12px; }
.ds-prose h3 { font-size: 19px; margin: 28px 0 8px; }
.ds-prose p, .ds-prose ul, .ds-prose ol { margin: 0 0 14px; }
.ds-prose li { margin-bottom: 6px; }
.ds-prose ul, .ds-prose ol { padding-left: 1.3em; }

/* ---------- Contact Form 7 ---------- */

.ds-site .wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.ds-site .wpcf7 p { margin: 0; }
.ds-site .wpcf7 label { display: block; font-weight: 600; font-size: 15px; }
.ds-site .wpcf7 input[type="text"],
.ds-site .wpcf7 input[type="email"],
.ds-site .wpcf7 input[type="tel"],
.ds-site .wpcf7 textarea,
.ds-site .wpcf7 select {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	font: inherit;
	font-size: 16px;
	color: var(--ds-ink);
	background: #fff;
	border: 1px solid var(--ds-field);
	border-radius: 4px;
	padding: 11px 14px;
	min-height: 46px;
}
.ds-site .wpcf7 textarea { min-height: 160px; resize: vertical; }
.ds-site .wpcf7 input:focus, .ds-site .wpcf7 textarea:focus { outline: 2px solid var(--ds-accent); outline-offset: 1px; border-color: var(--ds-accent); }
.ds-site .wpcf7 input[type="submit"] {
	align-self: flex-start;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	background: var(--ds-accent);
	color: #fff;
	border: 1.5px solid var(--ds-accent);
	border-radius: 4px;
	padding: 0 22px;
	min-height: 46px;
	cursor: pointer;
}
.ds-site .wpcf7 input[type="submit"]:hover { background: var(--ds-accent-dark); }
.ds-site .wpcf7-not-valid-tip { color: #a3261b; font-size: 14px; font-weight: 400; }
.ds-site .wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 14px; border-radius: 4px; font-size: 15px; }

/* ---------- Search (404 page) ---------- */

.ds-site .wp-block-search__label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.ds-site .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.ds-site .wp-block-search__input {
	flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ds-ink);
	border: 1px solid var(--ds-field); border-radius: 4px; padding: 0 14px; min-height: 46px; background: #fff;
}
.ds-site .wp-block-search__button {
	font: inherit; font-size: 16px; font-weight: 600; margin: 0;
	background: var(--ds-accent); color: #fff; border: 1.5px solid var(--ds-accent); border-radius: 4px;
	padding: 0 20px; min-height: 46px; cursor: pointer;
}
.ds-site .wp-block-search__button:hover { background: var(--ds-accent-dark); }

/* ---------- 404 ---------- */

.ds-404 { padding: 24px 0 48px; }

/* ---------- Astra header and footer (new chrome) ---------- */

body.ds-chrome { font-family: var(--ds-font); }
.ds-chrome .site-header { border-bottom: 1px solid var(--ds-rule); }
.ds-chrome .site-header .main-header-bar,
.ds-chrome .site-header .ast-primary-header-bar { background: #fff; border-bottom: 0; }
.ds-chrome .site-title, .ds-chrome .site-description { display: none; }
.ds-chrome .custom-logo { max-height: 44px; width: auto; }
.ds-chrome .main-header-menu .menu-link { font-family: var(--ds-font); font-size: 15px; color: var(--ds-ink); }
.ds-chrome .main-header-menu .menu-item > .menu-link { color: var(--ds-ink); }
.ds-chrome .main-header-menu .menu-item:hover > .menu-link,
.ds-chrome .main-header-menu .menu-item > .menu-link[aria-current="page"] { color: var(--ds-accent); }
/* Login links as buttons: centred in the header, not stretched to its full height */
.ds-chrome .main-header-menu .ds-login { display: flex; align-items: center; }
.ds-chrome .main-header-menu .ds-login > .menu-link {
	border: 1px solid var(--ds-field);
	border-radius: 4px;
	padding: 0 14px;
	height: 44px;
	min-height: 44px;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}
.ds-chrome .main-header-menu .ds-login > .menu-link:hover { border-color: var(--ds-accent); }
.ds-chrome #ast-mobile-header .main-header-menu .menu-link,
.ds-chrome .ast-mobile-popup-content .menu-link { color: var(--ds-ink); background: #fff; }
.ds-chrome #ast-mobile-header .ds-login { display: block; }
.ds-chrome #ast-mobile-header .ds-login > .menu-link { margin: 8px 20px; height: 44px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--ds-field); border-radius: 4px; }
.ds-chrome .menu-toggle { min-width: 44px; min-height: 44px; }

.ds-chrome .site-footer { border-top: 1px solid var(--ds-rule); background: #fff; font-size: 14px; color: var(--ds-muted); }
.ds-chrome .site-footer a { color: var(--ds-muted); }
.ds-chrome .site-below-footer-wrap,
.ds-chrome .site-primary-footer-wrap,
.ds-chrome .site-above-footer-wrap { background: #fff; border-top: 0; }
.ds-chrome .site-footer .ast-builder-grid-row { max-width: var(--ds-max); }
.ds-chrome .site-footer .menu-link { padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; }
.ds-chrome .site-footer a:hover { color: var(--ds-accent); }

/* Sticky header */
.ds-chrome #masthead { position: sticky; top: 0; z-index: 99; }
.admin-bar.ds-chrome #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar.ds-chrome #masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar.ds-chrome #masthead { top: 0; } }

/* Astra scroll-to-top button */
.ds-chrome #ast-scroll-top { background-color: var(--ds-accent); color: #fff; border-radius: 4px; }
.ds-chrome #ast-scroll-top:hover { background-color: var(--ds-accent-dark); }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	.ds-section { padding: 64px 20px; }
	.ds-section--hero { padding-top: 48px; padding-bottom: 0; }
	.ds-wrap { gap: 32px; }
	.ds-path .wp-block-buttons { width: 100%; }
	.ds-photo { max-width: 320px; }
	.ds-site .ds-price-table th, .ds-site .ds-price-table td { padding: 10px 10px; font-size: 14px; }
	.ds-site .ds-price-table th:not(:first-child),
	.ds-site .ds-price-table td:not(:first-child) { width: 72px; }
	.ds-site .ds-price-table thead th:first-child { font-size: 18px; }
	.ds-site .ds-price-table thead th:not(:first-child) { font-size: 13px; }
}

/* ---------- Links inside text (1.2.2) ----------
   Links that sit inside a sentence, table cell or the footer copyright are underlined,
   so they can be told apart without relying on colour (accessibility). Buttons and menus are unaffected. */
.ds-site .entry-content :is(p, li, td) a:not(.wp-block-button__link):not(.wp-element-button),
.ds-chrome .site-footer .ast-footer-copyright a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.ds-site .entry-content :is(p, li, td) a:not(.wp-block-button__link):not(.wp-element-button):hover,
.ds-chrome .site-footer .ast-footer-copyright a:hover { text-decoration-thickness: 2px; }
