/* Full-bleed ink with a single content edge, including articles whose old footer was a .wrap. */
body[data-footer-finish] footer[data-ys-footer="compact"] {
  --sf-paper: #14365b;
  --sf-type: #f1f6fa;
  --sf-secondary: #c2d2df;
  --sf-rule: #46647e;
  --sf-gutter: max(clamp(16px, 4.8vw, 64px), calc((100% - 1220px) / 2));
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(28px, 3.3vw, 50px) var(--sf-gutter) clamp(24px, 2.6vw, 38px) !important;
  border: 0 !important;
  border-radius: 0;
  background: var(--sf-paper) !important;
  color: var(--sf-secondary) !important;
  box-shadow: none !important;
  font: 450 14px/1.58 Manrope, system-ui, sans-serif;
  text-align: start;
}
body[data-footer-finish] footer[data-ys-footer="compact"]::before,
body[data-footer-finish] footer[data-ys-footer="compact"]::after { content: none !important; }
body[data-footer-finish] footer.ua-footer[data-ys-footer="compact"] {
  --sf-gutter: max(clamp(16px, 4.6vw, 56px), calc((100% - 1120px) / 2));
}
body[data-footer-finish] footer[data-ys-footer="compact"] > .ys-footer-anchor {
  position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; pointer-events: none;
}
body[data-footer-finish] footer[data-ys-footer="compact"] > div[style]:first-of-type {
  padding: 0 !important; margin: 0 !important; max-width: none !important; color: var(--sf-secondary) !important;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(.container, .shell, .geo-footer-links, .yas-global-legal) {
  box-sizing: border-box; max-width: none !important; min-width: 0; width: auto !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-inner, .footer-links, .footer-col, .footer-main, .footer-nav) {
  min-width: 0; max-width: none; margin: 0; padding: 0; border: none; border-radius: 0; background: transparent; box-shadow: none;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(a, .yas-cookie-settings) {
  color: var(--sf-type) !important; font: 580 14px/1.45 Manrope, system-ui, sans-serif;
  text-underline-offset: .24em; text-decoration: none; overflow-wrap: anywhere; white-space: normal;
}
body[data-footer-finish] [data-ys-footer="compact"] a:hover,
body[data-footer-finish] [data-ys-footer="compact"] button:hover {
  color: #a5deff !important; text-decoration: underline; background: transparent;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(a, button, summary):focus-visible {
  outline: 2px solid #95dcff !important; outline-offset: 3px;
}
body[data-footer-finish] [data-ys-footer="compact"] .yas-brand-footer {
  display: inline-flex; align-items: center; width: max-content; max-width: 100%; gap: 10px; min-height: 38px;
}
body[data-footer-finish] [data-ys-footer="compact"] .yas-brand-name { color: var(--sf-type); font-size: 18px; font-weight: 720; }
body[data-footer-finish] [data-ys-footer="compact"] p { margin: 0; color: var(--sf-secondary); }
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-links, .footer-nav, .geo-footer-links, .ec-footer-links) {
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: 2px 20px;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-links, .footer-nav, .geo-footer-links, .ec-footer-links) > a {
  display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: 3px 0;
}
body[data-footer-finish] [data-ys-footer="compact"] .yas-global-legal-links {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 8px 0 0; padding: 0;
}
body[data-footer-finish] [data-ys-footer="compact"] .yas-global-legal-links > :is(a, button:not([hidden])) {
  box-sizing: border-box; display: flex; width: fit-content; max-width: 100%; min-height: 32px; align-items: center;
  text-align: left; margin: 0; padding: 3px 0; border: none; background: transparent; color: var(--sf-secondary) !important;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-col-label, .yas-global-legal-title) {
  margin: 0 0 8px; padding: 0; color: var(--sf-type) !important; font: 680 16px/1.4 Manrope, system-ui, sans-serif;
  letter-spacing: -.015em; text-transform: none;
}
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-bottom, .footer-meta, .footer-copy, .footer-col-info) {
  font: 460 13px/1.65 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--sf-secondary) !important;
}
body[data-footer-finish] [data-ys-footer="compact"] .footer-col-info > div { margin: 5px 0; }
body[data-footer-finish] [data-ys-footer="compact"] .footer-col-info strong { color: var(--sf-type); font-weight: 640; }
body[data-footer-finish] [data-ys-footer="compact"] .footer-meta {
  display: flex !important; flex-wrap: wrap; gap: 2px 20px; justify-content: flex-start; margin: 18px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--sf-rule);
}
body[data-footer-finish] [data-ys-footer="compact"] .footer-bottom {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 7px; margin: 20px 0 8px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--sf-rule);
}

