/* Maxima Legal 2026: colour layer on top of the original theme CSS (guideline pp. 12-15).
   Fonts, sizes, wrapping and layout are NOT touched here: they come from scss/app.css exactly as before the rebrand.
   Mapping: black UI/headings -> dark blue, grey -> light blue, guide lines -> one light line colour, body text stays black. */
:root {
  --ml-ink: #0a0b2b;
  --ml-text: #212121;
  --ml-accent: #fc46a4;
  --ml-surface: #f6f6f9;
  --ml-muted: #999fbf;
  --ml-line: #d3d4e2;       /* every guide / divider on light backgrounds */
  --ml-line-dark: #3b3e63;  /* guide lines on the dark blue footer */
}

body {
  color: var(--ml-text);
  background: var(--ml-surface);
}

/* Headings and subheadings: dark blue. */
body h2, body h3, body h4, body h5, body h6,
body .screen_one-mainb-h,
body .screen_one-adv-h1, body .screen_one-adv-h2,
body .screen_two_h1, body .screen_four_h1, body .screen_five_h1,
body .screen_six_h1, body .about_screen_two_h1, body .about_screen_four_h1,
body .team_screen_three_h1, body .main-case-h, body .footer-miniform-h1,
body .about_screen_one-history-h,
body .about-mainsocial-pro-h, body .about-social-pro-h,
body .about-clients-accordion-title,
body .about-vacarch-contentsi-h, body .blockuslugs-h, body .blockuslugs-accor-h,
body .servi_screen_two-h1, body .assoc-service-h, body .cases-actual-h, body .cases-actual-case-h,
body h1, body .screen_one-inner-h, body .about_screen_one-h1,
body .team_screen_one-h, body .serv_screen_one-h, body .servi_screen_one-h,
body .cases_screen_one-h, body .news_screen_one-h, body .con_screen_one-h,
body .casesin_mainblock-h,
body .taxonomy_hmain, body .search_wrap-zapros {
  color: var(--ml-ink) !important;
}

/* ...except on dark photos and the dark footer, where the original design uses white. */
body .screen_one-inner-h, body .screen_one-mainb-h,
body .screen_one-company-h, body .screen_one-adv-h1, body .screen_one-adv-h2,
body .cases-actual-h, body .cases-actual-case-h,
body .footer .footer-miniform-h1 {
  color: #fff !important;
}

/* Personal names keep the same natural black as on the team cards. */
body .spec-main-name, body .spec-main-hleb-name, body .assos-contacts-right-h1 {
  color: var(--ml-text) !important;
}

/* Section labels: light blue. */
body .main_services_hinner-inner span,
body .screen_one_about-a-h1,
body .serv_screen_one-heading-h,
body .about-vac-inner-l span,
body .screen_two_heading-l,
body .screen_two_heading-r,
body .screen_four_heading-l,
body .screen_four_heading-r,
body .screen_five_heading-l,
body .screen_five_heading-r,
body .screen_six_heading-l,
body .screen_six_heading-r,
body .about_screen_one-heading-h span,
body .about_screen_one-history-h span,
body .about_screen_two_heading-l,
body .about_screen_two_heading-r,
body .about_screen_four_heading-l,
body .about_screen_four_heading-r,
body .about-mainsocial-pro-h span,
body .about-social-pro-h span,
body .team-heading-hl,
body .team-heading-chapt,
body .team_screen_three_heading-l,
body .team_screen_three_heading-r,
body .serv_screen_one-heading-chapt,
body .servi_screen_one-about-h,
body .servi_screen_one-podborder,
body .servi_screen_two-h,
body .spec-main-about-tsinlge-h,
body .qualifications-title,
body .spec-main-accor .spec-main-accor-h,
body .spec-ratings-h,
body .assoc-news-h,
body .assoc-cases-h,
body .assoc-services-h,
body .casesin-clien-h,
body .casesin-context-h,
body .casesin-technical-single-h,
body .casesin-technical-single-content-h,
body .assosia-cases-h1,
body .newsi-clien-h,
body .taxonomy_chleb,
body .con-address-city,
body .con-social-h,
body .assos-contacts-left-h,
body .assos-contacts-right-h2,
body .menu-contact-h,
body .servbox-right-h {
  color: var(--ml-muted) !important;
}

body .about_screen_one-history-num,
body .main_services_servs-inner a span:nth-child(2),
body .assoc-case-num,
body .casesin_mainblock-date,
body .newsi-postheader-date,
body .newsi-postheader-cat,
body .assoc-new-date,
body .cases-output-date,
body .news-output-a-date,
body .main-new-date,
body .main-case-num,
body .servi_screen_one-bread,
body .spec-main-hleb,
body .casesin_mainblock-breads,
body .newsi-header-breads,
body .assoc-service-num,
body .team_block-post {
  color: var(--ml-muted) !important;
}

