/* The original styles supply every colour until a clinic publishes another palette. */
body[data-ow-theme="ink"] {
  --forest: #193754; --ink: #172f46; --paper: #f7fafc; --sage: #e6eef6;
  --lime: #b7ddf8; --muted: #4c6175; --ow-link: #245b82; --rule: #bccddc;
}
body[data-ow-theme="plum"] {
  --forest: #4a304d; --ink: #37283b; --paper: #fcf9fc; --sage: #f1e8f2;
  --lime: #e9cded; --muted: #69556e; --ow-link: #713d72; --rule: #d7c8d9;
}
body[data-ow-theme="terracotta"] {
  --forest: #683828; --ink: #422d25; --paper: #fcf9f5; --sage: #f4e9df;
  --lime: #ffd2a8; --muted: #72594c; --ow-link: #874728; --rule: #dcc9bb;
}
body[data-ow-theme] {
  --ow-foot: color-mix(in srgb, var(--forest) 75%, black);
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--ow-link);
}
.ow-photo img[data-ow-original] { object-position: center; }
[data-ow-theme] :is(.ow-hero, .ow-page-hero, .ow-footer) { background: var(--forest); color: var(--paper); }
[data-ow-theme] .ow-bottom { background: var(--ow-foot); color: var(--paper); }
[data-ow-theme] .ow-monogram { background: var(--ow-link); }
[data-ow-theme] :is(.ow-kicker, .ow-back, .ow-footer small, .ow-page-hero .ow-tag, .ow-page-hero time) { color: var(--lime); }
[data-ow-theme] .ow-footer-inner :is(a, div > strong)::before { background-color: var(--lime); }
[data-ow-theme] .ow-footer-inner > div { border-color: var(--muted); }
[data-ow-theme] .ow-photo::before,
[data-ow-theme] .ow-secondary { border-color: var(--rule); }
[data-ow-theme] .ow-link { color: var(--ow-link) !important; }
[data-ow-theme] :is(.ow-meta, .ow-chat-open),
[data-ow-theme] .ow-service-preview > li::marker,
[data-ow-theme] .ow-hours h2::before,
[data-ow-theme] .ow-page-content a:not(.ow-button):hover { color: var(--ow-link); }
[data-ow-theme] :is(.ow-periods, .ow-news, .ow-hours-note, .ow-week-today, .ow-newsletter-note, .ow-textblock blockquote) { border-color: var(--rule); }
[data-ow-theme] .ow-week-today { color: var(--ink); background: var(--lime); }
[data-ow-theme] .ow-panel.ow-service-summary { background: var(--sage); }
[data-ow-theme] .ow-panel.ow-chat { background: linear-gradient(120deg, var(--sage), var(--paper)); }
[data-ow-theme] .ow-chat-emblem::before { background: var(--lime); }
[data-ow-theme] .ow-chat-bubble { background: var(--paper); }
[data-ow-theme] .ow-chat-link:is(:hover, :focus-visible),
[data-ow-theme] .ow-form :is(input, select, textarea) { border-color: var(--muted); }
[data-ow-theme] .ordinweb-chat-status[data-state] {
  --state: var(--muted);
  color: var(--state);
  background: var(--sage);
  background: color-mix(in srgb, var(--state) 9%, var(--paper));
}
[data-ow-theme] .ordinweb-chat-status[data-state="online"] { --state: color-mix(in srgb, #17623c 85%, var(--ink)); }
[data-ow-theme] .ordinweb-chat-status[data-state="busy"] { --state: color-mix(in srgb, #893d26 85%, var(--ink)); }
[data-ow-theme] .ordinweb-chat-status[data-state="away"] { --state: color-mix(in srgb, #735117 85%, var(--ink)); }

/* Existing clinic pages on the shared, multi-domain hosting. */
.ow-legacy[data-ow-theme] :is(nav, .ordinweb-chat-icon, .border_box, #content) { background-color: var(--paper); }
.ow-legacy[data-ow-theme] nav { background-color: var(--sage); }
.ow-legacy[data-ow-theme] .camera_caption2 .caption_content {
  color: var(--paper); background: var(--forest);
}
.ow-legacy[data-ow-theme] .camera_caption2 .caption_content :is(h3,h4) { color: var(--paper); }
.ow-legacy[data-ow-theme] :is(h2, h3, h4, h5, h6, .list li, .list a, .sf-menu > li > a, .ordinweb-chat-return a) { color: var(--ink); }
.ow-legacy[data-ow-theme] :is(.sf-menu > li.current > a, h2 a:hover, h3 a:hover, .ordinweb-chat-icon, .mail_link, address dt, .header_contacts a) { color: var(--ow-link); }
.ow-legacy[data-ow-theme] :is(.sf-menu > li span, .sf-menu ul, .icon_tetle span, .btn, footer) { background: var(--forest); color: var(--paper); }
.ow-legacy[data-ow-theme] footer :is(h2, h3, h4, h5, h6, p, a, span, .copyright) { color: var(--paper); }
.ow-legacy[data-ow-theme] footer .footer_icon_box > span { color: var(--forest); background: var(--lime); }
.ow-legacy[data-ow-theme] .ordinweb-chat-link { color: var(--ink); border-color: var(--rule); }
.ow-legacy[data-ow-theme] .ordinweb-chat-link:hover { background: var(--sage); }
.ow-legacy[data-ow-theme] .btn:hover { color: var(--forest); background: var(--lime); }
.ow-legacy[data-ow-theme] .sf-menu ul li:is(.active, .sfHover) > a,
.ow-legacy[data-ow-theme] .sf-menu ul li > a:hover { color: var(--lime); }
.ow-custom-home-photo { display: none; }
@media (max-width: 979px) {
  .ow-custom-home-photo { display: block; width: 100%; height: clamp(10rem, 30vw, 28rem); object-fit: cover; }
}

body[data-ow-theme="ruby"] {
  --forest: #79242b; --ink: #332429; --paper: #fcf9f6; --sage: #f6e8e7;
  --lime: #ffd6d2; --muted: #71585b; --ow-link: #922b39; --rule: #dec6c7;
}
body[data-ow-theme="blue"] {
  --forest: #23577e; --ink: #1a3043; --paper: #f7fafc; --sage: #e5f1f8;
  --lime: #c2e6fb; --muted: #51667a; --ow-link: #246288; --rule: #bfced9;
}
body[data-ow-theme="teal"] {
  --forest: #10585b; --ink: #143638; --paper: #f6faf8; --sage: #e0f3ef;
  --lime: #b9eee3; --muted: #4a6867; --ow-link: #14676a; --rule: #b9d1cc;
}
.ow-brand [hidden] { display: none; }
.ow-brand img.ow-brand-logo {
  max-width: min(13rem, 19vw); max-height: 3.75rem;
  object-fit: contain; object-position: left center;
}
.ow-brand-text { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 60rem) {
  .ow-brand img.ow-brand-logo { max-width: min(11rem, 29vw); max-height: 3rem; }
}
