/* Chintai Article Image Map Pro public polish r1 */
.article-imagemap {
  --imap-accent: #0f766e;
  --imap-border: rgba(15, 23, 42, 0.1);
  --imap-muted: #68778a;
  margin: 0;
}

.article-imagemap__title {
  color: #0f172a;
  font-family: var(--font-display, "Manrope", "Inter", sans-serif);
  font-size: clamp(23px, 2.5vw, 29px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.article-imagemap__stage {
  background: #f5f8f7;
  border: 1px solid var(--imap-border);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  min-height: 390px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.article-imagemap__fallback {
  min-height: 390px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.article-imagemap__fallback-image {
  background: #fff;
  display: block;
  height: auto;
  min-height: 390px;
  object-fit: contain;
  width: 100%;
}

.article-imagemap__vendor-host {
  inset: 0;
  min-height: 390px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
  width: 100%;
  z-index: 2;
}

.article-imagemap.is-vendor-ready .article-imagemap__vendor-host {
  opacity: 1;
  pointer-events: auto;
}

.article-imagemap.is-vendor-ready .article-imagemap__fallback {
  visibility: hidden;
}

.article-imagemap__hotspot {
  background: #0f766e;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.24);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  z-index: 3;
}

.article-imagemap__hotspot:focus-visible,
.article-imagemap button:focus-visible,
.article-imagemap a:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.36);
  outline-offset: 3px;
}

.article-imagemap__controls {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 11px;
}

.article-imagemap__open {
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-weight: 750;
  min-height: 40px;
  padding: 9px 15px;
}

.article-imagemap__status {
  color: var(--imap-muted);
  font-size: 12px;
  line-height: 1.45;
}

.article-imagemap__accessible-list {
  border-top: 1px solid var(--imap-border);
  margin-top: 14px;
  padding: 12px 2px 0;
}

.article-imagemap__accessible-list summary {
  color: #405064;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.article-imagemap__accessible-list ol {
  margin: 10px 0 0 22px;
  padding: 0;
}

.article-imagemap__accessible-list button {
  background: transparent;
  border: 0;
  color: var(--imap-accent);
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-imagemap__caption {
  color: var(--imap-muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
  text-align: center;
}

.article-imagemap__missing {
  color: var(--imap-muted);
  display: grid;
  min-height: 390px;
  padding: 24px;
  place-items: center;
}

.article-imagemap__dialog {
  background: #fff;
  border: 0;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100vw;
}

.article-imagemap__dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
}

.article-imagemap__dialog-shell {
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}

.article-imagemap__dialog-header {
  align-items: center;
  border-bottom: 1px solid var(--imap-border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
}

.article-imagemap__dialog-header button {
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.article-imagemap__dialog-host {
  background: #f8fafc;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.article-imagemap__sheet {
  background: #fff;
  border: 1px solid var(--imap-border);
  border-radius: 18px;
  bottom: 10px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  left: 10px;
  padding: 18px 48px 18px 18px;
  position: absolute;
  right: 10px;
  z-index: 20;
}

.article-imagemap__sheet[hidden] {
  display: none !important;
}

.article-imagemap__sheet-kicker {
  color: var(--imap-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.article-imagemap__sheet-close {
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 32px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
}

.article-imagemap__sheet [data-imagemap-sheet-action] {
  margin-top: 12px;
}

.article-imagemap__sheet a,
.article-imagemap__sheet [data-imagemap-sheet-action] button {
  align-items: center;
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  padding: 9px 14px;
  text-decoration: none;
}

html.article-imagemap-lock {
  overflow: hidden;
}

@media (max-width: 768px) {
  .article-imagemap__stage,
  .article-imagemap__fallback,
  .article-imagemap__fallback-image {
    min-height: 230px;
  }

  .article-imagemap__stage {
    border-radius: 16px;
    box-shadow: none;
  }

  .article-imagemap__vendor-host {
    display: none;
  }

  .article-imagemap__open {
    display: inline-flex;
  }

  .article-imagemap__hotspot {
    height: 30px;
    width: 30px;
  }

  .article-imagemap__dialog-host {
    min-height: calc(100dvh - 58px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-imagemap__vendor-host {
    transition: none;
  }
}
