.article__content .interactive-figure {
  margin: 2rem 0;
}

.interactive-frame {
  border: 1px solid #d6d3cb;
  border-radius: 8px;
  overflow: hidden;
  background: #efede7;
}

.interactive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .5rem .85rem;
  border-bottom: 1px solid #d6d3cb;
  background: #f3f1eb;
  font-size: .8rem;
  line-height: 1.4;
  color: #52525b;
}

.interactive-toolbar-label {
  font-weight: 600;
  letter-spacing: .02em;
  color: #27272a;
}

.interactive-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.interactive-action {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .6rem;
  border: 1px solid #c9c5bc;
  border-radius: 5px;
  background: #faf9f6;
  color: #18181b;
  font: inherit;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.interactive-action:hover {
  background: #eae6dc;
  border-color: #a8a29e;
  color: #18181b;
}

.interactive-action:focus-visible,
.interactive-dialog button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.interactive-frame iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #efede7;
}

.article__content .interactive-figure figcaption {
  margin-top: .75rem;
  color: #535a60;
  font-size: .9rem;
  line-height: 1.6;
}

.interactive-dialog {
  box-sizing: border-box;
  width: 1280px;
  max-width: 96vw;
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  border: 1px solid #c9c5bc;
  border-radius: 10px;
  background: #efede7;
  color: #18181b;
  overflow: hidden;
}

.interactive-dialog[open] {
  display: flex;
  flex-direction: column;
}

.interactive-dialog::backdrop {
  background: rgba(12, 18, 28, 0.72);
}

.interactive-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid #d6d3cb;
  background: #f3f1eb;
}

.interactive-dialog-header h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: #18181b;
}

.interactive-dialog-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.interactive-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.interactive-dialog-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #efede7;
}

@media (max-width: 600px) {
  .interactive-expand {
    display: none;
  }
}

@media print {
  .interactive-toolbar,
  .interactive-dialog {
    display: none;
  }
}
