/* Ergovita v2: one system (Taste Skill principles applied in Kadence). Front end + block editor. */
:root {
  --t-ink: #18203A; --t-text: #2A3244; --t-navy: #223779; --t-muted: #4E6672; --t-bronze: #B58C65;
  --t-ground: #FAF9F6; --t-surface: #EEE7DC; --t-line: #E1D8CB; --t-dark: #5D7487; --t-dark-line: rgba(250, 249, 246, .16);
  --t-radius: 14px; --t-btn-radius: 10px; --ergo-hdr: 118px;
  --t-edge: max(clamp(24px, 5.6vw, 80px), calc((100vw - 1280px) / 2));
  --t-label-gap: clamp(14px, 1.6vw, 20px);
  --t-pad: clamp(88px, 11vw, 136px);
}

/* ---------- type ---------- */
body { font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--t-text); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .t-serif { font-family: "Newsreader", Georgia, serif; font-weight: 400; color: var(--t-ink); font-optical-sizing: auto; }
.t-h1 { letter-spacing: -0.022em; margin: 0; }
.t-h1:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
.t-h1:where(:not([style*="line-height"])) { line-height: 1.03; }
.t-h2 { letter-spacing: -0.016em; margin: 0; }
.t-h2:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(2rem, 3.4vw, 3rem); }
.t-h2:where(:not([style*="line-height"])) { line-height: 1.08; }
.t-h3 { letter-spacing: -0.008em; margin: 0; }
.t-h3:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.t-h3:where(:not([style*="line-height"])) { line-height: 1.2; }
.t-lead { color: var(--t-text); max-width: 34em; }
.t-lead:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(1.08rem, 1.35vw, 1.25rem); }
.t-lead:where(:not([style*="line-height"])) { line-height: 1.6; }
.t-label { font-weight: 500; letter-spacing: .01em; color: var(--t-muted); }
.t-label:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 13px; }
.t-label:where(:not([style*="margin"])) { margin: 0 0 var(--t-label-gap) !important; }
.t-sec .t-label + :is(h1,h2,h3,.t-quote):where(:not([style*="margin"])) { margin-top: 0 !important; }
h1, h2, h3, h4, .t-quote { text-wrap: balance; }
.t-lead { text-wrap: pretty; }
.t-label::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--t-bronze); vertical-align: middle; margin-right: 10px; }
.t-small { color: var(--t-muted); }
.t-small:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 14px; }
.t-note { font-style: italic; color: var(--t-muted); }
.t-note:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 13px; }
.t-quote { font-family: "Newsreader", Georgia, serif; letter-spacing: -0.015em; color: var(--t-ink); font-weight: 400; margin: 0; max-width: 22em; }
.t-quote:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(1.9rem, 3.6vw, 3.3rem); }
.t-quote:where(:not([style*="line-height"])) { line-height: 1.18; }
.t-meta { color: var(--t-muted); }
.t-meta:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 14px; }
.entry-content p, .entry-content li { max-width: 62ch; }

