/* Muse v2 §2: exact semantic palette. Logo/image bytes are intentionally untouched. */
:root,
:root.visitor-home.ru-home-composition {
  --paper:#FEFCF7;
  --mist:#F3F5FA;
  --line:#E3E8F2;
  --ink:#1B2A4A;
  --ink-2:#5B6B8C;
  --brand:#2459D8;
  --brand-hover:#1E4CBB;
  --brand-wash:#E9EFFC;
  --accent:#FF8A24;
  --accent-soft:#FFF1E2;
  --accent-ink:#1B2A4A;
  /* Explicitly authorized only for success/completed/verified micro-statuses.
     No component receives this colour until its semantic placement is verified. */
  --pine:#15A06C;
  --pine-deep:#0E6B4D;
  --ru-font:-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --ru-home-font:var(--ru-font)!important;
  --home-blue:var(--brand)!important;
  --home-ink:var(--ink)!important;
  --home-muted:var(--ink-2)!important;
  --home-ground:var(--mist)!important;
  --home-line:var(--line)!important;
  --home-orange:var(--accent)!important;
  --blue:var(--brand)!important;
  --blue-2:var(--brand-hover)!important;
  --blue-s:var(--brand-wash)!important;
}
html[data-ru-theme=light],html[data-ru-theme=light] body {
  --bg:var(--paper)!important;--bg-2:var(--paper)!important;
  --text:var(--ink)!important;--text-2:var(--ink-2)!important;--text-3:var(--ink-2)!important;
}
html:root[data-ru-theme=light].visitor-v2:is(.ru-standalone,.ru-shell,.ru-journey,.visitor-v2),
html:root[data-ru-theme=light].visitor-v2:is(.ru-standalone,.ru-shell,.ru-journey,.visitor-v2) body,
html[data-ru-theme=light].ru-shell iframe {background-color:var(--paper)!important;}
:root.ru-toolbox-refined.ru-tool-panel[data-ru-theme=light],
:root.ru-toolbox-refined.ru-tool-panel[data-ru-theme=light] body {background-color:var(--paper)!important;}
html body,
html body :is(h1,h2,h3,h4,p,a,button,input,select,textarea,table,th,td,li,label) {
  font-family:var(--ru-font)!important;
}
html a {color:var(--brand);}
html a:hover {color:var(--brand-hover);}
:root.ru-journey.visitor-v2[data-ru-theme] .ru-sidebar .ru-sidebar-nav,
html #ruJourneyFooter {background-color:var(--ink)!important;}
:root.ru-journey.visitor-v2[data-ru-theme] .ru-sidebar .ru-sidebar-nav>.ru-nav-item:is(:hover,.active),
:root.ru-journey.visitor-v2[data-ru-theme] .ru-journey-parent:is(:hover,.active),
:root.ru-journey.visitor-v2[data-ru-theme] .ru-journey-group.is-open>.ru-journey-parent {background-color:var(--brand)!important;}
:root.ru-journey.visitor-v2[data-ru-theme] .ru-sidebar .ru-journey-menu a:is(:hover,.active) {background-color:var(--brand-wash)!important;color:var(--brand)!important;}
:root.ru-journey.visitor-v2[data-ru-theme] .ru-sidebar .ru-sidebar-nav>.ru-nav-item[data-id=apply] {background-color:var(--brand-wash)!important;color:var(--brand)!important;}
html .ru-journey-search button {background-color:var(--brand-wash)!important;color:var(--brand)!important;}
html .ru-journey-mast {background-color:var(--paper)!important;}
html #ruJourneyFooter a {transition:color 150ms ease-out!important;}
html #ruJourneyFooter a:is(:hover,:focus-visible) {color:var(--accent)!important;}
/* Existing catalogue gold accents must not become forbidden orange body text/badges. */
html .fee-cny,html .cny-value {color:var(--ink-2)!important;}
html .exam-date-batch {background:var(--brand-wash)!important;color:var(--brand)!important;}
html.visitor-programs .badge {background:var(--brand-wash)!important;color:var(--brand)!important;}
html.visitor-programs :is(.exam-note,.exam-date-item) {background:var(--brand-wash)!important;border-left-color:var(--brand)!important;color:var(--ink-2)!important;}
html .ru-journey-mast :is(input,button,a) {font-family:var(--ru-font)!important;}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto!important;}
  html :is(.ru-home-service-card,.school-card,.visitor-section-link,.ru-home-service-more,.ru-home-city-entry__head>a) {transition:none!important;}
  html:root.visitor-v2[data-ru-theme] :is(.ru-line-art,.ru-line-art *,.ru-hero-field *,.ru-hero-mark,.ru-hero-mark *) {animation:none!important;transition:none!important;}
  html:root.visitor-v2[data-ru-theme] .ru-sidebar .ru-nav-item:is(:hover,:focus-visible) {transform:none!important;}
}

/* User recovery: square UI; original artwork and approved news pagination retain their geometry. */
:root body :is(button,input,select,textarea,dialog,[role="dialog"],.ru-journey-mast,.ru-nav-item,.ru-home-dock-panel,.ru-home-tool-dock__button,.ru-home-tool-dock__scroll,.ru-home-tool-dock__tooltip,.ru-hero-field,.school-card,.ru-home-service-card,.ru-home-research,.ru-hpw-card,.ru-hpw-note,.ru-home-story__thumbnail,.ru-journey-social-card){border-radius:0!important}
:root body :is(.ru-home-tool-dock__button,.ru-home-tool-dock__scroll)::after{border-radius:0!important}
html:root.ru-journey .ru-sidebar{background:var(--paper)!important}
html:root.ru-journey .ru-sidebar .ru-sidebar-nav{background:var(--ink)!important}
html.ru-journey .ru-journey-mast{background:var(--paper)!important}

/* Keep the desktop search right-aligned, with a shorter input. */
@media(min-width:1001px){html:root.ru-journey .ru-journey-mast .ru-journey-search{width:min(100%,440px)!important;justify-self:end!important}}

/* Action and information surfaces, shared across consultation and service pages. */
:root:root .lead-panel:has(.ru-lead-form),:root:root .lead-panel:has(#studyLeadForm),:root:root .lead-panel:has(#serviceLeadForm){background:#fff!important;--lead-card:#fff}
:root:root .lead-grid>aside.lead-panel{background:var(--mist)!important}
:root:root :is(.lead-service-note,.ru-hpw-note,.ru-home-notes,[role=note]){border:1px solid var(--line)!important;padding:22px 24px!important;box-sizing:border-box}
:root:root :is(.ru-lead-submit,.lead-link,.visitor-intro__primary):is(:hover,:focus-visible):not(:disabled){background:var(--accent)!important;border-color:var(--accent)!important;color:var(--ink)!important}
:root:root.ru-journey.visitor-v2[data-ru-theme] .ru-sidebar .ru-sidebar-nav>.ru-nav-item[data-id=apply]:is(:hover,:focus-visible){background:var(--accent)!important;color:var(--ink)!important}
