/*
Theme Name: Deborah Barnett Independent Social Work Expertise
Theme URI: https://example.com/
Author: Deborah Barnett
Description: MASTER1 V1.36 functional Contact route cards, preserving live wording, controlled SEO and design.
Version: 1.36.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: deborah-barnett
*/
:root{--navy:#10283d;--navy2:#173b57;--gold:#c6a15b;--cream:#f5f1e8;--pale:#eef2f4;--ink:#17212a;--white:#fff;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.65;background:#fff}img{max-width:100%;height:auto;display:block}a{color:inherit}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.75rem;z-index:9999}.site-header{position:sticky;top:0;z-index:1000;background:var(--navy);color:#fff;box-shadow:0 2px 10px #0003}.header-inner{max-width:var(--max);margin:auto;padding:.75rem 1.25rem;display:flex;align-items:center;gap:1rem}.brand img{width:64px;max-height:64px;object-fit:contain}.nav{display:flex;gap:.85rem;align-items:center;flex:1;justify-content:center;flex-wrap:wrap}.nav a{text-decoration:none;font-size:.9rem}.nav a:hover,.nav a.active{color:var(--gold)}.menu-button{display:none}.header-cta,.button{display:inline-block;text-decoration:none;border-radius:3px;padding:.75rem 1rem;font-weight:700;border:1px solid transparent}.header-cta,.button.gold,.button.commission{background:var(--gold);color:var(--navy)}.button.dark{background:var(--navy);color:#fff}.button.outline{border-color:#fff;color:#fff}.hero{background:linear-gradient(120deg,var(--navy),var(--navy2));color:#fff}.hero-grid,.section-shell,.reading-column{max-width:var(--max);margin:auto;padding:4.5rem 1.5rem}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:3rem;align-items:center;min-height:610px}.hero h1{font-size:clamp(2.3rem,5vw,4.6rem);line-height:1.05;margin:0 0 1.5rem}.gold-line,.eyebrow{color:var(--gold);font-weight:700;letter-spacing:.04em}.hero-portrait{min-height:480px;background:url('assets/professional-portrait-1.jpg') center/cover no-repeat,var(--pale);border:10px solid #ffffff18}.hero-actions,.card-actions,.section-cta{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.5rem}.display-title,h2{font-size:clamp(2rem,3.5vw,3.4rem);line-height:1.15;margin:.25rem 0 1rem}.business-card-grid,.featured-case-grid,.expert-stream-grid,.service-grid,.sar-type-grid,.published-sar-grid,.level-grid,.programme-grid,.framework-grid,.sar-standards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem}.business-card,.featured-case-card,.expert-stream,.service-detail-card,.published-sar-card,.sar-type-grid article,.level-grid article,.programme-grid article,.framework-grid article,.sar-standards-grid article{background:#fff;border:1px solid #d8dee3;box-shadow:0 8px 25px #0d24340d;padding:1.4rem}.business-card-image{height:190px;background:var(--pale);margin:-1.4rem -1.4rem 1.2rem}.expert-business .business-card-image{background:url('assets/service-expert.jpg') center/cover no-repeat,var(--pale)}.consultancy-business .business-card-image{background:url('assets/service-consultancy.jpg') center/cover no-repeat,var(--pale)}.reviews-business .business-card-image{background:url('assets/service-reviews.jpg') center/cover no-repeat,var(--pale)}.training-business .business-card-image{background:url('assets/service-training.jpg') center/cover no-repeat,var(--pale)}.wspp-business .business-card-image{background:url('assets/service-wspp.jpg') center/cover no-repeat,var(--pale)}.business-number,.stream-number,.service-number,.sar-type-number{color:var(--gold);font-size:1.25rem;font-weight:700}.featured-case-card{padding:0;overflow:hidden}.featured-case-copy,.case-detail{padding:1.4rem}.case-toggle{background:none;border:0;padding:0;color:var(--navy2);font-weight:700;text-decoration:underline;cursor:pointer}.long-section{padding:1px 0}.pale,.consultancy-service-alt{background:var(--pale)}.white{background:#fff}.court-focus,.confidence{display:grid;grid-template-columns:.75fr 1.25fr;gap:2rem;align-items:center}.confidence{grid-template-columns:auto 1fr auto;background:var(--cream)}.court-art{min-height:280px;background:linear-gradient(145deg,var(--navy),var(--navy2));position:relative}.column-row{display:flex;justify-content:center;gap:7%;padding-top:70px}.column-row i{display:block;width:10%;height:150px;background:#fff;border-top:18px solid var(--gold)}.checks li{margin:.6rem 0}.court-route,.expert-outcomes,.evidence-panel,.outcomes-panel,.consultancy-commissioners,.resource-ethics,.sar-reference-panel,.sar-tools-caution{padding:1.5rem;background:var(--cream);border-left:5px solid var(--gold);margin:2rem 0}.expert-quality-grid,.two-col,.tool-grid,.agenda-grid,.outcome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.expert-quality-grid article{display:flex;gap:1rem;padding:1rem;border-bottom:1px solid #ddd}.consultancy-intro-grid,.consultancy-feature-row,.training-hero-grid,.sar-intro-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:2rem;align-items:center}.consultancy-feature-row-reverse{grid-template-columns:.85fr 1.15fr}.consultancy-figure img,.sar-hero-figure img,.training-hero-figure img{width:100%;min-height:300px;object-fit:cover}.consultancy-service{padding:2rem 0;border-top:1px solid #d8dee3}.clean-list,.checks{padding-left:1.25rem}.sar-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.sar-method-grid article{padding:1.2rem;background:#fff;border-top:4px solid var(--gold)}details{border:1px solid #d8dee3;background:#fff;margin:.8rem 0}summary{cursor:pointer;padding:1rem;display:flex;gap:1rem}.sar-tool-content,.learning-pathways details>div{padding:0 1.2rem 1.2rem}.matrix-example{display:grid;border:1px solid #ccd4da;overflow:auto}.matrix-example>div{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr))}.matrix-example span{padding:.7rem;border:1px solid #e2e6e9}.matrix-head{font-weight:700;background:var(--navy);color:#fff}.wordpress-approved-copy{border:2px dashed var(--gold);padding:1.25rem;margin-bottom:2rem}.site-footer,footer{background:var(--navy);color:#fff}.text-link{color:var(--navy2);font-weight:700}.light-text-link{color:#fff}.contact-form input,.contact-form textarea,.contact-form select,input,textarea,select{width:100%;padding:.75rem;border:1px solid #aeb8c0;margin:.25rem 0 1rem}button{font:inherit}.footer-inner{max-width:var(--max);margin:auto;padding:3rem 1.5rem}
@media(max-width:900px){.menu-button{display:block;margin-left:auto}.nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--navy);padding:1rem;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.header-cta{display:none}.hero-grid,.court-focus,.confidence,.consultancy-intro-grid,.consultancy-feature-row,.consultancy-feature-row-reverse,.training-hero-grid,.sar-intro-grid{grid-template-columns:1fr}.business-card-grid,.featured-case-grid,.expert-stream-grid,.service-grid,.sar-type-grid,.published-sar-grid,.level-grid,.programme-grid,.framework-grid,.sar-standards-grid,.sar-method-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.hero-grid,.section-shell,.reading-column{padding:3rem 1rem}.business-card-grid,.featured-case-grid,.expert-stream-grid,.service-grid,.sar-type-grid,.published-sar-grid,.level-grid,.programme-grid,.framework-grid,.sar-standards-grid,.sar-method-grid,.expert-quality-grid,.two-col,.tool-grid,.agenda-grid,.outcome-grid{grid-template-columns:1fr}.hero h1{font-size:2.35rem}.hero-portrait{min-height:360px}}


