/* COOL HR Brand System — v2.2 (2026-11-26)
   Design reference: orange #E7601F, green #325D56, Deep Slate #02090C.
   Layer loaded AFTER Nicepage and page CSS; original site and blog structure remains intact.
   Josefin Sans serves Latin headings via Google Fonts; Cyrillic headings use Verdana for full glyph support.
*/
:root {
  --coolhr-orange: #E7601F;
  --coolhr-green: #325D56;
  --coolhr-deep-slate: #02090C;
  --coolhr-white: #FFFFFF;
  --coolhr-green-soft: #F4F8F3;
  --coolhr-orange-soft: #FFF4ED;
}

/* Typography: Verdana Regular for copy and navigation, Josefin Sans for headings. */
body.u-body, .u-body .coolhr-blog, .u-body .coolhr-article-copy,
.u-body .u-custom-font.u-text-font, .u-body .u-font-roboto.u-custom-font,
.u-body .u-font-open-sans.u-custom-font {
  font-family: Verdana, Geneva, sans-serif !important;
}
body.u-body {color: var(--coolhr-deep-slate);}
.u-body h1, .u-body h2, .u-body h3, .u-body h4, .u-body h5, .u-body h6,
.u-body .u-custom-font.u-heading-font,
.u-body .coolhr-section-title,
.u-body .coolhr-post-card-content h3,
.u-body .coolhr-article-toc h2,
.u-body .coolhr-article-cta h2 {
  font-family: 'Josefin Sans', Verdana, Geneva, sans-serif !important;
}
/* Google Fonts Josefin Sans does not supply a full Cyrillic alphabet. */
html:lang(ru) .u-body h1, html:lang(ru) .u-body h2,
html:lang(ru) .u-body h3, html:lang(ru) .u-body h4,
html:lang(ru) .u-body h5, html:lang(ru) .u-body h6,
html:lang(ru) .u-body .u-custom-font.u-heading-font,
html:lang(ru) .u-body .coolhr-section-title,
html:lang(ru) .u-body .coolhr-post-card-content h3 {
  font-family: Verdana, Geneva, sans-serif !important;
}
.u-body .u-header .u-nav-link, .u-body .u-footer .u-nav-link,
.u-body .u-btn, .u-body button, .u-body input, .u-body textarea,
.u-body select, .u-body .coolhr-cta-button {
  font-family: Verdana, Geneva, sans-serif !important;
}

/* Existing Nicepage brand custom-color classes (avoid editing large generated CSS). */
.u-body .u-custom-color-2, .u-body.u-custom-color-2 {
  background-color: var(--coolhr-green) !important;
  color: var(--coolhr-white) !important;
}
.u-body .u-custom-color-3, .u-body .u-custom-color-4 {
  background-color: var(--coolhr-orange) !important;
  color: var(--coolhr-white) !important;
}
.u-body .u-text-custom-color-2 { color: var(--coolhr-green) !important; }
.u-body .u-text-custom-color-3, .u-body .u-text-custom-color-4 {
  color: var(--coolhr-orange) !important;
}
.u-body .u-text-hover-custom-color-3:hover,
.u-body .u-text-hover-custom-color-4:hover { color: var(--coolhr-orange) !important; }
.u-body .u-text-hover-custom-color-2:hover { color: var(--coolhr-green) !important; }
.u-body .u-border-custom-color-2 { border-color: var(--coolhr-green) !important; }
.u-body .u-border-custom-color-3, .u-body .u-border-custom-color-4 {
  border-color: var(--coolhr-orange) !important;
}
.u-body .u-hover-custom-color-2:hover { background-color: var(--coolhr-green) !important; }
.u-body .u-hover-custom-color-3:hover, .u-body .u-hover-custom-color-4:hover {
  background-color: var(--coolhr-orange) !important;
}
.u-body .u-text-grey-90 {color: var(--coolhr-deep-slate) !important;}

