.tech-embed,
.ws-te{
  --te-bg: #1d1b1b;
  --te-text: #f5f7fa;
  --te-text-muted: rgba(255, 255, 255, 0.94);
  --te-line: rgba(255, 220, 39, 0.65);
  --te-accent: #ffdc27;
  --te-accent-ink: #111216;
  --te-radius: 22px;
  --te-gap: 24px;
  --te-wrap: 1440px;
  --te-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 24%, rgba(0, 0, 0, 0.72) 56%, rgba(0, 0, 0, 0.96) 100%);
  background: var(--te-bg);
  color: var(--te-text);
}

.tech-embed,
.ws-te,
.tech-embed *,
.ws-te *{
  box-sizing: border-box;
}

.tech-embed__container,
.ws-te__container{
  max-width: var(--te-wrap);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.tech-embed__title,
.ws-te__h2{
  margin: 0 0 16px;
  color: var(--te-text);
  font-family: var(--font-head, "Roboto Slab", serif);
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
}

.tech-embed__image,
.ws-te__img,
.tech-embed__video,
.ws-te__video{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.tech-embed__image--placeholder,
.ws-te__img--ph{
  background: #111216;
}

.tech-embed__toggle,
.ws-te__toggle{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}

.tech-embed__toggle:focus-visible,
.ws-te__toggle:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tech-embed-featured,
.ws-tef{
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 40px;
  padding: 40px;
  border: 1px solid var(--te-line);
  border-radius: 40px;
  background: var(--te-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.tech-embed-featured__media,
.ws-tef__media,
.tech-embed-related__media,
.ws-ter__media{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--te-radius);
  background: #000;
}

.tech-embed-featured__media,
.ws-tef__media{
  aspect-ratio: 16 / 10;
}

.tech-embed-featured__content,
.ws-tef__content{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-embed-featured__card-title,
.ws-tef__title{
  display: inline;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 2px 8px 4px;
  border-radius: 8px;
  background: var(--te-accent);
  color: var(--te-accent-ink) !important;
  -webkit-text-fill-color: var(--te-accent-ink) !important;
  font-family: var(--font-head, "Roboto Slab", serif);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.tech-embed-featured__excerpt,
.ws-tef__excerpt{
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--te-text-muted);
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tech-embed--featured .tech-embed-featured__button,
.ws-te--featured .ws-tef__button{
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 0;
}

.tech-embed-featured__button,
.ws-tef__button{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 5px 5px 5px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tech-embed-featured__button:hover,
.tech-embed-featured__button:focus-visible,
.ws-tef__button:hover,
.ws-tef__button:focus-visible{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.tech-embed-featured__button-text,
.ws-tef__button-text{
  display: block;
}

.tech-embed-featured__button-icon,
.ws-tef__button-icon{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
}

.tech-embed-featured__button-icon img,
.ws-tef__button-icon img{
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
  transform: rotate(-45deg);
}

.tech-embed-related,
.ws-ter{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--te-gap);
  margin-top: 20px;
}

.tech-embed-related__card,
.ws-ter__card{
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.tech-embed-related__media,
.ws-ter__media{
  aspect-ratio: 16 / 10;
}

.tech-embed-related__overlay,
.ws-ter__overlay{
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 62%;
  background: var(--te-overlay);
  pointer-events: none;
}

.tech-embed-related__caption,
.ws-ter__caption{
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.tech-embed-related__card-title,
.ws-ter__title{
  display: inline;
  margin: 0;
  overflow: hidden;
  padding: 2px 8px 4px;
  border-radius: 8px;
  background: var(--te-accent);
  color: var(--te-accent-ink) !important;
  -webkit-text-fill-color: var(--te-accent-ink) !important;
  font-family: var(--font-head, "Roboto Slab", serif);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tech-embed-related__button,
.ws-ter__btn,
.tech-embed--related .ws-btn--outline{
  display: none !important;
}

.tech-embed--related .tech-embed__toggle,
.tech-embed--related .ws-te__toggle,
.ws-te--related .ws-te__toggle{
  display: none !important;
}

@media (max-width: 980px){
  .tech-embed-featured,
  .ws-tef{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
  }

  .tech-embed-related,
  .ws-ter{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767.98px){
  .tech-embed__container,
  .ws-te__container{
    padding: 0 16px;
  }

  .tech-embed__title,
  .ws-te__h2{
    margin: 12px 0 16px;
    font-size: 32px;
  }

  .tech-embed-featured,
  .ws-tef{
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .tech-embed-featured__media,
  .ws-tef__media,
  .tech-embed-related__media,
  .ws-ter__media{
    border-radius: 18px;
  }

  .tech-embed__image,
  .ws-te__img,
  .tech-embed__video,
  .ws-te__video{
    border-radius: 18px;
  }

  .tech-embed-related,
  .ws-ter{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .tech-embed-related__caption,
  .ws-ter__caption{
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .tech-embed-featured__card-title,
  .ws-tef__title,
  .tech-embed-related__card-title,
  .ws-ter__title{
    font-size: 18px !important;
  }

  .tech-embed-featured__excerpt,
  .ws-tef__excerpt{
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .tech-embed--featured .tech-embed-featured__button,
  .ws-te--featured .ws-tef__button{
    width: auto !important;
    max-width: 100%;
  }

  .tech-embed-featured__button,
  .ws-tef__button{
    min-height: 42px;
    padding: 4px 4px 4px 12px;
    font-size: 12px;
  }

  .tech-embed-featured__button-icon,
  .ws-tef__button-icon{
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .tech-embed-featured__button-icon img,
  .ws-tef__button-icon img{
    width: 12px;
    height: 12px;
  }
}
