/* Editorial discovery: quiet typography, readable data, restrained motion. */
.discovery-page,
.blog-discovery {
  --discovery-accent: #8bbdff;
  --discovery-line: #ffffff16;
  --discovery-muted: #929ca8;
}
.discovery-page {
  width: min(1200px, calc(100% - 80px));
  margin: auto;
  padding: 135px 0 78px;
}
.discovery-page [hidden] {
  display: none !important;
}
.sfx-page {
  --discovery-accent: #efd09b;
}
.discovery-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
  animation: discovery-enter 0.7s both;
}
.discovery-eyebrow,
.discovery-kicker,
.discovery-stat > span,
.discovery-stat small,
.discovery-nav,
.directory-note > span,
.discovery-results,
.library-art,
.library-tags,
.news-date,
.blog-feed-date {
  font-family: "Outfit", sans-serif;
}
.discovery-eyebrow {
  color: var(--discovery-accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 25px;
}
.discovery-hero h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.discovery-hero h1 em {
  color: var(--discovery-accent);
  font-style: normal;
}
.discovery-intro {
  color: #a5afba;
  max-width: 510px;
  line-height: 1.75;
  font-size: 16px;
  margin-top: 24px;
}
.discovery-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.discovery-stat b {
  font:
    600 88px/1 "Outfit",
    sans-serif;
  letter-spacing: -0.08em;
  color: var(--discovery-accent);
}
.discovery-stat > span {
  color: #bac1c9;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 14px;
}
.discovery-stat small {
  color: #72808d;
  font-size: 11px;
  margin-top: 10px;
}
.discovery-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--discovery-line);
  margin-bottom: 28px;
  overflow: auto;
}
.discovery-nav a {
  padding: 17px 0;
  text-decoration: none;
  color: #8f9daa;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.discovery-nav a[aria-current],
.discovery-nav a:hover {
  color: var(--discovery-accent);
  border-color: var(--discovery-accent);
}
.discovery-nav a span {
  margin-left: 8px;
}
.directory-note {
  display: flex;
  gap: 32px;
  padding: 8px 0 28px;
  align-items: baseline;
}
.directory-note > span {
  font-size: 11px;
  white-space: nowrap;
  color: var(--discovery-accent);
  letter-spacing: 0.06em;
}
.directory-note p {
  max-width: 800px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--discovery-muted);
}
.discovery-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 23px;
  border: 1px solid var(--discovery-line);
  background: #10141a;
  border-radius: 12px;
}
.discovery-filters label {
  min-width: 0;
  flex: 1;
}
.discovery-filters .discovery-search {
  flex: 1.7;
}
.discovery-filters label > span {
  display: block;
  color: #a6b0bb;
  font-size: 13px;
  margin-bottom: 9px;
}
.discovery-filters input,
.discovery-filters select {
  color: #e1e6ed;
  background: #090e13;
  border: 1px solid #ffffff1f;
  border-radius: 6px;
  height: 42px;
  padding: 0 12px;
  width: 100%;
  font:
    12px "Outfit",
    sans-serif;
}
.discovery-page :focus-visible,
.blog-discovery :focus-visible {
  outline: 2px solid var(--discovery-accent);
  outline-offset: 4px;
}
.discovery-filters button {
  height: 42px;
  border: 1px solid #ffffff1f;
  background: transparent;
  color: #a9b6c3;
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  font:
    11px "Outfit",
    sans-serif;
  white-space: nowrap;
}
.discovery-filters button[aria-pressed="true"] {
  border-color: var(--discovery-accent);
  color: var(--discovery-accent);
}
.saved-toggle span {
  margin-left: 5px;
  color: var(--discovery-accent);
}
.discovery-filters .discovery-reset {
  border: 0;
  padding: 0 4px;
}
.discovery-results {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #81909e;
  padding: 24px 2px 18px;
}
.discovery-results p {
  color: #cad0d7;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.library-card {
  min-width: 0;
  border: 1px solid var(--discovery-line);
  background: #10141a;
  border-radius: 12px;
  overflow: hidden;
  animation: discovery-enter 0.6s both;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.library-card:hover {
  border-color: #efd09b55;
  transform: translateY(-3px);
}
.library-art {
  height: 120px;
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, #efd09b13, transparent 80%), #11171b;
  overflow: hidden;
  color: #eac791;
}
.library-art > span {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 12px;
  opacity: 0.7;
}
.library-art > b {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.library-art svg {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 85px;
  overflow: visible;
}
.library-art path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  opacity: 0.55;
}
.library-art path + path {
  opacity: 0.55;
}
.art-1 {
  color: #a8c6cb;
  background:
    radial-gradient(ellipse at 60% 100%, #a8c6cb16, transparent 80%), #11181c;
}
.art-1 svg {
}
.art-2 {
  color: #bbaed9;
  background:
    radial-gradient(ellipse at 40% 0%, #bbaed911, transparent 80%), #13151d;
}
.art-2 svg {
}
.art-3 svg {
}
.library-body {
  padding: 22px;
}
.discovery-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--discovery-accent);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.save-item {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #ffffff1a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #929eab;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.save-item:hover,
.save-item[aria-pressed="true"] {
  color: var(--discovery-accent);
  background: #ffffff08;
}
.library-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 10px 0 13px;
}
.library-description {
  min-height: 64px;
  font-size: 13px;
  color: #a0acb7;
  line-height: 1.65;
}
.library-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.library-tags span {
  font-size: 11px;
  padding: 4px 7px;
  border: 1px solid #ffffff12;
  border-radius: 4px;
  color: #9eabb6;
}
.library-facts {
  border-top: 1px solid var(--discovery-line);
  padding: 12px 0;
}
.library-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
  padding: 5px 0;
}
.library-facts dt {
  color: #82919e;
}
.library-facts dd {
  text-align: right;
  color: #cbd2d8;
  max-width: 60%;
}
.library-body details {
  border-top: 1px solid var(--discovery-line);
  padding: 14px 0;
}
.discovery-page summary {
  color: #b9c3ce;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 0;
}
.discovery-page details p {
  font-size: 14px;
  line-height: 1.75;
  color: #99a7b5;
  margin: 10px 0;
}
.discovery-page details a {
  font-size: 13px;
  color: var(--discovery-accent);
  text-decoration: none;
}
.discovery-page details small {
  display: block;
  color: #798795;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}
.library-visit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #efd09b3b;
  border-radius: 6px;
  padding: 13px;
  color: var(--discovery-accent);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.library-visit:hover {
  background: #efd09b0d;
}
.discovery-empty {
  padding: 70px 25px;
  text-align: center;
  border: 1px dashed #ffffff24;
  border-radius: 12px;
}
.discovery-empty h2 {
  font-weight: 600;
}
.discovery-empty p {
  color: #9da9b5;
  margin: 12px 0;
}
.discovery-empty button {
  color: var(--discovery-accent);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px;
}
.saved-notice {
  color: #81909c;
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
}
.discovery-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border-top: 1px solid var(--discovery-line);
  padding: 42px 0 0;
  margin-top: 45px;
}
.discovery-end .discovery-eyebrow {
  margin-bottom: 17px;
}
.discovery-end h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.discovery-end p:not(.discovery-eyebrow) {
  color: #97a4b0;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 570px;
}
.discovery-end > a {
  color: var(--discovery-accent);
  text-decoration: none;
  border: 1px solid #ffffff25;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.news-feed {
  border-top: 1px solid var(--discovery-line);
}
.news-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 36px;
  gap: 30px;
  border-bottom: 1px solid var(--discovery-line);
  padding: 32px 0;
  position: relative;
  animation: discovery-enter 0.6s both;
}
.news-date {
  font-size: 12px;
  color: #8595a5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 3px;
}
.news-type {
  align-self: start;
  border: 1px solid #b9c8ff32;
  color: #b9c8ff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.news-type.update {
  color: #a6ddc7;
  border-color: #a6ddc72a;
}
.news-copy .discovery-kicker {
  justify-content: start;
  gap: 10px;
  flex-wrap: wrap;
}
.news-copy .discovery-kicker span {
  color: #8394a6;
}
.news-copy h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 10px 0 12px;
  line-height: 1.25;
}
.news-copy > p {
  font-size: 14px;
  line-height: 1.75;
  color: #a2aeba;
  max-width: 730px;
}
.news-copy > a {
  display: inline-block;
  font-size: 13px;
  color: var(--discovery-accent);
  text-decoration: none;
  margin-top: 17px;
}
.news-copy details {
  margin-top: 13px;
  border-left: 1px solid #ffffff25;
  padding-left: 15px;
}
.blog-discovery {
  max-width: 1200px;
  width: calc(100% - 80px);
  margin: 0 auto 64px;
}
.blog-discovery-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 42px;
  padding-top: 10px;
}
.blog-feed {
  padding: 0;
}
.discovery-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.discovery-section-head .discovery-eyebrow {
  margin-bottom: 10px;
}
.discovery-section-head h2 {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.discovery-section-head > a {
  font-size: 13px;
  color: var(--discovery-accent);
  text-decoration: none;
}
.news-compact {
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
}
.news-compact h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.news-compact .news-copy > p {
  font-size: 14px;
  line-height: 1.65;
}
.news-compact .news-copy > a {
  margin-top: 10px;
  font-size: 12px;
}
.news-compact .discovery-kicker {
  font-size: 11px;
}
.news-compact .discovery-kicker > span {
  display: none;
}
.blog-feed-date {
  font-size: 11px;
  color: #778797;
  margin-top: 16px;
}
.sfx-feature {
  --discovery-accent: #efd09b;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #29251f, #14171b 65%);
  border: 1px solid #efd09b2c;
  border-radius: 14px;
  padding: 32px;
  text-decoration: none;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.sfx-feature:hover {
  transform: translateY(-4px);
  border-color: #efd09b77;
}
.sfx-feature-lines {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin: 30px 0 40px;
  overflow: hidden;
}
.sfx-feature-lines i {
  width: 2px;
  background: linear-gradient(transparent, #efd09bb0, transparent);
  height: 48%;
}
.sfx-feature-lines i:nth-child(3n) {
  height: 100%;
}
.sfx-feature-lines i:nth-child(2n) {
  height: 70%;
}
.sfx-feature h2 {
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #eee5d5;
}
.sfx-feature > p:not(.discovery-eyebrow) {
  font-size: 13px;
  color: #aaa79f;
  line-height: 1.8;
  margin-top: 20px;
}
.sfx-feature > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 25px;
  margin-top: auto;
  font-size: 13px;
  color: #a49c8c;
}
.sfx-feature b {
  color: #efd09b;
  font-weight: 600;
}
@keyframes discovery-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1100px) {
  .library-card:nth-child(3n + 2) {
    animation-delay: 0.06s;
  }
  .library-card:nth-child(3n + 3) {
    animation-delay: 0.12s;
  }
}
@media (max-width: 1050px) {
  .discovery-page,
  .blog-discovery {
    width: calc(100% - 40px);
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-filters {
    flex-wrap: wrap;
  }
  .discovery-filters .discovery-search {
    flex-basis: 100%;
  }
  .blog-discovery-grid {
    gap: 24px;
  }
  .sfx-feature {
    padding: 25px;
  }
  .sfx-feature h2 {
    font-size: 38px;
  }
}
@media (max-width: 650px) {
  .discovery-page {
    width: calc(100% - 32px);
    padding-top: 108px;
  }
  .discovery-hero {
    gap: 25px;
    padding-bottom: 28px;
  }
  .discovery-hero h1 {
    font-size: 45px;
  }
  .discovery-stat {
    display: none;
  }
  .discovery-intro {
    font-size: 14px;
  }
  .discovery-nav {
    gap: 24px;
  }
  .discovery-nav a {
    font-size: 12px;
  }
  .directory-note {
    display: block;
  }
  .directory-note p {
    margin-top: 12px;
  }
  .discovery-filters {
    padding: 16px;
    gap: 12px;
  }
  .discovery-filters label {
    flex-basis: calc(50% - 6px);
  }
  .discovery-results {
    font-size: 11px;
  }
  .discovery-results > span {
    max-width: 160px;
    text-align: right;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .library-description {
    min-height: 0;
  }
  .library-art {
    height: 100px;
  }
  .discovery-end {
    display: block;
    margin-top: 28px;
  }
  .discovery-end > a {
    display: inline-block;
    margin-top: 22px;
  }
  .discovery-end h2 {
    font-size: 27px;
  }
  .news-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 14px;
    padding: 24px 0;
  }
  .news-date {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .news-copy h2 {
    font-size: 23px;
  }
  .news-copy > p {
    font-size: 13px;
  }
  .blog-discovery {
    width: calc(100% - 32px);
  }
  .blog-discovery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .news-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .news-compact .news-date {
    grid-column: auto;
  }
  .sfx-feature {
    padding: 28px;
  }
  .sfx-feature-lines {
    margin: 10px 0 25px;
    height: 65px;
  }
  .sfx-feature h2 {
    font-size: 42px;
  }
  .sfx-feature > div:last-child {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-page *,
  .blog-discovery * {
    animation: none !important;
    transition: none !important;
  }
}

/* Category artwork has its own geometry, not recoloured copies of a waveform. */
.library-art {
  height: 150px;
}
.library-art svg {
  height: 125px;
  bottom: -6px;
}
.library-art > span,
.library-art > b {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.art-3 {
  color: #9ebaff;
  background: linear-gradient(135deg, #19253a, #111720);
}
.art-4 {
  color: #92d3b5;
  background: linear-gradient(135deg, #183028, #111a19);
}
.art-5 {
  color: #e5ad99;
  background: linear-gradient(135deg, #30231f, #1a1515);
}
.discovery-nav a {
  font-size: 15px;
  font-weight: 500;
}
.discovery-filters label > span {
  font-size: 13px;
}
.discovery-filters input,
.discovery-filters select,
.discovery-filters button {
  font-size: 14px;
}
.library-facts > div {
  font-size: 13px;
}
.library-description {
  font-size: 15px;
  min-height: 76px;
}
.library-body h2,
.news-copy h2 {
  font-weight: 600;
}
.library-card:hover {
  border-color: var(--discovery-accent);
}
@media (max-width: 650px) {
  .discovery-nav {
    gap: 20px;
  }
  .discovery-nav a {
    font-size: 13px;
  }
  .library-description {
    min-height: 0;
  }
  .discovery-results {
    font-size: 11px;
  }
  .discovery-eyebrow {
    font-size: 11px;
  }
  .news-copy > p {
    font-size: 15px;
  }
}
/* Discovery uses the same page shell and title treatment as the existing tools. */
.discovery-page {
  width: 100%;
  padding: 0 0 70px;
}
.discovery-content {
  max-width: 1200px;
  width: calc(100% - 80px);
  margin: 0 auto;
}
.discovery-page .tool-hero {
  padding: 120px 40px 32px;
}
.discovery-page .tool-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.discovery-page,
.blog-discovery {
  --discovery-accent: var(--accent);
  --discovery-line: var(--border);
  --discovery-muted: var(--text-muted);
}
.sfx-page {
  --discovery-accent: #4ade80;
}
.discovery-nav {
  gap: 28px;
}
.discovery-nav a {
  font-size: 14px;
}
.library-card,
.discovery-filters {
  background: var(--bg-card);
  border-color: var(--border);
}
.library-body h2,
.news-copy h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.discovery-eyebrow,
.discovery-kicker,
.library-tags,
.news-date,
.discovery-results {
  font-family: "JetBrains Mono", monospace;
}
.discovery-eyebrow,
.discovery-kicker,
.news-date {
  font-size: 11px;
}
.library-tags span {
  font-size: 10px;
}
.discovery-results {
  font-size: 11px;
}
.sfx-feature {
  --discovery-accent: #4ade80;
  background: var(--bg-card);
  border-color: var(--border);
}
.sfx-feature h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.sfx-feature b {
  color: #4ade80;
}
.sfx-feature-lines i {
  background: linear-gradient(transparent, #22c55e99, transparent);
}
.discovery-end h2,
.discovery-section-head h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.news-copy > a,
.library-visit {
  font-size: 13px;
}
@media (max-width: 768px) {
  .discovery-page {
    padding: 0 0 50px;
  }
  .discovery-page .tool-hero {
    padding: 90px 20px 24px;
  }
  .discovery-content {
    width: calc(100% - 32px);
  }
  .discovery-nav {
    gap: 20px;
  }
  .discovery-nav a {
    font-size: 12px;
  }
}

/* Shared centred navigation, matching the existing Tonalux cards. */
nav.discovery-nav {
  position: static;
  inset: auto;
  z-index: auto;
  width: fit-content;
  max-width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 auto 28px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  backdrop-filter: none;
}
nav.discovery-nav a {
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  color: var(--text-secondary);
}
nav.discovery-nav a::after {
  display: none;
}
nav.discovery-nav a[aria-current="page"] {
  background: #4a9eff18;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px #4a9eff55;
}
.sfx-page nav.discovery-nav a[aria-current="page"] {
  color: #4ade80;
  background: #22c55e15;
  box-shadow: inset 0 0 0 1px #22c55e50;
}
.directory-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 28px;
}
.directory-note > span {
  font-size: 12px;
  letter-spacing: 0.07em;
}
.directory-note p {
  max-width: 640px;
  margin: 0;
}
.library-facts > div:first-child dd {
  font-size: 16px;
  font-weight: 600;
  color: #e8f3ed;
}
.discovery-filters {
  grid-template-columns: minmax(180px, 1.6fr) repeat(2, minmax(120px, 1fr)) auto;
}
.sfx-page .discovery-filters {
  grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(120px, 1fr)) auto;
}
.news-row {
  grid-template-columns: 130px minmax(0, 1fr);
}
@media (max-width: 800px) {
  .sfx-page .discovery-filters,
  .discovery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  nav.discovery-nav {
    width: 100%;
    gap: 2px;
    flex-wrap: nowrap;
    padding: 4px;
  }
  nav.discovery-nav a {
    flex: 1;
    text-align: center;
    padding: 11px 6px;
    font-size: 12px;
    white-space: normal;
  }
  .news-row {
    grid-template-columns: 1fr;
  }
  .sfx-page .discovery-filters,
  .discovery-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Blog: plugin news carousel. Same frame as the other blog sections (1100px content). */
section.news-strip {
  padding: 3.5rem 4rem 0;
}
.news-strip .news-strip-head {
  align-items: flex-end;
}
.news-strip-nav {
  display: flex;
  gap: 8px;
}
.news-strip-nav button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ffffff22;
  background: #10141c;
  color: #dfe6f0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.news-strip-nav button:hover {
  border-color: #8bbdff;
  background: #151b26;
}
.news-strip-nav button:focus-visible {
  outline: 2px solid #9ecaff;
  outline-offset: 2px;
}
.news-strip-nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.news-strip-nav [data-news-pause] svg {
  fill: currentColor;
  stroke: none;
}
.news-strip-nav .icon-play,
.news-strip-nav [aria-pressed="true"] .icon-pause {
  display: none;
}
.news-strip-nav [aria-pressed="true"] .icon-play {
  display: inline;
}
.news-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.news-strip-track::-webkit-scrollbar {
  display: none;
}
.news-strip-track:focus-visible {
  outline: 2px solid #9ecaff;
  outline-offset: 4px;
  border-radius: 14px;
}
.news-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  overflow: hidden;
  background: #0f131a;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s;
}
.news-card:hover {
  border-color: #8bbdff80;
}
.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 30%, #1d2533, #0b0e13);
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.news-card:hover .news-card-media img {
  transform: scale(1.04);
}
.news-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 650;
  color: #8bbdff;
}
.news-card-media .news-type {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #0b0e13eb;
}
.news-type.free {
  color: #f3d79f;
  border-color: #f3d79f40;
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.news-card-meta {
  font-size: 13px;
  color: #929ca8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-meta b {
  color: #dfe6f0;
  font-weight: 600;
  margin-right: 4px;
}
.news-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.news-card-summary {
  font-size: 13.5px;
  line-height: 1.5;
  color: #a5afba;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* The source line says plainly where the card leads: off-site, to the maker. */
.news-card-source {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #ffffff12;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #8bbdff;
}
.news-card-source > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-card-source time {
  flex-shrink: 0;
  color: #7d8794;
}
.news-card:hover .news-card-source {
  color: #b9d6ff;
}
@media (max-width: 1024px) {
  .news-strip-track {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}
@media (max-width: 768px) {
  section.news-strip {
    padding: 2rem 1rem 0;
  }
  .news-strip-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}
@media (max-width: 520px) {
  .news-strip-nav [data-news-step] {
    display: none;
  }
  .news-strip-track {
    grid-auto-columns: 84%;
  }
}

/* Free SFX: deals-family page with a strong visual per library. */
.sfx-panel.sfx-page {
  padding: 0;
}
.sfx-panel .section-label,
.sfx-panel .free-count-badge {
  color: #f0c98a;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sfx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 14px;
}
.sfx-filters label {
  display: block;
}
.sfx-filter-search {
  flex: 1 1 260px;
}
.sfx-filters input,
.sfx-filters select,
.sfx-filters .discovery-reset {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: #10141c;
  color: #e4e9f0;
  font: inherit;
  font-size: 14px;
  padding: 0 14px;
}
.sfx-filters input {
  width: 100%;
}
.sfx-filters .discovery-reset {
  cursor: pointer;
  color: #a5afba;
}
.sfx-filters :focus-visible {
  outline: 2px solid #f0c98a;
  outline-offset: 2px;
}
.sfx-results {
  font-size: 13px;
  color: #8a94a1;
  margin-bottom: 16px;
}
.sfx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sfx-card {
  --sfx-hue: 200;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  overflow: hidden;
  background: #0f131a;
  transition: border-color 0.25s, transform 0.25s;
}
.sfx-card:hover {
  border-color: #ffffff40;
  transform: translateY(-3px);
}
.sfx-card-art {
  position: relative;
  height: 150px;
  background:
    radial-gradient(ellipse 80% 90% at 50% 100%, hsl(var(--sfx-hue) 30% 30% / 0.25), transparent 70%),
    #0a0d12;
  overflow: hidden;
}
.sfx-card-art svg,
.sfx-card-art canvas {
  position: absolute;
  inset: 14px 0 0;
  width: 100%;
  height: calc(100% - 14px);
  object-fit: cover;
}
.sfx-card-provider,
.sfx-card-count {
  position: absolute;
  top: 12px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #0a0d12eb;
}
.sfx-card-provider {
  left: 12px;
  color: #f2f5f9;
  font-weight: 600;
}
.sfx-card-count {
  right: 12px;
  color: #c9d2dd;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sfx-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
  flex: 1;
}
.sfx-card h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sfx-card-body > p {
  color: #a5afba;
  font-size: 14px;
  line-height: 1.55;
}
.sfx-card-flags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.sfx-card-flags li {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #ffffff1f;
  color: #b9c2cd;
}
.sfx-card-flags li.ok {
  color: #a6ddc7;
  border-color: #a6ddc740;
}
.sfx-card-flags li.ok::before {
  content: "✓ ";
}
.sfx-card-flags li.warn {
  color: #f3d79f;
  border-color: #f3d79f40;
}
.sfx-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sfx-card-tags span {
  font-size: 11px;
  color: #8a94a1;
  letter-spacing: 0.04em;
}
.sfx-card-tags span + span::before {
  content: "· ";
}
.sfx-card details {
  font-size: 13px;
  color: #a5afba;
  border-top: 1px solid #ffffff12;
  padding-top: 10px;
  margin-top: auto;
}
.sfx-card summary {
  cursor: pointer;
  color: #c6ced8;
}
.sfx-card details p {
  margin-top: 8px;
  line-height: 1.55;
}
.sfx-card details a {
  display: inline-block;
  margin-top: 8px;
  color: #f0c98a;
}
.sfx-card details small {
  display: block;
  margin-top: 6px;
  color: #6f7985;
}
.sfx-card-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ffffff24;
  background: #ffffff08;
  color: #eef2f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.sfx-card-cta:hover {
  background: #ffffff12;
  border-color: #ffffff40;
}
.sfx-suggest {
  margin-top: 28px;
  text-align: center;
  color: #8a94a1;
  font-size: 14px;
}
.sfx-suggest a {
  color: #f0c98a;
}
@media (max-width: 1000px) {
  .sfx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .sfx-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card-media img,
  .sfx-card {
    transition: none;
  }
  .news-card:hover,
  .sfx-card:hover {
    transform: none;
  }
  .news-card:hover .news-card-media img {
    transform: none;
  }
}
