/* Section frame: vertical rhythm of a designed page. */
.wp-block-group.is-style-section { padding-block: var(--wp--preset--spacing--70); }

/* Section heading: index pill and heading on the left, the section's action on the right. */
.wp-block-group.is-style-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: var(--wp--preset--spacing--50); }
.wp-block-group.is-style-head > :first-child { flex: 1 1 28rem; max-width: 48rem; }
.wp-block-group.is-style-head h2 { margin-top: 1.25rem; text-wrap: balance; }
.wp-block-group.is-style-head p:not(.is-style-pill) { margin-top: 1rem; font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--muted); max-width: 60ch; }

/* Panels. */
.wp-block-group.is-style-panel { background: var(--wp--preset--color--paper-deep); border-radius: var(--wp--custom--radius--panel); padding: clamp(1.5rem, 4vw, 4rem); }
.wp-block-group.is-style-panel-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--wp--preset--color--forest-deep); color: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--panel); padding: clamp(1.75rem, 5vw, 5rem); }
.wp-block-group.is-style-panel-dark::before { content: ""; position: absolute; z-index: -1; top: -14rem; right: -10rem; width: 44rem; height: 44rem; border-radius: 999px; background: radial-gradient(circle, rgb(220 232 223 / 0.12), transparent 65%); }
.wp-block-group.is-style-panel-dark :is(h1, h2, h3, h4) { color: var(--wp--preset--color--white); }
.wp-block-group.is-style-panel-dark a:not(.wp-element-button) { color: var(--wp--preset--color--sage); }
.wp-block-group.is-style-panel-dark p.is-style-pill { color: var(--wp--preset--color--ink); }
.wp-block-group.is-style-panel-dark .is-style-head p:not(.is-style-pill) { color: rgb(255 255 255 / 0.75); }

/* Cards. */
.wp-block-group.is-style-card { background: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--card); padding: clamp(1.25rem, 2.5vw, 2rem); }
.wp-block-group.is-style-card-sage { background: var(--wp--preset--color--sage); border-radius: var(--wp--custom--radius--card); padding: clamp(1.25rem, 2.5vw, 2rem); }
.wp-block-group.is-style-card-dark { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--wp--custom--radius--card); padding: clamp(1.25rem, 2.5vw, 2rem); }
.wp-block-group.is-style-card > :where(h2, h3, h4):first-child, .wp-block-group.is-style-card-sage > :where(h2, h3, h4):first-child, .wp-block-group.is-style-card-dark > :where(h2, h3, h4):first-child { margin-top: 0; }
.wp-block-group.is-style-card-dark :is(h3, h4) { color: var(--wp--preset--color--white); }
.wp-block-group.is-style-card-dark p { color: rgb(255 255 255 / 0.78); }
.wp-block-group.is-style-glass { background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.15); border-radius: var(--wp--custom--radius--card); padding: clamp(1.25rem, 3vw, 2rem); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* A linked tile: the whole card is the title's link (the site only; in the editor the card stays editable). */
.wp-block-group.is-style-tile { position: relative; display: flex; flex-direction: column; gap: 0.5rem; height: 100%; background: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--card); padding: clamp(1.25rem, 2.5vw, 1.75rem); transition: transform 0.2s, box-shadow 0.2s; }
.wp-block-group.is-style-tile > * { margin-block: 0; }
.wp-block-group.is-style-tile :is(.wp-block-post-title, h3) { font-size: var(--wp--preset--font-size--subtitle); }
.wp-block-group.is-style-tile .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
body:not(.editor-styles-wrapper) .wp-block-group.is-style-tile .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wp-block-group.is-style-tile:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--float); }
.wp-block-group.is-style-tile:focus-within { outline: 2px solid var(--wp--preset--color--forest); outline-offset: 3px; }
.wp-block-group.is-style-tile p { color: var(--wp--preset--color--muted); font-size: 0.9375rem; }