/* ---------- sections and grid ---------- */
.t-sec:where(:not([style*="padding"])) { padding-top: var(--t-pad) !important; padding-bottom: var(--t-pad) !important; }
.t-sec:where(:not([style*="margin"])) { margin-top: 0 !important; margin-bottom: 0 !important; }
.t-sec, #masthead .site-container, #colophon .site-container { padding-inline: var(--t-edge) !important; }
#masthead .site-container, #colophon .site-container { width: 100%; max-width: none; box-sizing: border-box; }
.t-sec > *:where(:not([style*="max-width"])) { max-width: 100% !important; }
.t-sec > *:where(:not([style*="margin"])) { margin-left: auto !important; margin-right: auto !important; }
.t-ground { background: var(--t-ground); }
.t-surface { background: var(--t-surface); }
.t-dark { background: var(--t-dark); color: white; }
.t-dark h1, .t-dark h2, .t-dark h3, .t-dark .t-quote { color: #FAF9F6; }
.t-dark .t-label, .t-dark .t-meta, .t-dark .t-small, .t-dark .t-note { color: white; }
.entry-content .t-dark a:not(.wp-block-button__link) { color: white; text-decoration: underline; text-underline-offset: .2em; }
.t-head:where(:not([style*="margin"])) { margin-bottom: clamp(40px, 5vw, 64px) !important; }
.t-split.wp-block-columns { align-items: flex-start !important; }
.t-split.wp-block-columns:where(:not(.ergo-custom-gap, [style*="gap"])) { gap: clamp(32px, 6.5vw, 104px) !important; }
.t-split.wp-block-columns:where(:not([style*="margin"])) { margin-top: 0 !important; margin-bottom: 0 !important; }
.t-split.is-vcenter { align-items: center !important; }
.t-stack > * + *:where(:not([style*="margin"])) { margin-top: 22px !important; }
body.page .content-area { margin-top: 0 !important; margin-bottom: 0 !important; }
body.page .entry-content-wrap { padding: 0 !important; }

/* ---------- hero: exactly the first screen ---------- */
.t-hero { min-height: calc(100svh - var(--ergo-hdr)); display: flex; flex-direction: column; justify-content: center; }
.t-hero:where(:not([style*="padding"])) { padding-top: clamp(28px, 4.5vh, 56px) !important; padding-bottom: clamp(28px, 4.5vh, 56px) !important; }
.t-hero > * { width: 100%; }
.t-hero .t-photo img { max-height: calc(100svh - var(--ergo-hdr) - 96px); }

/* ---------- photographs ---------- */
.t-photo { width: fit-content; max-width: 100%; overflow: hidden; border-radius: var(--t-radius); }
.t-photo:where(:not([style*="margin"])) { margin: 0 0 0 auto !important; }
.t-photo img { display: block; width: auto; max-width: 100%; height: auto; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.t-photo img:where(:not(.has-border-color, [style*="border"])) { border: 0 !important; border-radius: 0 !important; }
.t-photo.t-studio-photo { max-width: min(100%, 480px); }
@media (max-width: 781px) {
.t-split:not(.is-not-stacked-on-mobile) .t-photo,
.t-split:not(.is-not-stacked-on-mobile) .t-photo img { width: 100%; max-width: 100%; }
.t-split .t-photo:where(:not([style*="margin"])) { margin-inline: 0 auto !important; }
}
.t-photo.is-portrait { border-radius: 999px 999px var(--t-radius) var(--t-radius); }
.t-pair.wp-block-columns:where(:not(.ergo-custom-gap, [style*="gap"])) { gap: 16px !important; }
.t-pair.wp-block-columns:where(:not([style*="margin"])) { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------- buttons: one style pair, step on hover, press on click ---------- */
.wp-block-button__link { font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .005em; transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wp-block-button__link:where(:not(.has-border-color, [style*="border"])) { border-radius: var(--t-btn-radius) !important; }
.wp-block-button__link:where(:not([style*="padding"])) { padding: 15px 26px !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:where(:not(.has-background, [style*="background"])) { background: var(--t-dark) !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(24, 32, 58, .6); }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover:where(:not(.has-background, [style*="background"])) { background: var(--t-muted) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-background, [style*="background"])) { background: transparent !important; }
.wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-ink) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-border-color, [style*="border"])) { border: 1px solid rgba(24, 32, 58, .35) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover:where(:not(.has-border-color, [style*="border"])) { border-color: var(--t-ink) !important; }
.wp-block-button__link:active { transform: translateY(0) scale(.985); }
.t-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:where(:not(.has-background, [style*="background"])) { background: var(--t-surface) !important; }
.t-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-navy) !important; }
.t-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover:where(:not(.has-background, [style*="background"])) { background: #fff !important; }
.t-dark .wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: #FAF9F6 !important; }
.t-dark .wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-border-color, [style*="border"])) { border-color: rgba(250, 249, 246, .4) !important; }
.t-dark .wp-block-button.is-style-outline .wp-block-button__link:hover:where(:not(.has-border-color, [style*="border"])) { border-color: #FAF9F6 !important; }
.t-btns:where(:not(.ergo-custom-gap, [style*="gap"])) { gap: 12px !important; }
.t-btns:where(:not([style*="margin"])) { margin-top: 34px !important; }
.t-btn-big .wp-block-button__link { font-size: 17px; }
.t-btn-big .wp-block-button__link:where(:not([style*="padding"])) { padding: 20px 34px !important; }
.t-womens-health:where(:not([style*="padding"])) { padding-bottom: clamp(28px, 4vw, 56px) !important; }
.t-booking-prompt:where(:not([style*="padding"])) { padding-top: 0 !important; }
.t-booking-prompt-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.t-booking-prompt-inner p { max-width: 45ch; }
.t-booking-prompt-inner p:where(:not([style*="margin"])) { margin: 0 !important; }
.t-booking-prompt-inner .t-btns:where(:not([style*="margin"])) { margin: 0 !important; }
.entry-content a:not(.wp-block-button__link) { color: var(--t-muted); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.entry-content .t-surface a:not(.wp-block-button__link) { color: var(--t-navy); }
.entry-content a:not(.wp-block-button__link):hover { background-size: 100% 1px; }

/* ---------- rows (services, timeline, articles, prices, contact) ---------- */
.t-rows { border-top: 1px solid var(--t-line); }
.t-dark .t-rows:where(:not(.has-border-color, [style*="border"])), .t-dark .t-row:where(:not(.has-border-color, [style*="border"])) { border-color: var(--t-dark-line) !important; }
.t-row { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--t-line); align-items: baseline; }
.t-row:where(:not([style*="margin"])) { margin-block: 0 !important; }
.t-row > *:where(:not([style*="margin"])) { margin: 0 !important; }
.t-row .t-row-name { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; color: var(--t-ink); }
.t-row .t-meta { grid-column: 2; }
.t-rows.is-compact .t-row { grid-template-columns: 1fr auto; padding: 18px 0; }
.t-rows.is-compact .t-row .t-meta { grid-column: auto; text-align: right; white-space: nowrap; }
.t-rows.is-time .t-row { grid-template-columns: 120px 1fr; }
.t-rows.is-time .t-row-name { color: var(--t-muted); }
.t-row:has(a) { transition: background-color .2s ease; }

/* ---------- steps ---------- */
.t-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.t-step { border-top: 1px solid var(--t-ink); padding-top: 20px; }
.t-step > *:where(:not([style*="margin"])) { margin: 0 !important; }
.t-step .t-step-n { font-family: "Newsreader", Georgia, serif; font-size: 15px; color: var(--t-muted); }
.t-step .t-step-n:where(:not([style*="margin"])) { margin-bottom: 14px !important; }
.t-step .t-h3:where(:not([style*="margin"])) { margin-bottom: 10px !important; }

/* ---------- chips (qualifications) ---------- */
.t-chips { display: grid; list-style: disc; padding-inline-start: 1.25em; margin: 24px 0; gap: .35em; }
.t-chips li { padding-inline-start: .25em; font-size: 16px; }


/* ---------- FAQ ---------- */
details.t-faq { border-bottom: 1px solid var(--t-line); padding: 22px 0; }
details.t-faq:first-child { border-top: 1px solid var(--t-line); }
details.t-faq summary { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--t-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; transition: color .2s ease; }
details.t-faq summary::-webkit-details-marker { display: none; }
details.t-faq summary::after { content: "+"; font-family: "Hanken Grotesk", sans-serif; color: var(--t-bronze); font-size: 1.5rem; line-height: 1; transition: transform .25s ease; }
details.t-faq[open] summary::after { transform: rotate(45deg); }
details.t-faq summary:hover { color: var(--t-muted); }
details.t-faq p:where(:not([style*="margin"])) { margin: 12px 0 0 !important; }

/* ---------- form card ---------- */
.t-card { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius); }
.t-card:where(:not([style*="padding"])) { padding: clamp(26px, 4vw, 48px) !important; }
.t-card .kb-form input, .t-card .kb-form textarea { border-radius: 8px !important; border-color: #D7CDBF !important; background: var(--t-ground) !important; }
.t-card .kb-form .kb-submit-field .kb-button, .t-card .kb-forms-submit { border-radius: var(--t-btn-radius) !important; background: var(--t-dark) !important; }

/* ---------- close: dark, flows into the dark footer ---------- */
.t-close:where(:not([style*="padding"])) { padding-bottom: clamp(64px, 8vw, 96px) !important; }
.t-contact { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 26px; border-top: 1px solid var(--t-dark-line); }
.t-contact:where(:not([style*="margin"])) { margin-top: 48px !important; }
.t-contact > * { color: #FAF9F6; }
.t-contact > *:where(:not([style*="margin"])) { margin: 0 !important; }
@media (width < 800px) {
  .t-close .t-contact > :first-child { flex-basis: 100%; }
  .t-close .t-contact { column-gap: clamp(16px, 3vw, 36px); }
}
.t-contact .t-note { flex-basis: 100%; }
.t-contact .t-note:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: rgba(250, 249, 246, .55) !important; }
#colophon .site-footer-wrap:where(:not(.has-background, [style*="background"])), #colophon .site-bottom-footer-wrap:where(:not(.has-background, [style*="background"])), #colophon .site-footer-row-container-inner:where(:not(.has-background, [style*="background"])) { background: var(--t-dark) !important; }
#colophon, #colophon .footer-html { font-size: 14px; }
#colophon:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)), #colophon .footer-html:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
#colophon .footer-navigation a { font-size: 14px; }
#colophon .footer-navigation a:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
#colophon .footer-navigation a:hover:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: #FAF9F6 !important; }
#colophon .site-bottom-footer-inner-wrap { padding-block: 36px; }
#colophon .site-footer-section, #colophon .site-info-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
#colophon .site-footer-section { gap: 24px; }
#colophon .site-info-inner { gap: 16px; }
#colophon .footer-html p { text-wrap: balance; }
#colophon .site-info-inner > *, #colophon .footer-html p, #colophon .footer-navigation-wrap { margin: 0; }
#colophon .footer-navigation { justify-content: center; }
@media (max-width: 1024px) {
  #colophon #footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 12px; }
  #colophon #footer-menu::after { content: ""; flex-basis: 100%; order: 1; }
  #colophon #footer-menu li:nth-child(n+4) { order: 2; }
  #colophon #footer-menu a { justify-content: center; }
}
@media (max-width: 599px) {
  #colophon #footer-menu { flex-direction: column; align-items: center; gap: 6px; }
  #colophon #footer-menu::after { display: none; }
}
#mobile-drawer .site-header-item-mobile-navigation {
  --drawer-link-inset: .5rem;
  flex-direction: column;
  align-items: stretch;
}
#mobile-drawer .mobile-navigation li > a { padding-inline: var(--drawer-link-inset); }
#mobile-drawer .ergo-facebook .wp-social-link a { justify-content: flex-start; padding-inline: var(--drawer-link-inset) 0; }

