/* Doctor cards use the same crop for WordPress images and picture sources. */
.team-grid .team-card .team-portrait {
  position: relative;
  width: 100%;
  height: clamp(260px, 29vw, 400px);
  aspect-ratio: auto;
  flex: none;
  overflow: hidden;
}

.team-grid .team-card .team-portrait :is(picture, img) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.team-grid .team-card .team-portrait img {
  object-fit: cover;
  object-position: center 28%;
}

.team-grid .team-card-copy {
  container-type: inline-size;
  min-width: 0;
}

.team-grid .team-card h3 {
  margin-block: 0 14px;
  min-height: 2.4em;
  font-size: clamp(1rem, 8.3cqi, 1.56rem);
  line-height: 1.2;
}

.team-grid .team-card h3 span {
  display: block;
  white-space: nowrap;
}

.page:not(.home) .team-grid {
  grid-auto-rows: 1fr;
}

@media (max-width: 760px) {
  .team-grid .team-card .team-portrait {
    height: clamp(265px, 85vw, 410px);
  }
}

/* Booking forms appear inside sections, in articles and in dialogs. */
form p.consent-policy,
form.inquiry-form p.consent-policy {
  max-width: 62ch;
  margin-block: 0 14px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #54645b;
}

form.inquiry-form.article-lead-form p.consent-policy {
  font-size: 0.625rem;
}

form.inquiry-form:not(.chat-form) button.button[type="submit"] {
  min-height: 46px;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  line-height: 1.25;
  font-weight: 700;
}

.text-link.booking-phone {
  font-weight: 750;
  font-variant-numeric: lining-nums;
}

/* The desktop launcher stays in its own corner as the centered offer resizes. */
@media (min-width: 961px) {
  :root.has-happy-hours :is(button.desktop-chat, button.ksk-smart-chat-launcher) {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* Use the homepage action style for the collapsed offer. */
#happy-hours.is-collapsed {
  width: max-content;
  max-width: calc(100% - 24px);
  border: 0;
  border-radius: 12px;
  background: var(--green);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

#happy-hours.is-collapsed .happy-hours-inner {
  padding: 0;
}

#happy-hours.is-collapsed .happy-hours-top {
  display: block;
  min-height: 0;
}

#happy-hours.is-collapsed .happy-hours-top > strong {
  display: none;
}

#happy-hours.is-collapsed .happy-hours-toggle {
  --offer-icon-size: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 54px;
  padding: 14px 23px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: var(--copy-sm);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .2s ease;
}

#happy-hours.is-collapsed .happy-hours-toggle::before {
  content: "";
  flex: none;
  width: var(--offer-icon-size);
  height: var(--offer-icon-size);
  background-color: currentColor;
  --offer-icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2026%2026%22%20width=%2226%22%20height=%2226%22%20fill=%22none%22%20stroke=%22black%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20aria-hidden=%22true%22%3E%3Cpath%20stroke-width=%221.85%22%20d=%22M11.97%205.68c-1.19.7-2.12.72-3.47.06C5.06%204.05%202.46%205.7%202.46%209.05c0%202.82%201.62%204.44%201.88%207.03.37%203.6%201.17%207.12%202.98%207.12%201.67%200%201.26-6.9%203.57-6.9s1.9%206.9%203.59%206.9c1.7%200%202.56-3.44%202.95-6.81.07-.59.13-1.08.26-1.52%22/%3E%3Ccircle%20cx=%2218.55%22%20cy=%227.45%22%20r=%225.35%22%20stroke-width=%221.75%22/%3E%3Cpath%20d=%22M18.55%204.35v3.1l2.05%201.28%22%20stroke-width=%221.55%22/%3E%3C/svg%3E");
  -webkit-mask: var(--offer-icon) center / contain no-repeat;
  mask: var(--offer-icon) center / contain no-repeat;
}

@media (max-width: 760px) {
  #happy-hours.is-collapsed .happy-hours-toggle {
    --offer-icon-size: 22px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: clamp(14px, 3.8vw, 15px);
  }
}

