/** Practest child theme 1.9.1 - companion to native Divi style setup.
 * Global typography, ordinary text colours and buttons belong to Divi.
 * Retains approved layout geometry, mixed-content accents, image styling,
 * custom journey and keyboard focus treatment. No 1.4.1 colour override.
 * Complete CLAUDE-NATIVE-STYLES.md before accepting the visual result.
 */
.practest-visually-hidden:not(:focus):not(:active) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.practest-home { --pt-ink:#1a2b52; --pt-pink:#ea097d; --pt-link:#bd075f; --pt-paper:#fff; --pt-soft:#f4f7fc; background:var(--pt-paper); padding:80px 0!important; }
.practest-home * { box-sizing:border-box; }
.practest-home .practest-row { width:88%!important; max-width:1180px!important; margin:0 auto!important; padding:0!important; display:flex!important; gap:56px!important; align-items:flex-start!important; flex-wrap:nowrap!important; }
.practest-home .practest-row+.practest-row { margin-top:36px!important; }
.practest-home .practest-column { flex:1 1 0!important; width:auto!important; min-width:0; margin:0!important; float:none!important; }
.practest-home .et_pb_text { margin-bottom:26px!important; }
.practest-home p { padding-bottom:18px; }
.practest-home p:last-child { padding-bottom:0; }
.practest-home h1,.practest-home h2,.practest-home h3 { padding-bottom:20px; }
.practest-home h1 { max-width:950px; }
.practest-home em { font-style:normal; color:#ea097d; }
.practest-home .practest-eyebrow,.practest-home .practest-kicker { font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding-bottom:24px; }
.practest-home .practest-eyebrow { color:var(--pt-link); }
.practest-home .practest-lead { font-size:22px; line-height:1.5; max-width:780px; }
.practest-home.practest-hero { padding:100px 0 88px!important; background:#1a2b52; border-bottom:8px solid #ea097d; }
.practest-hero .practest-eyebrow { color:#ff87c3; }
.practest-hero .practest-lead { max-width:730px; }
.practest-hero .practest-row { max-width:1180px!important; }
.practest-hero .et_pb_text>div>p:not([class]) { max-width:670px; }
.practest-home a:focus-visible { outline:3px solid #ffb900!important; outline-offset:5px!important; }
.practest-home .practest-cards { gap:24px!important; align-items:stretch!important; }
.practest-cards>.practest-column { padding:38px!important; border:1px solid #dfd7dd; border-top:5px solid #ea097d; background:#fff; display:flex!important; flex-direction:column!important; border-radius:0 0 8px 8px; }
.practest-cards .practest-button { margin-top:auto!important; }
.practest-home ul { padding:0 0 0 22px!important; }
.practest-home li { padding-bottom:9px; }
.practest-audiences { background:#f4f7fc; }
.practest-services h3:not(:first-child) { margin-top:30px; }
.practest-services-row>.practest-column:first-child { flex:.9!important; }
.practest-services-row>.practest-column:last-child { border-left:1px solid #ded8df; padding-left:48px!important; }
.practest-work { background:#f4f7fc; }
.practest-home .practest-work-cards { gap:40px!important; }
.practest-work-cards>.practest-column { border-top:1px solid #bcb1bd; padding-top:28px!important; }
.practest-steps { list-style:none!important; padding:0!important; counter-reset:step; }
.practest-steps li { counter-increment:step; padding:0 0 24px 55px!important; position:relative; }
.practest-steps li:before { content:'0' counter(step); position:absolute; left:0; top:0; color:#bd075f; font-weight:700; }
.practest-steps h3 { padding-bottom:10px; }
.practest-faq { border-top:1px solid #e3dce2; }
.practest-faq h3:not(:first-child) { margin-top:28px; }
.practest-home.practest-contact { background:#1a2b52; }
.practest-contact .practest-eyebrow { color:#ff87c3; }
.practest-contact .practest-contact-note { font-size:14px; color:#d9d4df; padding-top:26px; }
.practest-home[id] { scroll-margin-top:30px; }
@media(max-width:767px) {
.practest-home { padding:52px 0!important; }
.practest-home.practest-hero { padding:66px 0!important; }
.practest-home .practest-row { flex-direction:column!important; gap:28px!important; width:88%!important; }
.practest-home .practest-column { width:100%!important; flex:auto!important; }
.practest-home .practest-lead { font-size:19px; }
.practest-cards>.practest-column { padding:26px!important; }
.practest-services-row>.practest-column:last-child { border-left:0; padding-left:0!important; }
.practest-home .practest-cards { gap:24px!important; }
}
.practest-home .practest-project-image { margin-bottom:26px!important; }
.practest-project-image img { display:block; width:100%; height:auto; border-radius:6px; }
.practest-home .practest-people-image img { display:block; width:100%; height:auto; border-radius:8px; }
.practest-people { background:#f4f7fc; }
.practest-home .practest-people-image { margin-bottom:0!important; }
.practest-people .practest-row { align-items:center!important; }
.practest-home { overflow-wrap:break-word; }
.practest-home p { max-width:70ch; }
.practest-home a:focus-visible { outline:3px solid #1a2b52!important; outline-offset:4px!important; box-shadow:0 0 0 4px #fff!important; }
.practest-hero a:focus-visible,.practest-contact a:focus-visible { outline-color:#fff!important; box-shadow:0 0 0 4px #1a2b52!important; }
.practest-hero .practest-row { align-items:center!important; gap:48px!important; }
@media(min-width:981px) {
.practest-hero .practest-row>.practest-column:first-child { flex:1.6 1 0!important; }
.practest-hero .practest-row>.pt-journey-column { flex:1 1 0!important; }
}
.practest-hero .practest-lead { font-size:1.3125rem; line-height:1.6; }
.practest-home .practest-eyebrow { letter-spacing:.08em; }
.pt-journey { width:100%; max-width:390px; margin:auto; color:white; }
.practest-hero .pt-journey ol { list-style:none!important; padding:0!important; margin:0!important; }
.practest-hero .pt-journey li { position:relative; display:flex; align-items:flex-start; gap:18px; min-height:100px; margin:0; padding:0 0 30px!important; isolation:isolate; }
.pt-journey li:nth-child(even) { margin-left:36px!important; }
.pt-journey-icon { position:relative; display:flex; align-items:center; justify-content:center; flex:0 0 64px; width:64px; height:64px; background:#1a2b52; border:1px solid #8290ad; border-radius:50%; z-index:1; }
.pt-journey-icon img { width:30px; height:30px; display:block; }
.pt-journey-label { font-size:1.125rem; line-height:1.5; font-weight:600; display:block; padding-top:17px; }
.pt-step-number { color:#ff87c3; }
.pt-journey li:not(:last-child):after { content:''; position:absolute; left:31px; top:62px; width:38px; height:calc(100% - 31px); border-left:2px solid #ea097d; border-bottom:2px solid #ea097d; border-radius:0 0 0 28px; z-index:0; }
.pt-journey li:nth-child(2):after { left:-5px; border-left:0; border-right:2px solid #ea097d; border-radius:0 0 28px 0; }
@media(max-width:980px) {
.practest-hero .practest-row { flex-direction:column!important; align-items:stretch!important; gap:36px!important; }
.practest-hero .practest-row>.practest-column { width:100%!important; flex:auto!important; }
.pt-journey { max-width:480px; margin:0; }
.practest-hero .pt-journey ol { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:36px; row-gap:42px; }
.practest-hero .pt-journey li { display:flex; flex-direction:column; align-items:center; text-align:center; min-height:0; padding:0!important; gap:12px; margin:0!important; }
.pt-journey li:nth-child(1) { grid-area:1/1; }
.pt-journey li:nth-child(2) { grid-area:1/2; }
.pt-journey li:nth-child(3) { grid-area:2/2; }
.pt-journey li:nth-child(4) { grid-area:2/1; }
.pt-journey-label { padding:0; font-size:1rem; max-width:100%; line-height:1.5; }
.pt-journey-icon { flex:0 0 64px; }
.practest-hero .pt-journey li:after { border:0; border-radius:0; height:0; top:31px; left:50%; width:calc(100% + 36px); border-top:2px solid #ea097d; }
.practest-hero .pt-journey li:nth-child(2):after { left:auto; right:-15px; top:31px; width:calc(50% + 15px); height:calc(100% + 42px); border-top:2px solid #ea097d; border-right:2px solid #ea097d; border-bottom:2px solid #ea097d; border-radius:0 18px 18px 0; }
.practest-hero .pt-journey li:nth-child(3):after { left:auto; right:50%; width:calc(100% + 36px); border-top:2px solid #ea097d; }
.practest-hero .pt-journey li:last-child:after { display:none; }
.practest-hero .practest-lead { font-size:1.1875rem; }
}
@media(forced-colors:active) {
.pt-journey-icon { border-color:CanvasText; }
.pt-journey li:after { border-color:CanvasText!important; }
.pt-step-number { color:CanvasText; }
}
.practest-home .practest-project-panel { min-height:230px; padding:32px!important; border-radius:7px; background:#1a2b52; color:#fff; display:flex; align-items:center; margin-bottom:24px!important; border-bottom:5px solid #ea097d; }
.practest-home .practest-project-panel h3 { color:#fff; font-size:clamp(2rem,3vw,2.625rem); letter-spacing:-.025em; line-height:1.2; padding-bottom:0; }
.practest-project-category { font-size:.8125rem; letter-spacing:.06em; font-weight:700; color:#ffb4d6; text-transform:uppercase; padding-bottom:20px!important; }
.practest-home .practest-project-clark { background:#263f4d; border-bottom-color:#ea097d; }
@media(max-width:767px) {
.practest-home .practest-project-panel { min-height:190px; padding:26px!important; }
}
/* Resilient button geometry; appearance is owned by Divi presets. */
.practest-home .et_pb_button { min-height:48px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }

/* Mobile normal-flow guard: the supplied frontend screenshot shows hero
 * columns overlapping and content escaping the section. Use block stacking
 * here so desktop flex sizing cannot reserve a zero-height mobile column.
 * Native position/height overrides must also be checked on staging. */
@media(max-width:980px) {
    .practest-home.practest-hero,
    .practest-home.practest-hero .practest-row,
    .practest-home.practest-hero .practest-column {
        height:auto!important; min-height:0!important; max-height:none!important;
    }
    .practest-home.practest-hero .practest-row { display:block!important; }
    .practest-home.practest-hero .practest-row > .practest-column {
        display:block!important; position:relative!important; inset:auto!important;
        transform:none!important; float:none!important; clear:both!important;
        width:100%!important; margin:0!important;
    }
    .practest-home.practest-hero .practest-row > .pt-journey-column {
        margin-top:40px!important;
    }
    .practest-home.practest-hero .et_pb_text,
    .practest-home.practest-hero .et_pb_button_module_wrapper {
        position:relative!important; inset:auto!important; transform:none!important;
        float:none!important; height:auto!important; max-height:none!important;
    }
}
@media(max-width:767px) {
    .practest-home,
    .practest-home .practest-row,
    .practest-home .practest-column {
        height:auto!important; min-height:0!important; max-height:none!important;
    }
    .practest-home .practest-row { display:block!important; }
    .practest-home .practest-row > .practest-column {
        position:relative!important; inset:auto!important; transform:none!important;
        float:none!important; clear:both!important; width:100%!important;
    }
    .practest-home .practest-row > .practest-column + .practest-column {
        margin-top:28px!important;
    }
    .practest-home.practest-hero .practest-row > .pt-journey-column {
        margin-top:40px!important;
    }
}


/* ---------------------------------------------------------------------------
 * 1.5.1 additions - completing the native style setup.
 * Native Divi owns: body and heading font, weight, base colour, desktop
 * heading sizes and the primary button's resting appearance.
 * This block covers only what the native presets do not: brand letter spacing,
 * the responsive heading scale, dark-surface text colour, button hover and
 * outline states, FAQ heading size, and a non-colour cue on inline links.
 * ------------------------------------------------------------------------- */

/* Brand tracking on headings */
.practest-home h1,
.practest-home h2,
.practest-home h3 { letter-spacing:-.025em; }
.practest-faq h3 { font-size:23px!important; line-height:1.3!important; letter-spacing:0!important; }

/* Responsive heading scale (desktop sizes come from the native presets) */
@media(max-width:980px) {
.practest-home h1 { font-size:56px!important; }
.practest-home h2 { font-size:44px!important; }
.practest-home h3 { font-size:28px!important; }
.practest-faq h3 { font-size:22px!important; }
}
@media(max-width:767px) {
.practest-home h1 { font-size:44px!important; }
.practest-home h2 { font-size:34px!important; }
.practest-home h3 { font-size:25px!important; }
.practest-faq h3 { font-size:21px!important; }
}

/* Dark surfaces: hero and contact sit on Practest Navy */
.practest-home.practest-hero,
.practest-home.practest-contact { color:#fff; }
.practest-hero h1,.practest-hero h2,.practest-hero h3,
.practest-contact h1,.practest-contact h2,.practest-contact h3 { color:#fff!important; }
.practest-hero .et_pb_text,
.practest-hero .et_pb_text p,
.practest-hero li,
.practest-contact .et_pb_text,
.practest-contact .et_pb_text p,
.practest-contact li { color:#fff!important; }
.practest-hero .practest-eyebrow,
.practest-contact .practest-eyebrow { color:#ff87c3!important; }
.practest-contact .practest-contact-note { color:#e4e0e8!important; }
.practest-hero .pt-journey-label { color:#fff!important; }
.practest-hero .pt-step-number { color:#ff87c3!important; }

/* Buttons: resting state is the native Practest Button - Primary preset.
 * Hover and the outline variant are set here. */
body #page-container .practest-home .et_pb_button:hover,
.practest-home .et_pb_button:hover {
    background:#97044b!important; border-color:#97044b!important; color:#fff!important;
    transform:none!important; transition:background-color .15s ease,border-color .15s ease;
}
body #page-container .practest-home .practest-button-outline .et_pb_button,
.practest-home .practest-button-outline .et_pb_button {
    background:transparent!important; color:#bd075f!important; border-color:#bd075f!important;
}
body #page-container .practest-home .practest-button-outline .et_pb_button:hover,
.practest-home .practest-button-outline .et_pb_button:hover {
    background:#fff!important; color:#bd075f!important; border-color:#bd075f!important;
}
.practest-home .et_pb_button:after,
.practest-home .et_pb_button:before { display:none!important; }

/* Inline links keep a cue that does not rely on colour alone */
.practest-home .et_pb_text a:not(.et_pb_button) {
    text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
}
.practest-hero .et_pb_text a:not(.et_pb_button),
.practest-contact .et_pb_text a:not(.et_pb_button) { color:#ff87c3!important; }


/* ---------------------------------------------------------------------------
 * 1.5.2 - heading scale returned to the child theme.
 * The native Heading Text presets are created and assigned in Divi, but Divi
 * 5.13 emits no front-end CSS for them on this page: the saved markup carries
 * only the body option-group preset class, so headings fell back to the Divi
 * defaults (h1 30px, h2 26px, h3 22px) once 1.5.0 removed the generic rules.
 * Desktop sizes are therefore set here, scoped to 981px and above so they do
 * not collide with the responsive scale above. Font, weight and colour still
 * come from the native Customizer settings.
 * ------------------------------------------------------------------------- */

.practest-home h1 { line-height:1.12!important; }
.practest-home h2 { line-height:1.08!important; }
.practest-home h3 { line-height:1.2!important; }
.practest-faq h3 { line-height:1.3!important; }

@media(min-width:981px) {
.practest-home h1 { font-size:68px!important; }
.practest-home h2 { font-size:52px!important; }
.practest-home h3 { font-size:28px!important; }
.practest-faq h3 { font-size:23px!important; }
}


/* ---------------------------------------------------------------------------
 * 1.5.3 - selector corrections found on the saved front end.
 * The outline modifier sits on the button element itself, not on a wrapper,
 * and the dark-surface paragraph rule outranked the eyebrow and note colours.
 * ------------------------------------------------------------------------- */

/* Outline button variant */
body #page-container .practest-home a.et_pb_button.practest-button-outline,
.practest-home a.et_pb_button.practest-button-outline {
    background:transparent!important; background-color:transparent!important;
    color:#bd075f!important; border-color:#bd075f!important;
}
body #page-container .practest-home a.et_pb_button.practest-button-outline:hover,
.practest-home a.et_pb_button.practest-button-outline:hover {
    background:#fff!important; background-color:#fff!important;
    color:#97044b!important; border-color:#97044b!important;
}
/* On the navy hero and contact the outline reads in white */
body #page-container .practest-hero a.et_pb_button.practest-button-outline,
body #page-container .practest-contact a.et_pb_button.practest-button-outline,
.practest-hero a.et_pb_button.practest-button-outline,
.practest-contact a.et_pb_button.practest-button-outline {
    color:#fff!important; border-color:#fff!important;
}
body #page-container .practest-hero a.et_pb_button.practest-button-outline:hover,
body #page-container .practest-contact a.et_pb_button.practest-button-outline:hover,
.practest-hero a.et_pb_button.practest-button-outline:hover,
.practest-contact a.et_pb_button.practest-button-outline:hover {
    background:#fff!important; background-color:#fff!important;
    color:#97044b!important; border-color:#fff!important;
}

/* Eyebrow and contact note keep their own colour on dark surfaces */
.practest-hero .et_pb_text p.practest-eyebrow,
.practest-contact .et_pb_text p.practest-eyebrow,
.practest-hero p.practest-eyebrow,
.practest-contact p.practest-eyebrow { color:#ff87c3!important; }
.practest-contact .et_pb_text p.practest-contact-note,
.practest-contact p.practest-contact-note { color:#e4e0e8!important; }


/* ---------------------------------------------------------------------------
 * 1.9.1 - very narrow screens (legacy .practest-home pages only).
 * At 320px the hero H1 broke "communication." mid-word: at 44px that word
 * needs 289px against 268px of column. 38px measures 249px and fits.
 * Applies to the homepage and GP Practices page. The native Allied Health
 * page (pt-native-page) is unaffected.
 * ------------------------------------------------------------------------- */

@media(max-width:360px) {
.practest-home h1 { font-size:38px!important; }
}
