
/* Page-specific layer; all rules are scoped to the new geology service page. */
.geology-service { --gs-gap: 24px; }
.geology-service .gs-current-parent { color: var(--accent); font-weight: 700; }
.geology-service #main > .gs-breadcrumb-wrap { padding-top: 22px; }
.geology-service .estate-breadcrumbs { margin: 0; font-size: .8125rem; }
.geology-service #main > .gs-hero { padding-top: 28px; padding-bottom: 30px; }
.geology-service .gs-hero-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); align-items: center; gap: 28px; }
.geology-service .gs-kicker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.geology-service .gs-kicker .eyebrow { font-size: .6875rem; letter-spacing: .085em; }
.geology-service .gs-since { font-size: .75rem; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); white-space: nowrap; }
.geology-service .gs-hero h1 { font-size: clamp(2.15rem,3.7vw,3.35rem); line-height: 1.1; letter-spacing: -.038em; margin: 0 0 20px; max-width: 19ch; text-wrap: balance; }
.geology-service .gs-hero h1 span { display: block; }
.geology-service .gs-intro { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 52ch; margin: 0 0 22px; }
.geology-service .gs-offer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-bottom: 12px; }
.geology-service .gs-offer-line strong { font-family: var(--font-body); font-size: clamp(2rem,3vw,2.75rem); line-height: 1.15; letter-spacing: -.03em; }
.geology-service .gs-offer-line span { font-size: .875rem; line-height: 1.55; max-width: 20ch; color: var(--muted); }
.geology-service .gs-assurance { font-size: .875rem; color: var(--muted); line-height: 1.6; max-width: 58ch; margin: 0 0 22px; }
.geology-service .gs-hero .actions { gap: 14px 20px; }
.geology-service .gs-micro { font-size: .8125rem; color: var(--muted); margin: 10px 0 0; }
.geology-service .gs-hero-art { margin: 0; align-self: center; min-width: 0; }
.geology-service .gs-hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.geology-service .gs-hero-art figcaption { padding: 8px 0 0 22px; border-left: 2px solid var(--line); margin: 20px auto 0; width: max-content; max-width: 100%; font-size: 1rem; line-height: 1.6; }
.geology-service .gs-hero-art figcaption strong,.geology-service .gs-hero-art figcaption span { display: block; }
.geology-service .gs-hero-art figcaption span { color: var(--muted); }
.geology-service .gs-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.geology-service .gs-facts > div { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.geology-service .gs-facts img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.geology-service .gs-facts p { margin: 0; }
.geology-service .gs-facts strong,.geology-service .gs-facts span { display: block; }
.geology-service .gs-facts strong { font-size: 1rem; margin-bottom: 4px; }
.geology-service .gs-facts span { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.geology-service .gs-program-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.geology-service .gs-program-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 26px; }
.geology-service .gs-step { font-size: .875rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 18px; }
.geology-service .gs-program-grid h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 12px; }
.geology-service .gs-program-grid p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.geology-service .gs-program-note { border-left: 3px solid var(--accent); padding: 2px 0 2px 22px; margin-top: 26px; max-width: 1000px; }
.geology-service .gs-program-note strong { font-size: 1.0625rem; }
.geology-service .gs-program-note p { margin: 10px 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.geology-service .gs-area-card { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 50px; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 36px; background: var(--surface); }
.geology-service .gs-area-card h2 { font-size: clamp(1.75rem,2.5vw,2.2rem); line-height: 1.2; margin: 14px 0; }
.geology-service .gs-area-card p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.geology-service .gs-area-card aside { border-left: 1px solid var(--line); padding-left: 32px; }
.geology-service .gs-area-card aside a { display: block; font-size: .9375rem; margin-top: 12px; color: var(--accent); text-underline-offset: 4px; }
.geology-service #works { padding-bottom: 16px; }
.geology-service #works #portfolio { margin: 0; }
.geology-service #report .section-heading h2 { max-width: 30ch; }
.geology-service #program .section-heading h2 { max-width: 34ch; }
.geology-service #report .result-card { min-width: 0; }
.geology-service #calculator { scroll-margin-top: 104px; }
.geology-service #calculator .ec-result { position: static; }
.geology-service #report .report-page { width: 100%; }
.geology-service #services .bundle-card { min-width: 0; }
.geology-service #services .bundle-top h3 { text-wrap: balance; }
.geology-service :is(#process,#services,#works,#faq,#request) { scroll-margin-top: 100px; }
@media (max-width: 1000px) {
 .geology-service .gs-hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 20px; }
 .geology-service .gs-facts > div { padding: 16px 12px; gap: 10px; }
 .geology-service .gs-facts img { width: 44px; height: 44px; flex-basis: 44px; }
 .geology-service .gs-program-grid { gap: 14px; }
 .geology-service .gs-program-grid article { padding: 20px; }
}
@media (max-width: 760px) {
 .geology-service .gs-hero-grid { grid-template-columns: 1fr; gap: 18px; }
 .geology-service .gs-hero h1 { font-size: clamp(2.15rem,5.5vw,2.8rem); max-width: 23ch; }
 .geology-service .gs-hero-art { max-width: 500px; justify-self: center; }
 .geology-service .gs-hero-art figcaption { display: none; }
 .geology-service .gs-facts { margin-top: 14px; gap: 10px; }
 .geology-service .gs-facts > div { flex-direction: column; align-items: flex-start; }
 .geology-service .gs-facts strong { font-size: .875rem; }
 .geology-service .gs-program-grid { grid-template-columns: 1fr; gap: 12px; }
 .geology-service .gs-program-grid article { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 8px 12px; }
 .geology-service .gs-step { grid-row: 1/3; margin: 0; }
 .geology-service .gs-program-grid h3 { margin: 0; }
 .geology-service .gs-program-grid p { grid-column: 2; font-size: .9375rem; }
 .geology-service .gs-area-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
 .geology-service .gs-area-card aside { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 480px) {
 .geology-service .gs-kicker { gap: 8px; margin-bottom: 14px; }
 .geology-service .gs-kicker .eyebrow { font-size: .5625rem; letter-spacing: .055em; }
 .geology-service .gs-since { font-size: .6875rem; padding: 3px 7px; }
 .geology-service #main > .gs-hero { padding-top: 22px; }
 .geology-service .gs-hero h1 { font-size: 2rem; }
 .geology-service .gs-intro { font-size: 1rem; margin-bottom: 18px; }
 .geology-service .gs-offer-line { gap: 8px 12px; }
 .geology-service .gs-offer-line strong { font-size: 2.1rem; }
 .geology-service .gs-offer-line span { max-width: 18ch; font-size: .75rem; }
 .geology-service .gs-hero .actions { gap: 14px; }
 .geology-service .gs-hero .actions .button { width: 100%; }
 .geology-service .gs-micro { font-size: .75rem; }
 .geology-service .gs-hero-art { max-width: 360px; }
 .geology-service .gs-facts { grid-template-columns: 1fr; }
 .geology-service .gs-facts > div { flex-direction: row; align-items: center; padding: 12px 16px; }
 .geology-service .gs-facts strong { font-size: 1rem; margin-bottom: 2px; }
 .geology-service .gs-facts span { font-size: .8125rem; }
 .geology-service .gs-program-note { padding-left: 16px; }
 .geology-service .gs-program-note strong { font-size: 1rem; }
 .geology-service .gs-area-card { padding: 22px 18px; }
}
@media (max-width:760px) {
 .geology-service .quick-nav nav { display:flex; flex-wrap:nowrap; gap:22px; overflow-x:auto; scrollbar-width:none; padding-block:0; }
 .geology-service .quick-nav nav::-webkit-scrollbar { display:none; }
 .geology-service .quick-nav a { flex:0 0 auto; min-height:44px; white-space:nowrap; }
 .geology-service.gs-main-cta-visible .contact-widget { opacity:0; visibility:hidden; pointer-events:none; }
}

/* WordPress integration: all additions are isolated to this template. */
.geology-service .gs-section-nav { display:flex; gap:10px 22px; flex-wrap:wrap; padding-block:18px; font-size:.8125rem; border-bottom:1px solid var(--line); }
.geology-service .gs-section-nav a { color:var(--muted); text-decoration:none; padding-block:6px; }
.geology-service .gs-section-nav a:hover { color:var(--accent); }
.geology-service .gs-experience-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.55fr); gap:48px; align-items:center; padding:36px; border:1px solid var(--line); border-radius:var(--card-radius); background:var(--surface); }
.geology-service .gs-experience-card h2 { font-size:clamp(1.7rem,2.8vw,2.35rem); line-height:1.2; margin:16px 0; }
.geology-service .gs-experience-card p { color:var(--muted); line-height:1.65; }
.geology-service .gs-experience-document { display:block; color:var(--accent); text-decoration:none; max-width:260px; justify-self:center; }
.geology-service .gs-experience-document img { width:100%; height:300px; object-fit:contain; object-position:center; display:block; background:white; border:1px solid var(--line); border-radius:8px; }
.geology-service .gs-experience-document span { display:block; margin-top:12px; font-size:.8125rem; line-height:1.5; }
.geology-service .gs-experience-card .actions { margin-top:24px; gap:16px; }
.geology-service :is(.gs-section-nav,.gs-experience-card,.gs-area-card) a { overflow-wrap:anywhere; }
@media(max-width:760px) {
 .geology-service .gs-section-nav { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; gap:20px; }
 .geology-service .gs-section-nav a { flex:0 0 auto; white-space:nowrap; }
 .geology-service .gs-experience-card { grid-template-columns:1fr; gap:24px; padding:24px; }
 .geology-service .gs-experience-document { max-width:220px; }
 .geology-service .gs-experience-document img { height:240px; }
}