@media (hover: hover) and (pointer: fine) {
  #happy-hours.is-collapsed .happy-hours-toggle:hover {
    background: #10763c;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #happy-hours.is-collapsed {
    overflow: visible;
    transition: translate 160ms ease-out;
  }

  #happy-hours.is-collapsed:hover {
    translate: -50% -2px;
  }

  /* Keep the lower edge clickable throughout the hover transition. */
  #happy-hours.is-collapsed:hover .happy-hours-toggle::after {
    content: "";
    position: absolute;
    inset: calc(100% - 1px) 0 -3px;
  }
}

#happy-hours.is-collapsed .happy-hours-toggle:focus-visible {
  background: #10763c;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

#happy-hours.is-collapsed .happy-hours-toggle:active {
  background: #10763c;
  transform: none;
}

/* Each principle and treatment step has its own surface. */
:is(.about-principles, .approach-grid) {
  gap: clamp(12px, 1.6vw, 22px);
}

:is(.about-principles, .approach-grid) > article {
  --card-fill: #e7f2e7;
  --card-detail: #246442;
  min-width: 0;
  padding: clamp(22px, 2.5vw, 36px);
  border: 1px solid rgba(48, 71, 55, 0.09);
  border-radius: 22px;
  background: var(--card-fill);
  color: #23372d;
}

:is(.about-principles, .approach-grid) > article:nth-child(3n + 2) {
  --card-fill: #e7f1f4;
  --card-detail: #265f72;
}

:is(.about-principles, .approach-grid) > article:nth-child(3n) {
  --card-fill: #f7efe2;
  --card-detail: #795d32;
}

.about-principles article > svg,
.approach-grid article > span {
  display: block;
  margin: 0 0 clamp(18px, 2.2vw, 30px);
  color: var(--card-detail);
}

.approach-grid article > span {
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

:is(.about-principles, .approach-grid) > article h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(1.25rem, 1.55vw, 1.6rem);
  line-height: 1.15;
  text-wrap: balance;
}