body .about_screen_one-heading-h {
  color: var(--ml-text) !important;
}

body .servi_screen_one-border, body .servi_screen_two-border {
  border-top-color: var(--ml-line);
}

body .header-logo img, body .header__logo img {
  height: auto;
  object-fit: contain;
}

/* Article text: black, guides and quotes in the shared palette. */
body .newsi-content-text, body .newsi-content-text p, body .newsi-content-text li,
body .newsi-content-h, body .newsi-content-quote, body .newsi-content-podquote {
  color: var(--ml-text);
  font-family: 'AG R', Arial, sans-serif;
  font-weight: normal;
}

body .newsi-content-podquote,
body .newsi-content-podquote [style*="color" i] {
  color: var(--ml-muted) !important;
}

body .newsi-content-text strong, body .newsi-content-text b,
body .newsi-content-h, body .newsi-content-h strong,
body .newsi-content-quote strong, body .newsi-content-podquote strong {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-weight: normal;
}

body .newsi-content-h {
  color: var(--ml-ink);
}

body .newsi-content-text em, body .newsi-content-text i,
body .newsi-content-h em, body .newsi-content-h i,
body .newsi-content-quote em, body .newsi-content-podquote em,
body .newsi-content-text [style*="italic" i] {
  font-family: 'AG R', Arial, sans-serif;
  font-synthesis: style;
}

body .newsi-content-text :is(strong, b) :is(em, i),
body .newsi-content-text :is(em, i) :is(strong, b) {
  font-family: 'AG M', 'AG R', Arial, sans-serif;
  font-synthesis: style;
}

/* Call-out under an article quote: the fill is 25% of the previous strength. */
body .newsi-content-text blockquote, body .newsi-content-quote {
  background: rgba(246, 246, 249, 0.25);
  border-left: 2px solid var(--ml-accent);
  border-radius: 0 8px 8px 0;
  padding: 1em 1.2em;
}

body .newsi-content-text ul {
  list-style: none;
}

body .newsi-content-text ul > li {
  position: relative;
}

body .newsi-content-text ul > li::before {
  content: '';
  position: absolute;
  left: -1em;
  top: 0.55em;
  width: 0.5ex;
  height: 0.5ex;
  border-radius: 12%;
  background: var(--ml-accent);
}

body .newsi-content-text a {
  color: var(--ml-text);
  text-decoration: underline;
  text-decoration-color: var(--ml-accent);
  text-underline-offset: 0.18em;
}

body .footer-form-submit input {
  background: var(--ml-accent) !important;
  color: var(--ml-ink) !important;
  border-color: var(--ml-accent) !important;
  border-radius: 50% !important;
}

body .footer-form-submit input:hover {
  background: white !important;
  color: var(--ml-ink) !important;
  border-color: white !important;
}

body .footer-form-submit input:disabled {
  background: #999fbf !important;
  border-color: #999fbf !important;
  cursor: not-allowed;
}

body input::placeholder, body textarea::placeholder {
  color: var(--ml-muted);
  opacity: 1;
}

/* Main-page and info-centre photos: source photo with a local gradient under the light text. */
body .main-img, body .cases-actual-cover {
  filter: none;
}

body .screen_one::after, body .cases-actual-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body .screen_one::after {
  background: linear-gradient(180deg, rgba(10, 11, 43, 0.12) 0%, rgba(10, 11, 43, 0.4) 100%);
}

body .cases-actual-wrap::after {
  background: linear-gradient(90deg, rgba(10, 11, 43, 0) 20%, rgba(10, 11, 43, 0.38) 100%);
}

body .cases-actual-inner {
  position: relative;
  z-index: 2;
}

/* Story lines over the photos: the track is light blue so it is visible before the fill loads. */
body .cases-actual-poloska {
  background-color: var(--ml-muted);
}

body .header a:hover, body .header__phone:hover,
body #menu-popup a:hover {
  color: var(--ml-ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--ml-accent);
  text-underline-offset: 0.18em;
}

