/* DELTA GROOMING — stage 6, 30.10.2026
   Unified public palette: pure white / pure black / existing brand pink.
   Public pages only. No admin styles or application logic.
*/
:root,
html,
html[data-theme="light"],
html[data-theme="dark"] {
  --bg:#ffffff!important;
  --bg-soft:#ffffff!important;
  --panel:#ffffff!important;
  --panel-2:#ffffff!important;
  --card:#ffffff!important;
  --milk:#ffffff!important;
  --soft:#ffffff!important;
  --text:#000000!important;
  --title:#000000!important;
  --muted:#000000!important;
  --faint:#000000!important;
  --pink:#ef3f7d!important;
  --pink-2:#ef3f7d!important;
  --pink-soft:#ffffff!important;
  --gold:#ef3f7d!important;
  --line:rgba(0,0,0,.16)!important;
  --line-strong:rgba(0,0,0,.28)!important;
  --shadow:0 10px 28px rgba(0,0,0,.055)!important;
  color-scheme:light!important;
}
html,body,html body,
html[data-theme="dark"] body {
  background:#ffffff!important;
  background-image:none!important;
  color:#000000!important;
}
body::before { display:none!important; background:none!important; }
.site-header,.footer,.header,.mobile-menu,.site-header .nav,.site-header .nav a,
html[data-theme="dark"] .header,
html[data-theme="dark"] .site-header {
  background:#ffffff!important;
  background-image:none!important;
}
.site-header .nav a,.footer,.footer a,.footer h4,.mobile-menu a,
.site-header .nav a:hover,
html[data-theme="dark"] .site-header .nav a { color:#000000!important; }
.site-header .nav a:hover,.mobile-menu a:hover{border-color:var(--pink)!important}
html[data-theme="dark"] .site-header,.site-header{border-color:var(--line)!important}
.theme-btn,[data-theme-toggle] {display:none!important}
/* White surfaces, including previously creamy or translucent cards. */
:where(
 .hero-shell,.hero-copy,.hero-work-btn,.hero-banner-slider,
 .float-badge,.trust-strip,.trust-card,.trust-photo,
 .services-grid .service-card,.service-card,.service-side,.service-main,.service-article,.service-content,
 .dg-filters,.dg-filter-group,.dg-breeds-box,.dg-filter-hint,.dg-count,.dg-chip,.dg-breed-search,.dg-service-search,
 .services-search,.services-filter-bar,.service-pill,.service-cta,.service-cta-btn.ghost,.service-choice-help,
 .work-item,.work-gallery,.works-stat,.works-tools,.works-chip,.work-pill,.work-thumbs,
 .education-card,.education-pills span,.education-pills .training-choice-btn,.education-mini-item,
 .education-info-disclosure,.training-choice-btn,.training-apply-card,.training-apply-form,
 .training-type-options,.training-type-picker,.training-type-option,.training-preview-item,
 .training-card,.training-side,.training-side li,.training-faq,.faq-item,.training-online-details,
 .lesson-list,.player-card,.lesson-link,.lesson-ph,
 .review-card,.review-form-card,.review-empty,.review-contacts span,.review-contact-box,
 .review-no-photo,.review-social-icon,.review-avatar,
 .booking-form-card,.booking-form-card .field input,.booking-form-card .field select,
 .stat-icon,.salon-mini-card,.contact-item,.location-map-card,.location-map-brand,.location-map-frame,
 .step-card,.info-list li,.info-dot,.review-shot,.work-image,.service-cover,
 .cab-card,.cab-stat,.cab-info,.cab-row,.cab-tabs a,.cab-roadmap div,.cab-welcome,.cab-pill,
 .blog-home-card,.article-main,.article-text blockquote,.article-text th,
 .topic-hub,.side,.card,.main,.pill,.btn:not(.btn-primary):not(.primary),
 .field input,.field select,.field textarea,.booking-hint,.training-apply-note
) {
  background:#ffffff!important;
  background-image:none!important;
  color:#000000!important;
}
/* Some desktop layouts have stronger dark-theme and local selectors. */
html[data-theme="dark"] .dg-filters,
html[data-theme="dark"] .dg-breeds-box,
html[data-theme="dark"] .dg-filter-hint,
html[data-theme="dark"] .dg-count,
html[data-theme="dark"] .dg-chip:not(.is-active),
html[data-theme="dark"] .dg-breed-search,
html[data-theme="dark"] .dg-service-search,
html[data-theme="dark"] .service-cta,
html[data-theme="dark"] .service-cta-btn.ghost,
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .card,
html[data-theme="dark"] .main,
html[data-theme="dark"] .side {
  background:#ffffff!important;
  background-image:none!important;
  color:#000000!important;
}
.dg-filters::before,.works-tools::before{display:none!important}
.hero-shell::before,.education-card::before,.trust-card::before {background-image:none!important}
:where(
 .service-card p,.service-side a,.service-detail-lead,.service-cta-text,.service-choice-help p,
 .services-lead,.dg-filter-hint,.dg-topline p,.dg-count,
 .work-body p,.work-meta,.work-pill,.works-count,.works-lead,
 .education-text p,.education-mini span,.education-info-disclosure-content p,
 .training-apply-info p,.training-apply-note,.training-lead,.training-side li,.faq-item span,
 .review-card p,.review-form .field label,.review-contact-box,.review-contacts,
 .trust-card p,.booking-form-card p,.booking-layout p,.booking-hint,
 .salon-main p,.contact-item p,.footer p,
 .cab-muted,.cab-row,.cab-roadmap span,
 .article-text,.article-main,.blog-lead,.article-lead,.blog-breadcrumb,
 .card p,.pill,.text-muted,.muted
) { color:#000000!important; }
:where(
 h1,h2,h3,h4,h5,h6,.section-title,.section h2,.service-card h3,
 .service-main h1,.service-side-title,.work-body h2,
 .education-text h2,.education-mini b,.training-apply-info h3,
 .training-title,.training-online-details summary,
 .cab-title,.article-main h1,.article-text h2,.blog-title
) {color:#000000!important}
:where(input,select,textarea,.dg-breed-search,.dg-service-search,.field input,.field select,.field textarea) {
 background:#ffffff!important;
 color:#000000!important;
 border-color:var(--line)!important;
}
:where(input,select,textarea)::placeholder { color:#000000!important;opacity:.62; }
/* Accent pink remains the only non-neutral visual accent. */
.btn-primary,.btn.primary,.filter-btn.is-active,.filter-btn:hover,
.dg-chip.is-active,.works-chip.is-active,
.training-choice-btn.active,.training-choice-btn:hover,.training-choice-btn:focus-visible,
.education-pills .training-choice-btn.active,
.education-pills .training-choice-btn:hover,
.training-type-option.active,
.service-cta-btn.primary,
.review-form button[type="submit"],
.review-write-link,.cta-panel,
.cab-tabs a.active,.cab-welcome-icon,
.review-social-btn.is-active,.review-social-btn:hover {
 background:#ef3f7d!important;
 background-image:none!important;
 border-color:#ef3f7d!important;
 color:#ffffff!important;
}
.btn-primary *, .btn.primary *, .filter-btn.is-active *,
.dg-chip.is-active *, .works-chip.is-active *,
.training-choice-btn.active *, .training-choice-btn:hover *,
.education-pills .training-choice-btn.active *,
.training-type-option.active *, .service-cta-btn.primary *,
.review-form button[type="submit"] *, .cta-panel *,
.cab-tabs a.active * {color:#ffffff!important}
.cta-panel .btn-secondary{background:#ffffff!important;color:#000000!important;border-color:#ffffff!important}
.cta-panel .btn-secondary *{color:#000000!important}
:where(.badge,.service-card-tag,.work-badge,.work-photo-count,.work-card-count,
.hero-banner-caption,.hero-banner-dots,.review-badge) {
 background:#ef3f7d!important;
 background-image:none!important;
 color:#ffffff!important;
}
:where(.badge,.service-card-tag,.work-badge,.work-photo-count,.work-card-count,.hero-banner-caption) *{color:#ffffff!important}
:where(.education-pills span,.service-pill,.work-pill,.trust-type,.training-pills span,.pill,.cab-pill){
 background:#ffffff!important;
 color:#000000!important;
 border:1px solid var(--line)!important;
}
:where(.work-pill,.service-pill,.dg-chip,.works-chip,.review-card,.service-card,.work-item,
.training-card,.training-side,.faq-item,.education-card,.hero-shell,
.training-choice-btn,.training-apply-card,.booking-form-card,.article-main,.blog-home-card,
.cab-card,.service-cta,.service-choice-help,.education-info-disclosure) {
 border-color:var(--line)!important;
 box-shadow:var(--shadow)!important;
}
/* Preserve clear, usable contrast for feedback, no green/yellow/gray fills. */
:where(.training-apply-alert.ok,.training-apply-alert.bad,.booking-alert.ok,
.booking-alert.bad,.cab-alert.ok,.cab-alert.bad,.training-alert.ok,.training-alert.bad,
.form-status,.dg-empty,.review-empty) {
 background:#ffffff!important;
 background-image:none!important;
 color:#000000!important;
 border:1px solid #ef3f7d!important;
}
:where(.trust-type,.service-card-tag,.section-kicker,.services-kicker,
.works-kicker,.training-kicker,.blog-kicker,.cab-kicker) {
 color:#ef3f7d!important;
}
/* Preserve image clarity: do not recolor photos, maps, dark video player or modal scrims. */
.hero-banner-caption{background:#ef3f7d!important}
.hero-banner-dot{background:#ffffff!important}
.hero-banner-dot.is-active{background:#ef3f7d!important}
.hero-media::before,.education-cover::after{background-image:none!important}
.location-map-frame iframe,.video-wrap,.video-wrap video{background:#000000!important}
.review-like:hover,.review-like.is-liked,
.review-star-btn:hover,.nav a:hover {
 background:#ffffff!important;
 color:#ef3f7d!important;
}
a:not(.btn):not(.service-card):not(.work-item):hover{color:#ef3f7d}
/* Printed pages should also retain the white palette. */
@media print {
 body,.service-card,.work-item,.education-card,.article-main { background:#ffffff!important;color:#000000!important; }
}

/* DELTA GROOMING TYPOGRAPHY — legibility and balanced weights, 2026-10-30 */
/* One consistent Cyrillic-friendly sans family for the public site. */
html body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.6 !important;
  letter-spacing:0 !important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  text-rendering:optimizeLegibility;
}
html body :is(p,li,dd,dt,blockquote,figcaption) {
  font-weight:400 !important;
  line-height:1.62 !important;
  letter-spacing:0 !important;
}
html body :is(h1,h2,h3,h4,h5,h6) {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
  font-weight:650 !important;
  letter-spacing:-.025em !important;
  line-height:1.19 !important;
  text-wrap:balance;
}
html body :is(strong,b) {font-weight:600 !important;}
/* Headings retain hierarchy without oversized serif letters or extra-heavy weights. */
html body :is(.hero-copy h1,.hero h1,.hero-title) {
  font-size:clamp(36px,4.3vw,58px) !important;
  line-height:1.13 !important;
  font-weight:650 !important;
  letter-spacing:-.035em !important;
}
html body :is(.section h2,.section-title,.services-title,.works-title,.training-title,.blog-title) {
  font-size:clamp(27px,2.85vw,39px) !important;
  line-height:1.19 !important;
  font-weight:650 !important;
  letter-spacing:-.025em !important;
}
html body :is(.education-text h2,.booking-form-card h3,.training-apply-info h3,.cab-title) {
  font-family:inherit !important;
  font-weight:650 !important;
  font-size:clamp(25px,2.5vw,35px) !important;
  line-height:1.19 !important;
  letter-spacing:-.025em !important;
}
html body :is(.section-desc,.services-lead,.works-lead,.training-lead,.service-detail-lead,
 .hero-copy p,.hero-lead,.education-text p,.booking-form-card p,.training-apply-info p,
 .contact-item p,.cab-muted,.blog-lead) {
  font-size:clamp(15px,1.1vw,17px) !important;
  line-height:1.62 !important;
  font-weight:400 !important;
}
/* Common buttons, menus and captions: 500–600 instead of 850–1000. */
html body :is(.btn,.btn-primary,.btn-secondary,.btn-ghost,.header-booking-btn,.header-actions .btn-primary,
 .service-cta-btn,.service-choice-actions a,.location-map-link,.review-write-link,
 .review-like,.review-form button[type="submit"],.service-card-more,.blog-home-read) {
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  white-space:normal !important;
}
html body .site-header .nav a,html body .mobile-menu a {
  font-size:13.5px !important;
  font-weight:550 !important;
  line-height:1.4 !important;
  letter-spacing:0 !important;
}
html body .site-header .nav a {padding:9px 12px !important;}
html body :is(.section-kicker,.services-kicker,.works-kicker,.training-kicker,
 .cab-kicker,.eyebrow,.trust-type,.blog-kicker,.blog-home-date,.blog-home-tag) {
  font-size:12px !important;
  font-weight:600 !important;
  line-height:1.4 !important;
  letter-spacing:.035em !important;
}
/* Service cards and service details. */
html body .service-card h2,html body .service-card h3 {
  font-size:17px !important;
  font-weight:650 !important;
  line-height:1.32 !important;
  letter-spacing:-.015em !important;
}
html body .service-card p {
  font-size:14px !important;
  font-weight:400 !important;
  line-height:1.55 !important;
}
html body :is(.service-card-tag,.service-pill,.dg-filter-summary,.dg-topline p,.dg-filter-hint,
 .service-choice-help p,.service-cta-text,.dg-count) {
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1.45 !important;
  letter-spacing:0 !important;
}
html body .service-text {font-size:16px !important;line-height:1.7 !important;}
html body .service-text :where(p,li,td,th) {
  font-size:15px !important;
  line-height:1.6 !important;
  font-weight:400 !important;
}
html body .service-text th,html body .service-text strong {font-weight:600 !important;}
html body .service-text h2 {font-size:clamp(22px,2vw,28px) !important;line-height:1.25 !important;}
html body :is(.dg-chip,.dg-filter-btn,.filter-btn,.works-chip,.works-search,
 .dg-breeds-toggle,.dg-breed-search,.dg-service-search,.dg-search,.dg-filter-title) {
  font-size:13px !important;
  font-weight:550 !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
}
html body :is(.dg-breeds-toggle span,.dg-filter-hint strong) {
  font-weight:600 !important;
  font-size:13px !important;
}
/* Portfolio and home-work cards. */
html body .work-body h2 {font-size:17px !important;line-height:1.3 !important;font-weight:650 !important;}
html body .work-body p {font-size:14px !important;line-height:1.52 !important;}
html body .work-card b {font-size:14px !important;line-height:1.34 !important;font-weight:600 !important;}
html body :is(.work-pill,.work-badge,.work-photo-count,.work-card-count,.work-card .badge,
 .works-stat span,.works-count,.work-body .btn,.work-card .badge) {
  font-size:12px !important;
  font-weight:550 !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
}
html body .work-body .btn {font-size:13px !important;min-height:36px !important;}
html body .work-body h2,html body .work-body p,html body .work-card b {
  overflow-wrap:break-word !important;
}
/* Blog articles are for reading, not dense dashboards. */
html body :is(.article-text,.article-main,.blog-article-body,.article-body) {
  font-size:16px !important;
  line-height:1.72 !important;
}
html body :is(.article-text p,.article-text li,.article-main p,.article-main li) {
  font-size:16px !important;
  line-height:1.72 !important;
}
html body :is(.article-text h2,.article-main h2) {font-size:clamp(23px,2.2vw,29px) !important;font-weight:650 !important;}
html body :is(.article-text h3,.article-main h3) {font-size:clamp(19px,1.7vw,23px) !important;font-weight:650 !important;}
html body .blog-home-card h3,html body .blog-cluster h3 {
  font-size:18px !important;
  line-height:1.35 !important;
  font-weight:650 !important;
}
html body .blog-home-card p,html body .blog-cluster span {
  font-size:14px !important;
  line-height:1.58 !important;
}
/* Training: readable text in small explanatory tiles and form choices. */
html body .education-mini b,html body .training-preview-item b,
html body .faq-item b,html body .training-side h2 {
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.36 !important;
}
html body .education-mini span,html body .training-preview-item span,
html body .faq-item span,html body .training-side li,
html body .education-info-disclosure-content p,
html body .training-online-details-body p {
  font-size:14px !important;
  line-height:1.55 !important;
  font-weight:400 !important;
}
html body :is(.education-pills span,.education-pills .training-choice-btn,
 .training-type-picker summary,.training-type-option,.training-choice-btn,
 .training-apply-note,.training-apply-alert,.education-info-disclosure summary,
 .training-online-details summary,.training-pills span) {
  font-size:13px !important;
  line-height:1.42 !important;
  font-weight:550 !important;
  letter-spacing:0 !important;
}
html body .education-pills .training-choice-btn {
  min-height:37px !important;
  padding:8px 12px !important;
}
html body :is(.training-apply-form label,.review-form label,.field label,.cab-form label) {
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:550 !important;
  letter-spacing:0 !important;
}
html body :is(.trust-card span,.reason-card span,.step-card span,.review-text,
 .review-form-card p,.review-contacts span,.salon-mini-card span,
 .booking-hint,.info-list li,.footer li,.footer a,.footer p,
 .cab-help,.cab-roadmap span,.cab-row,.cab-small-link) {
  font-size:14px !important;
  line-height:1.55 !important;
  font-weight:400 !important;
}
html body :is(.trust-card b,.reason-card b,.step-card b,.salon-mini-card b,
 .review-author b,.cab-row b,.cab-roadmap b) {
  font-size:15px !important;
  line-height:1.38 !important;
  font-weight:600 !important;
}
html body :is(.review-social-btn,.review-contact-title,.review-contact-title small,
 .review-field-error,.review-no-photo span,.review-photo-note,
 .review-contact-input-wrap small,.cab-tabs a,.cab-stat small,.cab-pill) {
  font-size:12px !important;
  line-height:1.4 !important;
  font-weight:550 !important;
  letter-spacing:0 !important;
}
html body :is(.footer h4,.cab-stat b) {font-size:16px !important;font-weight:650 !important;}
html body :is(input,select,textarea) {
  font-family:inherit !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
}
/* Stop clipped two-line text from making cards look empty. */
html body :is(.service-card p,.blog-home-card p,.work-body p) {
  -webkit-line-clamp:3 !important;
}
@media (max-width: 760px) {
  html body {font-size:15px !important;line-height:1.6 !important;}
  html body :is(.hero-copy h1,.hero h1,.hero-title) {
    font-size:clamp(31px,8.5vw,43px) !important;
    line-height:1.14 !important;
  }
  html body :is(.section h2,.section-title,.services-title,.works-title,.training-title,.blog-title) {
    font-size:clamp(26px,6.7vw,32px) !important;
    line-height:1.22 !important;
  }
  html body :is(.education-text h2,.booking-form-card h3,.training-apply-info h3,.cab-title) {
    font-size:clamp(24px,6vw,30px) !important;
    line-height:1.22 !important;
  }
  html body :is(.section-desc,.services-lead,.works-lead,.training-lead,.service-detail-lead,
   .hero-copy p,.hero-lead,.education-text p,.booking-form-card p,.training-apply-info p) {
    font-size:15px !important;
    line-height:1.6 !important;
  }
  html body :is(.section-kicker,.services-kicker,.works-kicker,.training-kicker,.eyebrow) {
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:.025em !important;
  }
  html body .service-card h2,html body .service-card h3 {
    font-size:15px !important;
    line-height:1.3 !important;
    -webkit-line-clamp:3 !important;
  }
  html body .service-card p {
    font-size:12.8px !important;
    line-height:1.47 !important;
    -webkit-line-clamp:3 !important;
  }
  html body .service-card-tag {font-size:11px !important;line-height:1.3 !important;}
  html body .service-card-more {font-size:13px !important;}
  html body :is(.dg-chip,.dg-filter-btn,.filter-btn,.works-chip) {
    font-size:12px !important;
    min-height:36px !important;
    font-weight:550 !important;
  }
  html body .work-body h2 {font-size:15px !important;line-height:1.26 !important;}
  html body .work-body p {font-size:12.5px !important;line-height:1.45 !important;}
  html body .work-card b {font-size:13px !important;line-height:1.3 !important;}
  html body :is(.work-pill,.work-badge,.work-photo-count,.work-card-count,.work-card .badge) {
    font-size:10.5px !important;
    line-height:1.3 !important;
    font-weight:550 !important;
  }
  html body .work-body .btn {font-size:12px !important;min-height:36px !important;}
  html body .works-lead {
    -webkit-line-clamp:initial !important;
    display:block !important;
  }
  html body .blog-home-card h3 {font-size:16px !important;line-height:1.32 !important;}
  html body .blog-home-card p {font-size:13px !important;line-height:1.5 !important;}
  html body :is(.blog-home-date,.blog-home-tag) {font-size:11px !important;}
  html body :is(.education-mini span,.education-info-disclosure-content p,
   .training-preview-item span,.faq-item span,.training-side li,.training-online-details-body p,
   .training-apply-note,.training-apply-alert) {
    font-size:13.5px !important;
    line-height:1.53 !important;
  }
  html body :is(.education-pills span,.education-pills .training-choice-btn,
   .training-type-option,.training-type-picker summary) {
    font-size:12.5px !important;
    line-height:1.42 !important;
  }
  html body :is(.btn,.btn-primary,.btn-secondary,.btn-ghost,.service-cta-btn,.header-booking-btn) {
    font-size:13px !important;
    min-height:42px !important;
    font-weight:600 !important;
  }
  html body :is(input,textarea,select) {font-size:16px !important;}
  html body :is(.footer a,.footer p,.footer li) {font-size:14px !important;}
}
@media (max-width:380px) {
  html body .work-body h2,html body .service-card h2,html body .service-card h3 {
    font-size:14px !important;
  }
  html body .work-body p,html body .service-card p {
    font-size:12px !important;
    line-height:1.4 !important;
  }
  html body .service-card-tag {font-size:10.5px !important;}
  html body .work-body .btn {font-size:11.5px !important;}
  html body :is(.work-pill,.work-badge,.work-photo-count,.work-card-count,.work-card .badge) {font-size:10px !important;}
}

/* Specificity fixes for legacy mobile styles that forced 7–11px text. */
html body .header-actions .btn-primary,
html body .header-booking-btn,
html body .btn-primary.neon-cta {
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  max-width:none !important;
}
html body .service-card-tag,
html body .work-pill {
  max-width:100% !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:break-word !important;
  height:auto !important;
  font-weight:550 !important;
}
html body .work-badge {
  white-space:normal !important;
  overflow-wrap:break-word !important;
  text-overflow:clip !important;
  font-weight:550 !important;
}
html body .work-body h2,html body .service-card h2,html body .service-card h3 {
  -webkit-line-clamp:3 !important;
}
html body .service-card p,html body .work-body p {
  -webkit-line-clamp:3 !important;
}
html body .education-info-disclosure-content p {
  font-size:14px !important;
  line-height:1.56 !important;
}
html body .section h2 {
  font-weight:650 !important;
  line-height:1.2 !important;
}
@media(max-width:760px){
  html body .header-actions .btn-primary,
  html body .header-booking-btn,
  html body .btn-primary.neon-cta {
    font-size:13px !important;
    min-height:42px !important;
    padding-inline:12px !important;
  }
  html body :is(.field input,.field textarea,.field select,.booking-form-card .field input,
    .booking-form-card .field select,.training-apply-form input,.cab-form input) {
    font-size:16px !important;
    font-weight:400 !important;
  }
  html body .service-card-tag {
    min-height:24px !important;
    padding:5px 7px !important;
  }
}

/* DELTA GROOMING — header logo motion, 2026-10-30 */
/* Keep the header and logo link fixed; animate the inner image only. */
.site-header .logo-image-link .site-logo-img {
  transform-origin: 50% 50%;
  animation: dg-header-logo-breathe 6s ease-in-out infinite;
  transition: transform 320ms ease, opacity 320ms ease;
  backface-visibility: hidden;
}

@keyframes dg-header-logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-0.45px) scale(1.016); }
}

@media (hover:hover) and (pointer:fine) {
  .site-header .logo-image-link:hover .site-logo-img {
    animation: none;
    transform: translateY(-0.8px) scale(1.045);
  }
}

.site-header .logo-image-link:focus-visible .site-logo-img {
  animation: none;
  transform: translateY(-0.8px) scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-image-link .site-logo-img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