:is(.about-principles, .approach-grid) > article p {
  margin: 0;
  color: #45574c;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .team-grid .team-card:hover,
  .team-grid .team-card:focus-within {
    border-color: #b6cbbb;
    box-shadow: 0 8px 24px rgba(31, 66, 43, 0.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .team-grid .team-card {
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }

  .team-grid .team-portrait img {
    transition: scale 200ms ease-out;
  }

  @media (hover: hover) and (pointer: fine) {
    .team-grid .team-card:hover .team-portrait img {
      scale: 1.018;
    }
  }

  details[open] > :not(summary, .faq-answer-motion) {
    animation: clinic-detail-in 150ms ease-out;
  }

  ::view-transition-group(root) {
    animation-duration: 150ms;
  }

  ::view-transition-old(root) {
    animation: clinic-page-out 130ms ease-out both;
  }

  ::view-transition-new(root) {
    animation: clinic-detail-in 150ms ease-out both;
  }
}

@keyframes clinic-detail-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes clinic-page-out {
  to { opacity: 0; }
}

/* Respect the user's selected reading-mode type size and wrapping. */
html[data-readable]:not([data-readable=""]) .team-card h3 span {
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (min-width: 761px) {
  .home-v2 .home-hero-photo {
    width: 68%;
    right: -9%;
  }

  .home-v2 .home-hero-shade {
    background: linear-gradient(90deg, #f3f5f2 41%, rgba(243, 245, 242, 0.96) 46%, rgba(243, 245, 242, 0.78) 50%, transparent 56%);
  }

  .home-v2 .home-hero-copy {
    max-width: min(650px, 48vw);
  }
}

.home-hero-copy .home-hero-caption {
  margin: 0 0 9px;
  color: #315b45;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .055em;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .home-v2 .home-hero-copy h1 {
    font-size: clamp(30px, 3.9vw, 39px);
    line-height: 1.14;
    text-wrap: balance;
  }
  .home-v2 .home-hero-copy > p {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Frame the group at phone sizes while keeping the copy below the image. */
@media (max-width: 760px) {
  .home-v2 .home-hero {
    --hero-top-gap: 68px;
    --hero-photo-height: clamp(214px, calc(76vw - 34px), 386px);
    overflow: hidden;
  }

  .home-v2 .home-hero-photo {
    inset: var(--hero-top-gap) auto auto 50%;
    width: min(160%, calc(118% + 150px));
    max-width: none;
    height: var(--hero-photo-height);
    translate: -50% 0;
    opacity: 1;
    object-fit: cover;
    object-position: center 64%;
    -webkit-mask-image: linear-gradient(#000 0 93%, transparent);
    mask-image: linear-gradient(#000 0 93%, transparent);
  }

  .home-v2 .home-hero-shade {
    display: none;
  }

  .home-v2 .home-hero-inner {
    min-height: 0;
    padding-block: calc(var(--hero-top-gap) + var(--hero-photo-height) + 10px) 20px;
  }

  .home-v2 .home-hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(23px, 6.1vw, 29px);
    line-height: 1.16;
    text-wrap: balance;
  }

  .home-v2 .home-hero-copy > p {
    font-size: .9375rem;
    line-height: 1.47;
  }

  .home-v2 .home-hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 4px clamp(6px, 2.2vw, 16px);
    margin-block: 14px 8px;
  }

  #main.home-v2 .home-hero-actions .button,
  .home-v2 .home-call {
    width: auto;
    min-height: 44px;
    font-size: clamp(14px, 3.8vw, 15px);
  }

  #main.home-v2 .home-hero-actions .button {
    padding: 10px 12px;
  }

  .home-v2 .home-first-visit {
    font-size: 13px;
    line-height: 1.45;
  }

  html[data-readable]:not([data-readable=""]) .home-v2 .home-hero-inner {
    padding-top: 35px;
  }
}

/* Offer details on the promotions page. */
.stocks-v2 .promotions-list {
  --offer-surface: #edf5ee;
  --offer-border: #d1e0d4;
}

.stocks-v2 > .promotions-list:first-child {
  padding-top: clamp(128px, 9.5vw, 154px);
}

.stocks-v2 .promotions-intro {
  max-width: 820px;
  margin-bottom: clamp(25px, 2.7vw, 40px);
}

.stocks-v2 .promotions-intro :is(h1, h2) {
  margin: 14px 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.1;
}

.stocks-v2 .promotion-detail {
  --offer-inset: clamp(16px, 1.6vw, 24px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(24px, 2.8vw, 44px);
  padding: var(--offer-inset);
  border: 1px solid var(--offer-border);
  border-radius: clamp(24px, 2.5vw, 32px);
  background: var(--offer-surface);
  scroll-margin-top: var(--wp-admin--admin-bar--height, 0px);
}

.stocks-v2 .promotion-detail + .promotion-detail {
  margin-top: clamp(22px, 2.8vw, 40px);
}

.stocks-v2 .promotion-detail-visual {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: clamp(450px, 44vw, 660px);
  aspect-ratio: auto;
  border-radius: calc(clamp(24px, 2.5vw, 32px) - 10px);
}

.stocks-v2 .promotion-detail-visual img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 38%;
}

.stocks-v2 .promotion-detail-copy {
  min-width: 0;
  align-self: center;
  padding: clamp(10px, 1.2vw, 18px) 0;
  overflow-wrap: anywhere;
}

.stocks-v2 .promotion-detail-copy:only-child {
  width: 100%;
  max-width: 78ch;
  margin-inline: auto;
}

.stocks-v2 .promotion-number {
  top: clamp(10px, 1.2vw, 18px);
}

.stocks-v2 .promotion-eyebrow {
  display: block;
  padding-right: 28px;
}

.stocks-v2 .promotion-detail h2 {
  margin: 14px 0;
  padding: 0;
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.12;
}

.stocks-v2 .promotion-price {
  margin: 20px 0 22px;
}

.stocks-v2 .promotion-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr));
  gap: clamp(18px, 2vw, 30px);
  padding-top: 20px;
  border-color: var(--offer-border);
}

.stocks-v2 .promotion-columns h3 {
  margin: 0 0 11px;
}

.stocks-v2 .promotion-terms {
  max-width: 72ch;
  padding-top: 16px;
  border-top: 1px solid var(--offer-border);
}

.stocks-v2 .promotion-terms > :first-child {
  margin-top: 0;
}

.stocks-v2 .promotion-actions {
  gap: 12px 20px;
  margin-top: 24px;
}

@media (max-width: 1023px) {
  .stocks-v2 .promotion-detail,
  .stocks-v2 .promotion-detail:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .stocks-v2 .promotion-detail .promotion-detail-visual {
    order: 0;
    min-height: 0;
    height: clamp(300px, 60vw, 510px);
    border-radius: clamp(23px, 2.5vw, 31px) clamp(23px, 2.5vw, 31px) 0 0;
  }

  .stocks-v2 .promotion-detail-copy {
    padding: clamp(20px, 4.5vw, 40px);
  }

  .stocks-v2 .promotion-number {
    top: clamp(20px, 4.5vw, 40px);
    right: clamp(20px, 4.5vw, 40px);
  }
}

@media (max-width: 960px) {
  .stocks-v2 > .promotions-list:first-child {
    padding-top: 100px;
  }
}

@media (max-width: 600px) {
  .stocks-v2 .promotions-list {
    width: calc(100% - 24px);
  }

  .stocks-v2 .promotions-intro {
    padding-inline: 5px;
  }

  .stocks-v2 .promotion-detail .promotion-detail-visual {
    height: auto;
    aspect-ratio: 1.06;
  }

  .stocks-v2 .promotion-columns {
    grid-template-columns: 1fr;
  }
}

.landing-section-head .service-body-art {
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 2;
  margin-block: clamp(16px, 2.5vw, 32px) 0;
  overflow: hidden;
}

/* Keep service photographs edge-to-edge inside their own frames. */
body :is(.landing-art-frame, .treatment-art) > img.service-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body :is(.landing-art-frame, .treatment-art) > img.service-art[src*="/ksk-clinic-"] {
  object-position: center;
}

@media (max-width: 1024px) {
  :is(.landing-art-frame, .treatment-art) {
    aspect-ratio: 5 / 4;
    border-radius: clamp(16px, 3.4vw, 30px);
  }

  :is(.landing-art-frame, .treatment-art):has(> img[src*="/ksk-clinic-"]) {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 760px) {
  .treatment-split > .treatment-art {
    max-width: none;
  }
}

.catalog-direction-intro > img {
  object-fit: cover;
}

@media (min-width: 761px) and (max-width: 1050px), (max-width: 380px) {
  .catalog-direction .catalog-direction-intro > img {
    max-width: none;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
}

@media (max-width: 1024px) {
  :is(.landing-art-frame, .treatment-art):has(> img[src*="/ksk-clinic-tomograf-0532-clean"]) {
    aspect-ratio: 1;
  }
}

/* Keep the dock and the offer within one row on short landscape phones. */
@media (orientation: landscape) and (min-width: 480px) and (max-width: 960px) and (max-height: 500px) {
  html:is(:not([data-readable]), [data-readable=""]) .mobile-dock {
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 54px;
    padding: 3px 5px;
  }

  html:is(:not([data-readable]), [data-readable=""]) .mobile-dock > :is(a, button) {
    min-height: 46px;
    gap: 2px;
    padding: 2px;
  }

  html:is(:not([data-readable]), [data-readable=""]) .mobile-dock .dock-call-icon {
    width: 38px;
    height: 26px;
    border-radius: 8px;
  }

  html:is(:not([data-readable]), [data-readable=""]) .mobile-dock svg {
    width: 19px;
    height: 19px;
  }

  html:is(:not([data-readable]), [data-readable=""]):has(#happy-hours.is-collapsed) .mobile-dock {
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    width: min(470px, calc(100% - 180px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    margin-inline: 0;
  }

  html:is(:not([data-readable]), [data-readable=""]) #happy-hours.is-collapsed {
    left: max(8px, env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    translate: 0 0;
    transform: none;
  }

  html:is(:not([data-readable]), [data-readable=""]) #happy-hours.is-collapsed .happy-hours-toggle {
    --offer-icon-size: 20px;
    min-height: 44px;
    padding: 8px;
    gap: 4px;
    font-size: 13px;
  }

  html:is(:not([data-readable]), [data-readable=""]) #happy-hours:not(.is-collapsed) {
    bottom: calc(68px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 80px - env(safe-area-inset-bottom));
    overflow-y: auto;
  }
}

/* Photographs have their own space beside or above the service summary. */
html:not([data-readable=light], [data-readable=dark], [data-hide-images=true]) .home-service-scene:has(.scene-media > img[src*="/ksk-clinic-"]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html:not([data-readable=light], [data-readable=dark], [data-hide-images=true]) .home-service-scene .scene-media:has(> img[src*="/ksk-clinic-"]) {
  position: relative;
  inset: auto;
  z-index: auto;
  height: clamp(142px, 19vw, 215px);
  overflow: hidden;
}
.home-service-scene .scene-media:has(> img[src*="/ksk-clinic-"])::after {
  content: none;
}
.home-service-scene .scene-media > img[src*="/ksk-clinic-"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
.home-service-scene .scene-media:has(> img[src*="/ksk-clinic-"]) + .scene-copy {
  flex: 1;
  height: auto;
  min-width: 0;
}
.home-service-scene .scene-media:has(> img[src*="/ksk-clinic-"]) + .scene-copy :is(h3,p) {
  max-width: none;
}
@media (max-width: 1059px) {
  html:not([data-readable=light], [data-readable=dark], [data-hide-images=true]) .home-service-scene .scene-media:has(> img[src*="/ksk-clinic-"]) {
    height: auto;
    max-height: 275px;
    aspect-ratio: 3 / 2;
  }
}
@media (min-width: 1060px) {
  html:not([data-readable=light], [data-readable=dark], [data-hide-images=true]) .home-service-scene.scene-wide:has(.scene-media > img[src*="/ksk-clinic-"]) {
    flex-direction: row-reverse;
  }
  html:not([data-readable=light], [data-readable=dark], [data-hide-images=true]) .home-service-scene.scene-wide .scene-media:has(> img[src*="/ksk-clinic-"]) {
    flex: 0 0 45%;
    height: auto;
    min-height: 210px;
  }
}

.home-promotion-image-link {
  display: none;
}
@media (max-width: 960px), (hover: none) {
  .home-promotions .home-promotion-row.is-active .home-promotion-summary {
    display: block;
  }
}
html[data-hide-images=true] #root #stocks #promotion-visual {
  display: block !important;
  position: static;
  min-height: 0;
  padding: 0;
  margin: 0;
}
html[data-hide-images=true] #root #stocks .home-promotion-feature {
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: .4em .75em;
}
html[data-hide-images=true] .home-promotion-image-link { display: inline; }

html[data-readable=clinic] {
  --reading-bg: #f4f8f4;
  --reading-ink: #1b3529;
  --green: #12613a;
  --dark: #163f2c;
  --muted: #3e584b;
  --pale: #e7f1e9;
  --line: #bdcfc2;
  --reading-control-edge: #648271;
  --reading-accent: #115d37;
  --reading-selected: #d9eddd;
  color-scheme: light;
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) {
  color: var(--reading-ink);
}
html[data-readable=clinic] #root {
  background: var(--reading-bg);
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :is(h1,h2,h3,h4) { color: var(--dark); }
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :where(p,small,.team-role,.home-promotion-summary) { color: var(--muted); }
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :where(a,.text-link,.eyebrow,.home-hero-caption,.step-number,.year,.promotion-price strong) { color: var(--reading-accent); }
html[data-readable=clinic] #root :is(.glass-nav-surface,.mobile-dock,.team-card,.catalog-direction,.article-list-item,.price-group,.promotion-detail,.home-promotion-list,.home-service-scene) {
  background-color: #fff;
  border-color: var(--line);
}
html[data-readable=clinic] #root :is(.booking-panel,.home-promotions,.home-hero,.intro-aside,.about-principles article,.approach-grid article,.treatment-choices article) {
  background-color: var(--pale);
  border-color: var(--line);
}
html[data-readable=clinic] #root .home-promotion-row.is-active {
  background-color: var(--reading-selected);
  box-shadow: inset 4px 0 var(--green) !important;
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :is(input:not([type=checkbox],[type=radio]),select,textarea) {
  color: var(--reading-ink);
  background: #fff;
  border-color: var(--reading-control-edge) !important;
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :is(button,.button) {
  border-color: var(--reading-control-edge) !important;
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :is(.button:not(.outline),.small-book,.dock-call-icon,.ksk-smart-chat__submit) {
  background: var(--reading-accent) !important;
  color: #fff !important;
  border-color: var(--reading-accent) !important;
}
html[data-readable=clinic] #root #happy-hours.is-collapsed,
html[data-readable=clinic] #root #happy-hours.is-collapsed .happy-hours-toggle {
  background: var(--reading-accent) !important;
  color: #fff !important;
}
html[data-readable=clinic] #root :is(.glass-nav-surface,.mobile-dock) {
  border: 1px solid var(--line) !important;
  border-radius: 16px;
}
html[data-readable=clinic] #root .mobile-dock :is(button,a) {
  background-color: #fff;
  color: var(--reading-accent);
  border-color: var(--reading-control-edge) !important;
}
html[data-readable=clinic] :is(#root, dialog, #ksk-smart-chat) :focus-visible {
  outline: 3px solid #075e34 !important;
  outline-offset: 3px !important;
}
html[data-readable=clinic] :is(dialog.motion-dialog,#ksk-smart-chat,.cookie-notice) {
  background: #fff;
  color: var(--reading-ink);
  border-color: var(--reading-control-edge) !important;
}
html[data-readable=clinic] dialog::backdrop { background: rgb(17 41 27 / .57); }
html[data-readable=clinic] #reading-dialog {
  border: 1px solid var(--reading-control-edge);
  border-top: 6px solid var(--reading-accent);
  border-radius: 19px;
  padding: clamp(16px,4vw,32px);
}
html[data-readable=clinic] #reading-dialog h2 {
  color: var(--dark);
  line-height: 1.15 !important;
  text-wrap: balance;
}
html[data-readable=clinic] #reading-dialog .reading-options {
  margin-block: 16px 20px;
  gap: 12px;
}
html[data-readable=clinic] #reading-dialog fieldset {
  display: flex;
  padding: 0;
  gap: 6px;
}
html[data-readable=clinic] #reading-dialog legend {
  color: var(--dark);
  padding-bottom: 3px;
}
html[data-readable=clinic] #reading-dialog button {
  border-radius: 10px;
  line-height: 1.3 !important;
}
html[data-readable=clinic] #reading-dialog :is(fieldset button,.dialog-close,.reading-actions .text-link) {
  background: #fff;
  color: var(--reading-accent);
}
html[data-readable=clinic] #reading-dialog fieldset button[aria-pressed=true] {
  background: var(--reading-selected);
  border: 2px solid var(--reading-accent) !important;
  color: #103e24;
  text-decoration: none;
  font-weight: 750;
}
html[data-readable=clinic] #reading-dialog fieldset button[aria-pressed=true]::before {
  content: "";
  display: inline-block;
  width: .48em;
  height: .26em;
  margin-inline-end: .42em;
  vertical-align: .22em;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