/* ---------- header ---------- */
#masthead .site-main-header-wrap .site-header-row-container-inner { background: var(--t-ground) !important; border-bottom: 1px solid var(--t-line); }
#masthead .header-button { border-radius: var(--t-btn-radius) !important; background: var(--t-dark) !important; font-weight: 600; font-size: 16px; padding: 11px 20px; transition: transform .18s ease, background-color .2s ease; }
#masthead .header-button:hover { background: var(--t-muted) !important; transform: translateY(-1px); }
.main-navigation .primary-menu-container > ul > li > a { font-size: 15px !important; }
.main-navigation .primary-menu-container > ul > li > a:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-ink) !important; }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--t-bronze); }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-muted) !important; }

/* ---------- motion ---------- */
.ergo-motion .t-hero .t-enter > * { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.ergo-motion .t-hero .t-enter > :nth-child(2) { transition-delay: .08s; } .ergo-motion .t-hero .t-enter > :nth-child(3) { transition-delay: .16s; }
.ergo-motion .t-hero .t-enter > :nth-child(4) { transition-delay: .24s; } .ergo-motion .t-hero .t-enter > :nth-child(5) { transition-delay: .32s; }
.ergo-motion .t-hero .t-photo { opacity: 0; transform: scale(.985); transition: opacity 1.1s ease .15s, transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }
.ergo-entered .t-hero .t-enter > *, .ergo-entered .t-hero .t-photo { opacity: 1; transform: none; }
.ergo-motion .ergo-develop img { filter: grayscale(1) contrast(.6) brightness(1.16); opacity: .5; transition: filter 1.6s ease, opacity 1.6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ergo-motion .ergo-develop.is-developed img { filter: none; opacity: 1; }
.ergo-motion .ergo-highlight .ergo-w { color: #CFC7BC; transition: color .3s ease; }
.ergo-motion .ergo-highlight .ergo-w.on { color: var(--t-ink); }

/* ---------- placeholder tags stay readable but quiet ---------- */

/* ---------- tablet and phone ---------- */
@media (max-width: 599px) { .t-steps { grid-template-columns: 1fr; } }
@media (max-width: 1023px) {
  .t-steps { gap: 32px; }
}
@media (max-width: 781px) {
  :root { --t-pad: 64px; }
  body { font-size: 16px; }
  .t-hero { min-height: 0; }
  .t-hero .t-photo img { max-height: none; }
  .t-row { grid-template-columns: 1fr; }
  .t-row .t-meta { grid-column: 1; }
  .t-rows.is-time .t-row { grid-template-columns: 1fr; }
  .t-btns-stack, :is(.t-hero .t-btns, .t-btns-stack) .wp-block-button { width: 100%; }
  :is(.t-hero .t-btns, .t-btns-stack) .wp-block-button__link { width: 100%; text-align: center; }
  .t-hero .t-row { gap: 4px; }
  .t-form-first { flex-direction: column-reverse; }
}
.t-rows.is-price .t-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 32px; }
.t-rows.is-price .t-row > p:nth-child(2) { color: var(--t-muted); font-size: 14px; white-space: nowrap; }
.t-rows.is-price .t-row .t-meta { grid-column: auto; font-family: "Newsreader", Georgia, serif; color: var(--t-ink); text-align: right; min-width: 64px; }
.t-rows.is-price .t-row .t-meta:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 1.2rem; }
.t-rows.is-price .t-row .t-row-name { font-family: "Hanken Grotesk", sans-serif; font-size: 16.5px; }
@media (max-width: 781px) { .t-rows.is-price .t-row { grid-template-columns: 1fr auto; } .t-rows.is-price .t-row .t-row-name { grid-column: 1 / -1; } }
@media (min-width: 782px) {
  .t-hero .t-rows .t-row { grid-template-columns: clamp(96px, 12vw, 120px) 1fr; }
}
a[href^="mailto:"] { white-space: nowrap; }
.t-hero .t-rows { margin-top: 32px; }
.t-hero .t-rows .t-row-name { font-family: "Hanken Grotesk", sans-serif; font-size: 13px; color: var(--t-muted); }
.t-card .t-h2:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
/* fixes round 1 */
h1:where(:not([style*="font-weight"])), h2:where(:not([style*="font-weight"])), h3:where(:not([style*="font-weight"])), h4:where(:not([style*="font-weight"])), .t-h1:where(:not([style*="font-weight"])), .t-h2:where(:not([style*="font-weight"])), .t-h3:where(:not([style*="font-weight"])), .t-row-name:where(:not([style*="font-weight"])), details.t-faq summary:where(:not([style*="font-weight"])) { font-weight: 400; }
.t-h1:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
@media (min-width: 1025px) {
:is(.home .t-hero, .t-intro-photo) .t-h1:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: clamp(2.5rem, 4.45vw, 3.95rem); }
}
.t-dark p:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)), .t-dark .t-lead:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)), .t-dark li:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
.t-dark .t-label:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
.t-rows.is-compact .t-row { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.7fr) 92px; gap: 6px 24px; align-items: baseline; }
.t-rows.is-compact .t-row .t-row-name { font-size: 1.25rem; }
.t-rows.is-compact .t-row > p:nth-child(2) { font-size: 15px; color: var(--t-text); }
.t-rows.is-compact .t-row .t-meta { grid-column: 3; text-align: right; }
.t-rows.is-compact .t-row .t-meta:where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 13px; }
@media (max-width: 781px) { .t-rows.is-compact .t-row { grid-template-columns: 1fr auto; } .t-rows.is-compact .t-row > p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .t-rows.is-compact .t-row .t-meta { grid-column: 2; grid-row: 1; } }
.t-hero .t-row { padding: 14px 0; }

