.ates-atlas {
  --atlas-red: #ed2635;
  --atlas-line: #ffffff30;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  color: #f8f8f8;
  background: #191a1c;
  font: 16px/1.45 system-ui, sans-serif;
}
.ates-atlas.atlas-full-width {
  position: relative;
  box-sizing: border-box;
  max-width: none;
  flex-shrink: 0;
  margin-inline: 0;
}
.ates-atlas *, .ates-atlas *::before, .ates-atlas *::after { box-sizing: border-box; }
.ates-atlas button, .ates-atlas input { font: inherit; }
.ates-atlas button { cursor: pointer; }
.ates-atlas :focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.ates-atlas .atlas-bar {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(12px, 3vw, 40px);
  border-bottom: 1px solid var(--atlas-line);
  background: #1a1b1d;
}
.ates-atlas .atlas-bar > strong { font-size: clamp(15px, 1.6vw, 23px); line-height: 1.1; white-space: nowrap; letter-spacing: .045em; }
.ates-atlas .atlas-tabs, .ates-atlas .atlas-countries { display: flex; overflow: auto; scrollbar-width: thin; }
.ates-atlas .atlas-tabs { flex: 1; }
.ates-atlas .atlas-tabs button, .ates-atlas .atlas-countries button, .ates-atlas .atlas-pins button {
  border: 0;
  border-radius: 0;
  background: none;
  color: white;
  font-weight: 650;
  white-space: nowrap;
  padding: 12px;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
.ates-atlas .atlas-tabs button { min-height: 63px; border-bottom: 4px solid transparent; font-size: .9rem; }
.ates-atlas .atlas-tabs button[aria-pressed="true"] { border-bottom-color: var(--atlas-red); }
.ates-atlas .atlas-search { display: flex; align-items: center; gap: 6px; flex: 0 1 155px; min-width: 95px; }
.ates-atlas .atlas-search span { font-size: 24px; line-height: 1; }
.ates-atlas .atlas-search input { color: white; background: #27282a; border: 1px solid var(--atlas-line); border-radius: 4px; width: 100%; min-width: 0; padding: 7px; }
.ates-atlas .atlas-search input::placeholder { color: #dedede; }
.ates-atlas .atlas-stage {
  position: relative;
  height: clamp(500px, 61vh, 620px);
  height: clamp(500px, 61svh, 620px);
  display: grid;
  grid-template-columns: 1fr minmax(245px, 24%);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: clamp(16px, 4vw, 55px) clamp(12px, 3vw, 40px) 32px;
  overflow: hidden;
  background: #191a1c url(atlas-fallback.jpg) 50% 45% / cover no-repeat;
}
.ates-atlas .atlas-stage canvas, .ates-atlas .atlas-shade, .ates-atlas .atlas-pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ates-atlas canvas { visibility: hidden; }
.ates-atlas .atlas-live canvas { visibility: visible; }
.ates-atlas .atlas-shade { background: linear-gradient(105deg, #141517d9, transparent 44%), linear-gradient(0deg, #18191cf0, transparent 19%); }
.ates-atlas .atlas-heading, .ates-atlas .atlas-panel, .ates-atlas .atlas-countries, .ates-atlas .atlas-credit { position: relative; }
.ates-atlas .atlas-heading { pointer-events: none; width: fit-content; }
.ates-atlas .atlas-heading h2 { color: white; font: 850 clamp(40px, 5.6vw, 95px)/.94 system-ui, sans-serif; letter-spacing: -.06em; margin: 0; border-left: 4px solid var(--atlas-red); padding-left: 13px; }
.ates-atlas .atlas-heading p, .ates-atlas .atlas-heading small { margin: 10px 0 0 17px; color: #eee; font-weight: 650; }
.ates-atlas .atlas-heading small { display: block; font-weight: 400; }
.ates-atlas .atlas-panel {
  padding: 16px 17px;
  border: 1px solid #777;
  border-top: 4px solid var(--atlas-red);
  border-radius: 12px;
  background: #242527;
  box-shadow: 0 16px 60px #0008;
  max-height: min(480px, 100%);
  overflow: auto;
}
.ates-atlas .atlas-panel h3 { color: white; font: 800 clamp(21px, 2.35vw, 36px)/1.15 system-ui, sans-serif; margin: 0 0 4px; }
.ates-atlas .atlas-panel p { margin: 0 0 15px; color: #eee; }
.ates-atlas .atlas-panel ul { list-style: none; margin: 0; padding: 0; }
.ates-atlas .atlas-panel li { margin: 0; padding: 0; border-top: 1px solid var(--atlas-line); }
.ates-atlas .atlas-panel a { color: #fff; position: relative; display: block; padding: 10px 24px 10px 0; text-decoration: none; overflow-wrap: anywhere; }
.ates-atlas .atlas-panel a:hover { text-decoration: underline; }
.ates-atlas .atlas-panel a::after { content: '↗'; position: absolute; right: 0; top: 12px; }
.ates-atlas .atlas-panel small { display: block; color: #ddd; }
.ates-atlas .atlas-all { display: block; width: 100%; margin-top: 12px; padding: 10px; color: #171719; background: #f3f3f3; border: 0; border-radius: 6px; font-weight: 750; }
.ates-atlas .atlas-all:focus-visible { outline-color: #242527; }
.ates-atlas .atlas-countries { grid-column: 1/-1; justify-self: center; max-width: 100%; z-index: 1; border-radius: 10px; border: 1px solid #888; background: #242527; }
.ates-atlas .atlas-countries:empty { display: none; }
.ates-atlas .atlas-countries button { border-right: 1px solid var(--atlas-line); }
.ates-atlas .atlas-countries button:last-child { border-right: 0; }
.ates-atlas .atlas-countries button[aria-pressed="true"] { background: #b91222; }
.ates-atlas .atlas-pins button { position: absolute; transform: translate(-9px,-50%); pointer-events: auto; background: #171819ed; padding: 4px 8px; font-size: .85rem; border-radius: 5px; }
.ates-atlas .atlas-pins button[hidden] { display: none; }
.ates-atlas .atlas-pins button::before { content: '●'; margin-right: 5px; }
.ates-atlas .atlas-pins button[aria-pressed="true"] { outline: 2px solid var(--atlas-red); }
.ates-atlas .atlas-credit { position: absolute; bottom: 6px; right: 12px; font-size: 10px; color: #e0e0e0; }

@container (min-width: 1200px) {
  .ates-atlas .atlas-search { flex-basis: clamp(260px, 16cqw, 330px); }
}

@container (max-width: 900px) {
  .ates-atlas .atlas-bar { flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding-top: 8px; }
  .ates-atlas .atlas-tabs { flex-basis: 100%; order: 3; }
  .ates-atlas .atlas-tabs button { min-height: 42px; }
}
@container (max-width: 739px) {
  .ates-atlas .atlas-stage { display: flex; flex-direction: column; gap: 14px; padding: 20px 12px 26px; height: auto; background-size: auto 365px; background-position: top center; }
  .ates-atlas .atlas-heading { min-height: 292px; }
  .ates-atlas .atlas-countries { order: 1; }
  .ates-atlas .atlas-panel { order: 2; width: 100%; max-height: 480px; }
}
