/* Empire Credit Repair — site styles */
:root {
	--paper: #FBFCF8;
	--band: #E6EFE2;
	--band-2: #F1F6EE;
	--ink: #1F2A2E;
	--muted: #4D5A5E;
	--ledger: #1E5B43;
	--ledger-dark: #164534;
	--strike: #A8352A;
	--rule: #C9D6CB;
	--serif: Newsreader, Georgia, serif;
	--sans: "IBM Plex Sans", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--ledger); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--band); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
.ec-main > .wp-block-post-content > * { margin-block: 0; }
.ec-main .wp-block-post-content > .alignwide, .ec-main .wp-block-post-content > * { max-width: none; }

/* Layout: each section sets its own measure; children share one left edge */
.ec-w-1180 { --w: 1180px; } .ec-w-860 { --w: 860px; } .ec-w-760 { --w: 760px; } .ec-w-720 { --w: 720px; } .ec-w-700 { --w: 700px; }
[class*="ec-w-"] > * { max-width: var(--w); margin-inline: auto; box-sizing: border-box; }
[class*="ec-w-"] > .ec-lede, [class*="ec-w-"] > .ec-source { max-width: min(42em, 100%); margin-left: max(0px, calc((100% - var(--w)) / 2)); margin-right: auto; }
.ec-article > *, .ec-article .wp-block-post-content > * { max-width: 700px; margin-inline: auto; }
.ec-article .wp-block-post-content > .ec-ledger { max-width: 700px; }
/* Side gutters */
.ec-hero, .ec-section, .ec-pagehead, .ec-cta, .ec-header, .ec-footer { padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.ec-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 50; }
@media (min-width: 782px) { .ec-header { position: sticky; top: 0; } .admin-bar .ec-header { top: 32px; } }
.ec-header__bar { min-height: 72px; gap: 1.5rem; }
.ec-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.ec-logo:hover { text-decoration: none; }
.ec-logo__mark { width: 36px; height: 36px; flex: none; }
.ec-logo__text { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.ec-logo__text span { font-weight: 400; color: var(--muted); }
.ec-nav { font-size: 0.975rem; font-weight: 500; gap: 1.75rem; }
.ec-nav .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; padding-block: 0.4rem; }
.ec-nav .wp-block-navigation-item__content:hover { color: var(--ledger); text-decoration: underline; }
.ec-nav .ec-nav__cta .wp-block-navigation-item__content { background: var(--ledger); color: #fff; padding: 0.55rem 1rem; border-radius: 4px; text-decoration: none; }
.ec-nav .ec-nav__cta .wp-block-navigation-item__content:hover { background: var(--ledger-dark); color: #fff; }
.ec-nav .wp-block-navigation__responsive-container-open { color: var(--ink); }
.ec-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--paper); padding: 1.5rem var(--gutter); }
.ec-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.25rem; font-size: 1.25rem; }
@media (max-width: 340px) { .ec-logo__text span { display: none; } }

/* ---------- Type ---------- */
.ec-lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.ec-source { font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem !important; max-width: 46em; }

/* ---------- Buttons ---------- */
.ec-btn { display: inline-block; background: var(--ledger); color: #fff !important; font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; padding: 0.95rem 1.5rem; border-radius: 4px; border: 0; text-decoration: none !important; cursor: pointer; transition: background-color .15s ease; }
.ec-btn:hover { background: var(--ledger-dark); }
.ec-link { font-weight: 600; color: var(--ledger); }
.ec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.ec-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.ec-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ec-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.ec-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.5rem; max-width: 12em; }
.ec-hero .ec-lede { margin: 0; }