/* Final interior-page layer. Homepage and calculator styles remain untouched. */
body:not(.home) :is(.estate-region-button, .estate-about-button, .estate-contacts-request, .estate-pricing-button),
body:not(.home).estate-service-view .estate-entry-content .estate-service-action {
  min-height: 54px;
  border-radius: var(--radius, 12px);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Structural cards share a radius; thumbnails, icons and badges keep theirs. */
body:not(.home) .estate-region :is(.estate-region-hero, .estate-region-card, .estate-region-example),
body:not(.home) .estate-region-catalog .estate-catalog-hero,
body:not(.home) .estate-about :is(.estate-about-hero, .estate-about-service, .estate-about-document),
body:not(.home) .estate-pricing section.estate-pricing-group {
  border-radius: var(--card-radius, 18px);
}

/* Use one section interval instead of stacking padding on both neighbours. */
body:not(.home) .estate-about section.estate-about-story {
  padding: 48px 0 0;
}
body:not(.home) .estate-about :is(section.estate-about-services, section.estate-about-documents, section.estate-about-work) {
  padding: 48px 0 0;
}
body:not(.home) .estate-about section.estate-about-principles {
  margin-top: 48px;
}
body:not(.home) .estate-report-guide > .eyebrow + h2 {
  margin-top: 0;
}

/* Override global section padding only on the regional examples container. */
body:not(.home) .estate-region section.estate-region-examples {
  padding: 32px 0 0;
}
body:not(.home) .estate-region .estate-region-examples h2 {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Both two-card and three-card rows align with the surrounding page blocks.
   WordPress may insert an inner group wrapper; keep only prose constrained. */
@media (min-width: 1001px) {
  body:not(.home) .estate-region > .estate-region-copy:has(.estate-region-examples) {
    max-width: none;
  }
  body:not(.home) .estate-region > .estate-region-copy > .wp-block-group__inner-container {
    max-width: none;
  }
  body:not(.home) .estate-region > .estate-region-copy:has(> .estate-region-examples .estate-region-example-grid > .wp-block-column:nth-child(3):last-child) > :is(table, .wp-block-table),
  body:not(.home) .estate-region > .estate-region-copy > .wp-block-group__inner-container > :is(table, .wp-block-table) {
    max-width: none;
  }
  body:not(.home) .estate-region > .estate-region-copy > :not(.estate-region-examples):not(.wp-block-group__inner-container):not(table):not(.wp-block-table),
  body:not(.home) .estate-region > .estate-region-copy > .wp-block-group__inner-container > :not(.estate-region-examples):not(table):not(.wp-block-table),
  body:not(.home) .estate-region .estate-region-examples :is(h2, .estate-region-examples-intro) {
    max-width: 900px;
  }
}

/* The regional programme table is a page-width panel, not a prose column. */
body:not(.home) .estate-region > .estate-region-copy table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--card-radius, 18px);
  overflow: hidden;
}
body:not(.home) .estate-region > .estate-region-copy table :is(th, td) {
  border: 0;
  border-bottom: 1px solid var(--line);
}
body:not(.home) .estate-region > .estate-region-copy table :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--line);
}
body:not(.home) .estate-region > .estate-region-copy table > :is(tbody, tfoot):last-child > tr:last-child > :is(th, td) {
  border-bottom: 0;
}

@media (max-width: 600px) {
  body:not(.home) .estate-about section.estate-about-story,
  body:not(.home) .estate-about :is(section.estate-about-services, section.estate-about-documents, section.estate-about-work) {
    padding: 32px 0 0;
  }
  body:not(.home) .estate-about section.estate-about-principles {
    margin-top: 32px;
  }
}

/* Suppress the textual no-JS fallback only after navigation is enhanced. */
body:not(.home) .estate-mobile-nav.is-enhanced noscript {
  display: none;
}

