/* Shared light/dark presentation, including the footer's accessible preference control. */
html.sptg-themed { color-scheme: light; }
.sptg-themed .footer-lowest-level > .container > .row { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.sptg-themed .footer-lowest-level > .container > .row::before, .sptg-themed .footer-lowest-level > .container > .row::after { display: none; }
.sptg-themed .sptg-footer-copyright { flex: 1 1 350px; min-width: 0; }
.sptg-themed .sptg-footer-policies { flex: 0 1 auto; }
.sptg-themed .sptg-footer-actions { flex: 0 0 auto; margin-left: auto; }
.sptg-themed .footer-lowest-level .footer-copyright,
.sptg-themed .footer-lowest-level .footer-privacy-policy,
.sptg-themed .footer-lowest-level .footer-social-icons { margin: 0 !important; }
.sptg-themed .footer-lowest-level .footer-social-icons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; letter-spacing: normal; }
.sptg-themed .footer-lowest-level .social-icon { flex: 0 0 auto; margin: 0; }
/* Policies and social links share a row, followed by one persistent appearance toggle. */
.sptg-themed .footer-lowest-level .footer-privacy-policy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sptg-themed .footer-lowest-level .footer-privacy-policy a { margin: 0; white-space: nowrap; }
.sptg-theme-control { display: flex; align-items: center; margin-left: 2px; padding-left: 10px; border-left: 1px solid #52616d; color: #b6c4ce; }
.sptg-theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; padding: 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation; }
.sptg-theme-toggle svg { display: block; width: 21px; height: 21px; pointer-events: none; }
.sptg-theme-toggle .sptg-theme-moon { display: none; }
.sptg-dark .sptg-theme-toggle .sptg-theme-sun { display: none; }
.sptg-dark .sptg-theme-toggle .sptg-theme-moon { display: block; }
.sptg-theme-toggle:hover { background: #243643; color: #e6f4fb; }
.sptg-theme-toggle:focus-visible { outline: 2px solid #79d5ef; outline-offset: 3px; }
.sptg-local-form-note { padding: 12px 14px; border: 1px solid #a8beca; border-radius: 4px; background: #f0f6f9; color: #405463; font-size: 13px; line-height: 1.6; max-width: 420px; }
.sptg-themed button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 767px) {
    /* Match the initial closed position to the 18px title plus its 32px padding. */
    .sptg-themed .home .industries .tile-caption { top: calc(100% - 50px); }
    .sptg-themed .sptg-footer-copyright { flex-basis: 100%; }
    .sptg-themed .footer-lowest-level > .container > .row { column-gap: 10px; }
    .sptg-themed .sptg-footer-policies { flex: 1 1 0; min-width: 0; }
    .sptg-themed .sptg-footer-actions { margin-left: 0; }
    .sptg-themed .footer-lowest-level .footer-social-icons { justify-content: flex-start; gap: 7px; }
    /* Multiline labels need normal text leading, plus a separate gap to the next link. */
    .sptg-themed .footer-menu-sub-items a { line-height: 1.5; margin-top: 4px; margin-bottom: 8px; }
    .sptg-themed .footer-menu-sub-items li { margin-bottom: 0; }
    .sptg-themed .footer-menu-sub-items .email { margin-top: 0; }
    .sptg-themed .footer-copyright { line-height: 1.5; }
    .sptg-theme-toggle { flex-basis: 44px; width: 44px; height: 44px; }
    /* A crisp 24px magnifier inside a 44px mobile touch target. */
    .sptg-themed .header-main .btn-success { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; color: #8c989f; }
    .sptg-themed .header-main .navbar-right-side:not(.expanded) .btn-success { right: 2px; }
    .sptg-themed .header-main .expanded .form-control { padding-left: 38px; }
    .sptg-themed .header-main .btn-success:hover, .sptg-themed .header-main .btn-success:focus { color: #28a6d7; }
    .sptg-themed .header-main .btn-success .glyphicon.glyphicon-search { width: 24px; height: 24px; top: 0; background: currentColor !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2.2'/%3E%3Cpath d='m15.5 15.5 5 5' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }
}


/* Match the comfortable leading of the Insights cards when shared headings wrap. */
html.sptg-themed .tile-small-descr-head,
html.sptg-themed .tiles-notification h1,
html.sptg-themed .subpages h1,
html.sptg-themed .errorpage h1,
html.sptg-themed .sptg-home-expertise h2,
html.sptg-themed .sptg-home-carousel-header h2,
html.sptg-themed .blog .topic-preview h4,
html.sptg-themed .blog .topic h4,
html.sptg-themed .insights-subtitle,
html.sptg-themed .vacancy-header h3 { line-height: 1.3; }
/* The legacy article pager sets important leading on these two title variants. */
html.sptg-themed .subpages .nav-blogarticle h4 { line-height: 1.3 !important; }
html.sptg-themed .subpages .nav-blogarticle h4 > a { line-height: inherit; }
/* Button labels keep their fill/border feedback; ordinary text links retain underlines. */
html.sptg-themed :is(a.btn, a[role="button"], a.tile-item-readmore-btn, a.tile-item-readmore-btn-mobile, a.slider-item-readmore-btn, a.tile-btn-inner, a.sptg-banner-explore):is(:hover, :focus, :active) { text-decoration: none; }

/* Continue the banner's compact desktop hierarchy through the page body. */
@media (min-width:1024px) and (max-width:1439px) {
  html.sptg-themed .inner-page {
    --sptg-body-title: clamp(28px,2.4vw,34px);
    --sptg-body-heading: clamp(22px,1.75vw,24px);
    --sptg-body-copy: 14px;
    --sptg-body-action: 14px;
  }
  html.sptg-themed .inner-page:not(.home),
  html.sptg-themed .home > :not(.sptg-banner-compare) { font-size: var(--sptg-body-copy); line-height: 1.7; }
  html.sptg-themed .home .tiles-notification h1,
  html.sptg-themed .home .sptg-home-expertise h2,
  html.sptg-themed .home .sptg-home-carousel-header h2,
  html.sptg-themed .inner-page.subpages h1,
  html.sptg-themed .inner-page.errorpage h1 { font-size: var(--sptg-body-title); line-height: 1.3; }
  html.sptg-themed .home .tile-small-descr-head,
  html.sptg-themed .home .sptg-home-expertise .sptg-home-capability-card h3,
  html.sptg-themed .home .sptg-home-carousel-card h3,
  html.sptg-themed .home .industries .sptg-industry-cards .sptg-industry-contact .tile-head,
  html.sptg-themed .inner-page.subpages .abouttext :is(h2,h3,h4),
  html.sptg-themed .inner-page.subpages .blog :is(.topic,.topic-preview) h4,
  html.sptg-themed .inner-page.subpages .insights-subtitle,
  html.sptg-themed .inner-page.subpages .vacancy-header h3 { font-size: var(--sptg-body-heading); line-height: 1.3; }
  html.sptg-themed .inner-page.subpages .nav-blogarticle h4 { font-size: var(--sptg-body-heading); }
  html.sptg-themed .home .industries .sptg-industry-cards .tile-caption h3 { font-size: clamp(20px,1.5vw,22px); line-height: 1.3; }
  html.sptg-themed .home .tile-small-descr-body,
  html.sptg-themed .home .sptg-home-section-intro,
  html.sptg-themed .home .sptg-home-expertise header > p,
  html.sptg-themed .home .sptg-home-expertise .sptg-home-capability-card p,
  html.sptg-themed .home .sptg-home-carousel-card p,
  html.sptg-themed .home .sptg-home-testimonials figcaption,
  html.sptg-themed .home .sptg-home-carousel-category,
  html.sptg-themed .home .industries .sptg-industry-cards .tile-caption :is(h5,li),
  html.sptg-themed .home .industries .sptg-industry-cards .sptg-industry-contact .sptg-industry-contact-copy,
  html.sptg-themed .inner-page.subpages .abouttext,
  html.sptg-themed .inner-page.subpages .abouttext :is(p,li,blockquote),
  html.sptg-themed .inner-page.subpages .blog :is(.topic,.topic-preview) :is(p,li),
  html.sptg-themed .inner-page.subpages .insights-intro > p,
  html.sptg-themed .inner-page.subpages .insights-body { font-size: var(--sptg-body-copy); line-height: 1.7; }
  html.sptg-themed .home :is(.sptg-home-section-link,.sptg-capability-section-link,.sptg-home-carousel-all),
  html.sptg-themed .home .industries .sptg-industry-cards :is(.tile-item-readmore-btn,.tile-item-readmore-btn-mobile),
  html.sptg-themed .inner-page.subpages .right-col :is(.btn,.tile-btn-inner,.slider-item-readmore-btn) { font-size: var(--sptg-body-action); line-height: 1.5; }
}

/* Keep a readable article lead within the narrower desktop hierarchy. */
@media (min-width:1024px) and (max-width:1439px) {
  html.sptg-themed .inner-page.subpages .article-prelude p,
  html.sptg-themed .inner-page.subpages .article-prelude .list-square > li { font-size: 15px !important; line-height: 1.65; }
}

/* Match side-navigation proportions to the readable narrow-desktop body. */
@media (min-width:1024px) and (max-width:1439px) {
  html.sptg-themed .inner-page.subpages .left-menu-subpages .list-group-item { font-size: 16px; line-height: 1.375; padding: 8px 14px 6px; }
  html.sptg-themed .inner-page.subpages .left-menu-subpages .list-group-submenu .list-group-item { font-size: 14px; line-height: 1.5; padding: 6px 14px 6px 28px; }
  html.sptg-themed .inner-page.subpages .left-menu-subpages .list-group-item > a { font-size: inherit; line-height: inherit; }
  html.sptg-themed .home .industries .sptg-industry-cards .tile-caption :is(h5,li) { line-height: 1.5; }
}

/* Underline the phrase, not the stretched box of a flex/grid/block text link. */
html.sptg-themed :is(.abouttext a, .nav-blogarticle a, .search-text a,
  .blog-section .title a, .blog-section .list-inline a, .tile-testimonials a,
  .tile.empty .tile-footer a, .left-menu-subpages a, .footer-menu-main-item,
  .footer-menu-sub-items a, .footer-privacy-policy a, .company-details .contacts):not(:is(
  .btn, [role="button"], .tile-item-readmore-btn, .tile-item-readmore-btn-mobile,
  .slider-item-readmore-btn, .tile-btn-inner, .sptg-banner-explore,
  .pagination a, .nav-tabs a, .sptg-work-logo > a, .sptg-testimonial-brand,
  .sptg-testimonial-photo, .sptg-case-contact-photo)):is(:hover, .hover, :focus-visible) {
  border-bottom-color: transparent;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-skip-ink: auto;
}
