*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --demo-bg: #e9edf2;
  --demo-panel: #f4f7fb;
  --demo-border: #c7d1df;
  --demo-text: #0f172a;
  --demo-muted: #475569;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--demo-bg);
  color: var(--demo-text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.embed-demo-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 0.95rem 2.25rem;
}

.embed-demo-header {
  margin-bottom: 0.85rem;
}

.embed-demo-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  line-height: 1.15;
}

.embed-demo-header p {
  margin: 0.42rem 0 0;
  max-width: 72ch;
  color: var(--demo-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.embed-demo-canvas {
  border: 1px solid var(--demo-border);
  border-radius: 0.95rem;
  background: var(--demo-panel);
  padding: 0.95rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.embed-demo-story {
  border: 1px solid #d6dfeb;
  border-radius: 0.82rem;
  background: #fff;
  padding: 1rem;
}

.embed-demo-story h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1vw + 1rem, 1.6rem);
  line-height: 1.2;
}

.embed-demo-story p {
  margin: 0.55rem 0 0;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.5;
}

.embed-demo-meta {
  margin-top: 0.42rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.embed-demo-frame {
  width: 100%;
  margin-top: 0.9rem;
}

.embed-demo-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.embed-demo-frame--counter iframe {
  height: 700px;
}

.embed-demo-frame--strip iframe {
  height: 88px;
}

.embed-demo-variant + .embed-demo-variant {
  margin-top: 0.7rem;
}

.embed-demo-variant-label {
  margin: 0 0 0.35rem;
  color: #64748b;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.embed-demo-copy {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}

.embed-demo-copy p {
  margin: 0;
}

.embed-demo-note {
  margin-top: 0.65rem;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 600;
}

.embed-demo-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.embed-demo-map-card {
  border: 1px solid #d6dfeb;
  border-radius: 0.82rem;
  background: #fff;
  padding: 0.82rem;
}

.embed-demo-map-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.embed-demo-map-card p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.embed-demo-map-square {
  margin-top: 0.66rem;
  border: 1px solid #c8d3e2;
  border-radius: 0.82rem;
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.embed-demo-map-square iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed-demo-map-copy {
  border: 1px solid #d6dfeb;
  border-radius: 0.82rem;
  background: #fff;
  padding: 0.95rem;
}

.embed-demo-map-copy h3 {
  margin: 0;
  font-size: 1.08rem;
}

.embed-demo-map-copy p {
  margin-top: 0.58rem;
}

.embed-demo-search-slot {
  margin-top: 0.9rem;
  position: relative;
  z-index: 3;
}

.embed-demo-search-slot .crashcount-crashfinder-widget {
  width: 100%;
}

@media (max-width: 1024px) {
  .embed-demo-map-layout {
    grid-template-columns: 1fr;
  }

  .embed-demo-map-card {
    max-width: 460px;
  }
}

@media (max-width: 840px) {
  .embed-demo-copy {
    grid-template-columns: 1fr;
  }

  .embed-demo-frame--counter iframe {
    height: 730px;
  }

  .embed-demo-frame--strip iframe {
    height: 92px;
  }
}

@media (max-width: 640px) {
  .embed-demo-page {
    padding: 0.85rem 0.45rem 1.4rem;
  }

  .embed-demo-canvas,
  .embed-demo-story,
  .embed-demo-map-card,
  .embed-demo-map-copy {
    border-radius: 0.72rem;
  }

  .embed-demo-frame--counter iframe {
    height: 780px;
  }

  .embed-demo-frame--strip iframe {
    height: 96px;
  }
}
