body#index {
  --agm-rail: 300px;
  --agm-rail-top: 120px;
  --agm-bg: #fff;
  --agm-ink: #1a1a1a;
  --agm-accent: #f15a22;
}
body#index .agm-on-dark {
  --agm-bg: #1a1a1a;
  --agm-ink: #f2f1ee;
}

@media (min-width: 901px) {
  body#index #footer {
    padding-right: var(--agm-rail);
  }
  body#index #main-content .elementor-section-wrap > .elementor-section > .elementor-container {
    --agm-w: min(1200px, 100% - var(--agm-rail) - 80px);
    width: var(--agm-w) !important;
    max-width: none !important;
    margin-left: clamp(40px, (100% - var(--agm-w)) / 2, 100% - var(--agm-w) - var(--agm-rail)) !important;
    margin-right: 0 !important;
  }
  body#index #footer [data-id="39af2202"] { box-shadow: var(--agm-rail) 0 0 #1a1a1a; }
  body#index #footer [data-id="7f30ec6f"] { box-shadow: var(--agm-rail) 0 0 #141414; }
  body#index .agm-catalogue-tab {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 10px 10px 0 !important;
  }
  body#index .pk-fixed-bottom-right {
    right: 20px !important;
    bottom: 84px !important;
    flex-direction: row !important;
    align-items: center;
    width: auto !important;
    max-width: none !important;
  }
  body#index .pk-fixed-bottom-right > * {
    flex-shrink: 0;
  }
  body#index .pk-fixed-bottom-right .pk-scroll-totop {
    position: static !important;
  }
}

body#index .agm-ruler {
  position: fixed;
  top: var(--agm-rail-top);
  right: 0;
  bottom: 0;
  width: var(--agm-rail);
  z-index: 40;
  cursor: ns-resize;
  touch-action: none;
  overflow: hidden;
  border-left: 1px solid rgba(0, 0, 0, .06);
}

body#index .agm-strip { position: absolute; inset: 0; }
body#index .agm-tick { position: absolute; right: 0; height: 0; }
body#index .agm-tick i {
  position: absolute;
  right: 0;
  top: 0;
  width: 9px;
  height: 1px;
  background: var(--agm-ink);
  opacity: .3;
}
body#index .agm-tick.major i { width: 20px; opacity: .7; }
body#index .agm-tick span {
  position: absolute;
  right: 26px;
  top: 0;
  transform: translateY(-50%);
  font-family: Consolas, ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--agm-ink);
  opacity: .5;
}

body#index .agm-words {
  position: fixed;
  inset: 0;
  z-index: 46;
  pointer-events: none;
}
body#index .agm-word {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: "Archivo Narrow", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--agm-ink);
  text-decoration: none;
}
body#index .agm-word .ch {
  position: absolute;
  top: 0;
  left: 0;
  white-space: pre;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 4px var(--agm-bg), 0 0 10px var(--agm-bg);
}
body#index .agm-word .hit {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
}

body#index .agm-marker {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
}
body#index .agm-hair {
  position: absolute;
  right: 0;
  top: 0;
  width: 74px;
  height: 2px;
  background: var(--agm-accent);
}
body#index .agm-readout {
  position: absolute;
  right: 6px;
  top: -18px;
  font-family: Consolas, ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--agm-accent);
  font-variant-numeric: tabular-nums;
  background: var(--agm-bg);
  padding: 0 .2rem;
}
body#index .agm-readout b {
  font-weight: 500;
  display: inline-block;
  min-width: 4.6ch;
  text-align: right;
}

@media (max-width: 900px) {
  body#index #main-content,
  body#index #footer { padding-right: 0; }
  body#index .agm-words { display: none; }
  body#index .agm-ruler {
    top: auto;
    bottom: 100px;
    left: 14px;
    right: auto;
    width: auto;
    height: auto;
    overflow: visible;
    cursor: default;
    border: 0;
  }
  body#index .agm-strip,
  body#index .agm-hair { display: none; }
  body#index .agm-marker { position: static; }
  body#index .agm-readout {
    position: static;
    transform: none;
    border: 1px solid var(--agm-accent);
    padding: .35rem .55rem;
  }
}
