/* Websjekk editorial mobile fine-tune v1
   Mobile-only geometry corrections for shared brand motion surfaces.
   Desktop presentation remains unchanged. */

@media (max-width: 48rem) {
  /* ------------------------------------------------------------------ */
  /* Tools / workflow brand-memory                                      */
  /* ------------------------------------------------------------------ */
  .brand-memory[data-ws-signature="brand-memory"] {
    --ws-mobile-memory-size: min(72vw, 17rem);
    box-sizing: border-box;
    min-height: 0;
    padding-top: var(--ws-mobile-memory-size);
    overflow: hidden;
    border-radius: 1.2rem;
    background:
      radial-gradient(circle at 50% calc(var(--ws-mobile-memory-size) / 2), rgba(18, 173, 148, 0.1), transparent 9.5rem),
      linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(237, 246, 243, 0.88));
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__orbit {
    top: calc(var(--ws-mobile-memory-size) / 2);
    left: 50%;
    width: var(--ws-mobile-memory-size);
    animation: ws-mobile-memory-orbit 28s linear infinite;
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__core {
    top: calc(var(--ws-mobile-memory-size) / 2);
    left: 50%;
    width: 6.4rem;
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__signal {
    display: none;
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__copy {
    position: relative;
    z-index: 4;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 1.35rem 1.25rem 1.55rem;
    align-content: start;
    text-align: left;
    border-top: 1px solid rgba(7, 19, 31, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.91), rgba(255, 255, 255, 0.98));
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__copy strong {
    margin-top: 0.55rem;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__copy small {
    margin-top: 0.75rem;
    line-height: 1.55;
  }

  .brand-memory--dark[data-ws-signature="brand-memory"] {
    background:
      radial-gradient(circle at 50% calc(var(--ws-mobile-memory-size) / 2), rgba(18, 173, 148, 0.16), transparent 9.5rem),
      linear-gradient(145deg, #06111c, #0b2530 72%, #07362f);
  }

  .brand-memory--dark[data-ws-signature="brand-memory"] .brand-memory__copy {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(6, 17, 28, 0.91), rgba(6, 17, 28, 0.98));
  }

  /* ------------------------------------------------------------------ */
  /* Shared editorial exit                                              */
  /* ------------------------------------------------------------------ */
  .insight-editorial-exit.ws-exit-motion {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
    min-height: 0;
  }

  .insight-editorial-exit.ws-exit-motion .insight-editorial-exit__inner {
    padding-bottom: 0.2rem;
  }

  .insight-editorial-exit.ws-exit-motion .insight-editorial-exit__actions {
    margin-bottom: 0;
  }

  .insight-editorial-exit.ws-exit-motion .ws-exit-brand {
    width: min(76vw, 18rem);
    min-height: 0;
    aspect-ratio: 1;
    margin: 0 auto;
    align-self: start;
  }

  .insight-editorial-exit.ws-exit-motion .ws-exit-brand__core {
    width: 6.6rem;
  }
}

@keyframes ws-mobile-memory-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-memory[data-ws-signature="brand-memory"] .brand-memory__orbit {
    animation: none !important;
  }
}
