.discovery {
  background: var(--background);
}
.discovery-nav {
  max-width: 1440px;
  margin: auto;
  height: 80px;
  padding: 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.discovery-nav .brand span {
  font-weight: 400;
  color: var(--muted-foreground);
  margin-left: 2px;
}
.discovery-nav nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.discovery-nav nav a[aria-current] {
  color: var(--foreground);
}
.discovery-main {
  max-width: 1328px;
  padding: 0 32px;
  margin: auto;
}
.discovery-intro {
  padding: 44px 0 43px;
  text-align: center;
}
.community-label {
  font: 10px var(--font-mono);
  letter-spacing: 2px;
  color: var(--muted-foreground);
}
.community-label span {
  color: var(--brand);
  margin-left: 7px;
}
.discovery-intro h1 {
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -1.8px;
  margin: 16px 0 12px;
}
.heading-dot {
  color: var(--brand);
}
.discovery-intro > p {
  font-size: 14px;
  color: var(--muted-foreground);
}
.intro-chips {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 22px;
}
.discovery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.discovery .filters button {
  border-radius: 22px;
  padding: 9px 16px;
  color: var(--muted-foreground);
}
.discovery .filters button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}
.discovery .search {
  border-radius: 20px;
  background: white;
  border-color: var(--border);
  padding: 9px 15px;
}
.browse-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 21px;
  font-size: 14px;
}
.browse-caption > span:last-child {
  font-size: 11px;
  color: var(--muted-foreground);
}
.count-pill {
  font-size: 10px;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-radius: 10px;
  padding: 3px 8px;
  margin-left: 8px;
}
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.discovery-card {
  border: none;
  border-radius: 14px;
  background: white;
  box-shadow: 0 2px 10px #32271006;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px #32271010;
}
.preview-trigger {
  display: block;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
  text-align: left;
}
.discovery-card .scene {
  height: 240px;
  position: relative;
}
.discovery-card .scene.embodied-intelligence {
  background-size: 290% auto;
  background-position: 21% 20%;
}
.discovery-card .scene.enterprise-ai {
  background-position: center 7%;
}
.discovery-card .scene.aigc-awards {
  background-position: center 12%;
}
.discovery-card .scene.own-your-story {
  background-position: 5% 20%;
}
.format-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  font-size: 10px;
  background: #fffffff0;
  color: var(--foreground);
  border-radius: 12px;
  padding: 5px 9px;
}
.peek {
  position: absolute;
  bottom: 13px;
  right: 13px;
  font-size: 11px;
  padding: 7px 11px;
  background: #ffffffed;
  border-radius: 15px;
  color: var(--foreground);
  opacity: 0;
  transition: opacity 0.2s;
}
.preview-trigger:hover .peek,
.preview-trigger:focus-visible .peek {
  opacity: 1;
}
.discovery-copy {
  padding: 19px 18px 14px;
}
.discovery .eyebrow {
  justify-content: space-between;
  gap: 5px;
  font-size: 10px;
  color: var(--brand);
}
.discovery .eyebrow span {
  font-size: 9px;
  color: var(--muted-foreground);
}
.discovery-copy h2 {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  margin: 12px 0 9px;
  min-height: 56px;
}
.discovery-copy h2 a {
  display: inline;
}
.discovery-copy > p {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.9;
  min-height: 69px;
}
.discovery-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.mini-tags {
  display: flex;
  gap: 6px;
}
.mini-tags span {
  font-size: 9px;
  color: var(--muted-foreground);
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--secondary);
}
.tone-0 .discovery-copy {
  background: var(--background);
}
.tone-1 .discovery-copy {
  background: var(--background);
}
.tone-2 .discovery-copy {
  background: var(--background);
}
.tone-3 .discovery-copy {
  background: var(--background);
}
.field-note {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 36px 0;
  margin: 45px 0 35px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.note-symbol {
  font-size: 47px;
  color: var(--brand);
}
.field-note h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 9px;
}
.field-note p {
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.8;
}
.field-note > a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted-foreground);
}
.discovery-footer {
  max-width: 1328px;
  margin: auto;
  padding: 0 32px 35px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted-foreground);
}
#preview-dialog {
  margin: auto;
  padding: 0;
  width: min(640px, calc(100% - 30px));
  max-height: 88vh;
  border: 0;
  border-radius: 18px;
  color: var(--foreground);
  background: var(--background);
  box-shadow: 0 25px 100px #0003;
}
#preview-dialog::backdrop {
  background: #25231e66;
  backdrop-filter: blur(5px);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted-foreground);
}
#close-preview {
  border: none;
  background: var(--border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
#preview-scene {
  height: 240px;
}
.preview-body {
  padding: 25px 30px 30px;
}
.preview-body h2 {
  font-size: 26px;
  line-height: 1.5;
  margin: 12px 0;
}
.preview-body > p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.9;
}
.preview-body ul {
  padding-left: 18px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 2;
}
.preview-body .preview-note {
  font-size: 10px;
  margin-bottom: 20px;
}
.preview-body .primary-link {
  background: var(--primary);
  border-radius: 22px;
}
@media (max-width: 1050px) {
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-card .scene {
    height: 260px;
  }
}
@media (max-width: 600px) {
  .discovery-nav {
    padding: 0 20px;
    height: 65px;
  }
  .discovery-nav nav {
    gap: 14px;
    font-size: 11px;
  }
  .discovery-nav nav a:last-child {
    display: none;
  }
  .discovery-main {
    padding: 0 20px;
  }
  .discovery-intro {
    padding: 35px 0;
  }
  .discovery-intro h1 {
    font-size: 33px;
  }
  .discovery-intro > p {
    font-size: 12px;
  }
  .intro-chips {
    gap: 12px;
    font-size: 10px;
  }
  .discovery-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .discovery .filters button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .discovery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .discovery-copy h2,
  .discovery-copy > p {
    min-height: 0;
  }
  .field-note {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }
  .field-note > div {
    flex: 1;
  }
  .field-note > a {
    margin-left: 61px;
  }
  .discovery-footer {
    padding: 0 20px 30px;
    gap: 20px;
  }
  .peek {
    opacity: 1;
  }
  .preview-body {
    padding: 20px;
  }
  .preview-body h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-card,
  .peek {
    transition: none;
  }
}