/* MASTER1 V1.6: routed, editable WordPress pages */
.wordpress-page-main { min-height: 60vh; }
.wordpress-editable-page > .long-section:first-child { padding-top: 70px; }
.wordpress-editable-page .reading-column { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.wordpress-editable-page .entry-content { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
body.page .site-header { position: sticky; top: 0; z-index: 1000; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* MASTER1 V1.7: reliable full styling for routed inner pages */
body.page:not(.home),
body.page-template-default:not(.home) {
  background: #fff !important;
  color: var(--ink) !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

body.page:not(.home) .wordpress-page-main,
body.page-template-default:not(.home) .wordpress-page-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 65vh;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  writing-mode: horizontal-tb !important;
}

.inner-page-article,
.inner-page-content-shell,
.inner-page-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
}

/* Ordinary WordPress editor content receives the same readable page shell. */
.inner-page-content > :not(.long-section):not(section) {
  width: min(var(--max), calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}
.inner-page-content > :first-child:not(.long-section):not(section) {
  margin-top: 4.5rem;
}
.inner-page-content > :last-child:not(.long-section):not(section) {
  margin-bottom: 4.5rem;
}

/* Preserved MASTER1 sections retain their original full-width backgrounds. */
.inner-page-content > .long-section,
.inner-page-content > section.long-section {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
}
.inner-page-content .reading-column,
.inner-page-content .section-shell {
  display: block;
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 4.5rem 1.5rem;
  writing-mode: horizontal-tb !important;
}

/* Neutralise WordPress.com/Gutenberg rules that can constrain or rotate content. */
.inner-page-content .wp-site-blocks,
.inner-page-content .wp-block-post-content,
.inner-page-content .entry-content,
.inner-page-content [class*="wp-block-"] {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal;
}
.inner-page-content .wp-block-group,
.inner-page-content .wp-block-columns,
.inner-page-content .wp-block-column {
  max-width: 100%;
}
.inner-page-content p,
.inner-page-content li,
.inner-page-content h1,
.inner-page-content h2,
.inner-page-content h3,
.inner-page-content h4,
.inner-page-content h5,
.inner-page-content h6,
.inner-page-content a,
.inner-page-content span,
.inner-page-content strong,
.inner-page-content em {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Inner-page typography and spacing, including plain Gutenberg pages. */
.inner-page-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.inner-page-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.15;
}
.inner-page-content h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}
.inner-page-content p,
.inner-page-content li {
  font-size: 1rem;
  line-height: 1.7;
}

/* Ensure the shared header and footer remain identical to the homepage. */
body.page:not(.home) .site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--navy) !important;
  color: #fff !important;
  z-index: 1000;
}
body.page:not(.home) footer,
body.page:not(.home) .site-footer {
  width: 100%;
  background: var(--navy) !important;
  color: #fff !important;
}
body.admin-bar.page:not(.home) .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar.page:not(.home) .site-header { top: 46px; }
}
@media (max-width: 620px) {
  .inner-page-content > :not(.long-section):not(section) {
    width: calc(100% - 2rem);
  }
  .inner-page-content .reading-column,
  .inner-page-content .section-shell {
    padding: 3rem 1rem;
  }
}