@media (min-width: 782px) {
  .t-split.wp-block-columns > .wp-block-column:last-child { flex-grow: 1; }
}

@media (max-width: 781px) {
  .t-hero .t-split > .wp-block-column:has(> .t-photo) { order: -1; }
.t-hero .t-split .t-photo img { width: auto; height: auto; object-fit: cover; object-position: center 35%; }
.t-hero .t-split .t-photo img:where(:not([style*="aspect"]), [style*="aspect-ratio:4/5"]) { aspect-ratio: 4 / 3 !important; }
  .t-hero .t-split .t-photo.is-portrait img { object-position: center 30%; }
.t-hero:has(.t-photo):where(:not([style*="padding"])) { padding-top: 20px !important; }
.t-hero:has(.t-photo) .t-h1:where(:not([style*="margin"])) { margin-bottom: 12px !important; }
.t-hero:has(.t-photo) .t-lead:where(:not([style*="margin"])) { margin-bottom: 18px !important; }
.t-hero:has(.t-photo) .t-btns:where(:not([style*="margin"])) { margin-top: 18px !important; }
}

/* Allow equal space around the visible mark in each Kadence header. */
#main-header { --ergovita-logo-height: 60px; --ergovita-header-height: 100px; }
#mobile-header { --ergovita-logo-height: 40px; --ergovita-header-height: 60px; }
#masthead .site-main-header-inner-wrap { min-height: var(--ergovita-header-height); }
#masthead .site-branding .brand img.custom-logo {
  display: block;
  width: auto;
  height: var(--ergovita-logo-height);
  max-height: none;
}