/* Native navigation and default links, respecting white-on-dark footer. */
.u-body .u-header .u-nav-link {color: var(--coolhr-green) !important;}
.u-body .u-header .u-nav-item:hover > .u-nav-link,
.u-body .u-header .u-nav-link:hover,
.u-body .u-header .u-nav-item.active > .u-nav-link,
.u-body .u-header .coolhr-blog-menu-current .u-nav-link {
  color: var(--coolhr-orange) !important;
}
.u-body .u-footer .u-nav-link {color: var(--coolhr-white) !important;}
.u-body .u-footer .u-nav-link:hover,
.u-body .u-footer .u-nav-item:hover > .u-nav-link {
  color: #FFE1D0 !important;
}

/* Off-canvas navigation needs light text against the Deep Slate backdrop. */
.u-body .u-header .u-sidenav {background-color: var(--coolhr-deep-slate) !important;}
.u-body .u-header .u-sidenav .u-nav-link {color: #FFFFFF !important;}
.u-body .u-header .u-sidenav .u-nav-link:hover,
.u-body .u-header .u-sidenav .u-nav-item:hover > .u-nav-link {
  color: #FFE1D0 !important;
}

/* Top-left logo is now a semantic, keyboard-accessible link. */
.u-body .u-header .coolhr-header-logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.u-body .u-header .coolhr-header-logo-link .coolhr-header-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.u-body .u-header .coolhr-header-logo-link:focus-visible {
  outline: 3px solid var(--coolhr-orange);
  outline-offset: 5px;
  border-radius: 4px;
}

/* Blog: align all new pages with the three-color brand palette. */
.u-body .coolhr-blog {color: var(--coolhr-deep-slate);}
.u-body .coolhr-blog h1,
.u-body .coolhr-blog .coolhr-section-title,
.u-body .coolhr-blog .coolhr-post-card-content h3,
.u-body .coolhr-blog .coolhr-article-copy h2,
.u-body .coolhr-blog .coolhr-article-copy h3,
.u-body .coolhr-blog .coolhr-article-toc h2 {
  color: var(--coolhr-green) !important;
}
.u-body .coolhr-blog .coolhr-article-copy,
.u-body .coolhr-blog .coolhr-article-copy strong {color: var(--coolhr-deep-slate);}
.u-body .coolhr-blog .coolhr-eyebrow,
.u-body .coolhr-blog .coolhr-article-category,
.u-body .coolhr-blog .coolhr-text-link,
.u-body .coolhr-blog .coolhr-breadcrumb a:hover,
.u-body .coolhr-blog .coolhr-article-back:hover,
.u-body .coolhr-blog .coolhr-article-toc a:hover {
  color: var(--coolhr-orange) !important;
}
.u-body .coolhr-blog .coolhr-breadcrumb a,
.u-body .coolhr-blog .coolhr-article-back,
.u-body .coolhr-blog .coolhr-article-toc a {color: var(--coolhr-green) !important;}
.u-body .coolhr-blog .coolhr-accent-line,
.u-body .coolhr-blog .coolhr-cta-button,
.u-body .coolhr-blog .coolhr-draft-dot {background-color: var(--coolhr-orange) !important;}
.u-body .coolhr-blog .coolhr-cta-button,
.u-body .coolhr-blog .coolhr-cta-button:hover,
.u-body .coolhr-blog .coolhr-cta-button:focus-visible {color: #fff !important;}
.u-body .coolhr-blog .coolhr-cta-button:hover,
.u-body .coolhr-blog .coolhr-cta-button:focus-visible {background-color: #C94D13 !important;}
.u-body .coolhr-blog .coolhr-article-toc {border-left-color: var(--coolhr-orange); background: var(--coolhr-green-soft);}
.u-body .coolhr-blog .coolhr-article-toc li::marker,
.u-body .coolhr-blog .coolhr-article-copy li::marker {color: var(--coolhr-orange);}
.u-body .coolhr-blog .coolhr-blog-hero,
.u-body .coolhr-blog .coolhr-article-hero {
  background: linear-gradient(122deg,var(--coolhr-green-soft),#fff 60%,var(--coolhr-orange-soft));
}
.u-body .coolhr-blog .coolhr-article-cta {
  background: linear-gradient(120deg,var(--coolhr-green-soft),#fff 60%,var(--coolhr-orange-soft));
  border-color: #DBE7D9;
}
.u-body .coolhr-blog .coolhr-post-card:hover,
.u-body .coolhr-blog .coolhr-post-card:focus-visible {border-color: var(--coolhr-green);}
@media (prefers-reduced-motion: reduce) {
  .u-body .coolhr-blog .coolhr-cta-button {transition: none !important;}
}

/* v2.4: EN/RU language control uses the approved COOL HR green. */
.u-body .u-header .u-language .u-language-url,
.u-body .u-header .u-language .u-language-url:link,
.u-body .u-header .u-language .u-language-url:visited,
.u-body .u-header .u-language .u-language-url:hover,
.u-body .u-header .u-language .u-language-url:focus-visible {
  color: var(--coolhr-green) !important;
}


/* v2.7: small-screen stability and accessibility.
   Nicepage uses a fixed 340px sheet below 576px; devices 320-359px
   would otherwise suffer horizontal scrolling. These overrides apply only
   at widths where the original fixed design cannot fit. */
@media (max-width: 359px) {
  .u-body { --theme-sheet-width-xs: calc(100vw - 24px); }
  /* Several Nicepage page-specific selectors hard-code 340px. */
  .u-body .u-section-2 .u-text-1,
  .u-body .u-section-2 .u-text-2,
  .u-body .u-section-2 .u-list-1,
  .u-body .u-section-3 .u-group-1,
  .u-body .u-section-3 .u-text-1,
  .u-body .u-section-3 .u-text-2,
  .u-body .u-section-3 .u-text-3,
  .u-body .u-section-6 .u-text-1 {
    max-width: 100% !important;
  }
  /* Keep the header three controls separated at very narrow widths. */
  .u-body .u-header .u-sheet-1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px auto;
    align-items: center;
    gap: 4px;
    min-height: 92px;
  }
  .u-body .u-header .u-sheet-1 > .u-image-1 {
    width: 120px !important;
    height: 54px !important;
    margin: 0 !important;
    justify-self: start;
  }
  .u-body .u-header .u-sheet-1 > .u-menu-1 {
    margin: 0 !important;
    width: 44px !important;
    min-width: 0;
    justify-self: end;
  }
  /* Mobile menu must not inherit the 600px-wide desktop navigation. */
  .u-body .u-header .u-menu-1 .u-nav-container { display: none !important; }
  .u-body .u-header .u-menu-1 .menu-collapse { display: block !important; }
  .u-body .u-header .u-sheet-1 > .u-language-1 {
    margin: 0 !important;
    justify-self: end;
    width: auto !important;
  }
  .u-body .u-header .u-language-url {padding-left: 2px; padding-right: 2px;}
  /* Narrow-screen contact icons use absolute Nicepage offsets. */
  .u-body .u-section-1 .u-icon-3,
  .u-body .u-section-6 .u-icon-4 {margin-left: min(220px, calc(100% - 70px)) !important;}
  .u-body .u-footer .u-sheet-1 {max-width: 100%;}
  .u-body .u-footer .u-image-1 {max-width: 48%;}
  .u-body .u-footer .u-text-1 {max-width: 100%;}
}
/* More forgiving media sizing, without changing the existing photo crops. */
@media (max-width: 767px) {
  .u-body .u-header .u-nav-container-collapse .u-nav-link,
  .u-body .u-footer .u-nav-container-collapse .u-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
  }
  .u-body .u-header .menu-collapse > a,
  .u-body .u-footer .menu-collapse > a {
    min-width: 40px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .u-body .u-header .coolhr-header-logo-link {max-width: 100%;}
}
/* Keep focus indication visible for keyboard and switch-device navigation. */
.u-body .u-header .menu-collapse > a:focus-visible,
.u-body .u-footer .menu-collapse > a:focus-visible,
.u-body .u-header .u-language-url:focus-visible {
  outline: 2px solid var(--coolhr-orange);
  outline-offset: 3px;
}
