#offline-link-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgb(20 24 31 / 68%);
}

#offline-link-loader[hidden] { display: none; }

.offline-link-loader__panel {
  display: grid;
  justify-items: center;
  gap: 1rem;
  min-width: 13rem;
  padding: 2rem 2.5rem;
  background: #202630;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 35%);
}

.offline-link-progress {
  width: 12rem;
  height: 0.5rem;
  overflow: hidden;
  background: rgb(255 255 255 / 25%);
  border-radius: 999px;
}

.offline-link-progress__bar {
  width: 0;
  height: 100%;
  background: #d92429;
  border-radius: inherit;
  transition: width 80ms linear;
}

.occrp-language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.occrp-language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 3.9rem;
  height: 31px;
  border-radius: 999px;
  color: #f4f3ec;
  background: var(--app-emphasis-color);
  font: 600 14px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.occrp-language-picker:hover, .occrp-language-picker:focus-within { background: var(--app-btn-red-hover); }
.occrp-language-picker:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.occrp-language-picker svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.occrp-language { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.safari-gate[hidden] { display: none; }

body.safari-gate-open { overflow: hidden; }

.safari-gate {
  position: fixed;
  z-index: 10002;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #222;
  background: rgb(20 20 22 / 84%);
}

.safari-gate__panel {
  width: min(100%, 36rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border-top: 6px solid #d92429;
  background: #f4f3ec;
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 40%);
  font-family: Inter, Arial, sans-serif;
}

.safari-gate__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.safari-gate__brand-mark {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.safari-gate__eyebrow {
  margin-bottom: 0.75rem;
  color: #d92429;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.safari-gate h2 {
  margin: 0 0 1rem;
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #000;
}

.safari-gate p { margin: 0 0 1.5rem; color: #404040; line-height: 1.55; }

.safari-gate__open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 3.25rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border: 0;
  color: #fff;
  background: #701316;
  font: 700 1rem/1.25 Inter, Arial, sans-serif;
  text-align: start;
  cursor: pointer;
}

.safari-gate__open:hover, .safari-gate__open:focus-visible { background: #a51b1f; }
.site-menu__search .search-icon::before { content: none; }
.site-menu__search .search-icon svg { display: block; width: 1.1rem; height: 1.1rem; }
.icon-chevron-b::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.2em;
}

.safari-gate__open-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.safari-gate__link-row { display: flex; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid #c7c2b0; }

.safari-gate__link-row input {
  min-width: 0;
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #c7c2b0;
  color: #404040;
  background: #fff;
  font: 0.875rem/1.25 Inter, Arial, sans-serif;
}

.safari-gate__link-row button {
  padding: 0.7rem 0.9rem;
  border: 1px solid #701316;
  color: #701316;
  background: transparent;
  font: 0.875rem/1.25 Inter, Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.safari-gate__link-row button:hover, .safari-gate__link-row button:focus-visible { color: #fff; background: #701316; }

.safari-gate .safari-gate__status { min-height: 1.5em; margin: 0.6rem 0 0; color: #701316; font-size: 0.875rem; }

html[dir="rtl"] .safari-gate__panel { text-align: right; }

@media (max-width: 600px) {
  .safari-gate__link-row { flex-direction: column; }
  .safari-gate__brand { margin-bottom: 1.4rem; }
}

/* Compact the original cookie component while retaining its original backdrop. */
.cookie-warning__block {
  padding: 1rem 1.5rem;
}

.cookie-warning__block .container {
  gap: 1.5rem;
  align-items: center;
}

.cookie-warning__heading {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
}

.cookie-warning__description {
  font-size: 0.875rem;
  line-height: 1.4;
}

.cookie-warning .btn--danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
}

.cookie-warning__block--loading {
  min-height: 8rem;
  align-items: center;
  justify-content: center;
}

.cookie-warning__block--loading::after { content: none; }
.cookie-warning__block--loading > .container { display: none; }
.cookie-warning__progress[hidden] { display: none; }

.cookie-warning__block--loading > .cookie-warning__progress {
  width: min(100%, 32rem);
  opacity: 1;
  visibility: visible;
}

.cookie-warning__progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--app-text-foreground);
  font-weight: 700;
}

.cookie-warning__progress-head output {
  color: var(--app-emphasis-color);
  font-variant-numeric: tabular-nums;
}

.cookie-warning__progress-track {
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--app-light-border-weak);
}

.cookie-warning__progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--app-emphasis-color);
  transition: width 50ms linear;
}

@media (max-width: 768px) {
  .cookie-warning__block { padding: 1rem; }
}

/* Replace page arrows that rely on the unavailable icon font. */
.block-header__cta::after,
.btn--rounded::after,
.projects-carousel-v2__cta::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
