/* Inner pages (block content): service template sections + center directory. */

.page-main { padding-bottom: 0; }
.entry-content > .svc { max-width: none; margin: 0; }
.svc .svc-inner, .svc > .wp-block-group__inner-container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.svc { padding: 60px var(--gutter); }
.svc > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.svc h2 { text-align: center; font-size: clamp(28px, 3vw, 40px); margin-bottom: 26px; }
.svc-sub { text-align: center; color: var(--ink); margin: -14px auto 26px; max-width: 720px; }

/* Hero */
.svc-hero { position: relative; padding: 0; background: #fff; overflow: hidden; }
.svc-hero-cols { max-width: none !important; margin: 0 !important; gap: 0 !important; align-items: stretch !important; }
.svc-hero-text { padding: 48px 40px 92px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); flex-basis: 46% !important; position: relative; z-index: 2; }
.svc-hero-media { flex-basis: 54% !important; position: relative; min-height: 440px; }
.svc-hero-media figure { margin: 0; position: absolute; inset: 0; }
.svc-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; }
.svc-hero-media::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }
.svc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 3; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C 240 8, 480 60, 720 36 S 1200 10, 1440 32 V60 H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 34 C 240 8, 480 60, 720 36 S 1200 10, 1440 32' fill='none' stroke='%23d7e2e5' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.svc-hero h1 { font-size: clamp(38px, 4.4vw, 58px); font-weight: 500; margin: 14px 0 18px; }
.svc-hero .lede { font-size: 19px; color: var(--ink); max-width: 470px; }
.svc-hero .wp-block-buttons { gap: 16px; margin: 26px 0 22px; }
.svc-hero .breadcrumbs { margin: 0; font-size: 14.5px; }

