/* Approved composition, using the existing TaxSrv palette, type and spacing. */
.ts-approved-home #primary { margin-block: 0; }
.ts-approved-home .entry-content { margin: 0; }
.ts-approved-home .entry-content-wrap { padding: 0; }
.ts-approved-home .site-container:has(> .content-area) { max-width: none; padding: 0; }
.ts-home-wrap { max-width: 1290px; margin-inline: auto; padding: 52px 36px; }
.ts-home-section h2 { font-size: 32px; color: #0d2545; margin: 0 0 16px; }
.ts-home-section h3 { font-size: 22px; color: #0d2545; margin: 0 0 16px; }
.ts-home-section p { margin: 0 0 16px; }
.ts-home-section p:last-child { margin-bottom: 0; }
.ts-home-section { background: #f8f7f4; }
/* Match All Services' existing page-specific heading/paragraph spacing in the carousel. */
.ts-approved-home .ts-related :is(h2,h3,p) { margin-top: 0; margin-bottom: 8px; }
.ts-approved-home .ts-related .ts-related-body h3 { margin-bottom: 8px; }

/* Only Home opts into the shared hero's backdrop and heading/rule/copy order. */
.ts-approved-home .ts-page-hero--backdrop { position: relative; isolation: isolate; overflow: hidden; }
.ts-page-hero--backdrop .ts-page-hero-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ts-page-hero--backdrop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(13 37 69 / .88), rgb(13 37 69 / .65) 46%, rgb(13 37 69 / .02)); }
.ts-page-hero--backdrop .ts-page-hero-inner { min-height: 390px; align-items: center; padding-block: 60px 66px; }
.ts-page-hero--backdrop .ts-page-hero-heading { margin-bottom: 22px; }
.ts-page-hero-rule, .ts-home-rule { width: 82px; height: 4px; background: #c6a75a; margin: 0 0 24px; }
.ts-page-hero--backdrop .ts-page-hero-sub { max-width: 690px; }

.ts-home-approach-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 48px; align-items: center; }
.ts-home-approach img { display: block; width: 100%; height: auto; aspect-ratio: 482 / 235; object-fit: contain; border-radius: 4px; }
.ts-home-audience { position: relative; isolation: isolate; overflow: hidden; background: #0d2545; color: #fff; }
.ts-home-audience h2 { color: #fff; max-width: calc(100% - clamp(90px,30vw,400px)); }
.ts-home-audience h3 { color: #fff; }
.ts-home-audience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.ts-home-audience-item { min-width: 0; padding-inline: 36px; border-left: 1px solid rgb(198 167 90 / .6); }
.ts-home-audience-item:first-child { border-left: 0; padding-left: 0; }
.ts-home-audience-item:last-child { padding-right: 0; }
.ts-home-audience-item p { color: rgb(255 255 255 / .72); }
.ts-home-line-icon { width: 55px; height: 55px; margin-bottom: 10px; }
.ts-home-line-icon svg { width: 100%; height: 100%; fill: none; stroke: #c6a75a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The moon is clipped to the reserved upper-right area, clear of every text column. */
.ts-home-moon-frame { position: absolute; top: 0; right: 0; width: clamp(90px,30vw,470px); height: 130px; overflow: hidden; pointer-events: none; mask-image: linear-gradient(to right, transparent, #000 24px), linear-gradient(to bottom, #000 75%, transparent); mask-composite: intersect; }
.ts-home-moon { position: absolute; right: -120px; top: -250px; width: 470px; height: 470px; border: 1px solid rgb(198 167 90 / .24); border-radius: 50%; box-shadow: 0 0 0 28px rgb(198 167 90 / .04), 0 0 0 58px rgb(198 167 90 / .03); }
.ts-home-experience { position: relative; isolation: isolate; overflow: hidden; }
.ts-home-experience-copy { max-width: calc(100% - clamp(140px,25vw,360px)); }
.ts-home-experience .ts-page-hero-btn--outline { color: #0d2545; border-color: #c6a75a; }
.ts-home-lines { position: absolute; right: 0; bottom: 0; width: clamp(140px,25vw,360px); height: 180px; overflow: hidden; pointer-events: none; }
.ts-home-lines::after { content: ""; position: absolute; right: -90px; bottom: -125px; width: 520px; height: 260px; opacity: .8; background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 17px, rgb(198 167 90 / .8) 18px 19px, transparent 20px 29px); transform: rotate(-8deg); }
.ts-home-contact { border-top: 1px solid #e4e2dc; }
.ts-home-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.ts-home-contact .ts-page-hero-btn { flex-shrink: 0; }
.ts-home-section :is(a,button):focus-visible { outline: 2px solid #c6a75a; outline-offset: 4px; }
@media (max-width: 1024px) {
 .ts-home-audience-item { padding-inline: 22px; }
}
@media (max-width: 767px) {
 .ts-home-wrap { padding: 36px 20px; }
 .ts-home-section h2 { font-size: 28px; }
 .ts-page-hero--backdrop .ts-page-hero-inner { min-height: 380px; padding-block: 54px; }
 .ts-page-hero--backdrop .ts-page-hero-backdrop { object-position: 58% center; }
 .ts-page-hero--backdrop::before { background: linear-gradient(90deg, rgb(13 37 69 / .9), rgb(13 37 69 / .65)); }
 .ts-home-approach-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .ts-home-audience-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
 .ts-home-audience-item, .ts-home-audience-item:first-child { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgb(198 167 90 / .5); }
 .ts-home-audience-item:first-child { padding-top: 0; border-top: 0; }
 .ts-home-moon { width: 300px; height: 300px; top: -170px; right: -140px; }
 /* Reserve space below the copy/button instead of placing lines behind mobile text. */
 .ts-home-experience-copy { max-width: none; }
 .ts-home-experience .ts-home-wrap { padding-bottom: 150px; }
 .ts-home-lines { width: 65%; height: 120px; }
 .ts-home-contact-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
