.icp-opere {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(27, 24, 59, 0.1);
  border-radius: 13px;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.icp-entry-content {
  min-width: 0;
}

.icp-opere > span {
  color: #777486;
  font-weight: 700;
  text-transform: uppercase;
}

.icp-opere a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0e8ff;
  color: #5226ae;
  font-weight: 850;
  text-decoration: none;
}

.icp-entry-content .wp-block-embed,
.icp-entry-content .wp-block-video,
.icp-entry-content .wp-block-image,
.icp-entry-content .wp-block-gallery,
.icp-entry-content .wp-block-table,
.icp-entry-content .wp-block-quote {
  margin-block: 2rem;
}

.icp-entry-content .wp-block-embed__wrapper {
  position: relative;
}

.icp-entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
.icp-entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #11131e;
  box-shadow: 0 18px 45px rgba(16, 12, 35, 0.16);
}

.icp-entry-content .wp-block-embed-youtube iframe,
.icp-entry-content .wp-embed-aspect-16-9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.icp-entry-content figcaption {
  margin-top: 8px;
  color: #777486;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.icp-entry-content .wp-block-quote {
  margin-inline: 0;
  padding: 20px 24px;
  border-left: 4px solid var(--icp-primary);
  background: var(--icp-purple-soft);
  font-size: 1.08em;
  font-style: italic;
}

.icp-entry-content .wp-block-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.icp-entry-content table {
  display: table;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  border: 1px solid rgba(27, 24, 59, 0.12);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
}

.icp-entry-content th,
.icp-entry-content td {
  min-width: 130px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid rgba(27, 24, 59, 0.09);
  border-bottom: 1px solid rgba(27, 24, 59, 0.09);
  text-align: left;
  vertical-align: top;
}

.icp-entry-content th {
  background: #1a1728;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.icp-entry-content tr:last-child td,
.icp-entry-content tr:last-child th {
  border-bottom: 0;
}

.icp-entry-content th:last-child,
.icp-entry-content td:last-child {
  border-right: 0;
}

.icp-entry-content tbody tr:nth-child(even) td {
  background: #f7f5fb;
}

.icp-entry-content tbody tr:hover td {
  background: #f0e8ff;
}

.icp-entry-content table caption {
  padding: 10px 14px;
  color: #6c697a;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.icp-entry-content ul,
.icp-entry-content ol {
  margin: 1.4rem 0 1.8rem;
  padding-left: 1.35rem;
}

.icp-entry-content li {
  padding-left: 0.35rem;
}

.icp-entry-content li + li {
  margin-top: 0.55rem;
}

.icp-entry-content ul li::marker {
  color: #7b42e5;
  font-size: 1.15em;
}

.icp-entry-content ol li::marker {
  color: #6b35d4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
}

.icp-entry-content li > ul,
.icp-entry-content li > ol {
  margin: 0.6rem 0 0.25rem;
}

.icp-entry-content .is-style-check-list {
  padding-left: 0;
  list-style: none;
}

.icp-entry-content .is-style-check-list > li {
  position: relative;
  padding-left: 2rem;
}

.icp-entry-content .is-style-check-list > li::before {
  content: "✓";
  position: absolute;
  top: 0.12em;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eadeff;
  color: #6932d2;
  font:
    900 0.72rem/1 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

.icp-entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border-radius: 12px;
  background: #11131e;
  color: #fff;
}

@media (max-width: 560px) {
  .icp-entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
  .icp-entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-radius: 10px;
  }

  .icp-entry-content .wp-block-table {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-radius: 10px;
  }

  .icp-entry-content table {
    width: max-content;
    min-width: 100%;
    font-size: 0.78rem;
  }

  .icp-entry-content th,
  .icp-entry-content td {
    padding: 11px 13px;
  }
}
