/* Isolated Listeningtest design: compact catalogue, existing teal palette. */
body { background: #f7fcfe; color: #16384a; background-attachment: scroll; }
body[data-track-section] .catalogue-preview {
  width: 100%; max-width: none; margin: 0; padding: 104px clamp(22px, 3.7vw, 72px) 44px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}
body[data-track-section] .catalogue-preview::before,
body[data-track-section] .catalogue-preview::after,
.preview-random::before { display: none; }
.preview-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 22px; }
.preview-intro-copy, .preview-intro-actions, .preview-encouragement, .preview-random, .preview-random > span { min-width: 0; }
.preview-intro h1 { margin: 0 0 10px; color: #102e43; font: 800 clamp(27px, 2.7vw, 37px)/1.16 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: -.045em; }
.preview-intro-copy > p { max-width: 600px; margin: 0 0 18px; color: #597080; font-size: 13px; line-height: 1.6; }
.preview-progress { display: flex; align-items: center; gap: 15px; font-size: 11px; font-weight: 800; }
.preview-progress #heroProgressText { white-space: nowrap; }
.preview-progress .hero-progress-track { flex: 0 1 280px; width: 280px; height: 8px; margin: 0; border: 0; background: #e7f0f4; border-radius: 8px; overflow: hidden; }
.preview-progress .hero-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, #087e8d, #20b6b8); border-radius: inherit; }
#previewPercent { min-width: 30px; color: #6c8191; }
.preview-intro-actions { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 12px; }
.preview-encouragement, .preview-random { display: flex; align-items: center; min-height: 94px; gap: 12px; padding: 15px; border-radius: 10px; }
.preview-encouragement { background: #e1f8f7; border: 1px solid #d9f3f1; }
.preview-encouragement > svg { width: 24px; height: 24px; flex: 0 0 auto; fill: #167e90; }
.preview-encouragement strong, .preview-random strong { display: block; font-size: 12px; line-height: 1.4; }
.preview-encouragement p { margin: 5px 0 0; color: #557d8b; font-size: 10px; line-height: 1.6; }
.preview-encouragement-next { display: grid; place-items: center; flex: 0 0 20px; height: 20px; margin-left: auto; border: 1px solid #5d99a3; border-radius: 50%; color: #287584; font-size: 18px; line-height: 1; }
body[data-track-section] .catalogue-preview .preview-random { width: 100%; border: 1px solid #096b7f; background: linear-gradient(125deg, #087b88, #126e91); color: #fff; text-align: left; font-family: inherit; letter-spacing: 0; cursor: pointer; box-shadow: 0 3px 10px #147f9510; }
.preview-random > svg { width: 30px; height: 30px; flex: 0 0 auto; fill: none; stroke: #b6eff4; stroke-width: 1.5; stroke-linejoin: round; }
.preview-random > span:last-child { margin-left: auto; color: #c5f0f4; font-size: 24px; font-weight: 400; }
.preview-random small { display: block; margin-top: 5px; color: #d5eff6; font-size: 9px; line-height: 1.5; font-weight: 500; }
.preview-toolbar { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; align-items: center; margin-bottom: 15px; }
.preview-search { display: flex; align-items: center; min-width: 0; height: 40px; gap: 9px; padding: 0 13px; background: #fff; border: 1px solid #dce8ef; border-radius: 11px; }
.preview-search:focus-within { outline: 3px solid #d9f1f6; border-color: #2499ae; }
.preview-search > svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #8197a5; stroke-width: 1.7; stroke-linecap: round; }
body[data-track-section] .catalogue-preview .test-search { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 11px; color: #204b60; outline: none; }
body[data-track-section] .catalogue-preview .test-search::placeholder { color: #8a9ca9; opacity: 1; }
body[data-track-section] .catalogue-preview .hero-switch { display: flex; flex-wrap: nowrap; min-width: 0; gap: 7px; margin: 0; padding: 0; }
body[data-track-section] .catalogue-preview .hero-switch a { display: inline-flex; justify-content: center; align-items: center; flex: 1 0 auto; min-height: 36px; padding: 7px 11px; background: #eaf2f6; border: 1px solid transparent; border-radius: 24px; color: #507081; font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none; box-shadow: none; animation: none; transition: none; }
body[data-track-section] .catalogue-preview .hero-switch a::before,
body[data-track-section] .catalogue-preview .hero-switch a::after { display: none; }
body[data-track-section] .catalogue-preview .hero-switch a.active { background: linear-gradient(120deg, #087e8d, #27b4bd); color: #fff; box-shadow: 0 2px 7px #12889820; }
body[data-track-section] .catalogue-preview .hero-switch a:hover:not(.active) { background: #d9eaf1; }
.preview-results-line { display: contents; }
.preview-results-line .between-choose { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.preview-results-line #searchCount { display: block; margin: 0 0 12px; color: #477584; font-size: 11px; }
.preview-results-line #searchCount:empty { display: none; }
body[data-track-section] .catalogue-preview .tests-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: none; margin: 0; }
body[data-track-section] .catalogue-preview .section-links { display: flex; flex-direction: column; min-width: 0; gap: 0; margin: 0; padding: 13px; background: #fff; border: 1px solid #dce9ef; border-radius: 11px; color: #17384b; box-shadow: 0 2px 8px #285a740b; overflow: visible; animation: none; transition: none; contain-intrinsic-size: auto 149px; }
body[data-track-section] .catalogue-preview .section-links:hover { transform: none; border-color: #91c9d6; }
body[data-track-section] .catalogue-preview .section-links::before,
body[data-track-section] .catalogue-preview .section-links::after { display: none; }
body[data-track-section] .catalogue-preview [hidden] { display: none !important; }
.preview-card-main { display: grid; grid-template-columns: 90px minmax(0, 1fr) 18px; gap: 12px; align-items: start; }
.preview-art { display: grid; place-items: center; width: 90px; height: 74px; overflow: hidden; border-radius: 7px; background: #e9f4f7; }
.preview-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-art svg { display: block; width: 100%; height: 100%; }
.preview-art-number { background: #117e94; }
.preview-art-link { display: block; width: fit-content; border-radius: 8px; }
.preview-art-link:hover { filter: brightness(1.06); }
.preview-number-value { fill: #fff; font: 800 39px Arial, sans-serif; letter-spacing: -2px; }
.preview-number-label { fill: #e0f7ff; font: 700 7px Arial, sans-serif; letter-spacing: .6px; }
.preview-card-copy { min-width: 0; }
body[data-track-section] .catalogue-preview .big-link.preview-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: auto; min-height: 0; height: auto; margin: 0 0 5px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #153449; text-align: left; font-family: inherit; font-size: 14px; font-weight: 800; line-height: 1.35; text-decoration: none; }
body[data-track-section] .catalogue-preview a.big-link.preview-card-title:hover { transform: none; color: #087e8d; text-decoration: underline; }
.preview-identity { display: inline-block; max-width: 100%; margin-bottom: 6px; padding: 2px 5px; background: #e4f4fc; color: #287eaa; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 1.3; }
.preview-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #78909d; font-size: 10px; line-height: 1.4; }
.preview-facts svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.preview-wave { width: 18px; height: 21px; margin-top: 10px; fill: none; stroke: #79bfd6; stroke-width: 1.6; stroke-linecap: round; }
.preview-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 9px 0 0; color: #7a919e; font-size: 10px; line-height: 1.6; }
.preview-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; margin-top: auto; }
.preview-locked-copy { min-width: 0; }
.preview-locked-copy p { margin: 7px 0 0; color: #526b78; font-size: 12px; line-height: 1.45; }
.preview-state { display: flex; align-items: center; gap: 7px; color: #248fac; font-size: 11px; font-weight: 700; line-height: 1.3; }
.preview-state-icon { display: grid; place-items: center; flex: 0 0 20px; height: 20px; padding-left: 1px; background: #1b9fc1; color: #fff; border-radius: 50%; font-size: 9px; }
.preview-card[data-completed="true"] .preview-state { color: #1b956c; }
.preview-card[data-completed="true"] .preview-state-icon { padding: 0; background: #1caa7b; font-size: 12px; }
body[data-track-section] .catalogue-preview .start-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 82px; width: auto; height: 29px; min-height: 29px; padding: 5px 12px; background: #eef6fa; border: 0; border-radius: 18px; color: #23718a; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.3; box-shadow: none; text-decoration: none; }
body[data-track-section] .catalogue-preview .start-btn:hover { transform: none; background: #d7edf4; color: #086880; }
body[data-track-section] .catalogue-preview .is-premium-locked { filter: none; opacity: 1; background: #f8fbfc; }
.preview-locked-state { color: #7e8a9e; font-size: 11px; font-weight: 700; }
.preview-rules { color: #497c91; font-size: 11px; text-decoration: none; }
body[data-track-section] .catalogue-preview .tests-empty { grid-column: 1 / -1; padding: 40px 20px; background: #fff; border: 1px dashed #bad7e1; border-radius: 12px; text-align: center; }
body[data-track-section] .catalogue-preview a:focus-visible,
body[data-track-section] .catalogue-preview button:focus-visible { outline: 3px solid #30a7bb; outline-offset: 3px; }
@media (max-width: 1150px) {
  .preview-intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
  .preview-intro h1 { font-size: 29px; }
  .preview-intro-actions { gap: 8px; }
  .preview-encouragement, .preview-random { padding: 12px; gap: 8px; }
  .preview-encouragement-next { display: none; }
  .preview-toolbar { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; }
  body[data-track-section] .catalogue-preview .hero-switch a { padding: 7px 9px; font-size: 10px; }
  .preview-card-main { grid-template-columns: 72px minmax(0, 1fr) 14px; gap: 9px; }
  .preview-art { width: 72px; height: 67px; }
  .preview-wave { width: 14px; }
  body[data-track-section] .catalogue-preview .big-link.preview-card-title { font-size: 12px; }
}
@media (max-width: 900px) {
  body[data-track-section] .catalogue-preview { padding: 94px 22px 36px; }
  .preview-intro { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .preview-intro h1 { font-size: 32px; }
  .preview-intro-actions { max-width: 540px; }
  .preview-encouragement, .preview-random { min-height: 79px; }
  .preview-toolbar { grid-template-columns: 1fr; gap: 12px; }
  body[data-track-section] .catalogue-preview .tests-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card-main { grid-template-columns: 80px minmax(0, 1fr) 16px; gap: 10px; }
  .preview-art { width: 80px; height: 70px; }
  body[data-track-section] .catalogue-preview .big-link.preview-card-title { font-size: 13px; }
}
@media (max-width: 600px) {
  body[data-track-section] .catalogue-preview { padding: 88px 16px 32px; }
  .preview-intro { margin-bottom: 17px; }
  .preview-intro h1 { max-width: 355px; font-size: 29px; }
  .preview-intro-copy > p { margin-bottom: 16px; font-size: 12px; }
  .preview-desktop-break { display: none; }
  .preview-progress { gap: 9px; font-size: 10px; }
  .preview-progress .hero-progress-track { flex: 1; min-width: 20px; }
  .preview-intro-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: none; }
  .preview-encouragement, body[data-track-section] .catalogue-preview .preview-random { min-height: 84px; gap: 9px; padding: 11px; }
  .preview-encouragement strong, .preview-random strong { font-size: 11px; }
  .preview-encouragement > svg { width: 18px; height: 18px; }
  .preview-random > svg { width: 23px; height: 23px; }
  .preview-random small { font-size: 8px; }
  .preview-encouragement p { font-size: 9px; }
  .preview-toolbar { gap: 9px; margin-bottom: 11px; }
  body[data-track-section] .catalogue-preview .hero-switch { max-width: 100%; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; scrollbar-color: #b9dce6 transparent; }
  body[data-track-section] .catalogue-preview .hero-switch a { min-height: 38px; padding: 8px 13px; font-size: 10px; }
  body[data-track-section] .catalogue-preview .tests-stack { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  body[data-track-section] .catalogue-preview .section-links { padding: 12px; }
  .preview-card-main { grid-template-columns: 83px minmax(0, 1fr) 16px; gap: 10px; }
  .preview-art { width: 83px; height: 70px; }
  body[data-track-section] .catalogue-preview .big-link.preview-card-title { font-size: 13px; }
  body[data-track-section] .catalogue-preview .start-btn { min-height: 36px; min-width: 86px; font-size: 11px; }
}

/* Clearer hierarchy: the topic is the headline; metadata stays secondary. */
body { background: linear-gradient(120deg, #e0f2f3 0%, #e9f3fa 64%, #e2edf9 100%); }
.preview-eyebrow { display: block; margin-bottom: 10px; color: #287987; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.preview-header-panel {
  padding: 28px; margin-bottom: 25px; border: 1px solid #63b4c7;
  border-radius: 18px;
  background: url("/static/img/listening-preview/header-waves.svg") center / 100% 320px no-repeat,
    radial-gradient(ellipse at 18% 20%, #ffffff12 0%, transparent 45%),
    linear-gradient(130deg, #0d5969 0%, #087c89 48%, #225e8c 76%, #237c9b 100%);
  box-shadow: 0 8px 22px #164b6514;
}
.preview-header-panel .preview-eyebrow { color: #b4e9ee; }
.preview-header-panel .preview-intro h1 { color: #fff; }
.preview-header-panel .preview-intro-copy > p { color: #dfedf3; }
.preview-header-panel .preview-intro { margin-bottom: 25px; }
.preview-header-panel .preview-toolbar { margin-bottom: 0; }
.preview-header-panel .preview-encouragement { border-color: #c6dee5; }
body[data-track-section] .preview-header-panel .hero-switch { background: #f0f7fa; }
body[data-track-section] .catalogue-preview .preview-header-panel .preview-random { border-color: #7bc3ce; }
.preview-intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-bottom: 28px; gap: 36px; }
.preview-intro h1 { margin-bottom: 12px; font-size: clamp(31px, 3vw, 43px); font-weight: 700; letter-spacing: -.035em; }
.preview-intro-copy > p { max-width: 600px; margin: 0; color: #4d6573; font-size: 15px; line-height: 1.65; }
.preview-intro-actions { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 18px; }
.preview-encouragement { min-height: 0; padding: 16px 18px; background: #fff; border-color: #dfe9ec; border-radius: 10px; }
.preview-progress-copy { width: 100%; min-width: 0; }
.preview-encouragement strong { font-size: 13px; font-weight: 600; }
.preview-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; margin-top: 9px; color: #486572; font-size: 11px; font-weight: 500; }
.preview-progress .hero-progress-track { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 6px; }
#previewPercent { min-width: 0; color: #486572; }
.preview-encouragement p { margin-top: 10px; color: #687e88; font-size: 11px; }
body[data-track-section] .catalogue-preview .preview-random { min-height: 82px; padding: 16px; background: #087e8d; box-shadow: none; }
.preview-random strong { font-size: 13px; font-weight: 600; }
.preview-random small { font-size: 11px; color: #d8eef0; }
.preview-random > svg { width: 24px; height: 24px; }
.preview-toolbar { margin-bottom: 21px; gap: 20px; }
.preview-search { height: 48px; border-radius: 9px; border-color: #cedee4; }
body[data-track-section] .catalogue-preview .test-search { height: 44px; font-size: 13px; font-weight: 400; }
body[data-track-section] .catalogue-preview .hero-switch { padding: 4px; gap: 3px; background: #e9f1f4; border-radius: 10px; }
body[data-track-section] .catalogue-preview .hero-switch a { min-height: 38px; padding: 8px 10px; background: transparent; border-radius: 7px; font-size: 12px; font-weight: 600; }
body[data-track-section] .catalogue-preview .hero-switch a.active { background: #087e8d; color: #fff; box-shadow: none; }
body[data-track-section] .catalogue-preview .tests-stack { gap: 18px; }
body[data-track-section] .catalogue-preview .section-links { padding: 18px; border-color: #d8e4e8; border-radius: 12px; box-shadow: 0 2px 5px #254b5d05; contain-intrinsic-size: auto 187px; }
body[data-track-section] .catalogue-preview .section-links:hover { border-color: #80b8c1; background: #fdffff; }
.preview-card-main { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.preview-art { width: 96px; height: 88px; border-radius: 8px; }
.preview-identity { display: inline-block; margin-bottom: 8px; padding: 4px 9px; background: #e6f4f6; color: #126878; border: 1px solid #cee6eb; border-radius: 5px; font-size: 13px; line-height: 1.4; font-weight: 700; }
body[data-track-section] .catalogue-preview .big-link.preview-card-title { margin-bottom: 0; color: #183849; font-size: 16px; font-weight: 700; line-height: 1.4; }
.preview-facts { color: #627b87; font-size: 12px; }
.preview-card-footer { margin-top: auto; padding-top: 12px; }
.preview-state { gap: 6px; padding: 7px 11px; min-height: 34px; box-sizing: border-box; border: 1px solid #b8d5e2; border-radius: 6px; background: #e0eef6; color: #244e68; font-size: 13px; font-weight: 700; }
.preview-state-icon { display: none; }
/* Keep each section's status beside its label, without adding a header row. */
body[data-track-section] .catalogue-preview .preview-card:not(.cat-full):not(.is-premium-locked) { position: relative; }
.preview-card:not(.cat-full):not(.is-premium-locked) .preview-state { position: absolute; top: 16px; right: 16px; }
.preview-card:not(.cat-full):not(.is-premium-locked) .preview-card-main { align-items: start; }
.preview-card:not(.cat-full):not(.is-premium-locked) .preview-identity { margin-right: 70px; }
.preview-card:not(.cat-full) .preview-card-copy { align-self: stretch; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.preview-card:not(.cat-full) .preview-card-copy .preview-identity { justify-self: start; margin-bottom: 0; }
body[data-track-section] .catalogue-preview .preview-card:not(.cat-full) .preview-card-title { align-self: center; margin: 0; }
.preview-card-footer .start-btn { margin-left: auto; }
.preview-card[data-completed="true"] .preview-state { background: #c9efd5; color: #125b2b; border-color: #86c99b; box-shadow: none; }
.preview-card[data-completed="true"] .preview-state-icon { display: inline-flex; flex: 0 0 auto; height: auto; padding: 0; background: none; color: #146c32; font-size: 12px; }
body[data-track-section] .catalogue-preview .start-btn { min-width: 128px; min-height: 44px; height: 44px; padding: 10px 20px; gap: 16px; border: 1px solid #087989; border-radius: 8px; background: #098394; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 3px 0 #066574, 0 5px 10px #09839420; }
body[data-track-section] .catalogue-preview .start-btn > span:last-child { font-size: 20px; line-height: 1; }
body[data-track-section] .catalogue-preview .start-btn:hover { background: #087383; color: #fff; }
.preview-summary { color: #627b87; font-size: 12px; }
.cat-full .preview-card-main { align-items: start; }
.preview-full-heading { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 8px; }
.preview-full-heading .preview-state { margin-left: auto; }
body[data-track-section] .catalogue-preview .preview-full-heading .big-link.preview-card-title { margin-bottom: 0; }
.cat-full .preview-art-number {
  position: relative;
  align-self: start; height: 170px; min-height: 170px;
  border-radius: 10px;
  background: url("/static/img/listening-preview/header-waves.svg") center / auto 100% no-repeat, radial-gradient(ellipse at 0% 0%, #40b7bd80, transparent 70%), linear-gradient(165deg, #116d80, #154f70);
  box-shadow: inset 0 0 0 1px #ffffff26, 0 3px 8px #16546912;
}
.cat-full .preview-art-number::before { content: "TEST"; position: absolute; top: 16px; left: 0; right: 0; color: #c9edef; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
/* Stretch the tile, while keeping its number and lettering undistorted. */
.cat-full .preview-art-number svg { height: auto; }
.cat-full .preview-art-number svg > path { display: none; }
.cat-full .preview-number-value { font-size: 50px; letter-spacing: -1px; }
.cat-full .preview-number-label { display: none; }
.cat-full .preview-card-main { margin-bottom: 4px; }
.cat-full .preview-card-footer { padding-top: 0; }
.preview-section-topics { list-style: none; margin: 8px 0 0; padding: 0; }
.preview-section-topics li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; color: #213f4e; font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.preview-section-topics li + li { border-top: 1px solid #dbe8ed; }
.cat-full .preview-section-topics li > span:last-child { color: #203e4c; font-weight: 600; }
.preview-topic-section { color: #146779; font-size: 12px; font-weight: 700; white-space: nowrap; }
.preview-section-topics { cursor: text; }
body[data-track-section] .catalogue-preview .preview-card-copy,
body[data-track-section] .catalogue-preview .preview-card-copy * { -webkit-user-select: text; user-select: text; }
body[data-track-section] .catalogue-preview .preview-card-title { -webkit-user-drag: none; }
body[data-track-section] .catalogue-preview .cat-full .big-link.preview-card-title { font-size: 18px; margin-bottom: 6px; }
.cat-full .preview-facts { color: #526b78; line-height: 1.5; }
@media (max-width: 1150px) {
  .preview-intro { gap: 24px; }
  .preview-intro-actions { gap: 12px; }
  .preview-card-main { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .preview-art { width: 78px; height: 82px; }
  body[data-track-section] .catalogue-preview .section-links { padding: 15px; }
  body[data-track-section] .catalogue-preview .big-link.preview-card-title { font-size: 14px; }
  body[data-track-section] .catalogue-preview .hero-switch a { padding: 8px; font-size: 11px; }
}
@media (max-width: 900px) {
  .preview-intro { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .preview-intro-actions { max-width: 620px; }
  .preview-intro-copy > p { font-size: 14px; }
  .preview-card-main { grid-template-columns: 88px minmax(0, 1fr); }
  .preview-art { width: 88px; height: 84px; }
  body[data-track-section] .catalogue-preview .big-link.preview-card-title { font-size: 15px; }
}
@media (max-width: 600px) {
  .preview-eyebrow { font-size: 10px; }
  .preview-header-panel { padding: 18px 15px; margin-bottom: 19px; border-radius: 14px; background-size: 100% 300px, auto, auto; }
  .preview-intro h1 { font-size: 32px; }
  .preview-intro-copy > p { font-size: 14px; }
  .preview-intro-actions { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
  .preview-encouragement { padding: 12px; }
  .preview-encouragement strong { font-size: 12px; }
  .preview-progress { gap: 7px; font-size: 9px; }
  .preview-encouragement p { font-size: 10px; }
  body[data-track-section] .catalogue-preview .preview-random { padding: 12px; gap: 9px; min-height: 90px; }
  .preview-random > svg { display: none; }
  .preview-random strong { font-size: 12px; }
  .preview-random small { font-size: 10px; }
  .preview-toolbar { gap: 12px; margin-bottom: 16px; }
  body[data-track-section] .catalogue-preview .hero-switch { padding: 4px; }
  body[data-track-section] .catalogue-preview .hero-switch a { min-height: 38px; padding: 8px 12px; }
  body[data-track-section] .catalogue-preview .tests-stack { gap: 13px; }
  body[data-track-section] .catalogue-preview .section-links { padding: 16px; }
  .preview-card-main { grid-template-columns: 80px minmax(0, 1fr); gap: 13px; }
  .preview-art { width: 80px; height: 80px; }
  .preview-identity { font-size: 12px; }
  .preview-card-footer { padding-top: 15px; }
}

/* Keep navigation separate from the banner; progress belongs on the banner. */
.preview-header-panel { padding: 24px 28px; margin-bottom: 14px; }
.preview-header-panel .preview-intro { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; margin: 0; }
.preview-header-panel .preview-intro h1 { margin-bottom: 9px; font-size: clamp(30px, 2.6vw, 38px); }
.preview-header-panel .preview-intro-copy > p { max-width: none; font-size: 14px; }
.preview-intro-actions { grid-template-columns: minmax(180px, 265px) auto; gap: 22px; align-items: center; }
.preview-compact-progress { min-width: 0; }
.preview-progress-heading { display: block; margin-bottom: 8px; color: #e3f6fb; font-size: 12px; font-weight: 600; }
.preview-header-panel .preview-intro-copy > p strong { color: #fff; font-weight: 600; }
.preview-sticky-header {
  position: sticky; top: var(--preview-nav-height, 72px); z-index: 30;
  flex-shrink: 0; padding: 8px 0 12px; margin-bottom: 11px;
  background: transparent; isolation: isolate;
}
.preview-sticky-header .preview-toolbar { margin-bottom: 0; }
.preview-sticky-header::before {
  content: ""; position: absolute; inset-block: 0; z-index: -1;
  left: calc(-1 * var(--preview-page-gutter, 0px));
  right: calc(-1 * var(--preview-page-gutter, 0px));
  background: #e5f2f6; pointer-events: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .preview-sticky-header::before {
    background: rgb(226 241 246 / 86%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.preview-sticky-header::after {
  content: ""; position: absolute; bottom: 0;
  left: calc(-1 * var(--preview-page-gutter, 0px));
  right: calc(-1 * var(--preview-page-gutter, 0px));
  height: 2px; background: #72afbe; pointer-events: none;
}
body[data-track-section] .catalogue-preview .preview-card {
  scroll-margin-top: calc(var(--preview-nav-height, 72px) + var(--preview-sticky-height, 230px) + 12px);
}
.preview-compact-progress .preview-progress { margin: 0; gap: 9px; color: #f0fbff; font-size: 12px; }
.preview-compact-progress #previewPercent { color: #d6f0f6; }
.preview-compact-progress .hero-progress-track { background: #ffffff30; height: 5px; }
.preview-compact-progress .hero-progress-fill { background: #88e1df; }
body[data-track-section] .catalogue-preview .preview-header-panel .preview-random {
  width: auto; min-height: 42px; padding: 10px 15px; gap: 14px;
  background: transparent; border: 1px solid #9acbd5; border-radius: 8px;
  color: #fff; font-size: 13px; line-height: 1.35; font-weight: 600; white-space: nowrap;
}
body[data-track-section] .catalogue-preview .preview-header-panel .preview-random:hover { background: #ffffff12; }
.preview-random > span:last-child { font-size: 18px; color: #def6fb; }
.preview-toolbar { padding: 13px; margin-bottom: 23px; background: #f8fcfd; border: 1px solid #c9dfe7; border-radius: 12px; gap: 18px; }
.preview-search { height: 45px; }
body[data-track-section] .catalogue-preview .test-search { height: 41px; }
@media (max-width: 1150px) {
  .preview-header-panel .preview-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 23px; }
  .preview-intro-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 15px; }
}
@media (max-width: 900px) {
  .preview-header-panel .preview-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .preview-intro-actions { width: 100%; max-width: 530px; }
}
@media (max-width: 600px) {
  .preview-header-panel { padding: 20px 15px; margin-bottom: 12px; }
  .preview-header-panel .preview-intro h1 { font-size: 30px; }
  .preview-intro-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; }
  .preview-compact-progress .preview-progress { font-size: 10px; }
  body[data-track-section] .catalogue-preview .preview-header-panel .preview-random { min-height: 40px; padding: 9px 11px; gap: 8px; font-size: 11px; }
  .preview-toolbar { padding: 10px; gap: 10px; margin-bottom: 18px; }
}

/* Keep controls on the page background rather than inside a second panel. */
.preview-toolbar {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr);
  padding: 12px 16px; gap: 22px; border: 0;
  background: transparent; border-radius: 0; box-shadow: none;
}
.preview-search {
  height: 46px; padding: 0 15px; gap: 11px; border: 1px solid transparent;
  background: #f1f6f8; border-radius: 7px;
}
.preview-search > svg { width: 19px; height: 19px; stroke: #448190; }
.preview-search:focus-within { background: #fff; border-color: #6cabb8; outline: 3px solid #e3f2f5; }
body[data-track-section] .catalogue-preview .test-search { height: 42px; font-size: 14px; }
body[data-track-section] .catalogue-preview .test-search::placeholder { color: #718a97; }
body[data-track-section] .catalogue-preview .hero-switch {
  align-items: stretch; gap: 8px; padding: 0 0 0 18px; background: transparent; border-radius: 0;
  border-left: 1px solid #d9e6ec;
}
body[data-track-section] .catalogue-preview .hero-switch a {
  min-height: 44px; padding: 10px 12px; gap: 8px; color: #365c6d;
  font-size: 13px; font-weight: 600; border-radius: 8px; border: 1px solid #bad4de;
  background: #f0f7f9; box-shadow: 0 2px 0 #dce9ee;
}
body[data-track-section] .catalogue-preview .hero-switch a:hover:not(.active) { background: #e0f0f4; color: #176a7c; border-color: #70adbc; }
body[data-track-section] .catalogue-preview .hero-switch a:focus-visible { outline: 3px solid #71bdce; outline-offset: 3px; }
body[data-track-section] .catalogue-preview .hero-switch a.active { border-color: #087480; background: #087e8d; color: #fff; box-shadow: 0 2px 0 #075d68; }
body[data-track-section] .catalogue-preview .hero-switch a[data-category="full"] {
  margin-left: 0;
}
body[data-track-section] .catalogue-preview .hero-switch a[data-category="full"].active { border-color: #087480; background: #087e8d; color: #fff; }
.preview-filter-icon { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.preview-header-panel .preview-intro h1 {
  display: flex; align-items: center; gap: 15px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700; letter-spacing: normal;
}
.preview-header-panel .preview-intro h1::before {
  content: ""; display: block; flex: 0 0 47px; width: 47px; height: 53px;
  background: url("/static/img/listening-preview/headphones-outline.svg") center / contain no-repeat;
  opacity: .8;
}
@media (max-width: 600px) {
  .preview-header-panel .preview-intro h1 { font-size: 28px; gap: 10px; }
  .preview-header-panel .preview-intro h1::before { flex-basis: 34px; width: 34px; height: 40px; }
}
@media (max-width: 1150px) {
  .preview-toolbar { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); gap: 14px; }
  body[data-track-section] .catalogue-preview .hero-switch { gap: 6px; padding-left: 12px; }
  body[data-track-section] .catalogue-preview .hero-switch a { padding: 9px 8px; gap: 5px; font-size: 12px; }
  body[data-track-section] .catalogue-preview .hero-switch a[data-category="full"] { margin-left: 0; }
}
@media (max-width: 900px) {
  .preview-toolbar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-track-section] .catalogue-preview .hero-switch { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .preview-toolbar { padding: 11px; gap: 10px; }
  /* Keep the catalogue controls in view without the tall banner on phones. */
  body[data-track-section] .catalogue-preview .preview-header-panel { display: none; }
  body[data-track-section] .catalogue-preview .test-search { font-size: 13px; }
  body[data-track-section] .catalogue-preview .hero-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 8px; overflow: visible; }
  body[data-track-section] .catalogue-preview .hero-switch a { min-width: 0; min-height: 40px; padding: 9px 5px; font-size: 11px; }
  .preview-filter-icon { display: none; }
}