/* MASTER1 V1.8: repair the final gold WordPress call-to-action block only.
   WordPress.com may render this as a Group, Cover or Columns block. Its text
   column must retain usable width beside the action button. */
body.page:not(.home) .inner-page-content > .wp-block-group:last-child,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child,
body.page:not(.home) .inner-page-content > .wp-block-columns:last-child,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child[style*="background"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 3rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem)) !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-cover__inner-container,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child > .wp-block-group__inner-container,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child,
body.page:not(.home) .inner-page-content > .wp-block-columns:last-child,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  column-gap: 2rem !important;
  row-gap: 1.25rem !important;
}

/* Give the heading/text side room to flow normally; do not let the button
   squeeze it into a one-character column. */
body.page:not(.home) .inner-page-content > .wp-block-group:last-child > :not(.wp-block-buttons):not(.wp-block-button),
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-cover__inner-container > :not(.wp-block-buttons):not(.wp-block-button),
body.page:not(.home) .inner-page-content > .wp-block-columns:last-child > :not(.wp-block-buttons):not(.wp-block-button),
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background > :not(.wp-block-buttons):not(.wp-block-button) {
  flex: 1 1 34rem !important;
  width: auto !important;
  min-width: min(100%, 18rem) !important;
  max-width: 52rem !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

body.page:not(.home) .inner-page-content > .wp-block-group:last-child .wp-block-buttons,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-buttons,
body.page:not(.home) .inner-page-content > .wp-block-columns:last-child .wp-block-buttons,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background .wp-block-buttons,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child .wp-block-button,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.page:not(.home) .inner-page-content > .wp-block-group:last-child h1,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child h2,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child h3,
body.page:not(.home) .inner-page-content > .wp-block-group:last-child p,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child h1,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child h2,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child h3,
body.page:not(.home) .inner-page-content > .wp-block-cover:last-child p,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background h1,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background h2,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background h3,
body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background p {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

@media (max-width: 700px) {
  body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-cover__inner-container,
  body.page:not(.home) .inner-page-content > .wp-block-group:last-child,
  body.page:not(.home) .inner-page-content > .wp-block-columns:last-child,
  body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  body.page:not(.home) .inner-page-content > .wp-block-group:last-child > *,
  body.page:not(.home) .inner-page-content > .wp-block-cover:last-child .wp-block-cover__inner-container > *,
  body.page:not(.home) .inner-page-content > .wp-block-columns:last-child > *,
  body.page:not(.home) .inner-page-content > [class*="wp-block-"]:last-child.has-background > * {
    flex-basis: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* MASTER1 V1.9: deterministic inner-page CTA and hero-media repair. */
body.page:not(.home) .inner-page-content .db-inner-cta {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: 2rem !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 2.75rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem)) !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
body.page:not(.home) .inner-page-content .db-inner-cta > .db-cta-text {
  grid-column: 1 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
}
body.page:not(.home) .inner-page-content .db-inner-cta > .db-cta-action {
  grid-column: 2 !important;
  justify-self: end !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
}
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text,
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text * {
  display: block;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  letter-spacing: normal;
}
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text h1,
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text h2,
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text h3,
body.page:not(.home) .inner-page-content .db-inner-cta .db-cta-text p {
  margin: 0 !important;
  line-height: 1.2 !important;
}
body.page:not(.home) .inner-page-content .db-inner-cta .wp-block-buttons,
body.page:not(.home) .inner-page-content .db-inner-cta .wp-block-button,
body.page:not(.home) .inner-page-content .db-inner-cta .wp-block-button__link {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Keep the leading inner-page hero image inside its designed frame. */
body.page:not(.home) .inner-page-content .db-inner-hero-frame {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  background: var(--pale);
}
body.page:not(.home) .inner-page-content .db-inner-hero-frame > img,
body.page:not(.home) .inner-page-content img.db-inner-hero-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
}
body.page:not(.home) .inner-page-content .sar-hero-figure,
body.page:not(.home) .inner-page-content .training-hero-figure,
body.page:not(.home) .inner-page-content .consultancy-figure,
body.page:not(.home) .inner-page-content .resources-hero figure {
  overflow: hidden !important;
}
body.page:not(.home) .inner-page-content .sar-hero-figure img,
body.page:not(.home) .inner-page-content .training-hero-figure img,
body.page:not(.home) .inner-page-content .consultancy-figure img,
body.page:not(.home) .inner-page-content .resources-hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
@media (max-width: 700px) {
  body.page:not(.home) .inner-page-content .db-inner-cta {
    grid-template-columns: 1fr !important;
  }
  body.page:not(.home) .inner-page-content .db-inner-cta > .db-cta-action {
    grid-column: 1 !important;
    justify-self: start !important;
  }
}


/* MASTER1 V1.10 — HOMEPAGE PORTRAIT BORDER FIX
   Preserve the approved portrait image and V1.5 hero placement while removing
   all framing artefacts around the image. */
body.home .hero-portrait,
body.front-page .hero-portrait,
.home .hero .hero-portrait {
  border: 0 !important;
  padding: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-clip: border-box !important;
}


/* MASTER1 V1.11 — HOMEPAGE PORTRAIT SCALE AND BALANCE
   The approved portrait file is unchanged. These rules enlarge its visual area,
   show more of the upper body, and remove every possible framing artefact. */
body.home .hero-grid,
body.front-page .hero-grid {
  width: min(1380px, calc(100% - 48px)) !important;
  max-width: 1380px !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr) !important;
  gap: clamp(2rem, 4vw, 4.5rem) !important;
  min-height: 660px !important;
}

body.home .hero-portrait,
body.front-page .hero-portrait,
.home .hero .hero-portrait {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1.30 / 1 !important;
  align-self: center !important;
  background-image: url('assets/professional-portrait-1.jpg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-color: transparent !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: hidden !important;
}

body.home .hero-portrait::before,
body.home .hero-portrait::after,
body.front-page .hero-portrait::before,
body.front-page .hero-portrait::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 1050px) {
  body.home .hero-grid,
  body.front-page .hero-grid {
    width: min(1180px, calc(100% - 40px)) !important;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 900px) {
  body.home .hero-grid,
  body.front-page .hero-grid {
    width: min(760px, calc(100% - 32px)) !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  body.home .hero-portrait,
  body.front-page .hero-portrait {
    width: 100% !important;
    aspect-ratio: 1.30 / 1 !important;
  }
}


/* MASTER1 V1.12 — HOMEPAGE HERO PORTRAIT ALIGNMENT AND HEIGHT
   CSS-only adjustment. The approved portrait image file is unchanged.
   Align the portrait frame with the top of the hero copy and give it greater
   vertical presence on the right side of the homepage hero. */
body.home .hero-grid,
body.front-page .hero-grid {
  align-items: start !important;
}

body.home .hero-copy,
body.front-page .hero-copy {
  align-self: start !important;
}

body.home .hero-portrait,
body.front-page .hero-portrait,
.home .hero .hero-portrait {
  align-self: start !important;
  justify-self: stretch !important;
  height: clamp(570px, 46vw, 670px) !important;
  min-height: 570px !important;
  aspect-ratio: auto !important;
  background-position: center top !important;
  background-size: cover !important;
}

@media (max-width: 1050px) and (min-width: 901px) {
  body.home .hero-portrait,
  body.front-page .hero-portrait,
  .home .hero .hero-portrait {
    height: 570px !important;
    min-height: 570px !important;
  }
}

@media (max-width: 900px) {
  body.home .hero-grid,
  body.front-page .hero-grid {
    align-items: stretch !important;
  }
  body.home .hero-portrait,
  body.front-page .hero-portrait,
  .home .hero .hero-portrait {
    height: auto !important;
    min-height: 460px !important;
    aspect-ratio: 1.30 / 1 !important;
    background-position: center top !important;
  }
}

@media (max-width: 620px) {
  body.home .hero-portrait,
  body.front-page .hero-portrait,
  .home .hero .hero-portrait {
    min-height: 390px !important;
  }
}


/* MASTER1 V1.13 — CONSISTENT IMAGE-LED INNER PAGES */
body.page:not(.home) .inner-page-content > .long-section > .reading-column {
  padding-top: 2.5rem;
}
.inner-service-hero,
.established-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin: 0 0 3.25rem;
  padding: 0;
}
.inner-service-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem) 0;
}
.inner-service-hero-copy h1 {
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  line-height: 1.08;
  margin: .25rem 0 1.25rem;
  color: var(--navy);
}
.inner-service-hero-copy p:last-child {
  font-size: 1.1rem;
  max-width: 62ch;
}
.inner-service-hero-image,
.established-page-hero figure {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  background: var(--pale);
}
.inner-service-hero-image img,
.established-page-hero figure img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.page:not(.home) .wordpress-approved-copy { display:none !important; }
body.page:not(.home) .inner-page-content h2:first-of-type {
  margin-top: .5rem;
}
body.page:not(.home) .expert-witness-detail > .reading-column > .eyebrow:first-of-type,
body.page:not(.home) .expert-witness-detail > .reading-column > h2:first-of-type,
body.page:not(.home) .wspp-section > .reading-column > .eyebrow:first-of-type,
body.page:not(.home) .wspp-section > .reading-column > h2:first-of-type,
body.page:not(.home) .resources-section > .reading-column > .resources-hero:first-of-type,
body.page:not(.home) .publications-section > .reading-column > .publications-intro:first-of-type,
body.page:not(.home) .contact > .reading-column > .eyebrow:first-of-type,
body.page:not(.home) .contact > .reading-column > h2:first-of-type { display:none; }
@media (max-width: 850px) {
  .inner-service-hero,
  .established-page-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .inner-service-hero-image,
  .established-page-hero figure,
  .inner-service-hero-image img,
  .established-page-hero figure img { min-height: 300px; }
}

/* MASTER1 V1.14 — concise homepage close and final accessibility polish. */
.homepage-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  background: var(--navy, #0b1c33);
  color: #fff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.homepage-final-cta h2 { color: #fff; margin-top: .25rem; }
.homepage-final-cta p:not(.eyebrow) { max-width: 50rem; }
.homepage-final-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #9d7728;
}
.inner-page-content a:focus-visible,
.contact a:focus-visible,
.contact button:focus-visible,
.contact input:focus-visible,
.contact select:focus-visible,
.contact textarea:focus-visible {
  outline-color: #0b1c33;
}

@media (max-width: 800px) {
  .homepage-final-cta { grid-template-columns: 1fr; gap: 1.5rem; }
  .homepage-final-actions { justify-content: flex-start; }
}


/* MASTER1 V1.16 — dedicated Resources hero image fallback.
   The normal image remains editable and accessible. The background guarantees
   that the approved visual remains present if a lazy-loading/CDN image URL is
   temporarily withheld or stale. */
body.page:not(.home) .inner-page-content .resources-guidance-hero {
  display: block !important;
  position: relative !important;
  min-height: 360px !important;
  overflow: hidden !important;
  background-image: url('assets/resources-guidance.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
body.page:not(.home) .inner-page-content .resources-guidance-hero img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* MASTER1 V1.19 — STABLE ROLLBACK WITH TARGETED SPACING FIXES
   Based on the stable V1.16 build. No V1.17 card redesign rules are included. */

/* Safeguarding Adult Review tool summaries: keep number, title and subtitle distinct. */
body.page:not(.home) .sar-tool > summary {
  display: grid !important;
  grid-template-columns: 3.25rem minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
  padding: 1.2rem 1.35rem !important;
  min-width: 0 !important;
}
body.page:not(.home) .sar-tool > summary .tool-number {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
body.page:not(.home) .sar-tool > summary > span:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: .35rem 1rem !important;
  min-width: 0 !important;
}
body.page:not(.home) .sar-tool > summary strong {
  display: block !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.page:not(.home) .sar-tool > summary small {
  display: block !important;
  flex: 1 1 24rem !important;
  min-width: 16rem !important;
  margin: 0 !important;
  color: #354552 !important;
  font-size: .98rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Contact enquiry headings: force heading and explanatory paragraph onto separate lines. */
body.page:not(.home) .enquiry-panel .enquiry-heading {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 1.5rem !important;
}
body.page:not(.home) .enquiry-panel .enquiry-heading h2,
body.page:not(.home) .enquiry-panel .enquiry-heading h3,
body.page:not(.home) .enquiry-panel .enquiry-heading h4 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .65rem !important;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.page:not(.home) .enquiry-panel .enquiry-heading p {
  display: block !important;
  width: 100% !important;
  max-width: 72ch !important;
  margin: 0 !important;
  line-height: 1.65 !important;
}

@media (max-width: 700px) {
  body.page:not(.home) .sar-tool > summary {
    grid-template-columns: 2.5rem minmax(0, 1fr) !important;
    gap: .75rem !important;
    padding: 1rem !important;
  }
  body.page:not(.home) .sar-tool > summary > span:last-child {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .35rem !important;
  }
  body.page:not(.home) .sar-tool > summary small {
    min-width: 0 !important;
  }
}


/* MASTER1 V1.21 — controlled homepage balance and Expert Witness imagery. */
body.home .hero-grid, body.front-page .hero-grid { align-items: start; }
body.home .hero-visual-column, body.front-page .hero-visual-column {
  display:flex; flex-direction:column; align-self:stretch; min-width:0;
}
body.home .hero-visual-column .hero-portrait, body.front-page .hero-visual-column .hero-portrait {
  width:100%; flex:1 1 auto; min-height:520px;
}
body.home .hero-direct-email, body.front-page .hero-direct-email {
  margin:.85rem 0 .65rem; text-align:center; font-weight:700;
}
body.home .hero-direct-email a, body.front-page .hero-direct-email a { color:#fff; text-decoration:underline; text-underline-offset:3px; }
body.home .hero-actions-left, body.front-page .hero-actions-left { margin-top:2rem; }
body.home .hero-actions-right, body.front-page .hero-actions-right { margin-top:0; justify-content:center; }
body.home .hero-actions-right .button, body.front-page .hero-actions-right .button { width:100%; text-align:center; }
.expert-stream { overflow:hidden; }
.expert-stream-image {
  width:calc(100% + 2.8rem); height:210px; object-fit:cover; display:block;
  margin:-1.4rem -1.4rem 1.25rem; border:0; box-shadow:none;
}
@media(max-width:900px){
  body.home .hero-visual-column .hero-portrait, body.front-page .hero-visual-column .hero-portrait { min-height:440px; }
}
@media(max-width:620px){
  body.home .hero-visual-column .hero-portrait, body.front-page .hero-visual-column .hero-portrait { min-height:360px; }
  body.home .hero-actions-right .button, body.front-page .hero-actions-right .button { width:auto; }
}

/* MASTER1 V1.21 — SAR visual breaks, published links and CV downloads */
.sar-page-break-image{
  margin:3rem 0;
  height:clamp(260px,34vw,430px);
  overflow:hidden;
  border-radius:4px;
  box-shadow:0 10px 28px rgba(13,36,52,.10);
}
.sar-page-break-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.sar-page-break-image-alt img{object-position:center 42%;}
.published-sar-card h4 a{
  text-decoration:none;
  color:var(--navy2);
}
.published-sar-card h4 a:hover,
.published-sar-card h4 a:focus{
  text-decoration:underline;
  text-underline-offset:.18em;
}
.document-links a{font-weight:700;}
.button.outline-on-light{
  background:transparent;
  color:var(--navy);
  border-color:var(--navy);
}
.sar-intro-actions .text-link{display:inline-flex;align-items:center;}
@media(max-width:620px){
  .sar-page-break-image{height:240px;margin:2rem 0;}
}


/* MASTER1 V1.22 — reliable Resources image and publication/training link panels */
.resources-card-image{overflow:hidden;background:var(--pale)!important}
.resources-card-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.publication-link-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem}
.publication-link-card,.current-training-links,.published-sar-additional{border:1px solid #d8dee3;background:#fff;box-shadow:0 8px 25px #0d24340d;padding:1.5rem}
.current-training-links{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;margin:2rem 0}
.current-training-actions{display:flex;gap:.8rem;flex-wrap:wrap;justify-content:flex-end}
.published-sar-additional{margin:2.5rem 0}
.published-sar-wide{margin-top:1.25rem}
@media(max-width:800px){.publication-link-cards,.current-training-links{grid-template-columns:1fr}.current-training-actions{justify-content:flex-start}}


/* MASTER1 V1.24 — professional SAR page presentation and resilient tool headings */
.inner-page-content .sar-methodology,
.inner-page-content .sar-tools,
.inner-page-content .sar-standards {
  margin: 3.5rem 0;
}
.inner-page-content .sar-methodology > .eyebrow,
.inner-page-content .sar-tools-heading,
.inner-page-content .sar-standards-heading {
  max-width: 1050px;
}
.inner-page-content .sar-method-grid article,
.inner-page-content .sar-standards-grid article {
  border: 1px solid #d8dee3;
  border-top: 5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(13,36,52,.07);
  padding: 1.5rem;
}
.inner-page-content .sar-method-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: .8rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}
.inner-page-content .sar-tool-list {
  display: grid;
  gap: 1rem;
}
.inner-page-content .sar-tool {
  margin: 0;
  border: 1px solid #ccd5dc;
  border-left: 6px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 7px 20px rgba(13,36,52,.06);
  overflow: hidden;
}
.inner-page-content .sar-tool > summary {
  display: grid !important;
  grid-template-columns: 3.5rem minmax(0,1fr) !important;
  column-gap: 1.15rem !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 1.35rem 1.5rem !important;
  background: #fff !important;
}
.inner-page-content .sar-tool > summary .tool-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3rem !important;
  height: 3rem !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: var(--navy) !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.inner-page-content .sar-tool > summary > span:last-child {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .35rem !important;
  width: 100% !important;
  min-width: 0 !important;
}
.inner-page-content .sar-tool > summary strong,
.inner-page-content .sar-tool > summary small {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
}
.inner-page-content .sar-tool > summary strong {
  font-size: 1.18rem !important;
  line-height: 1.35 !important;
  color: var(--navy) !important;
}
.inner-page-content .sar-tool > summary small {
  font-size: 1rem !important;
  line-height: 1.55 !important;
  color: #40505d !important;
}
.inner-page-content .sar-tool[open] > summary {
  background: var(--cream) !important;
  border-bottom: 1px solid #d8dee3;
}
.inner-page-content .sar-tool-content {
  padding: 1.5rem 1.7rem 1.7rem !important;
}
.sar-page-break-image-standards img { object-position: center 38%; }
@media (max-width: 700px) {
  .inner-page-content .sar-tool > summary {
    grid-template-columns: 2.8rem minmax(0,1fr) !important;
    gap: .8rem !important;
    padding: 1rem !important;
  }
  .inner-page-content .sar-tool > summary .tool-number {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  .inner-page-content .sar-tool-content {
    padding: 1.1rem !important;
  }
}


/* MASTER1 V1.24 — restore SAR matrices as conventional, readable tables */
.sar-table-wrap{width:100%;overflow-x:auto;margin:1.5rem 0 1.75rem;border:1px solid #ccd4da;background:#fff;-webkit-overflow-scrolling:touch}
.sar-data-table{width:100%;min-width:980px;border-collapse:collapse;table-layout:fixed}
.sar-data-table th,.sar-data-table td{padding:1rem 1.1rem;border-right:1px solid #d9e0e5;border-bottom:1px solid #d9e0e5;text-align:left;vertical-align:top;word-break:normal;overflow-wrap:break-word;white-space:normal}
.sar-data-table th:last-child,.sar-data-table td:last-child{border-right:0}
.sar-data-table tbody tr:last-child td{border-bottom:0}
.sar-data-table thead th{background:var(--navy);color:#fff;font-weight:700;line-height:1.35}
.sar-data-table tbody td{background:#fff;color:var(--ink);line-height:1.55}
.sar-data-table tbody td:first-child{font-weight:700;background:var(--cream)}
@media(max-width:760px){.sar-data-table{min-width:850px}.sar-data-table th,.sar-data-table td{padding:.85rem}}


/* MASTER1 V1.25 — targeted page repairs and visual tidy */
.profile-link-row{margin:2rem 0}.profile-link-row .button{font-size:1rem}
.court-photo{margin:0;min-height:0;background:none!important;overflow:hidden}
.court-photo img{width:100%;height:100%;min-height:300px;object-fit:cover;object-position:center;display:block}
.sar-page-break-image{height:auto!important;max-height:none!important;background:#fff;overflow:visible!important}
.sar-page-break-image img{width:100%!important;height:auto!important;max-height:520px!important;object-fit:contain!important;object-position:center!important;display:block!important}
.inner-page-content .sar-tool>summary{display:flex!important;align-items:flex-start!important;gap:1rem!important;width:100%!important;padding:1.15rem 1.3rem!important}
.inner-page-content .sar-tool>summary .tool-number{flex:0 0 3rem!important;width:3rem!important;height:3rem!important}
.inner-page-content .sar-tool>summary>span:last-child{display:block!important;flex:1 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important}
.inner-page-content .sar-tool>summary strong{display:block!important;font-size:1.18rem!important;line-height:1.35!important;margin:0 0 .25rem!important}
.inner-page-content .sar-tool>summary small{display:block!important;font-size:1rem!important;line-height:1.5!important;margin:0!important;max-width:72ch!important}
.training-page-break-image{margin:3rem 0;overflow:hidden;background:var(--pale);border:1px solid #d8dee3}
.training-page-break-image img{width:100%;height:auto;max-height:460px;object-fit:contain;object-position:center;display:block}
.training-page-break-image-wide img{max-height:520px}
@media(max-width:700px){.inner-page-content .sar-tool>summary{gap:.75rem!important;padding:1rem!important}.inner-page-content .sar-tool>summary .tool-number{flex-basis:2.5rem!important;width:2.5rem!important;height:2.5rem!important}.court-photo img{min-height:230px}}


/* MASTER1 V1.26 — professional readiness and controlled Consultancy readability */
.expert-duty-panel,.expert-experience-summary,.illustrative-programme{
  margin:2.25rem 0;padding:1.6rem 1.75rem;background:var(--cream);border-left:6px solid var(--gold)
}
.instruction-process{margin:3rem 0}.instruction-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:0;list-style:none;counter-reset:instruction}
.instruction-steps li{counter-increment:instruction;background:#fff;border:1px solid #d8dee3;border-top:4px solid var(--gold);padding:1.25rem;min-width:0}
.instruction-steps li:before{content:counter(instruction,decimal-leading-zero);display:block;color:var(--gold);font-weight:700;font-size:1.15rem;margin-bottom:.45rem}
.expert-practical-grid,.training-delivery-grid,.consultancy-choice-grid,.homepage-audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.expert-practical-panel,.training-delivery-grid p,.consultancy-choice-grid p,.homepage-audience-grid article{margin:0;padding:1.35rem;background:#fff;border:1px solid #d8dee3;box-shadow:0 7px 22px rgba(13,36,52,.05)}
.parenting-stage-list{display:grid;gap:.7rem;margin:1rem 0}.parenting-stage-list p{margin:0;padding:.9rem;background:var(--cream);border-left:4px solid var(--gold)}

/* Consultancy page only: stable wide text columns, aligned cards and controls */
body.page .consultancy-section .reading-column{max-width:1180px}
body.page .consultancy-section .consultancy-heading{display:grid;grid-template-columns:4.25rem minmax(0,1fr);gap:1.25rem;align-items:start;margin-bottom:1.5rem}
body.page .consultancy-section .consultancy-heading .service-number{margin:0;width:3.3rem;height:3.3rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--navy);color:var(--gold)}
body.page .consultancy-section .consultancy-heading>div{min-width:0;width:100%;max-width:none}
body.page .consultancy-section .consultancy-heading h3,body.page .consultancy-section .consultancy-heading p{width:auto;max-width:76ch;white-space:normal;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb}
body.page .consultancy-section .service-grid{align-items:stretch}
body.page .consultancy-section .service-detail-card{display:flex;flex-direction:column;min-width:0;padding:1.5rem;line-height:1.65}
body.page .consultancy-section .service-detail-card h4{margin:0 0 .85rem;line-height:1.35;word-break:normal;overflow-wrap:normal}
body.page .consultancy-section .section-cta{align-items:center;justify-content:flex-start;gap:1rem;margin:1.75rem 0 2.5rem}
body.page .consultancy-section .section-cta .button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;text-align:center;padding:.8rem 1.15rem;line-height:1.3;white-space:normal}
body.page .consultancy-section p{margin-top:0;margin-bottom:1rem}
body.page .consultancy-section .consultancy-service{padding:3rem 0}
body.page .consultancy-section .consultancy-feature-row,body.page .consultancy-section .two-col,body.page .consultancy-section .service-grid{margin:1.6rem 0 2rem}
.consultancy-choice{margin:3rem 0;padding:2rem;background:var(--pale);border-top:5px solid var(--gold)}
.consultancy-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.training-delivery,.illustrative-programme{margin:3rem 0}.training-delivery-grid p{line-height:1.65}
.homepage-audience-routes{padding-top:3.5rem;padding-bottom:3.5rem;background:var(--pale)}
.homepage-audience-grid article{border-top:5px solid var(--gold);padding:1.7rem}
.court-duty-home{margin-top:1.5rem;padding:1rem 1.1rem;background:var(--cream);border-left:5px solid var(--gold)}
.homepage-fees-strip{max-width:var(--max);margin:0 auto 3rem;padding:1.25rem 1.5rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;background:var(--navy);color:#fff}
.homepage-fees-strip div{display:flex;flex-direction:column;padding:.5rem 1rem;border-left:3px solid var(--gold)}
.homepage-fees-strip span{font-size:.94rem}.homepage-fees-strip p{grid-column:1/-1;margin:0;padding:.25rem 1rem;color:#fff}
@media(max-width:900px){.instruction-steps,.expert-practical-grid,.training-delivery-grid,.homepage-audience-grid{grid-template-columns:1fr}.consultancy-choice-grid{grid-template-columns:1fr}.homepage-fees-strip{grid-template-columns:1fr}.homepage-fees-strip p{grid-column:auto}}
@media(max-width:700px){body.page .consultancy-section .consultancy-heading{grid-template-columns:3rem minmax(0,1fr);gap:.8rem}body.page .consultancy-section .consultancy-heading .service-number{width:2.7rem;height:2.7rem}.consultancy-choice{padding:1.25rem}body.page .consultancy-section .section-cta{align-items:stretch}body.page .consultancy-section .section-cta .button{width:100%}}

/* MASTER1 V1.27 — final quality assurance, policy pages and stable SAR headings */
.inner-page-content .sar-tool > summary .tool-heading{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:.38rem!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
}
.inner-page-content .sar-tool > summary .tool-title,
.inner-page-content .sar-tool > summary .tool-subtitle{
  display:block!important;
  width:100%!important;
  max-width:72ch!important;
  margin:0!important;
  padding:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}
.inner-page-content .sar-tool > summary .tool-title{
  color:var(--navy)!important;
  font-size:1.18rem!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.inner-page-content .sar-tool > summary .tool-subtitle{
  color:#40505d!important;
  font-size:1rem!important;
  line-height:1.55!important;
  font-weight:400!important;
}
.homepage-parenting-stages{margin:1.1rem 0 1.25rem}
.homepage-parenting-stages p{max-width:none}
.footer-grid{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;padding-top:1.5rem;padding-bottom:1.5rem}
.footer-links{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.footer-links a{text-decoration:underline;text-underline-offset:.2em}
.footer-links a:hover,.footer-links a:focus{color:var(--gold)}
.policy-page .reading-column{max-width:900px}
.policy-page h1{font-size:clamp(2.3rem,4vw,3.7rem);line-height:1.1;margin:.25rem 0 1.25rem}
.policy-page h2{font-size:clamp(1.45rem,2.3vw,2rem);margin:2.25rem 0 .75rem}
.policy-page p,.policy-page li{max-width:76ch}
.policy-page .policy-updated{margin-top:2.5rem;padding-top:1rem;border-top:1px solid #d8dee3}
@media(max-width:760px){
  .inner-page-content .sar-tool > summary .tool-title{font-size:1.08rem!important}
  .inner-page-content .sar-tool > summary .tool-subtitle{font-size:.96rem!important}
  .footer-grid{align-items:flex-start;flex-direction:column}
}


/* MASTER1 V1.28 — CONTACT ROUTE BALANCE
   Targeted only to the Contact page. Wording and destinations are preserved,
   except removal of the confusing "Non-court professional work" label. */
body.page:not(.home) .contact .contact-direct-email {
  margin: .65rem 0 1.5rem !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
}
body.page:not(.home) .contact .contact-direct-email a {
  color: var(--navy) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.page:not(.home) .contact .enquiry-pathways {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
  margin: 2rem 0 3rem !important;
  width: 100% !important;
}
body.page:not(.home) .contact .enquiry-path {
  appearance: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .55rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 235px !important;
  margin: 0 !important;
  padding: 2rem 1.75rem !important;
  border: 1px solid #78838b !important;
  border-radius: 4px !important;
  background: #f4f4f4 !important;
  color: var(--ink) !important;
  text-align: center !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
body.page:not(.home) .contact .enquiry-path:hover,
body.page:not(.home) .contact .enquiry-path:focus-visible,
body.page:not(.home) .contact .enquiry-path.active {
  border-color: var(--gold) !important;
  box-shadow: inset 0 4px 0 var(--gold) !important;
  outline: none !important;
}
body.page:not(.home) .contact .enquiry-path .path-label {
  display: block !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}
body.page:not(.home) .contact .enquiry-path strong {
  display: block !important;
  margin: 0 !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  line-height: 1.25 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.page:not(.home) .contact .enquiry-path > span:last-child {
  display: block !important;
  max-width: 60ch !important;
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
body.page:not(.home) .contact .enquiry-panel {
  clear: both !important;
  margin-top: 0 !important;
  padding-top: .5rem !important;
}
body.page:not(.home) .contact .enquiry-panel .enquiry-heading {
  margin-top: 0 !important;
}
@media (max-width: 820px) {
  body.page:not(.home) .contact .enquiry-pathways {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2.25rem !important;
  }
  body.page:not(.home) .contact .enquiry-path {
    min-height: 0 !important;
    padding: 1.5rem 1.25rem !important;
  }
}




/* MASTER1 V1.33 — discreet, temporary continuation cue on longer service pages. */
.db-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: calc(100vw - 2rem);
  padding: .8rem 1.05rem;
  border: 1px solid rgba(198,161,91,.9);
  border-radius: 999px;
  background: rgba(13,43,66,.96);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
}
.db-scroll-cue::after {
  content: "↓";
  color: var(--gold);
  font-size: 1.18em;
  line-height: 1;
}
.db-scroll-cue.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.db-scroll-cue:hover,
.db-scroll-cue:focus-visible {
  background: #fff;
  color: var(--navy);
  outline: 3px solid rgba(198,161,91,.4);
  outline-offset: 3px;
}
.db-scroll-cue.is-hiding {
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
}
@media (max-width: 620px) {
  .db-scroll-cue {
    width: calc(100vw - 2rem);
    justify-content: center;
    border-radius: 8px;
    font-size: .94rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .db-scroll-cue { transition: none; transform: translate(-50%, 0); }
}