/* Navigation and the legal directory share a baseline on full service pages. */
body[data-footer-finish] footer[data-ys-footer="compact"]:has(> :not(:only-child) ~ .yas-global-legal) {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  column-gap: clamp(36px, 7vw, 108px); row-gap: 10px; align-content: start; align-items: start;
}
body[data-footer-finish] footer[data-ys-footer="compact"]:has(> .yas-global-legal) > :not(.yas-global-legal) { grid-column: 1; }
body[data-footer-finish] footer[data-ys-footer="compact"]:has(> .yas-global-legal):not(.yas-legal-standalone) > .yas-global-legal {
  grid-column: 2; grid-row: 1 / span 3;
}
body[data-footer-finish] [data-ys-footer="compact"] > .container { display: block; }
body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-main, .footer-inner):has(> .yas-brand-footer) {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: start; gap: 10px;
}
body[data-footer-finish] [data-ys-footer="compact"] .footer-inner:has(.footer-col-info) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px clamp(32px, 6vw, 90px);
}
body[data-footer-finish] [data-ys-footer="compact"] .footer-inner .footer-col {
  padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none;
}
body[data-footer-finish] [data-ys-footer="compact"] .footer-col-links { display: grid; gap: 6px; }

/* The article's brand, contacts, editorial links and business details form two reading columns. */
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "brand contact" "intro links" "identity notes" "rights rights";
  align-items: start; gap: 10px clamp(40px, 7vw, 110px);
}
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > #requisites { position: absolute; inset: 0 auto auto 0; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > .brand { grid-area: brand; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > p:first-of-type { grid-area: intro; max-width: 47ch; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > .footer-links:first-of-type { grid-area: contact; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > .footer-links + .footer-links { grid-area: links; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > p:nth-of-type(2) { grid-area: identity; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > p:nth-of-type(3) { grid-area: notes; }
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > p:nth-of-type(n+2) {
  font: 460 13px/1.6 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > p:last-of-type {
  grid-area: rights; align-self: end; margin-top: 8px; padding: 12px 95px 0 0; border-top: 1px solid var(--sf-rule);
}
body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] > .yas-cookie-settings:not([hidden]) {
  grid-area: rights; align-self: end; justify-self: end; padding: 4px 0;
  border: 0; background: transparent; color: var(--sf-secondary) !important;
}

/* Small regulator and reference pages retain their short footer. */
body[data-footer-finish] footer[data-ys-footer="compact"]:has(> .shell:only-child),
body[data-footer-finish] footer[data-ys-footer="compact"]:is(.ec-footer, .site-footer:has(> span:first-child)) {
  padding-block: 20px !important;
}
body[data-footer-finish] footer[data-ys-footer="compact"] > .shell:only-child,
body[data-footer-finish] footer[data-ys-footer="compact"]:is(.ec-footer, .site-footer:has(> span:first-child)) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 22px;
}
body[data-footer-finish] [data-ys-footer="compact"] > .shell:only-child a { display: inline-flex; align-items: center; min-height: 40px; }
body[data-footer-finish] [data-ys-footer="compact"] > .shell:only-child a:first-child,
body[data-footer-finish] .ec-footer[data-ys-footer="compact"] > a:first-child { color: var(--sf-type); font-size: 17px; font-weight: 720; }
body[data-footer-finish] .ec-footer[data-ys-footer="compact"] > span { margin-inline-end: auto; }

@media (max-width: 740px) {
  body[data-footer-finish] footer[data-ys-footer="compact"] { --sf-gutter: clamp(16px, 4.6vw, 28px); padding-block: 28px !important; }
  body[data-footer-finish] footer[data-ys-footer="compact"]:has(> :not(:only-child) ~ .yas-global-legal),
  body[data-footer-finish] [data-ys-footer="compact"] .footer-inner:has(.footer-col-info) {
    grid-template-columns: minmax(0, 1fr); row-gap: 18px;
  }
  body[data-footer-finish] footer[data-ys-footer="compact"]:has(> .yas-global-legal):not(.yas-legal-standalone) > .yas-global-legal {
    grid-column: auto; grid-row: auto; padding-top: 16px !important; border-top: 1px solid var(--sf-rule) !important;
  }
  body[data-footer-finish] footer.wrap.ua-footer[data-ys-footer="compact"] {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "intro" "contact" "links" "identity" "notes" "rights"; gap: 10px;
  }
  body[data-footer-finish] [data-ys-footer="compact"] :is(.footer-links, .footer-nav, .geo-footer-links, .ec-footer-links) { gap: 2px 16px; }
  body[data-footer-finish] [data-ys-footer="compact"] .yas-global-legal-links > :is(a,button:not([hidden])) { min-height: 38px; }
}