.discovery-card {
  border: 1px solid var(--border);
  box-shadow: none;
}
.discovery .filters button,
.discovery .search,
.preview-body .primary-link {
  border-radius: 6px;
}
.discovery-card:hover {
  box-shadow: 0 8px 24px #0000000a;
}
/* Compact, source-oriented library header. */
.discovery-intro {
  text-align: left;
  padding: 30px 0 27px;
}
.discovery-intro h1 {
  font-size: 32px;
  letter-spacing: -0.7px;
  margin: 10px 0 11px;
}
.discovery-intro > p {
  color: var(--muted-foreground);
  line-height: 1.8;
}
.community-label {
  color: var(--brand);
  letter-spacing: 1.4px;
}
.discovery-toolbar {
  padding: 18px 0 10px;
}
.discovery .search {
  min-width: 310px;
}
.discovery .search input {
  width: 100%;
}
.discovery-card {
  border-radius: 8px;
}
.discovery-card .scene {
  height: 180px;
}
.discovery-copy h2 {
  font-size: 17px;
}
.discovery-card:hover {
  transform: none;
  border-color: #aaa;
}
.discovery-copy > p {
  color: #626262;
}
.discovery .eyebrow span {
  color: #737373;
}
.browse-caption {
  margin: 15px 0 18px;
}
.field-note {
  margin-top: 32px;
  padding: 22px 0;
}
.field-note h2 {
  font-size: 14px;
  font-weight: 600;
}
.field-note p {
  color: var(--muted-foreground);
}
@media (max-width: 600px) {
  .discovery-intro {
    padding: 25px 0 20px;
  }
  .discovery-intro h1 {
    font-size: 27px;
  }
  .discovery .search {
    min-width: 0;
  }
  .discovery-toolbar {
    flex-direction: column-reverse;
  }
  .discovery-card .scene {
    height: 200px;
  }
  .browse-caption > span:last-child {
    display: none;
  }
}

.discovery .discovery-copy > .collected-date {
  min-height: 0;
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 7px;
  line-height: 1.5;
}
.discovery .discovery-copy .eyebrow {
  justify-content: flex-start;
  gap: 12px;
}