/* When: two cards + warning */
.svc-when { padding-top: 40px; }
.svc-when .wp-block-columns { gap: 26px; max-width: 980px; margin: 0 auto 18px; }
.when-card { border-radius: var(--radius); border: 1px solid var(--line); padding: 24px 28px; height: 100%; }
.when-yes { background: var(--sage); }
.when-maybe { background: var(--sky); }
.when-card h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 12px; }
.when-card h3::before { content: ""; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--sage-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat; }
.when-maybe h3::before { background: #2a7fa6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.5 3.6-7 8-7s8 2.5 8 7z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.when-card ul { list-style: none; padding: 0; margin: 0; }
.when-card li { position: relative; padding-left: 30px; margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.when-card li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--sage-ink); border-bottom: 2px solid var(--sage-ink); transform: rotate(-45deg); }
.when-maybe li::before { border-color: #2a7fa6; }
.note-warn { max-width: 980px; margin: 0 auto !important; background: var(--blush); border: 1px solid #f2d9d1; border-radius: var(--radius); padding: 14px 20px 14px 58px; color: var(--ink); font-size: 16.5px; position: relative; }
.note-warn::before { content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M13 1 25 23H1Z' fill='%23c4502f'/%3E%3Cpath d='M13 9v6' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='19' r='1.4' fill='white'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Comparison table */
.svc-types { padding-top: 24px; }
.compare-table { max-width: 980px; margin: 0 auto; }
.compare-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.compare-table thead th { background: var(--teal); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 18px; padding: 12px 16px; border: 0; }
.compare-table td { padding: 13px 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; color: var(--ink-soft); }
.compare-table td:first-child { text-align: left; border-left: 0; font-weight: 600; color: var(--ink); }
.compare-table tbody tr:nth-child(even) td { background: #fafcfc; }

/* Centers */
.svc-centers { padding-top: 40px; }
.center-list { max-width: 1000px; margin: 0 auto; display: grid; gap: 12px; }
.center-card { position: relative; display: grid; grid-template-columns: 54px 1.1fr 1.4fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.center-card.is-pending { border-style: dashed; background: #fffdf9; }
.center-card.is-sponsor { margin-top: 10px; }
.pill-edge { position: absolute; top: -12px; left: 20px; margin: 0; }
.center-initial { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #f4f8f9; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.center-name { font-size: 21px; margin: 0 0 2px; }
.center-where { margin: 0; font-size: 15px; color: var(--ink-soft); }
.center-meta { font-size: 14px; }
.level-pill { display: inline-block; background: #e6f0f3; color: var(--teal); font-size: 13.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; margin: 0 6px 6px 0; }
.center-check { margin: 0; color: #5b7178; font-size: 13.5px; }
.center-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.center-site { font-size: 14px; }
.center-empty { max-width: 760px; margin: 0 auto; text-align: center; background: var(--sky); border-radius: var(--radius); padding: 20px; color: var(--ink); }
.svc-link { text-align: center; font-family: var(--font-display); font-size: 18px; margin-top: 22px !important; }

/* Steps + paying */
.svc-steps { padding-top: 40px; }
.svc-steps .wp-block-columns { gap: 18px; align-items: stretch !important; }
.step-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 74px 20px 22px; text-align: center; box-shadow: var(--shadow); }
.step-card::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; background: var(--teal); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.step-card::after { position: absolute; top: 14px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 14px/28px var(--font-body); text-align: center; }
.step-1::after { content: "1"; }
.step-2::after { content: "2"; }
.step-3::after { content: "3"; }
.step-1 { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='10' y='8' width='28' height='34' rx='3'/%3E%3Cpath d='M18 8V5h12v3M17 26l5 5 9-10'/%3E%3C/svg%3E"); }
.step-2 { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 40C13 32 6 26 6 17a8 8 0 0 1 18-3 8 8 0 0 1 18 3c0 9-7 15-18 23Z'/%3E%3Cpath d='M8 24h9l3-6 5 12 3-6h12'/%3E%3C/svg%3E"); }
.step-3 { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 30c-4-5-6-8-6-11a6 6 0 0 1 12 0c0 3-2 6-6 11Z'/%3E%3Cpath d='M36 22c-4-5-6-8-6-11a6 6 0 0 1 12 0c0 3-2 6-6 11Z'/%3E%3Cpath d='M12 34c0 6 8 6 12 2s12-6 12-12' stroke-dasharray='3 4'/%3E%3C/svg%3E"); }
.step-card h3 { font-size: 20px; margin-bottom: 6px; }
.step-card p { font-size: 15px; margin: 0; }
.pay-note { height: 100%; background: var(--sage); border: 1px solid var(--line); border-radius: var(--radius); padding: 70px 22px 22px; position: relative; }
.pay-note::before { content: ""; position: absolute; top: 18px; left: 22px; width: 42px; height: 42px; background: var(--sage-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M24 4l16 6v12c0 10-7 18-16 22C15 40 8 32 8 22V10Z'/%3E%3Cpath d='M28 17c-1-2-3-2.5-4-2.5-2.5 0-4 1.3-4 3.2 0 4.6 8 2.6 8 7.1 0 2-1.8 3.2-4 3.2-1.5 0-3.3-.6-4.2-2.2M24 12v3M24 28v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M24 4l16 6v12c0 10-7 18-16 22C15 40 8 32 8 22V10Z'/%3E%3Cpath d='M28 17c-1-2-3-2.5-4-2.5-2.5 0-4 1.3-4 3.2 0 4.6 8 2.6 8 7.1 0 2-1.8 3.2-4 3.2-1.5 0-3.3-.6-4.2-2.2M24 12v3M24 28v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.pay-note h3 { font-size: 20px; margin-bottom: 6px; }
.pay-note p { font-size: 15px; margin: 0 0 10px; }

/* FAQ + CTA */
.svc-faqcta { padding: 0; }
.svc-faq { max-width: 980px !important; margin: 0 auto !important; padding: 36px var(--gutter) 40px; }
.svc-faq h2 { margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 32px); }
.svc-faq .wp-block-details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 10px; }
.svc-faq .wp-block-details summary { cursor: pointer; list-style: none; padding: 13px 48px 13px 20px; position: relative; font-size: 17px; color: var(--ink); font-weight: 500; }
.svc-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.svc-faq .wp-block-details summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); }
.svc-faq .wp-block-details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.svc-faq .wp-block-details > p { padding: 0 20px 16px; margin: 0; font-size: 16px; }
.svc-cta { max-width: none !important; position: relative; overflow: hidden; background: var(--sage); text-align: center; padding: 50px var(--gutter) 56px; }
.svc-cta::after { content: ""; position: absolute; inset: 0; background: url(../images/river-landscape.webp) center 80% / cover no-repeat; opacity: .85; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 30%, transparent 70%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, transparent 30%, transparent 70%, #000 100%); }
.svc-cta > * { position: relative; z-index: 1; }
.svc-cta h2 { margin-bottom: 18px; }
.svc-cta .wp-block-buttons { justify-content: center; }

/* Body copy blocks */
.svc-body { max-width: 760px !important; margin: 0 auto !important; padding: 10px var(--gutter) 30px; }
.svc-body h2 { text-align: left; }

/* Pre-footer trust strip on inner pages */
.trust-prefooter { border-top: 1px solid var(--line); padding: 34px 0 38px; }
.trust-prefooter .trust-item svg { width: 48px; height: 48px; }
.trust-prefooter .trust-item { font-size: 16px; }

@media (max-width: 960px) {
	.svc-hero-cols { flex-direction: column-reverse; }
	.svc-hero-text { padding: 28px var(--gutter) 70px; }
	.svc-hero-media { min-height: 260px; }
	.svc-hero-media::before { display: none; }
	.center-card { grid-template-columns: 46px 1fr; }
	.center-meta, .center-actions { grid-column: 2; }
	.center-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
}
@media (max-width: 720px) {
	.svc { padding: 44px var(--gutter); }
	.compare-table table { font-size: 14.5px; }
	.compare-table td, .compare-table thead th { padding: 10px 8px; }
	.center-initial { width: 42px; height: 42px; font-size: 18px; }
}

/* ---------- Page fidelity pass 1 ---------- */
.wp-block-button__link { border-radius: 8px !important; }
.svc-hero-text { flex-basis: 50% !important; }
.svc-hero-media { flex-basis: 50% !important; }
.svc-hero .wp-block-buttons { flex-wrap: nowrap; }
.svc-hero .wp-block-button__link { white-space: nowrap; font-size: 18px; padding: 15px 26px; }
.when-card { padding: 30px 34px; }
.when-card h3 { font-size: 24px; }
.when-card h3::before { flex-basis: 42px; height: 42px; background-size: 22px; }
.when-card li { font-size: 19px; margin-bottom: 10px; }
.note-warn { font-size: 18px; padding: 18px 22px 18px 64px; }
.compare-table thead th { background: var(--ink); font-size: 20px; padding: 14px 18px; }
.compare-table table { font-size: 17.5px; }
.compare-table td { padding: 15px 18px; }
.center-card .btn-outline, .center-card.is-sponsor .btn-teal { background: #fff; color: var(--ink); border-color: var(--ink); }
.center-card.is-sponsor .btn-teal:hover { background: var(--ink); color: #fff; }
.center-name { font-size: 23px; }
.step-card { padding: 96px 24px 30px; }
.step-card::before { width: 64px; height: 64px; top: 22px; }
.step-card::after { width: 34px; height: 34px; line-height: 34px; font-size: 16px; }
.step-card h3 { font-size: 23px; }
.step-card p, .pay-note p { font-size: 16.5px; }
.pay-note { padding-top: 84px; }
.pay-note::before { width: 54px; height: 54px; }
.pay-note h3 { font-size: 23px; }
.svc-faq .wp-block-details summary { font-family: var(--font-display); font-size: 19px; }
.svc-faqcta { padding-bottom: 40px; }
.svc-cta { max-width: calc(var(--wrap) - 2 * var(--gutter)) !important; margin: 0 auto !important; border-radius: 16px; padding: 38px var(--gutter) 42px; }
.svc-cta .wp-block-button__link { font-size: 19px; padding: 15px 32px; }
@media (max-width: 1240px) { .svc-cta { margin: 0 var(--gutter) !important; } }

.page-updated { max-width: 760px; margin: 8px auto 36px; padding: 0 var(--gutter); font-size: 14px; color: #5b7178; text-align: center; }

/* ---------- Print: pages print as a clean checklist or handout ---------- */
@media print {
	.site-header, .site-footer, .help-bar, .trust-prefooter, .svc-hero-media, .svc-cta, .wp-block-buttons, .skip-link, .breadcrumbs, #wpadminbar { display: none !important; }
	body { padding: 0; font-size: 12pt; color: #000; background: #fff; }
	.svc, .svc-hero-text { padding: 0 !important; }
	.svc-hero::after { display: none; }
	.svc-hero-text { flex-basis: 100% !important; }
	.when-card, .step-card, .center-card, .pay-note, .note-warn { box-shadow: none; break-inside: avoid; }
	a { color: #000; text-decoration: none; }
	details > * { display: block; }
}

/* ---------- Tools: level guide + contact form ---------- */
.level-guide { max-width: 760px; margin: 0 auto 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.lg-progress { font-size: 14px; color: #5b7178; margin: 0 0 8px; }
.lg-q { border: 0; padding: 0; margin: 0; }
.lg-q legend { font-family: var(--font-display); font-size: 23px; color: var(--ink); line-height: 1.3; margin-bottom: 16px; }
.lg-options { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-opt { font: 500 16px var(--font-body); color: var(--ink); background: var(--sky); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; cursor: pointer; }
.lg-opt:hover, .lg-opt:focus-visible { border-color: var(--teal); background: #fff; }
.lg-result h3 { font-size: 24px; }
.lg-note { font-size: 14px; color: #5b7178; margin: 18px 0 0; }
.rj-form { max-width: 620px; margin: 0 auto; }
.rj-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rj-form input, .rj-form textarea { width: 100%; font: 17px var(--font-body); padding: 12px 14px; border: 1.5px solid #b9ced3; border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.rj-form input:focus, .rj-form textarea:focus { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--teal); }
.rj-hp { position: absolute !important; left: -9999px; }
.form-hint { font-size: 14.5px; }
.form-ok, .form-err { max-width: 620px; margin: 0 auto 16px; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-ok { background: var(--sage); color: var(--ink); }
.form-err { background: var(--blush); color: var(--ink); }

/* ---------- Page fidelity pass 2: classic-theme group inner containers ---------- */
.svc-hero > .wp-block-group__inner-container { max-width: none !important; padding: 0 !important; }
.svc-hero-cols { width: 100% !important; max-width: none !important; }
.svc > .wp-block-group__inner-container { max-width: 1300px; }
.svc-faqcta > .wp-block-group__inner-container { max-width: none; padding: 0; }
.svc-faq > .wp-block-group__inner-container, .svc-cta > .wp-block-group__inner-container { max-width: none; padding: 0; }
.svc-hero h1 { color: var(--ink); font-size: clamp(40px, 4.2vw, 62px); }
.svc-hero-text { padding-top: 56px; }
.svc-when .wp-block-columns, .note-warn, .compare-table { max-width: 1160px; }
.center-list { max-width: 1160px; }
.center-card { padding: 22px 28px; grid-template-columns: 60px 1.2fr 1.4fr auto; }
.center-card .btn-sm { font-size: 17px; padding: 12px 22px; }
.center-name { font-size: 25px; white-space: nowrap; }
.compare-table td:first-child { font-size: 18px; font-weight: 700; }
.svc-faq { max-width: 1160px !important; }
.svc-faq .wp-block-details summary { font-size: 20px; padding: 15px 48px 15px 22px; }
.svc-cta { padding: 30px var(--gutter) 34px; max-width: 1252px !important; }
.svc-cta h2 { margin-bottom: 14px; }
@media (max-width: 960px) { .center-name { white-space: normal; } }
@media (max-width: 720px) { .svc-hero .wp-block-buttons { flex-wrap: wrap; } .svc-hero .wp-block-button, .svc-hero .wp-block-button__link { width: 100%; } }

/* ---------- Accessibility + mobile QA pass ---------- */
.rj-form input, .rj-form textarea { border-color: #5b7178; }
.center-actions { flex-wrap: wrap; }
.center-site { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.form-ok:focus, .form-err:focus { outline-offset: 2px; }
@media (max-width: 960px) {
	.center-card { grid-template-columns: 46px minmax(0, 1fr); }
	.svc-link a, .pay-note a { padding: 13px 0; }
}
@media (max-width: 720px) {
	.center-card { padding: 18px 16px; gap: 12px; }
	/* Comparison table: restore the mobile sizing and stop words breaking mid-word. */
	.compare-table table, .compare-table table.has-fixed-layout { font-size: 14.5px; table-layout: auto; }
	.compare-table thead th { font-size: 15.5px; padding: 10px 8px; }
	.compare-table td { padding: 10px 8px; }
	.compare-table td:first-child { font-size: 14.5px; }
	.wp-block-table.compare-table .has-fixed-layout th, .wp-block-table.compare-table .has-fixed-layout td { word-break: normal; overflow-wrap: normal; }
	.compare-table td a { padding: 14px 0; }
}

/* Featured request form */
.rj-form select { width: 100%; font: 17px var(--font-body); padding: 12px 14px; border: 1.5px solid #5b7178; border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.rj-form select:focus { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--teal); }
.rj-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 16px; line-height: 1.45; }
.rj-form .rj-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; padding: 0; }