/* The report printout */
.ec-report { margin: 0; }
.ec-report__sheet {
	--hole: radial-gradient(circle at center, var(--paper) 0 5px, transparent 5.5px);
	position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 2px;
	padding: 1.25rem 2.5rem 1.1rem; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(30, 91, 67, 0.45);
	font-family: var(--mono); font-size: 0.875rem; color: var(--ink);
}
.ec-report__sheet::before, .ec-report__sheet::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 22px;
	background-image: var(--hole); background-size: 22px 26px; background-repeat: repeat-y; background-position: center 8px;
	border-color: var(--rule); border-style: dashed; border-width: 0;
}
.ec-report__sheet::before { left: 0; border-right-width: 1px; background-color: #fff; box-shadow: inset 1px 0 0 var(--rule); }
.ec-report__sheet::after { right: 0; border-left-width: 1px; background-color: #fff; }
.ec-report__head { display: flex; justify-content: space-between; margin: 0 0 0.75rem; font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.ec-report table { width: 100%; border-collapse: collapse; }
.ec-report th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--muted); padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--ink); }
.ec-report td { padding: 0.7rem 0.5rem; vertical-align: top; }
.ec-report tbody tr:nth-child(odd) td { background: var(--band); }
.ec-report td:nth-child(2), .ec-report th:nth-child(2) { width: 3.5em; }
.ec-report td:last-child, .ec-report th:last-child { text-align: right; width: 4.5em; }
.ec-report tr.is-deleted td:nth-child(3), .ec-report tr.is-deleted td:last-child { color: var(--ledger); font-weight: 500; }
.ec-report tr:not(.is-deleted) td:nth-child(3), .ec-report tr:not(.is-deleted) td:last-child { color: var(--muted); }
.ec-report s { text-decoration: none; position: relative; }
.ec-report s::after {
	content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--strike);
	transform-origin: left center; transform: scaleX(1);
}
.ec-report__foot { margin: 0.9rem 0 0; padding-top: 0.75rem; border-top: 1px dashed var(--rule); font-size: 0.8125rem; }
.ec-report figcaption { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: 0.75rem; max-width: 34em; }
@media (prefers-reduced-motion: no-preference) {
	.js .ec-report s::after { transform: scaleX(0); animation: ec-strike .5s cubic-bezier(.6,.05,.3,1) forwards; }
	.js .ec-report tr.is-deleted:nth-of-type(1) s::after { animation-delay: .5s; }
	.js .ec-report tr.is-deleted:nth-of-type(3) s::after { animation-delay: .9s; }
	.js .ec-report tr.is-deleted:nth-of-type(4) s::after { animation-delay: 1.3s; }
}
@keyframes ec-strike { to { transform: scaleX(1); } }
@media (max-width: 560px) {
	.ec-report__sheet { padding: 1rem 1.6rem 0.9rem; font-size: 0.8125rem; }
	.ec-report__sheet::before, .ec-report__sheet::after { width: 14px; background-size: 14px 22px; --hole: radial-gradient(circle at center, var(--paper) 0 3.5px, transparent 4px); }
	.ec-report td, .ec-report th { padding-inline: 0.3rem; }
	.ec-report td:nth-child(2), .ec-report th:nth-child(2) { display: none; }
	.ec-report s { text-decoration: line-through; text-decoration-color: var(--strike); text-decoration-thickness: 2px; }
	.ec-report s::after { display: none; }
}
@media (max-width: 600px) {
	.ec-ledger table { min-width: 0; }
	.ec-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ec-ledger tr, .ec-ledger td { display: block; width: auto !important; }
	.ec-ledger td:first-child { padding-bottom: 0.15rem; }
	.ec-ledger td:last-child { padding-top: 0; padding-bottom: 1rem; color: var(--muted); }
	.ec-ledger tbody tr:nth-child(odd) { background: var(--band); }
}

/* ---------- Sections ---------- */
.ec-section { padding-block: clamp(3rem, 6vw, 5rem); }
.ec-section--tight { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.ec-section--band { background: var(--band-2); border-block: 1px solid var(--rule); }
.ec-section--rule { border-top: 1px solid var(--rule); }
.ec-section h2, .ec-pagehead h1 { margin-top: 0; }
.ec-section > h2:first-child { margin-bottom: 1.5rem; }
.ec-pagehead { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ec-pagehead h1 { font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 1rem; }

/* Steps on home (a real sequence) */
.ec-steps { list-style: none; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: step; border-top: 2px solid var(--ink); margin-block: 0 2rem; }
.ec-steps li { counter-increment: step; padding: 1.25rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
.ec-steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--ledger); margin-bottom: 0.75rem; }
.ec-steps h3 { font-size: 1.1875rem; margin: 0 0 0.5rem; }
.ec-steps p { margin: 0; font-size: 0.975rem; color: var(--muted); }
@media (min-width: 900px) { .ec-steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--rule); } }