/* Inner page header. */
.wp-block-group.is-style-page-hero { margin-top: 1rem; background: var(--wp--preset--color--paper-deep); border-radius: var(--wp--custom--radius--panel); padding: clamp(2rem, 5vw, 4.5rem); }
.wp-block-group.is-style-page-hero > * { margin-block: 0; }
.wp-block-group.is-style-page-hero > * + * { margin-top: 1.25rem; }
.wp-block-group.is-style-page-hero h1 { max-width: 20ch; text-wrap: balance; }
.wp-block-group.is-style-page-hero .wp-block-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wp-block-group.is-style-page-hero .wp-block-breadcrumbs a { color: var(--wp--preset--color--muted); }
.wp-block-group.is-style-page-hero p:not(.is-style-pill) { max-width: 62ch; font-size: var(--wp--preset--font-size--lead); }

/* Closing call to action. */
.wp-block-group.is-style-cta-band { position: relative; isolation: isolate; overflow: hidden; align-items: center; gap: var(--wp--preset--spacing--50); background: var(--wp--preset--color--forest); color: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--panel); padding: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.wp-block-group.is-style-cta-band::before { content: ""; position: absolute; z-index: -1; bottom: -12rem; left: -8rem; width: 40rem; height: 40rem; border-radius: 999px; background: radial-gradient(circle, rgb(220 232 223 / 0.18), transparent 65%); }
.wp-block-group.is-style-cta-band h2 { max-width: 18ch; color: var(--wp--preset--color--white); text-wrap: balance; }
.wp-block-group.is-style-cta-band p { color: rgb(255 255 255 / 0.8); }
.wp-block-group.is-style-cta-band > :first-child > * + * { margin-top: 1.5rem; }
.wp-block-group.is-style-cta-band p.is-style-label { color: rgb(255 255 255 / 0.6); }
.wp-block-group.is-style-cta-band .is-style-glass > * + * { margin-top: 1rem; }

