@import url("./palette-v2.6.css");
@import url("./typography-v3.0.css");

.embed-player {
  width: 100%;
  margin: clamp(28px, 5vw, 54px) 0;
}

.embed-player iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: #000000000;
}

.embed-player--video iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 220px;
}

.embed-player figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .embed-player--video iframe {
    min-height: 190px;
  }
}

.embed-player--generic > iframe,
.embed-player--generic > object,
.embed-player--generic > embed,
.embed-player--generic > video,
.embed-player--generic > audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.embed-player--generic > audio {
  min-height: 54px;
}

.embed-player--generic > video {
  height: auto;
}


/* v2.6 — aplicación estricta de la paleta */
body,
.page,
.home-main,
.site-header,
.site-footer,
.panel,
.tool-card,
.menu-tree-panel,
.menu-inspector,
.sound-stage-panel,
.sound-inspector,
.hotspot-stage-panel,
.hotspot-inspector,
.embed-dialog {
  background-color: var(--paper);
  color: var(--ink);
}

:is(
  .panel,
  .tool-card,
  .blog-card,
  .testimonial,
  .sound-item,
  .menu-select,
  .hotspot-list-item,
  .sound-hotspot-list-item,
  input,
  textarea,
  select
) {
  border-color: var(--rule);
}

:is(
  .panel,
  .tool-card,
  .blog-card,
  .testimonial,
  .sound-item
):where(:hover, :focus-within) {
  border-color: var(--accent);
}

:is(
  .eyebrow,
  .page-kicker,
  .field-help,
  .status,
  time,
  figcaption,
  small,
  .muted
) {
  color: var(--rule);
}

:is(
  .hotspot-marker,
  .sound-hotspot,
  .menu-select[aria-current="true"],
  .hotspot-list-item.is-selected,
  .sound-hotspot-list-item.is-selected
) {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--accent);
}

:is(
  .hotspot-marker,
  .sound-hotspot
):where(:hover, :focus-visible) {
  background-color: var(--accent);
  color: var(--ink);
}

.site-footer,
.site-header,
.blog-editorial,
.blog-latest,
.blog-archive-list,
.home-latest-blog,
.practice-statement,
.testimonials {
  border-color: var(--rule);
}


/* v3.2 — aplicaciones interactivas alineadas con el viewport */
.interactive-app {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-block: clamp(40px, 7vw, 96px);
  margin-inline: 0;
  transform: none;
  border-block: 1px solid var(--rule);
  background: var(--paper);
}

.interactive-app__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.interactive-app__title {
  margin: 0;
  font-size: var(--text--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  hyphens: none;
}

.interactive-app__fullscreen {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.interactive-app__fullscreen:hover,
.interactive-app__fullscreen:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.interactive-app iframe[data-interactive-frame="true"] {
  display: block;
  width: 100%;
  min-height: 82vh;
  height: 92vh;
  max-width: none;
  border: 0;
  background: var(--paper);
}

.interactive-app figcaption {
  max-width: var(--measure-copy);
  margin: 14px 0 0;
}

@media (max-width: 680px) {
  .interactive-app {
    width: 100%;
  }

  .interactive-app__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .interactive-app__fullscreen {
    justify-content: center;
  }

  .interactive-app iframe[data-interactive-frame="true"] {
    min-height: 78vh;
  }
}