body .header-enru a[style*="pointer-events"],
body .header-enru a:hover, body .header-enru a:focus-visible {
  color: #999fbf !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

body .servbox-a:hover, body .servbox-a:focus-visible {
  color: #999fbf !important;
  opacity: 1;
  text-decoration: none !important;
}

body .footer {
  color: white;
}

body .footer-form-input input, body .footer-form-textarea textarea {
  border-bottom-color: var(--ml-line-dark);
}

body .footer a:hover {
  color: var(--ml-accent) !important;
}

body .footer input::placeholder, body .footer textarea::placeholder,
body .footer .wpcf7-list-item-label {
  color: var(--ml-muted) !important;
  -webkit-text-fill-color: var(--ml-muted) !important;
  opacity: 1 !important;
}

body .footer .footer-checkbox-wrap span, body .footer .footer-checkbox-wrap a,
body .footer .footer-miniform-h, body .footer .footer-miniform-h p,
body .footer .footer-menu-h {
  color: var(--ml-muted) !important;
}

body .footer input[type="checkbox"] {
  color: white;
  accent-color: var(--ml-accent);
}

body .cky-btn-accept {
  color: #fff !important;
  background: var(--ml-accent) !important;
  border-color: var(--ml-accent) !important;
}

body .cky-consent-container .cky-title, body .cky-consent-container .cky-notice-des {
  color: var(--ml-ink) !important;
}

body .cky-notice a {
  color: var(--ml-accent) !important;
}

body :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: #fcdee8;
  color: #0a0b2b;
}

