.prompt-hub,
.prompt-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.prompt-hub__hero,
.prompt-page__hero {
  padding: 2.6rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.prompt-hub__eyebrow,
.prompt-page__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.prompt-hub__hero h1,
.prompt-page__hero h1 {
  max-width: 900px;
  margin: 0 0 0.75rem;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.prompt-hub__hero > p,
.prompt-page__description {
  max-width: 820px;
  margin: 0;
  color: #4e5b67;
  font-size: 1.18rem;
  line-height: 1.6;
}

.prompt-hub__copy {
  max-width: 820px;
  margin-top: 1rem;
  color: #687581;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prompt-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 120, 197, 0.3);
  box-shadow: 0 14px 36px rgba(24, 39, 55, 0.08);
}

.prompt-card__meta,
.prompt-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prompt-card__meta span,
.prompt-page__meta span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #596774;
  font-size: 0.75rem;
  font-weight: 700;
}

.prompt-card h2 {
  margin: 1rem 0 0.55rem;
  font-size: 1.5rem;
}

.prompt-card h2 a {
  color: #202a33;
  text-decoration: none;
}

.prompt-card p {
  margin: 0;
  color: #56636f;
  line-height: 1.6;
}

.prompt-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.3rem;
  color: #7a858f;
  font-size: 0.86rem;
}

.prompt-card__footer a,
.prompt-page__learn {
  font-weight: 800;
  text-decoration: none;
}

.prompt-page__crumb {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #74818c;
  font-size: 0.88rem;
}

.prompt-page__crumb a {
  font-weight: 700;
  text-decoration: none;
}

.prompt-page__meta {
  margin-top: 1.25rem;
}

.prompt-page__learn {
  display: inline-block;
  margin-top: 1rem;
}

.prompt-page__instructions {
  max-width: 820px;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #f5f8fb;
}

.prompt-page__instructions h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.prompt-page__instructions ol {
  margin-bottom: 0;
}

.prompt-page__prompt-wrap {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: #111820;
}

.prompt-page__prompt-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.prompt-page__prompt-head span,
.prompt-page__prompt-head strong {
  display: block;
}

.prompt-page__prompt-head span {
  color: #8fa5ba;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prompt-copy {
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: #fff;
  color: #17202a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.prompt-copy:hover {
  background: #eaf2fb;
}

.prompt-page__body pre {
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e9eef3;
  white-space: pre-wrap;
}

.prompt-page__body pre code {
  display: block;
  padding: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.prompt-page__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-page__prompt-head,
  .prompt-card__footer,
  .prompt-page__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
