.yc-articles-container {
  padding: 28px;
  border-radius: 18px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.yc-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.yc-articles-grid:has(> :only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.yc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: transparent;
  cursor: pointer;
  outline: none;
  padding: 8px 6px;
  border-radius: 10px;
}

.yc-card:focus {
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.08);
}

.yc-card-media {
  width: 100%;
  max-width: 220px;
  height: 100%;
  background: #f2f2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}

@media (max-width: 800px) {
  .yc-card-media {
    max-width: 160px;
    height: 160px;
  }
}

.yc-card-image {
  width: 56%;
  height: auto;
  object-fit: contain;
  display: block;
}

.yc-no-image {
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
}

.yc-card-meta {
  width: 100%;
  display: block;
  padding: 0;
}

.yc-card-subtitle {
  color: #9aa0a6;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 500;
}

.yc-card-title {
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  color: #111;
  line-height: 1.18;
  word-break: break-word;
  max-width: 520px;
}

.yc-card .yc-card-meta+.yc-hidden-modal-content {
  display: none;
}

.yc-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 25, 0.45);
  z-index: 9999;
  padding: 24px;
}

.yc-modal {
  max-width: 820px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 22px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.yc-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.yc-modal-body .yc-manual-download {
  margin-top: 12px;
}

.yc-modal-body .yc-manual-download .button,
.yc-modal-body .yc-manual-download a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #2271b1;
  border: 1px solid #1a5f90;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.yc-modal-body .yc-manual-download .button:hover,
.yc-modal-body .yc-manual-download a:hover {
  background: #1a5f90;
  border-color: #184f78;
}

.yc-modal-body .yc-manual-download .button:focus,
.yc-modal-body .yc-manual-download a:focus {
  outline: 2px solid rgba(34, 113, 177, .35);
  outline-offset: 2px;
}

.yc-modal-body .yc-manual-download .button:visited,
.yc-modal-body .yc-manual-download a:visited {
  color: #fff !important;
}

@media (max-width: 800px) {
  .yc-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .yc-card-media {
    max-width: 160px;
    height: 160px;
    align-self: center;
  }

  .yc-card {
    align-items: center;
    text-align: center;
  }

  .yc-card-meta {
    text-align: center;
  }

  .yc-card-title {
    font-size: 18px;
  }

  .yc-card-subtitle {
    text-align: center;
  }
}