/* Pasted article formatting must inherit the site's typography. */
body .newsi-content-text [style*="font-family" i],
body .newsi-content-text font[face] {
  font-family: inherit !important;
}
body .newsi-content-text [style*="color" i],
body .newsi-content-text font[color] {
  color: inherit !important;
}
body .newsi-content-text [style*="font-size" i],
body .newsi-content-text font[size] {
  font-size: inherit !important;
}
body .newsi-content-text {
  overflow-wrap: anywhere;
}
body .newsi-content-text table {
  overflow-wrap: normal;
  display: block;
  max-width: 100%;
  height: auto !important;
  overflow-x: auto;
}
body .newsi-content-text img,
body .newsi-content-text iframe,
body .newsi-content-text video {
  max-width: 100%;
}
body .newsi-content-text img {
  height: auto;
}
body .newsi-content-text iframe {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Shared interface palette: content text retains --ml-text. */
body .header-enru a,
body .header-serv a,
body .header-as a,
body .header-menuwrap a:nth-child(1),
body .servbox-a,
body .servbox-h,
body .menu-as a,
body .menu-aspod-social a,
body .menu-contact-a,
body .menu-bro a,
body .menu-bro span,
body .screen_one_about-a-h2,
body .main_services_servs-inner a span:nth-child(1),
body .main-case-explore span,
body .main-cases-explore,
body .main-new-h,
body .ratings_single-hc,
body .about_screen_one-heading-button span,
body .about-clients-block-awrap a,
body .about-clients-accordion-title span,
body .about-clients-accordion-title .client-link,
body .about-social-pro-accor-head span,
body .team-over-wrap a,
body .about-vacarch-block-name,
body .blockuslugs-hinner,
body .about-adv-numblack,
body .assoc-new-text,
body .assoc-news-a,
body .assoc-case-text,
body .cases-output-name,
body .cases-output-awrap a,
body .assosia-cases-h,
body .assosia-cases-swiper-slide-text,
body .assosia-cases-all,
body .news-output-a-name,
body .newsi-header-h,
body .newsi-postheader-file,
body .select__head,
body .select__list .select__item,
body .clients-filters-h span,
body .clients-filter span,
body .cases-filters-h span,
body .cases-filters-innerum span,
body .con-address-adinfo,
body .con-social-single,
body .assos-contacts-right-email a,
body .assos-contacts-right-vcard a,
body .team_block-email a,
body .team_block-vcard a,
body .tabletClienta,
body .tabletClienta span,
body .search-avainput,
body .search-form-ifnull input {
  color: var(--ml-ink) !important;
}

body .ratings_single-hl,
body .blockuslugs-num,
body .cases_screen_one-num,
body .news_screen_one-num,
body .menu-aspod-copy,
body .clients-filter-h span,
body .search_wrap-naydeno,
body .about-vacarch-heading-cat span {
  color: var(--ml-muted) !important;
}

body .about-clients-accordion-content,
body .about-clients-accordion-content a,
body .about-social-pro-accor-content,
body .about-social-pro-accor-content a {
  color: var(--ml-text) !important;
}

body .header-enru a:is(:hover, :focus-visible),
body .header-serv a:is(:hover, :focus-visible),
body .header-as a:is(:hover, :focus-visible),
body .header-menuwrap a:nth-child(1):is(:hover, :focus-visible),
body .servbox-a:is(:hover, :focus-visible),
body .menu-as a:is(:hover, :focus-visible),
body .menu-aspod-social a:is(:hover, :focus-visible),
body .menu-contact-a:is(:hover, :focus-visible),
body .menu-bro a:is(:hover, :focus-visible),
body .con-address-adinfo:is(:hover, :focus-visible),
body .con-social-single:is(:hover, :focus-visible),
body .assos-contacts-right-email a:is(:hover, :focus-visible),
body .assos-contacts-right-vcard a:is(:hover, :focus-visible),
body .team_block-email a:is(:hover, :focus-visible),
body .team_block-vcard a:is(:hover, :focus-visible),
body .spec-main-hleb a:is(:hover, :focus-visible),
body .servi_screen_one-bread a:is(:hover, :focus-visible),
body .casesin_mainblock-breads a:is(:hover, :focus-visible),
body .newsi-header-breads a:is(:hover, :focus-visible) {
  color: var(--ml-muted) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
body .header-menuwrap :is(.header-search, .header-menub):is(:hover, :focus-visible) {
  opacity: 1 !important;
  filter: none;
}
body .screen_one_about-a:is(:hover, :focus-visible, :focus-within) .screen_one_about-a-h2,
body .main_services_servs-inner a:is(:hover, :focus-visible, :focus-within) span:first-child,
body .main-new:is(:hover, :focus-visible, :focus-within) .main-new-h,
body .news-output-a:is(:hover, :focus-visible, :focus-within) .news-output-a-name,
body .assoc-new:is(:hover, :focus-visible, :focus-within) .assoc-new-text,
body .assoc-case:is(:hover, :focus-visible, :focus-within) .assoc-case-text,
body .assoc-service:is(:hover, :focus-visible, :focus-within) .assoc-service-h,
body .team_block:is(:hover, :focus-visible, :focus-within) .team_block-name a {
  color: var(--ml-muted) !important;
}
body .assoc-new:hover { opacity: 1; }
body .news-output-cat { color: var(--ml-muted); }
body .news-output-cat:is(:hover, :focus-visible),
body .news-output-catactive,
body .about-vacarch-heading-cat:is(:hover, :focus-visible) span,
body .about-vacarch-heading-cat-active span {
  color: var(--ml-ink) !important;
  opacity: 1;
}
body .about-vacarch-heading-cat span { opacity: 1; }
body .select__item:is(:hover, :focus-visible),
body .clients-filter:is(:hover, :focus-within) span,
body .cases-filters-innerum:is(:hover, :focus-within) span {
  color: var(--ml-muted) !important;
  opacity: 1;
}
body .clients-filter input:checked + span,
body .cases-filters-innerum input:checked + span {
  color: var(--ml-ink) !important;
}
body .main-case-explore:is(:hover, :focus-visible),
body .about_screen_one-heading-button:is(:hover, :focus-visible),
body .newsi-postheader-file:is(:hover, :focus-visible),
body .assosia-cases-all:is(:hover, :focus-visible) {
  background-color: var(--ml-ink);
}
body .main-case-explore:is(:hover, :focus-visible) span,
body .about_screen_one-heading-button:is(:hover, :focus-visible) span,
body .newsi-postheader-file:is(:hover, :focus-visible),
body .assosia-cases-all:is(:hover, :focus-visible) {
  color: white !important;
}
body .main-case-explore:focus-visible,
body .about_screen_one-heading-button:focus-visible {
  background-color: var(--ml-ink);
}
body .about_screen_one-heading-button:focus-visible img:first-of-type,
body .main-case-explore:focus-visible img:first-of-type { opacity: 0; }
body .about_screen_one-heading-button:focus-visible img:last-of-type,
body .main-case-explore:focus-visible img:last-of-type { opacity: 1; }
body .footer a:is(:hover, :focus-visible) { color: var(--ml-muted) !important; }
body #menu-popup a:is(:hover, :focus-visible) { color: var(--ml-muted) !important; opacity: 1 !important; text-decoration: none !important; }
body .header-enru a[style*="pointer-events"] { color: var(--ml-muted) !important; opacity: 1 !important; }

/* 404 page: the button and the label sit on the dark photo, so they stay white as in the original. */
body .error_screen_one .cases-actual-h,
body .error-explore span {
  color: #fff !important;
}
body .error-explore {
  border-color: rgba(255, 255, 255, 0.55);
}
body .error-explore:is(:hover, :focus-visible) {
  background-color: #fff !important;
  border-color: #fff;
}
body .error-explore:is(:hover, :focus-visible) span {
  color: var(--ml-ink) !important;
  background-color: transparent;
}

/* Hover on tagged lawyers (news, case and tag pages): light blue instead of the old 50% grey fade.
   The page script fades the name with an inline opacity: 0.5; we turn that state into the light-blue colour. */
body .newsi-clien-name[style*="opacity: 0.5"],
body .casesin-clien-name[style*="opacity: 0.5"],
body .newsi-clien-name:hover,
body .casesin-clien-name:hover {
  opacity: 1 !important;
  color: var(--ml-muted) !important;
}

/* Lawyer profile: the two guide lines and the muted city label follow the shared palette. */
body .spec-main-post, body .spec-main-city {
  border-top-color: var(--ml-line) !important;
  border-bottom-color: var(--ml-line) !important;
}
body .spec-main-city span {
  color: var(--ml-muted) !important;
}