html[data-readable=clinic] #reading-dialog .reading-actions {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
html[data-readable]:not([data-readable=""]) #root .home-hero-photo {
  display: block;
  translate: none;
  -webkit-mask-image: none;
  mask-image: none;
  object-fit: cover;
  object-position: 50% 64%;
}

html[data-readable=clinic] #root :is(.promotion-number,.promotion-detail-copy del,.scene-number,.article-list-number,.form-fields > label,.consent > span) {
  color: var(--muted);
}
html[data-readable=clinic] #root .virtual-tour-launch-copy > small {
  color: #e9f8ee;
}

/* Tablet layout: service headings, cards and prices. */

@media (min-width: 761px) and (max-width: 960px) {
  .home-service-scenes .scene-wide .scene-copy h3 {
    max-width: 74%;
  }

  .doctor-choices {
    gap: 16px;
  }

  .doctor-choices article {
    padding: 20px 16px;
  }

  .doctor-choices h3 {
    font-size: 22px;
  }
}

.price-page-directory .price-group .price-clarify {
  max-width: 100%;
  white-space: normal;
}

@media (min-width: 961px) {
  body:has(#services-mega-menu.is-open) :is(#happy-hours, .desktop-chat) {
    visibility: hidden;
  }
}

/* Keep service names and prices within their columns at tablet widths. */
@media (min-width: 761px) and (max-width: 1200px),
       (min-width: 1201px) and (max-width: 1366px) and (pointer: coarse) {
  html:not([data-readable]:not([data-readable=""])) #main .landing-hero h1 {
    font-size: clamp(2rem, 3.7vw, 2.625rem);
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: anywhere;
    text-wrap: pretty;
  }

  html:not([data-readable]:not([data-readable=""])) #main .landing-section-head h2 {
    font-size: clamp(1.625rem, 2.7vw, 2rem);
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  #main .landing-hero .landing-visual {
    align-self: start;
  }
}

