/* OCF Lightning — neutral global primitives.
   Purpose: provide an OCF-safe starting point without a strong visual opinion. */

:root {
    --nav-height: var(--ocf-nav-height, 4.5rem);
    --wp-admin-bar-offset: 0px;
    --wp-admin-bar-gap: 0px;

    --font-h1-size: var(--ocf-font-h1-size, clamp(34px, 5vw, 63px));
    --font-h2-size: var(--ocf-font-h2-size, clamp(28px, 3vw, 36px));
    --font-h3-size: var(--ocf-font-h3-size, 20px);
    --font-body-size: var(--ocf-font-body-size, 18px);
    --font-label-size: 16px;
    --font-button-size: 16px;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --container-max: 1300px;
    --container-pad: clamp(1rem, 4vw, 2rem);
    --section-pad: var(--ocf-section-pad, clamp(3rem, 8vw, 6rem));
    --grid-gap: 1.25rem;

    --radius-sm: var(--ocf-radius-sm, 8px);
    --radius: var(--ocf-radius, 8px);
    --radius-lg: var(--ocf-radius-lg, 8px);
    --radius-full: 999px;

    --button-radius: var(--ocf-button-radius, 8px);
    --button-border-width: 0px;
    --button-border-color: transparent;
    --button-shadow: var(--ocf-button-shadow, 0 0.45rem 1rem color-mix(in srgb, var(--ocf-heading) 12%, transparent));
    --button-shadow-hover: var(--ocf-button-shadow-hover, 0 0.7rem 1.35rem color-mix(in srgb, var(--ocf-heading) 16%, transparent));
    --button-transform-hover: translateY(-1px);
    --button-letter-spacing: 0;
    --button-text-transform: none;

    --card-radius: var(--ocf-card-radius, 8px);
    --card-radius-lg: var(--ocf-card-radius-lg, 8px);
    --card-border-width: 1px;
    --card-border-color: var(--ocf-border-light);
    --card-border-color-subtle: var(--ocf-border-light);
    --card-shadow: var(--ocf-card-shadow, 0 0.18rem 0.55rem color-mix(in srgb, var(--ocf-heading) 7%, transparent));
    --card-shadow-hover: var(--ocf-card-shadow-hover, 0 0.45rem 1rem color-mix(in srgb, var(--ocf-heading) 10%, transparent));
    --card-transform-hover: translateY(-2px);

    --image-radius: var(--ocf-image-radius, 8px);
    --image-shadow: var(--ocf-image-shadow, var(--card-shadow));
    --media-overlay-opacity: 0;
    --media-light-overlay-opacity: 0.72;
    --gradient-media-dark: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 68%, transparent) 44%, color-mix(in srgb, var(--ocf-bg-dark) 34%, transparent) 100%);
    --gradient-media-dark-reverse: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 34%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 68%, transparent) 56%, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 100%);
    --gradient-media-dark-even: linear-gradient(0deg, color-mix(in srgb, var(--ocf-bg-dark) 62%, transparent), color-mix(in srgb, var(--ocf-bg-dark) 62%, transparent));
    --gradient-media-light: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg) 88%, transparent) 0%, color-mix(in srgb, var(--ocf-bg) 70%, transparent) 46%, color-mix(in srgb, var(--ocf-bg) 30%, transparent) 100%);
    --gradient-media-light-reverse: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg) 30%, transparent) 0%, color-mix(in srgb, var(--ocf-bg) 70%, transparent) 54%, color-mix(in srgb, var(--ocf-bg) 88%, transparent) 100%);
    --gradient-media-light-even: linear-gradient(0deg, color-mix(in srgb, var(--ocf-bg) 72%, transparent), color-mix(in srgb, var(--ocf-bg) 72%, transparent));
    --gradient-media-light-transparent: linear-gradient(90deg, var(--ocf-bg) 0%, color-mix(in srgb, var(--ocf-bg) 98%, transparent) 34%, color-mix(in srgb, var(--ocf-bg) 58%, transparent) 56%, transparent 78%);
    --gradient-hero-dark: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 94%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 34%, color-mix(in srgb, var(--ocf-bg-dark) 58%, transparent) 58%, color-mix(in srgb, var(--ocf-bg-dark) 30%, transparent) 76%, color-mix(in srgb, var(--ocf-bg-dark) 12%, transparent) 100%), linear-gradient(180deg, color-mix(in srgb, var(--ocf-bg-dark) 32%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 54%, transparent) 100%);
    --gradient-primary-fade: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 82%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 58%, transparent) 48%, color-mix(in srgb, var(--ocf-bg-dark) 32%, transparent) 66%, color-mix(in srgb, var(--ocf-bg-dark) 12%, transparent) 82%, transparent 100%), linear-gradient(90deg, color-mix(in srgb, var(--ocf-primary) 78%, transparent) 0%, color-mix(in srgb, var(--ocf-primary) 54%, transparent) 46%, color-mix(in srgb, var(--ocf-primary) 30%, transparent) 64%, color-mix(in srgb, var(--ocf-primary) 10%, transparent) 82%, transparent 100%);
    --gradient-primary: linear-gradient(135deg, var(--ocf-primary) 0%, var(--ocf-primary-hover) 100%);
    --gradient-primary-reverse: linear-gradient(135deg, var(--ocf-primary-hover) 0%, var(--ocf-primary) 100%);
    --gradient-primary-soft: linear-gradient(135deg, color-mix(in srgb, var(--ocf-primary) 16%, var(--ocf-bg)) 0%, var(--ocf-bg) 100%);
    --gradient-primary-soft-reverse: linear-gradient(135deg, var(--ocf-bg) 0%, color-mix(in srgb, var(--ocf-primary) 16%, var(--ocf-bg)) 100%);
    --gradient-primary-secondary: linear-gradient(135deg, var(--ocf-primary) 0%, var(--ocf-secondary, var(--ocf-primary-hover)) 100%);
    --gradient-secondary-primary: linear-gradient(135deg, var(--ocf-secondary, var(--ocf-primary-hover)) 0%, var(--ocf-primary) 100%);
    --gradient-dark-primary: linear-gradient(135deg, var(--ocf-bg-dark) 0%, color-mix(in srgb, var(--ocf-primary) 62%, var(--ocf-bg-dark)) 100%);
    --gradient-primary-dark: linear-gradient(135deg, color-mix(in srgb, var(--ocf-primary) 62%, var(--ocf-bg-dark)) 0%, var(--ocf-bg-dark) 100%);
    --gradient-surface: linear-gradient(180deg, var(--ocf-bg-alt) 0%, var(--ocf-bg) 100%);
    --gradient-surface-reverse: linear-gradient(180deg, var(--ocf-bg) 0%, var(--ocf-bg-alt) 100%);
    --ocf-primary: var(--ocf-accent, #0F766E);
    --ocf-primary-hover: var(--ocf-accent-hover, #115e59);
    --ocf-primary-contrast: var(--ocf-heading-alt, #ffffff);
    --ocf-label: var(--ocf-body);
    --ocf-label-alt: var(--ocf-body-alt);
    --ocf-dark-label: var(--ocf-dark-body);
    --duration: 180ms;
    --ease: ease;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ocf-bg: var(--ocf-dark-bg, #111111);
    --ocf-bg-alt: var(--ocf-dark-bg-alt, #18181b);
    --ocf-bg-dark: var(--ocf-dark-bg, #111111);
    --ocf-heading: var(--ocf-dark-heading, #ffffff);
    --ocf-body: var(--ocf-dark-body, #F8FAFC);
    --ocf-label: var(--ocf-body);
    --ocf-border: var(--ocf-dark-border, #3d3d3d);
    --ocf-border-light: var(--ocf-dark-border-light, #292929);
    --ocf-heading-alt: var(--ocf-dark-heading, #ffffff);
    --ocf-body-alt: var(--ocf-dark-body, #F8FAFC);
    --ocf-label-alt: var(--ocf-body-alt);
    --ocf-border-alt: var(--ocf-dark-border-light, #292929);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}
[id] { scroll-margin-top: 5rem; }

body {
    margin: 0;
    padding-top: calc(var(--nav-height) + var(--wp-admin-bar-gap));
    max-width: 100%;
    overflow-x: clip;
    background: var(--ocf-bg);
    color: var(--ocf-body);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: var(--font-body-size);
    font-weight: var(--ocf-font-body-weight, var(--font-weight-medium));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar {
    --wp-admin-bar-offset: 32px;
    margin-top: 0 !important;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.ocf-hero__form,
.ocf-simple-form,
.booking-wizard,
.hero-form-card,
.ocf-field,
.ocf-phone-combo,
.bw-phone-combo {
    min-width: 0;
    max-width: 100%;
}

.container-global {
    width: min(100% - (var(--container-pad) * 2), var(--container-max));
    margin-inline: auto;
}

.section-padding {
    padding-block: var(--section-pad);
}

.ocf-section {
    position: relative;
    background: var(--ocf-bg);
}

:where([data-ocf-field]) {
    color: var(--field-color, currentColor);
    font-family: var(--field-font-family, inherit);
    font-size: var(--field-font-size, inherit);
    font-weight: var(--field-font-weight, inherit);
    font-style: var(--field-font-style, inherit);
    text-decoration: var(--field-text-decoration, inherit);
}

.page-section--default { background: var(--ocf-bg); }
.page-section--alt { background: var(--ocf-bg-alt); }
.ocf-gradient--media-dark { background: var(--gradient-media-dark); }
.ocf-gradient--media-dark-reverse { background: var(--gradient-media-dark-reverse); }
.ocf-gradient--media-dark-even { background: var(--gradient-media-dark-even); }
.ocf-gradient--media-light { background: var(--gradient-media-light); }
.ocf-gradient--media-light-reverse { background: var(--gradient-media-light-reverse); }
.ocf-gradient--media-light-even { background: var(--gradient-media-light-even); }
.ocf-gradient--media-light-transparent { background: var(--gradient-media-light-transparent); }
.ocf-gradient--hero-dark { background: var(--gradient-hero-dark); }
.ocf-gradient--primary-fade { background: var(--gradient-primary-fade); }
.ocf-gradient--primary { background: var(--gradient-primary); }
.ocf-gradient--primary-reverse { background: var(--gradient-primary-reverse); }
.ocf-gradient--primary-soft { background: var(--gradient-primary-soft); }
.ocf-gradient--primary-soft-reverse { background: var(--gradient-primary-soft-reverse); }
.ocf-gradient--primary-secondary { background: var(--gradient-primary-secondary); }
.ocf-gradient--secondary-primary { background: var(--gradient-secondary-primary); }
.ocf-gradient--dark-primary { background: var(--gradient-dark-primary); }
.ocf-gradient--primary-dark { background: var(--gradient-primary-dark); }
.ocf-gradient--surface { background: var(--gradient-surface); }
.ocf-gradient--surface-reverse { background: var(--gradient-surface-reverse); }

.eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--ocf-primary);
    font-size: var(--ocf-font-eyebrow-size, var(--font-label-size));
    font-weight: var(--ocf-font-eyebrow-weight, var(--font-weight-bold));
    letter-spacing: 0;
    text-transform: uppercase;
}

.heading-1,
.heading-2,
.heading-3 {
    margin: 0;
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    letter-spacing: 0;
}

.heading-1 {
    font-size: var(--font-h1-size);
    font-weight: var(--ocf-font-h1-weight, var(--font-weight-bold));
}

.heading-2 {
    font-size: var(--font-h2-size);
    font-weight: var(--ocf-font-h2-weight, var(--font-weight-bold));
}

.heading-3 {
    font-size: var(--font-h3-size);
    font-weight: var(--ocf-font-h3-weight, var(--font-weight-bold));
}

.text-body,
.prose,
.page-content-body {
    color: var(--ocf-body);
    font-size: var(--font-body-size);
    font-weight: var(--ocf-font-body-weight, var(--font-weight-medium));
}

.prose {
    max-width: 68ch;
}

.prose > * + *,
.page-content-body > * + * {
    margin-top: 1rem;
}

.prose a[href],
.page-content-body a[href] {
    color: var(--ocf-primary);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.prose a[href]:hover,
.page-content-body a[href]:hover {
    color: var(--ocf-primary-hover);
}

.prose img,
.page-content-body img,
.wp-post-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--image-radius);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-label {
    color: var(--ocf-label);
    font-size: var(--font-label-size);
    font-weight: var(--font-weight-semibold);
}

.btn-primary,
.btn-secondary,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border: var(--button-border-width) solid var(--button-border-color);
    border-radius: var(--button-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--button-shadow);
    font-size: var(--font-button-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: var(--button-letter-spacing);
    text-transform: var(--button-text-transform);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn-primary,
.nav-cta {
    background: var(--ocf-primary);
    border-color: transparent;
    color: var(--ocf-heading-alt);
}

.btn-primary:hover,
.nav-cta:hover {
    background: var(--ocf-primary-hover);
    box-shadow: var(--button-shadow-hover);
    transform: var(--button-transform-hover);
}

.btn-secondary {
    background: transparent;
    border: 1px solid currentColor;
    box-shadow: none;
    color: var(--ocf-heading);
}

.btn-secondary:hover {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: var(--ocf-primary);
    box-shadow: none;
    color: var(--ocf-primary);
    transform: var(--button-transform-hover);
}

.btn-lg {
    min-height: 3rem;
    padding-inline: 1.25rem;
}

.btn-primary svg,
.btn-secondary svg,
.nav-cta svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.ocf-card {
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
    box-shadow: var(--card-shadow);
}

.ocf-honeypot,
.bw-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ocf-form-status {
    min-height: 1.25rem;
    color: var(--ocf-label);
    font-size: var(--font-label-size);
}

.page-content-narrow,
.not-found-panel {
    width: min(100%, 760px);
    margin-inline: auto;
}

.ocf-standard-page {
    background: var(--ocf-bg);
}

.ocf-standard-page__content {
    width: min(100%, 920px);
    max-width: none;
}

.page-featured-media {
    margin-bottom: 2rem;
}

.page-featured-media img,
.page-featured-media .wp-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--image-radius);
    box-shadow: var(--image-shadow);
}

.not-found-panel { text-align: center; }
.not-found-text { margin: 1rem auto 1.5rem; }
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.reveal,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
    opacity: 1;
    transform: none;
}

@media (max-width: 720px) {
    :root { --nav-height: var(--ocf-nav-height-mobile, 4rem); }
    .container-global,
    .ocf-hero__grid,
    .ocf-hero__content,
    .ocf-hero__form {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }
    .ocf-hero__headline {
        font-size: var(--field-font-size, var(--font-h1-size));
        max-width: 100%;
        overflow-wrap: break-word;
    }
    .ocf-hero__headline span {
        display: inline;
    }
    .ocf-hero__headline span:not(:last-child)::after {
        content: " ";
    }
    .ocf-about__headline,
    .ocf-cta__headline {
        font-size: var(--field-font-size, var(--font-h2-size));
    }
    .ocf-page-header__headline {
        font-size: var(--field-font-size, var(--font-h1-size));
        overflow-wrap: break-word;
    }
    .hero-form-card,
    .ocf-simple-form,
    .booking-wizard {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .ocf-phone-combo,
    .bw-phone-combo {
        display: grid;
        grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar { --wp-admin-bar-offset: 46px; }
}

/* OCF_AGENT_BLOCK:planning-resource-print START */
.faq-search__items [data-faq-item][hidden] {
  display: none !important;
}

@media print {
  body.page-id-82 .hb-header,
  body.page-id-82 .hb-nav,
  body.page-id-82 .hb-footer,
  body.page-id-82 .hb-cta,
  body.page-id-82 .hb-inner,
  body.page-id-82 [data-print-button],
  body.page-id-81 .hb-header,
  body.page-id-81 .hb-nav,
  body.page-id-81 .hb-footer,
  body.page-id-81 .hb-cta,
  body.page-id-81 .hb-inner,
  body.page-id-81 [data-print-button] {
    display: none !important;
  }

  body.page-id-82 .ocf-standard-page,
  body.page-id-81 .ocf-standard-page {
    padding: 0 !important;
    background: #fff !important;
  }

  body.page-id-82 .ocf-standard-page__content,
  body.page-id-81 .ocf-standard-page__content {
    width: 100% !important;
    max-width: none !important;
    color: #111 !important;
    background: #fff !important;
    font-size: 11pt !important;
    line-height: 1.45 !important;
  }

  body.page-id-82 .ocf-standard-page__content *,
  body.page-id-81 .ocf-standard-page__content * {
    box-shadow: none !important;
  }

  body.page-id-82 fieldset,
  body.page-id-81 table,
  body.page-id-81 tr {
    break-inside: avoid;
  }
}
/* OCF_AGENT_BLOCK:planning-resource-print END */

/* OCF_AGENT_BLOCK:home-cta-photo-visibility START */
.hb-cta__panel.hb-satin-frost--dark::before {
  z-index: 1 !important;
  background: linear-gradient(90deg,
    rgb(20 20 20 / 78%) 0%,
    rgb(20 20 20 / 64%) 34%,
    rgb(20 20 20 / 38%) 68%,
    rgb(20 20 20 / 24%) 100%) !important;
}

.hb-cta__panel > .hb-satin-frost__layer {
  display: none !important;
}

@media (max-width: 991px) {
  .hb-cta__panel.hb-satin-frost--dark::before {
    background: linear-gradient(90deg,
      rgb(20 20 20 / 78%) 0%,
      rgb(20 20 20 / 60%) 48%,
      rgb(20 20 20 / 34%) 100%) !important;
  }
}

@media (max-width: 599px) {
  .hb-cta__panel.hb-satin-frost--dark::before {
    background: linear-gradient(180deg,
      rgb(20 20 20 / 78%) 0%,
      rgb(20 20 20 / 54%) 60%,
      rgb(20 20 20 / 34%) 100%) !important;
  }
}
/* OCF_AGENT_BLOCK:home-cta-photo-visibility END */

/* OCF_AGENT_BLOCK:public-readable-type START */
/* OCF-MANAGED:START public-readable-type */
/* Public reading-size floor. Keep the two owner-managed questionnaires in their own CSS scope. */
body:not(.page-id-71):not(.page-id-84) {
  font-size: max(18px, 1rem) !important;
  line-height: 1.6 !important;
}

body:not(.page-id-71):not(.page-id-84) :where(p, li, dt, dd, blockquote, label, legend, .hb-label, .eyebrow, .hb-text-link, .hb-phone, .text-label, .hb-hero__intro, .hb-hero__eyebrow-copy, .hb-nav__services-label, .hb-nav__phone, .hb-nav__link-row > a, .hb-nav__dropdown a, .hb-footer a, .footer-contact-links, .footer-address, .nav-link, .nav-dropdown-trigger) {
  font-size: max(18px, 1em) !important;
  line-height: 1.6 !important;
}

body:not(.page-id-71):not(.page-id-84) :where(button, .hb-button, .hb-nav__disclosure, .btn-primary, .btn-secondary, .nav-cta, .mobile-cta, .ocf-svc-card-cta, .form-submit-btn) {
  font-size: max(18px, 1em) !important;
  line-height: 1.4 !important;
}

body:not(.page-id-71):not(.page-id-84) :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  font-size: max(18px, 1em) !important;
  line-height: 1.5 !important;
  min-height: 48px;
  max-width: 100%;
}

body:not(.page-id-71):not(.page-id-84) :where(small, figcaption, .ocf-form-secure-note, .form-help, .form-error, .hb-cta__image-caption, .footer-legal) {
  font-size: max(16px, 1em) !important;
  line-height: 1.6 !important;
}

body:not(.page-id-71):not(.page-id-84) :where(.ocf-form-secure-note) {
  display: flex !important;
  flex-wrap: wrap;
  max-width: 100%;
  white-space: normal !important;
}
/* OCF-MANAGED:END public-readable-type */
/* OCF_AGENT_BLOCK:public-readable-type END */

/* OCF_AGENT_BLOCK:dfw-display-controls START */
/* Accessible global Display controls. Uses a separate scale token from owner-managed questionnaire CSS. */
:root { --dfw-display-scale: 1; }
body { font-size: calc(18px * var(--dfw-display-scale, 1)) !important; }
:where(p, li, dt, dd, blockquote, label, legend, .hb-label, .eyebrow, .hb-text-link, .hb-phone, .text-label, .hb-hero__intro, .hb-hero__eyebrow-copy, .hb-nav__services-label, .hb-nav__phone, .hb-nav__link-row > a, .hb-nav__dropdown a, .hb-footer a, .footer-contact-links, .footer-address, .nav-link, .nav-dropdown-trigger, button, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  font-size: max(calc(18px * var(--dfw-display-scale, 1)), 1em) !important;
  line-height: 1.5 !important;
}
:where(small, figcaption, .ocf-form-secure-note, .form-help, .form-error, .hb-cta__image-caption, .footer-legal) {
  font-size: calc(16px * var(--dfw-display-scale, 1)) !important;
  line-height: 1.6 !important;
}
:where(h1, .heading-1, .ocf-page-header__headline, .hb-hero__headline, .hb-inner__title) {
  font-size: calc(var(--font-h1-size) * var(--dfw-display-scale, 1)) !important;
}
:where(h2, .heading-2, .ocf-about__headline, .ocf-cta__headline, .ocf-section__title) {
  font-size: calc(var(--font-h2-size) * var(--dfw-display-scale, 1)) !important;
}
:where(h3, .heading-3, legend) {
  font-size: calc(var(--font-h3-size) * var(--dfw-display-scale, 1)) !important;
}
#care-options-tool { font-size: calc(18px * var(--dfw-display-scale, 1)) !important; }

.dfw-display {
  max-width: 52rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 8px;
  color: inherit;
}
.dfw-display h2 { margin: 0 0 1rem; font-size: 1.25rem; line-height: 1.35; color: inherit; }
.dfw-display__controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr); gap: 1.5rem; align-items: end; }
.dfw-display fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dfw-display legend { margin-bottom: .5rem; color: inherit; }
.dfw-display label { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: inherit; }
.dfw-display output { font-weight: 700; }
.dfw-display input[type="range"] { display: block; width: min(100%, 22rem); min-height: 44px; margin: .25rem 0; accent-color: var(--ocf-primary); }
.dfw-display select, .dfw-display button { width: 100%; min-height: 44px; margin-top: .5rem; padding: .5rem .75rem; border: 1px solid currentColor; border-radius: 6px; color: inherit; background: var(--ocf-bg-dark); }
.dfw-display button { width: auto; cursor: pointer; }
.dfw-display :focus-visible { outline: 3px solid var(--ocf-accent, #A78345); outline-offset: 3px; }
.hb-nav__link-row > a { display: inline-flex; align-items: center; min-height: 44px; }
.hb-footer__column a { display: inline-flex; align-items: center; min-height: 44px; }
:where(button, .hb-button, .hb-nav__toggle, .hb-nav__disclosure, .btn-primary, .btn-secondary, .nav-cta, .mobile-cta, .ocf-svc-card-cta, .form-submit-btn, select, summary) { min-height: 44px; }

html[data-theme="dark"] :where(body, .ocf-section, .page-section--default, .page-section--alt, .ocf-standard-page) { background-color: var(--ocf-bg); color: var(--ocf-body); }
html[data-theme="dark"] :is(.ocf-card, .hero-form-card, .ocf-simple-form, .booking-wizard, .bw-service-tile, .bw-card, .ocf-svc-card, .ocf-faq-item, .ocf-testimonial-card, .ocf-gallery-card, .ocf-location-card, .ocf-service-area-card, #care-options-tool, #care-options-tool [class*="result"], #care-options-tool [class*="card"]) {
  color: var(--ocf-body) !important;
  background-color: var(--ocf-bg-alt) !important;
  border-color: var(--ocf-border) !important;
}
html[data-theme="dark"] :is(.hb-header, .hb-nav, #main-nav) { color: var(--ocf-body); background-color: var(--ocf-bg-dark); border-color: var(--ocf-border); }
html[data-theme="dark"] .hb-footer { color: var(--ocf-body-alt); background-color: var(--ocf-bg-dark); border-color: var(--ocf-border); }
html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { color: var(--ocf-body) !important; background-color: var(--ocf-bg-alt) !important; border-color: var(--ocf-border) !important; }
html[data-theme="dark"] :is(a[href], .prose a[href], .page-content-body a[href]) { color: var(--ocf-secondary, #9fc2ff); text-decoration-color: currentColor; }
html[data-theme="dark"] :is(button, .hb-button, .btn-primary, .btn-secondary, .nav-cta) { border-color: var(--ocf-border); }
html[data-theme="dark"] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #e3bd78; outline-offset: 3px; }
html[data-theme="dark"] #care-options-tool :is(h2, h3, p, label, legend, li, a, button) { color: var(--ocf-body) !important; }
html[data-theme="dark"] #care-options-tool :is(input, select, textarea, button) { color: var(--ocf-body) !important; background-color: #252525 !important; border-color: #666 !important; }

@media (max-width: 600px) {
  .dfw-display { margin-top: 2rem; padding: 1rem; }
  .dfw-display__controls { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dfw-display input[type="range"] { width: 100%; }
  .dfw-display button { width: 100%; }
  .hb-footer__legal { gap: 1rem; }
}
/* Accessible global Display controls end. */
/* OCF_AGENT_BLOCK:dfw-display-controls END */

/* OCF_AGENT_BLOCK:dfw-display-readable-helpers START */
/* Keep helper/caption copy at 16px by default while honoring the selected display scale. */
body:not(.page-id-71):not(.page-id-84) :where(small, figcaption, .ocf-form-secure-note, .form-help, .form-error, .hb-cta__image-caption, .footer-legal),
body.page-id-71 :where(small, figcaption, .ocf-form-secure-note, .form-help, .form-error, .hb-cta__image-caption, .footer-legal),
body.page-id-84 :where(small, figcaption, .ocf-form-secure-note, .form-help, .form-error, .hb-cta__image-caption, .footer-legal) {
  font-size: calc(16px * var(--dfw-display-scale, 1)) !important;
  line-height: 1.6 !important;
}
.dfw-display h2 { font-size: calc(24px * var(--dfw-display-scale, 1)) !important; }
/* OCF_AGENT_BLOCK:dfw-display-readable-helpers END */

/* OCF_AGENT_BLOCK:dfw-display-header-cta-contrast START */
.dfw-display-container {
  margin-block: 0 1.5rem;
}
.dfw-display {
  margin: 0 auto;
}
.dfw-display > summary {
  min-height: 44px;
  padding-block: .25rem;
  cursor: pointer;
  font-size: max(18px, calc(18px * var(--dfw-display-scale, 1)));
  font-weight: 700;
  line-height: 1.4;
}
.dfw-display > summary:focus-visible {
  outline: 3px solid var(--ocf-accent, #A78345);
  outline-offset: 3px;
}
.dfw-display[open] > summary {
  margin-bottom: 1rem;
}

/* Keep the gold primary CTA readable without changing link colors on light surfaces. */
html[data-theme="dark"] :is(.hb-cta, .hb-header) a.hb-button:not(.hb-button--secondary):not(.hb-button--light),
html[data-theme="dark"] :is(.hb-cta, .hb-header) a.hb-button:not(.hb-button--secondary):not(.hb-button--light):hover,
html[data-theme="dark"] :is(.hb-cta, .hb-header) a.hb-button:not(.hb-button--secondary):not(.hb-button--light):focus-visible {
  background: #A78345 !important;
  border-color: #A78345 !important;
  color: #141414 !important;
}
html[data-theme="dark"] :is(.hb-cta, .hb-header) a.hb-button:not(.hb-button--secondary):not(.hb-button--light) * {
  color: #141414 !important;
}
html[data-theme="dark"] .hb-cta a[href^="tel:"],
html[data-theme="dark"] .hb-cta a[href^="tel:"] :is(span, strong, svg) {
  color: #FFFFFF !important;
}

@media (max-width: 600px) {
  .dfw-display-container { margin-bottom: 1rem; }
  .dfw-display__controls { grid-template-columns: minmax(0, 1fr); }
}
/* OCF_AGENT_BLOCK:dfw-display-header-cta-contrast END */

/* OCF_AGENT_BLOCK:dark-primary-cta-gold-contrast START */
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"],
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:hover,
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:focus,
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:active {
  color: #141414 !important;
  background-color: #A78345 !important;
  border-color: #A78345 !important;
}

html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"] :is(span, svg, i),
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:hover :is(span, svg, i),
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:focus :is(span, svg, i),
html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:active :is(span, svg, i) {
  color: #141414 !important;
  fill: #141414 !important;
  stroke: #141414 !important;
}

html[data-theme="dark"] body a.hb-button[data-ocf-action="primary_cta"]:focus-visible {
  outline: 3px solid #FFFFFF !important;
  outline-offset: 3px !important;
}
/* OCF_AGENT_BLOCK:dark-primary-cta-gold-contrast END */
