/**
 * @file
 * AECT Panel styles (PSD-6).
 *
 * Desktop: Figma 29999:57203 / node 29094:54005 (card, SILVER GRADIENT border).
 * Mobile: Figma 29999:57213 / node 29094:56022 (card).
 */

.layout-container {

  .aect-panel {
    --aect-panel-silver-gradient: linear-gradient(
      90deg,
      #dfe1e3 0%,
      #e5e6e4 5%,
      #f1f0e5 14%,
      #fdf9e6 24%,
      #f5f0dd 33%,
      #e9e3d2 42%,
      #ded6c8 52%,
      #d6cec3 61%,
      #e2ddd8 71%,
      #edeceb 80%,
      #e2e1d4 89%,
      #d6d4bb 100%
    );

    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    font-family: var(--font-agenda);
  }

  .aect-panel__card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: var(--space-lg);
    width: 100%;
    padding: 12px var(--space-2xl) 0;
    box-sizing: border-box;
    border: 8px solid transparent;
    border-radius: var(--radius-2xl);
    /* Figma 29094:54005 — #1D2D3A @ 5%. */
    background-color: rgba(29, 45, 58, 0.05);
    background-clip: padding-box;
    box-shadow: var(--shadow-header);
  }

  .aect-panel__card::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    padding: 8px;
    background: var(--aect-panel-silver-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }

  /* Figma 29094:54006 — desktop 185 x 250.805 viewport. */
  .aect-panel__media {
    position: relative;
    flex: 0 0 185px;
    width: 185px;
    height: 250.805px;
    overflow: hidden;
  }

  .aect-panel__image {
    display: block;
    width: 100%;
    height: auto;
  }

  .aect-panel__content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    min-width: 0;
    justify-content: flex-end;
  }

  .aect-panel__copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
  }

  .aect-panel__title {
    width: 100%;
    margin: 0;
    color: var(--color-charcoal);
    font-family: var(--font-agenda);
    font-size: var(--fs-22);
    font-weight: var(--font-weight-bold);
    line-height: normal;
    font-feature-settings: "liga" 0;
  }

  .aect-panel__body,
  .aect-panel__body p {
    margin: 0;
    color: var(--color-charcoal);
    font-family: var(--font-agenda);
    font-size: var(--fs-22);
    font-weight: var(--font-weight-normal);
    line-height: normal;
    font-feature-settings: "liga" 0;
  }

  .aect-panel__actions {
    width: min(462.799px, 100%);
  }

  /* Figma 29094:54013 — white fill, 3px dark-coral frame. */
  .aect-panel__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 12px var(--space-md) 10px var(--space-lg);
    border: 3px solid var(--color-dark-coral);
    border-radius: var(--radius-full);
    background: var(--color-white);
    color: var(--color-dark-coral);
    font-family: var(--font-agenda);
    font-size: 19px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      border-color var(--transition-fast);
  }

  .aect-panel__cta:hover {
    background: var(--color-coral);
    border-color: var(--color-coral);
    color: var(--color-white);
  }

  .aect-panel__cta:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-outer);
    outline-offset: var(--focus-ring-width);
    box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-inner);
  }

  .aect-panel__cta-label {
    line-height: 1;
  }

  .aect-panel__cta-icon {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
  }

  @media (max-width: 767px) {

    /* Figma 29094:56022 — column: copy, CTA, screenshot. */
    .aect-panel__card {
      flex-direction: column;
      align-items: center;
      gap: var(--space-lg);
      padding: var(--space-lg) var(--space-lg) 0;
    }

    .aect-panel__content {
      order: 1;
      width: 100%;
      padding-bottom: 0;
    }

    .aect-panel__media {
      order: 2;
      flex: none;
      width: 220px;
      height: 282px;
    }

    /* Figma 29094:56029 — h 118.82%, left -0.45%, top -6.77%. */
    .aect-panel__image {
      /*position: absolute;*/
      left: -0.45%;
      top: -6.77%;
      width: 100%;
      height: 100%;
      max-width: none;
    }

    /* Figma 29094:56023 — title + body gap 12px. */
    .aect-panel__copy {
      gap: 12px;
    }

    .aect-panel__title,
    .aect-panel__body,
    .aect-panel__body p {
      font-size: 21px;
    }

    .aect-panel__actions {
      width: 100%;
    }
  }

  @media (min-width: 768px) {

    /* Content defines card height; screenshot anchors to the bottom edge. */
    .aect-panel__media {
      flex-shrink: 0;
      align-self: flex-end;
    }

    .aect-panel__content {
      padding-bottom: var(--space-md);
    }

    .aect-panel__cta {
      width: auto;
    }
  }

  @media (prefers-reduced-motion: reduce) {

    .aect-panel__cta {
      transition: none;
    }
  }

}