#wrapper { overflow: visible; }
body #wrapper > header#masthead { position: sticky; top: 0; z-index: 100; background: var(--t-ground); }
body.admin-bar #masthead { top: var(--wp-admin--admin-bar--height, 32px); }
[id] { scroll-margin-top: 112px; }
#masthead .site-header-item:has(.ergo-facebook) { display: flex; align-items: center; gap: 16px; }
#masthead .mobile-header-button { padding: 8px 12px; font-size: 16px; font-weight: 600; border-radius: 8px; color: white; background: var(--t-dark); }
@media (max-width: 1024px) { [id] { scroll-margin-top: 72px; } }
.t-dark :is(h1,h2,h3,p,li,.t-label,.t-note):where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)), #colophon :is(p,a,.footer-navigation a):where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: white !important; }
.t-dark :is(.t-label,.t-meta,.t-note,.t-small):where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])), #colophon :is(p,a,.footer-navigation a):where(:not(.has-custom-font-size, [class*="-font-size"], [style*="font-size"])) { font-size: 16px; }
.t-dark .t-label::before { background: currentColor; }
.t-dark .wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-background, [style*="background"])) { background: var(--t-surface) !important; }
.t-dark .wp-block-button.is-style-outline .wp-block-button__link:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-navy) !important; }
.ergo-facebook.wp-block-social-links { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
.ergo-facebook.is-style-logos-only .wp-social-link a { display: inline-flex; color: var(--t-dark) !important; align-items: center; justify-content: center; width: 44px; height: 44px; }
.ergo-facebook.wp-block-social-links .wp-social-link a svg { width: 22px !important; height: 22px !important; fill: currentColor; }
#colophon .ergo-facebook .wp-social-link a, #mobile-drawer .ergo-facebook .wp-social-link a { color: white !important; }
.entry-content .ergo-facebook .wp-social-link a { justify-content: flex-start; padding-left: 0; }
.t-methods:where(:not([style*="padding"])) { padding-top: clamp(48px, 5vw, 76px) !important; }
#colophon .ergo-facebook { justify-content: center; }

.ergo-legal-links a, .entry-content .kb-accept-form-field label a, .t-legal a { text-decoration: underline; text-underline-offset: .18em; }
.t-booking-section .t-contact { flex-direction: column; align-items: flex-start; border-color: var(--t-line); gap: 8px; }
.t-booking-section .t-contact p { margin: 0; }
.t-booking-section .t-contact p:where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: var(--t-text) !important; }
/* Match the form's native five-pixel gutter without resizing its fields. */
.t-card > :is(.t-h2, .t-small):where(:not([style*="margin"])) { position: relative; inset-inline-start: -5px; }
.t-card .kb-form { margin-top: 20px; display: grid; gap: 15px; }
.t-card .kb-form .kadence-blocks-form-field { padding: 0; margin: 0; width: 100%; min-width: 0; }
.t-card .kb-form label { display: block; font-weight: 500; margin-bottom: 4px; }
.t-card .kb-form .kb-text-style-field { display: block; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #847b72; }
.t-card .kb-form .kb-accept-form-field { display: grid; grid-template-columns: 1.2em minmax(0,1fr); gap: 10px; align-items: start; }
.t-card .kb-form .kb-accept-form-field input { width: 1.1em; height: 1.1em; margin: .25em 0 0; }
.t-card .kb-form .kb-field-help { display: block; font-size: .875rem; color: var(--t-muted); }
.t-card .kb-form .kb-forms-submit { color: white; font-size: 16px; font-weight: 600; padding: 12px 24px; }
.ergo-price-box .ergo-price-table { margin: clamp(24px, 3vw, 40px) 0 0; }
.wp-block-table.ergo-price-table table { width: 100%; border: 0; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.wp-block-table.ergo-price-table thead { border: 0; }
.wp-block-table.ergo-price-table :is(th, td) { padding: 14px 12px 14px 0; border: 0; border-bottom: 1px solid var(--t-line); vertical-align: top; text-align: left; }
.wp-block-table.ergo-price-table th { color: var(--t-muted); font-size: 14px; font-weight: 600; border-bottom-color: var(--t-muted); }
.ergo-price-table th:first-child { width: 45%; }
.ergo-price-table th:last-child { width: 16%; }
.wp-block-table.ergo-price-table :is(th, td):last-child { text-align: right; padding-right: 0; }
.ergo-price-table td:first-child { font-weight: 600; }
.ergo-price-table small { display: inline-block; color: var(--t-muted); font-size: 14px; font-weight: 400; }
.ergo-price-table mark { padding: 2px 6px; background: #ffedaa; color: var(--t-ink); white-space: nowrap; }
.ergo-price-box .ergo-price-example, .ergo-price-box .ergo-excel-note { margin: 10px 0 0; }
.ergo-price-box .ergo-price-file { padding: 0; gap: 8px 12px; align-items: center; }
.ergo-price-box .ergo-price-file:where(:not([style*="margin"])) { margin: 30px 0 0 !important; }
.ergo-price-file .wp-block-buttons:where(:not([style*="margin"])), .ergo-price-file .wp-block-button:where(:not([style*="margin"])), .ergo-price-file .ergo-file-type:where(:not([style*="margin"])) { margin: 0 !important; }
.ergo-file-type { font-size: 13px; font-weight: 600; color: var(--t-muted); letter-spacing: .06em; }
.ergo-price-download .wp-block-button__link::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.12em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 2h9l5 5v15H5z M14 2v6h5 M8 13h8 M8 17h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ergo-price-box .ergo-price-download .wp-block-button__link:not([href]) { cursor: default; box-shadow: none; transform: none; }
.ergo-price-box .ergo-price-download .wp-block-button__link:not([href]):where(:not(.has-background, [style*="background"])) { background: #e5e2de !important; }
.ergo-price-box .ergo-price-download .wp-block-button__link:not([href]):where(:not(.has-text-color, [style^="color:"], [style*=";color:"], [style*="; color:"], .has-text-color *)) { color: #464a50 !important; }
.ergo-price-box:has(.ergo-price-download a[href]) .ergo-excel-note { display: none; }
@media (max-width: 480px) {
  .wp-block-table.ergo-price-table :is(th, td) { padding: 12px 8px 12px 0; }
  .ergo-price-table th:first-child { width: 48%; }
  .ergo-price-table th:last-child { width: 18%; }
.ergo-price-download .wp-block-button__link:where(:not([style*="padding"])) { padding: 12px 16px !important; }
}
@media (width < 321px) {
  .ergo-price-box .ergo-price-file { flex-direction: column; align-items: flex-start; row-gap: 10px; }
}
.t-legal .t-reading > * { max-width: 760px; margin-inline: 0; }
.t-legal .t-h3 { margin-block: 2em .5em; }
.t-legal .t-h2 { margin-bottom: .7em; }
.t-legal p, .t-legal li { max-width: 760px; }
.t-legal td,.t-legal th { padding: .7em; overflow-wrap: anywhere; text-align: left; }
.t-legal mark { background: #ffedaa; color: var(--t-ink); padding-inline: .12em; }

@media (max-width: 399px) { .t-h1:where(:not([class*="-font-size"], [style*="font-size"])) { font-size: clamp(2rem, 10vw, 2.5rem) !important; } }

/* Children with an explicit palette or inline setting retain their own color. */
.t-sec .has-text-color :where(p, h1, h2, h3, h4, summary, th, td),
.t-sec.has-text-color :where(p, h1, h2, h3, h4, summary, th, td) { color: inherit; }
.t-sec :is(.has-text-color, [style*="color:"]) summary { color: inherit; }
.t-sec :is([class*="-font-family"], [style*="font-family"]) :where(h1,h2,h3,h4,p,summary,.wp-block-button__link):not([class*="-font-family"]) { font-family: inherit; }
.t-sec :is([class*="-font-size"], [style*="font-size"]) :where(summary,table,th,small) { font-size: inherit; }

/* Core flow layouts express block spacing as a margin between siblings. */
.ergo-custom-gap:is(.is-layout-flow, .is-layout-constrained) > :nth-child(n+2):where(:not([style*="margin"])) {
    margin-block-start: var(--ergovita-row-gap) !important;
}

@media (min-width: 1025px) {
  .t-split > .wp-block-column:first-child > .t-photo:where(:not([style*="margin"])) { margin-inline: 0 auto !important; }
  #masthead .header-button { white-space: nowrap; }
}
@media (min-width: 782px) and (max-width: 844px) {
  :is(.home .t-hero, .t-intro-photo) .t-h1:where(:not([class*="-font-size"], [style*="font-size"])) { font-size: 2.1rem; text-wrap: balance; }
}
@media (min-width: 782px) and (max-width: 941px) {
  :is(.home .t-hero, .t-intro-photo) .t-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 199px), max-content)); }
  :is(.home .t-hero, .t-intro-photo) .t-btns .wp-block-button__link { width: 100%; }
}