/* One clinician occupies a single horizontal card on the service page. */
@media (min-width: 761px) and (max-width: 1200px) {
  html:not([data-readable]:not([data-readable=""])) .landing-hero ~ .clinic-team .team-grid:has(> .team-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  html:not([data-readable]:not([data-readable=""])) .landing-hero ~ .clinic-team .team-card:only-child {
    display: grid;
    grid-template-columns: clamp(12rem, 25vw, 18rem) minmax(0, 1fr);
  }

  html:not([data-readable]:not([data-readable=""])) .landing-hero ~ .clinic-team .team-card:only-child .team-portrait {
    height: auto;
    min-height: 15rem;
  }

  html:not([data-readable]:not([data-readable=""])) .landing-hero ~ .clinic-team .team-card:only-child .team-actions {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem 1.25rem;
  }

  html:not([data-readable]:not([data-readable=""])) .landing-hero ~ .clinic-team .team-card:only-child .team-actions > button {
    width: auto;
    flex: 0 1 auto;
  }
}

/* Show each service illustration at its natural aspect ratio. */
@media (min-width: 761px) and (max-width: 1050px) {
  .catalog-direction .catalog-direction-intro > img {
    height: auto;
    aspect-ratio: auto;
  }
}

.team-directory-portraits {
  flex-wrap: wrap;
  align-items: center;
  padding-inline-start: 8px;
  row-gap: 4px;
}
.mini-team.team-directory-portraits img {
  flex: none;
  inline-size: min(42px, calc((100% + 40px) / 6));
  block-size: auto;
  aspect-ratio: 1;
  margin-inline-start: -8px;
}
.doctor-dialog .doctor-education {
  margin-block: 1.25em;
}
.doctor-dialog .doctor-education h3 {
  margin: 0 0 .5em;
  font-size: 1.1em;
}
.doctor-dialog .doctor-education ul {
  margin: 0;
  padding-inline-start: 1.25em;
}
.doctor-dialog .doctor-education li + li {
  margin-top: .4em;
}
.doctor-dialog .doctor-education .text-link {
  margin-top: .6em;
  text-decoration: underline;
}

/* The first-visit note is the subordinate heading of the directions panel. */
body.ksk-wordpress .contacts .contact-right .contact-visit-title {
    color: var(--dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: inherit;
    line-height: 1.7;
    margin: 0 0 17px;
}
@media (max-width: 760px) {
    body.ksk-wordpress .contacts .contact-right .contact-visit-title {
        font-size: 13px;
    }
}