/* Ledger table */
.ec-ledger { overflow-x: auto; margin-top: 1.5rem; background: #fff; border: 1px solid var(--rule); }
.ec-ledger table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ec-ledger th { text-align: left; font-size: 0.875rem; font-weight: 600; padding: 0.85rem 1.25rem; border-bottom: 2px solid var(--ink); }
.ec-ledger td { padding: 0.9rem 1.25rem; vertical-align: top; }
.ec-ledger td:first-child { font-weight: 600; width: 34%; }
.ec-ledger tbody tr:nth-child(odd) td { background: var(--band); }

/* Splits */
.ec-split { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .ec-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.ec-split h2 { margin-top: 0; }
.ec-split p { max-width: 36em; }
.ec-nolist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.ec-nolist li { position: relative; padding: 0.95rem 0 0.95rem 2.25rem; border-bottom: 1px solid var(--rule); }
.ec-nolist li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1.25rem; height: 2px; background: var(--strike); }
.ec-note { background: var(--band-2); border-left: 3px solid var(--ledger); padding: 1.5rem 1.75rem; }
.ec-note h3 { margin-top: 0; font-size: 1.25rem; }
.ec-note p:last-child { margin-bottom: 0; }

/* Timeline (how it works) */
.ec-timeline { list-style: none; padding: 0; margin-block: 0; counter-reset: step; }
.ec-timeline li { counter-increment: step; position: relative; padding: 0 0 2.25rem 3.75rem; }
.ec-timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ledger); color: var(--ledger); font-family: var(--serif); font-size: 1.25rem; display: grid; place-items: center; background: var(--paper); }
.ec-timeline li::after { content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.6rem; bottom: 0.2rem; width: 2px; background: var(--rule); }
.ec-timeline li:last-child::after { display: none; }
.ec-timeline li:last-child::before { background: var(--ledger); color: #fff; }
.ec-timeline h2 { font-size: var(--wp--preset--font-size--large); margin: 0.2rem 0 0.5rem; }
.ec-timeline p { margin: 0; max-width: 40em; }

.ec-twocol { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ec-twocol h2 { margin-top: 0; font-size: var(--wp--preset--font-size--large); }
.ec-yes, .ec-no { list-style: none; padding: 0; margin: 0; }
.ec-yes li, .ec-no li { padding: 0.7rem 0 0.7rem 2rem; position: relative; border-bottom: 1px solid var(--rule); }
.ec-yes li::before { content: ""; position: absolute; left: 0.2rem; top: 1rem; width: 0.55rem; height: 1rem; border: solid var(--ledger); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ec-no li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 1.1rem; height: 2px; background: var(--strike); }
.ec-no li { color: var(--muted); }

/* FAQ */
.ec-faq { border-top: 2px solid var(--ink); }
.ec-faq details { border-bottom: 1px solid var(--rule); }
.ec-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-family: var(--serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.3; }
.ec-faq summary::-webkit-details-marker { display: none; }
.ec-faq summary::after { content: ""; position: absolute; right: 0.5rem; top: 1.45rem; width: 0.6rem; height: 0.6rem; border: solid var(--ledger); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.ec-faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.ec-faq details p { margin: 0 0 1.25rem; max-width: 42em; }

/* Statute */
.ec-statute { background: #fff; border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2.25rem); margin-bottom: 2.5rem; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.65; }
.ec-statute h2 { font-size: 1.375rem; margin-top: 0; }
.ec-statute .ec-source { font-family: var(--sans); }

/* Prose pages */
.ec-prose h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.25rem; }

/* ---------- Form ---------- */
.ec-formwrap { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ec-formwrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.ec-form { background: #fff; border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.ec-form__row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ec-field { display: grid; gap: 0.4rem; margin: 0; }
.ec-field > span, .ec-field legend { font-weight: 600; font-size: 0.9375rem; }
.ec-field em { font-weight: 400; font-style: normal; color: var(--muted); }
.ec-form input[type=text], .ec-form input[type=email], .ec-form input[type=tel], .ec-form select, .ec-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
	border: 1px solid #8FA096; border-radius: 4px; padding: 0.75rem 0.85rem; min-height: 48px;
}
.ec-form input:focus, .ec-form select:focus, .ec-form textarea:focus { outline: 3px solid var(--ledger); outline-offset: 0; border-color: var(--ledger); }
.ec-checks { border: 0; padding: 0; display: grid; gap: 0.5rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ec-checks legend { margin-bottom: 0.6rem; padding: 0; }
.ec-checks label, .ec-ack { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.975rem; cursor: pointer; }
.ec-form input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ledger); flex: none; }
.ec-ack { background: var(--band-2); padding: 0.9rem 1rem; border-left: 3px solid var(--ledger); }
.ec-more summary { cursor: pointer; font-weight: 600; color: var(--ledger); padding: 0.25rem 0; }
.ec-more[open] summary { margin-bottom: 1rem; }
.ec-more .ec-field + .ec-field { margin-top: 1rem; }
.ec-form__fine { font-size: 0.875rem; color: var(--muted); margin: 0; }
.ec-form__error { background: #FBEDEA; border-left: 3px solid var(--strike); padding: 0.85rem 1rem; margin: 0; color: #6E211A; font-weight: 500; }
.ec-form .ec-btn { justify-self: start; }
.ec-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ec-formwrap__aside h2 { margin-top: 0; font-size: var(--wp--preset--font-size--large); }
.ec-mini-steps { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.ec-mini-steps li { margin-bottom: 0.75rem; }
.ec-mini-steps li::marker { font-family: var(--serif); color: var(--ledger); font-weight: 600; }
.ec-aside-note { font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 1rem; }

/* ---------- Guides ---------- */
.ec-guides .wp-block-post-template { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.ec-guide-card { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.ec-guide-card h2 { font-size: var(--wp--preset--font-size--large); margin: 0 0 0.5rem; }
.ec-guide-card h2 a { color: var(--ink); text-decoration: none; }
.ec-guide-card h2 a:hover { color: var(--ledger); text-decoration: underline; }
.ec-guide-card .wp-block-post-excerpt__excerpt { margin: 0; color: var(--muted); }
.ec-article { padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.ec-crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.ec-article__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; margin: 0 0 0.5rem; }
.ec-article__date { color: var(--muted); font-size: 0.875rem; margin-bottom: 2rem; }
.ec-article .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.5rem; }
.ec-article .ec-cta { margin-top: 3rem; }

/* ---------- CTA band ---------- */
.ec-cta { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--ledger); color: #fff; }
.ec-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ec-cta__inner > div { max-width: 40em; }
.ec-cta h2 { color: #fff; margin: 0 0 0.6rem; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.ec-cta p { margin: 0; color: #DCE9E1; }
.ec-cta .ec-btn { background: #fff; color: var(--ledger) !important; }
.ec-cta .ec-btn:hover { background: var(--band); }
.ec-article .ec-cta { padding: 2rem; }

/* ---------- Footer ---------- */
.ec-footer { background: var(--ink); color: #D5DDDB; padding-block: 3.5rem 2rem; font-size: 0.9375rem; }
.ec-footer a { color: #fff; }
.ec-footer__grid { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); padding-bottom: 2rem; border-bottom: 1px solid #3A474B; }
@media (min-width: 820px) { .ec-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.ec-footer__name { font-family: var(--serif); font-size: 1.375rem; color: #fff; margin: 0 0 0.6rem; }
.ec-footer__brand p { max-width: 30em; }
.ec-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.ec-footer__links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ec-footer__links a { text-decoration: none; }
.ec-footer__links a:hover { text-decoration: underline; }
.ec-footer__legal { padding-top: 1.5rem; font-size: 0.8125rem; color: #B9C4C1; }
.ec-footer__legal p { max-width: 64em; }

/* ---------- Scroll reveal, below the fold only ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* Print */
@media print { .ec-header, .ec-footer, .ec-cta { display: none; } }
.ec-footer__links li { margin: 0; line-height: 1.4; }