/* Hero: the practice photo in a rounded panel under a forest gradient, copy on the left, chips floating on the right. */
.wp-block-group.is-style-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: clamp(34rem, 74vh, 46rem); overflow: hidden; background: var(--wp--preset--color--forest-deep); color: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--panel); padding: clamp(5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem); }
.wp-block-group.is-style-hero > .wp-block-image { position: absolute; inset: 0; z-index: -2; margin: 0; }
.wp-block-group.is-style-hero > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; border-radius: 0; }
.wp-block-group.is-style-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgb(26 54 48 / 0.94) 25%, rgb(26 54 48 / 0.6) 55%, rgb(26 54 48 / 0.05) 85%); }
.wp-block-group.is-style-hero :is(h1, h2) { color: var(--wp--preset--color--white); text-wrap: balance; }
.wp-block-group.is-style-hero h1 em { font-style: normal; color: var(--wp--preset--color--sage); }
.wp-block-group.is-style-hero .drm-hero__copy { max-width: 44rem; }
.wp-block-group.is-style-hero .drm-hero__copy > * { margin-block: 0; }
.wp-block-group.is-style-hero .drm-hero__copy > * + * { margin-top: 1.5rem; }
.wp-block-group.is-style-hero .drm-hero__eyebrow { width: fit-content; padding: 0.5rem 1rem; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 999px; background: rgb(255 255 255 / 0.1); font-size: var(--wp--preset--font-size--small); font-weight: 500; color: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wp-block-group.is-style-hero .drm-hero__lead { max-width: 52ch; font-size: var(--wp--preset--font-size--lead); color: rgb(255 255 255 / 0.82); }
.wp-block-group.is-style-hero .drm-hero__chips { position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(5rem, 8vw, 7rem); display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.wp-block-group.is-style-hero .drm-chip { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.1rem; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px; background: rgb(255 255 255 / 0.14); font-size: var(--wp--preset--font-size--small); font-weight: 500; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wp-block-group.is-style-hero .drm-chip > * { margin: 0; }
.wp-block-group.is-style-hero .drm-chip .wp-block-image img { width: 2.25rem; height: 2.25rem; border-radius: 999px; object-fit: cover; }
.wp-block-group.is-style-hero .drm-chip p { color: var(--wp--preset--color--white); }
.wp-block-group.is-style-hero .drm-chip .drm-chip__small { font-size: 0.75rem; color: rgb(255 255 255 / 0.75); }

/* Facts: key figures on a white panel that overlaps the hero's lower edge. */
.wp-block-group.is-style-facts { position: relative; z-index: 2; margin-top: -2.75rem !important; gap: 1.5rem; background: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--float); padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem); }
.wp-block-group.is-style-facts > .wp-block-group > * { margin-block: 0; }
.wp-block-group.is-style-facts > .wp-block-group > p:not(.is-style-stat) { margin-top: 0.375rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* Bento: a tall photo beside a text card and a block of tiles. */
.wp-block-group.is-style-bento { gap: var(--wp--preset--spacing--30); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-group.is-style-bento > :first-child { grid-row: span 2; }
.wp-block-group.is-style-bento > :first-child img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.wp-block-group.is-style-bento > :first-child.wp-block-image { margin: 0; height: 100%; }
.wp-block-group.is-style-bento > .wp-block-image img { border-radius: var(--wp--custom--radius--panel); }
.wp-block-group.is-style-bento .is-style-card > * + *, .wp-block-group.is-style-bento .is-style-card-sage > * + * { margin-top: 1rem; }

/* Portrait card: a photo with a frosted name label on it. */
.wp-block-group.is-style-portrait { position: relative; overflow: hidden; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--paper-deep); }
.wp-block-group.is-style-portrait > * { margin-block: 0; }
.wp-block-group.is-style-portrait .wp-block-post-featured-image { aspect-ratio: 4 / 5; }
.wp-block-group.is-style-portrait .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.wp-block-group.is-style-portrait .drm-portrait__label { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 0.75rem 1rem; border-radius: 1rem; background: rgb(255 255 255 / 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wp-block-group.is-style-portrait .drm-portrait__label > * { margin: 0; }
.wp-block-group.is-style-portrait .wp-block-post-title { font-size: 1.0625rem; }
.wp-block-group.is-style-portrait .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
body:not(.editor-styles-wrapper) .wp-block-group.is-style-portrait .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.wp-block-group.is-style-portrait .drm-portrait__role { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }

/* Steps: numbered cards. */
.wp-block-group.is-style-steps { counter-reset: step; gap: var(--wp--preset--spacing--30); }
.wp-block-group.is-style-steps > .wp-block-group { counter-increment: step; }
.wp-block-group.is-style-steps > .wp-block-group::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1rem; font-family: var(--wp--preset--font-family--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--wp--preset--color--forest); }
.wp-block-group.is-style-steps > .wp-block-group > * { margin-block: 0; }
.wp-block-group.is-style-steps > .wp-block-group > * + * { margin-top: 0.5rem; }

/* Icon tile used in cards. */
.wp-block-icon.drm-icon-tile { display: flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 1rem; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--forest); }
.is-style-card-dark .wp-block-icon.drm-icon-tile, .is-style-panel-dark .wp-block-icon.drm-icon-tile { background: rgb(255 255 255 / 0.14); color: var(--wp--preset--color--sage); }

@media (max-width: 782px) {
	.wp-block-group.is-style-bento { grid-template-columns: minmax(0, 1fr); }
	.wp-block-group.is-style-bento > :first-child { grid-row: auto; }
	.wp-block-group.is-style-bento > :first-child img { min-height: 0; aspect-ratio: 4 / 3; }
	.wp-block-group.is-style-cta-band { grid-template-columns: minmax(0, 1fr); }
	.wp-block-group.is-style-hero { justify-content: flex-end; min-height: 34rem; }
	.wp-block-group.is-style-hero::before { background: linear-gradient(to top, rgb(26 54 48 / 0.97) 30%, rgb(26 54 48 / 0.55) 70%, rgb(26 54 48 / 0.25)); }
	.wp-block-group.is-style-hero .drm-hero__chips { position: static; align-items: flex-start; margin-top: 2rem; }
	.wp-block-group.is-style-hero .drm-hero__eyebrow { display: none; }
	.wp-block-group.is-style-facts { margin-top: -1.5rem !important; }
}
@media (max-width: 480px) {
	.wp-block-group.is-style-facts { gap: 1rem; }
}

.wp-block-group.is-style-hero .drm-chip a { color: var(--wp--preset--color--white); text-decoration: none; }
.wp-block-group.is-style-hero .drm-chip a:hover { text-decoration: underline; text-underline-offset: 4px; }
