.hero--search {
  min-height: 72svh;
}

.section--search {
  padding-top: 3.5rem;
}

.search-layout {
  display: grid;
  gap: 1.25rem;
}

.search-panel,
.search-sidecard {
  padding: 1.5rem;
  border: 1px solid rgba(155, 126, 222, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(155, 126, 222, 0.08), rgba(232, 180, 184, 0.08));
  box-shadow: var(--shadow-card);
}

.panel-header h2,
.search-sidecard h2 {
  margin: 0;
  font-family: "Baskerville", "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
}

.panel-header p:last-child,
.search-sidecard p:last-of-type {
  margin: 1rem 0 0;
  line-height: 1.8;
  color: var(--text-muted);
}

.field {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.field__label,
.field__counter {
  font-size: 0.95rem;
  font-weight: 700;
}

.field__label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.field__counter {
  color: #7c6c89;
}

.search-input {
  width: 100%;
  min-height: 3.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(155, 126, 222, 0.16);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-input:focus {
  outline: 2px solid rgba(155, 126, 222, 0.32);
  outline-offset: 2px;
}

.search-input::placeholder {
  color: #8a7d96;
}

.tag-selector,
.selected-tags,
.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-button,
.selected-pill,
.prompt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.tag-button {
  border: 1px solid rgba(155, 126, 222, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #5f4a70;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.tag-button:hover,
.tag-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(155, 126, 222, 0.38);
}

.tag-button[aria-pressed="true"] {
  color: #fff9fd;
  background: linear-gradient(135deg, #9b7ede 0%, #b88add 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(89, 61, 116, 0.16);
}

.selected-tags {
  min-height: 2.75rem;
  margin-top: 1.25rem;
}

.selected-pill {
  background: rgba(155, 126, 222, 0.1);
  color: #66497d;
}

.selected-placeholder {
  margin: 0;
  line-height: 1.8;
  color: var(--text-muted);
}

.form-feedback {
  margin: 1rem 0 0;
  color: #b03c64;
  font-weight: 700;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

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

.prompt-chip {
  border: 1px solid rgba(155, 126, 222, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #5c476b;
  cursor: pointer;
}

.prompt-chip:hover,
.prompt-chip:focus-visible {
  transform: translateY(-2px);
}

.search-notes {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.2rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section--entry-picks {
  padding-top: 1rem;
}

.entry-picks__header {
  display: grid;
  gap: 0.9rem;
  align-items: end;
}

.entry-picks__header h2 {
  margin: 0;
  font-family: "Baskerville", "Times New Roman", "Songti SC", serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
}

.entry-picks__copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.topic-shortcut-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.topic-shortcut-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
  border: 1px solid rgba(155, 126, 222, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98)),
    linear-gradient(135deg, rgba(155, 126, 222, 0.08), rgba(232, 180, 184, 0.08));
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topic-shortcut-card:hover,
.topic-shortcut-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(155, 126, 222, 0.32);
  box-shadow: 0 20px 40px rgba(89, 61, 116, 0.16);
}

.topic-shortcut-card__eyebrow,
.topic-shortcut-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-shortcut-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.topic-shortcut-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.topic-shortcut-card__cta {
  color: #7a4e98;
}

.anchor-shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.anchor-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(155, 126, 222, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #5c476b;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.anchor-shortcut:hover,
.anchor-shortcut:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(155, 126, 222, 0.34);
}

@media (min-width: 900px) {
  .search-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.8fr);
    align-items: start;
  }

  .entry-picks__header {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  }

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

  .search-panel,
  .search-sidecard {
    padding: 2rem;
  }
}
