.yst-block {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
}

.yst-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #111827;
  margin-bottom: 22px;
  padding-bottom: 12px;
}

.yst-block-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.yst-block-head h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 24px;
  margin-right: 10px;
  vertical-align: -4px;
  background: #2563eb;
}

.yst-posts {
  display: grid;
  gap: 22px;
}

.yst-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yst-list {
  grid-template-columns: 1fr;
}

.yst-card {
  display: grid;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.yst-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.yst-list .yst-card {
  grid-template-columns: 280px minmax(0, 1fr);
}

.yst-card-thumb {
  display: grid;
  place-items: center;
  min-height: 190px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  font-weight: 900;
}

.yst-list .yst-card-thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

.yst-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yst-card-body {
  padding: 20px;
}

.yst-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #667085;
  font-size: 13px;
}

.yst-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 21px;
  line-height: 1.34;
}

.yst-card p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.yst-empty,
.yst-panel,
.yst-form,
.yst-account,
.yst-notice {
  width: min(860px, calc(100% - 32px));
  margin: 32px auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
}

.yst-ad {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
  color: #7c2d12;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

.yst-form label {
  display: block;
  margin-bottom: 16px;
}

.yst-form span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.yst-form input,
.yst-form textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  padding: 11px 12px;
}

.yst-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.yst-button:hover {
  background: #1d4ed8;
  color: #fff;
}

.yst-notice {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #027a48;
}

.yst-popular ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
}

.yst-popular li {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.yst-account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.yst-account-head img {
  border-radius: 999px;
}

.yst-account h2,
.yst-account p {
  margin: 0;
}

.yst-account ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yst-account li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.yst-account li span {
  color: #667085;
  font-size: 14px;
}

@media (max-width: 900px) {
  .yst-grid,
  .yst-list .yst-card {
    grid-template-columns: 1fr;
  }

  .yst-list .yst-card-thumb {
    min-height: 190px;
  }
}
