/* INTRO contextual audio entry and native library dialog.
   Load after v4-scoped.css. No global theme or catalogue rewrite. */

#intro-audio-entry {
  --ivd-entry-ink: #1c4333;
  --ivd-entry-muted: #58675c;
  --ivd-entry-gold: #aa8b50;
  --ivd-entry-line: #d6cfba;
  box-sizing: border-box;
  padding: clamp(24px, 3.2vw, 46px) 0;
  background: #f4eee3;
  color: var(--ivd-entry-ink);
  font: 15px/1.6 Manrope, system-ui, sans-serif;
  scroll-margin-top: 180px;
}

#intro-audio-entry *,
#intro-audio-entry *::before,
#intro-audio-entry *::after { box-sizing: border-box; }
#intro-audio-entry .ivd-audio-entry-shell { width: 88%; max-width: 1440px; margin-inline: auto; }
#intro-audio-entry .ivd-audio-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 32%);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 48px) 0;
  background: #fbf9f2;
  border: 1px solid var(--ivd-entry-line);
  border-top: 2px solid var(--ivd-entry-gold);
  border-radius: 6px;
  box-shadow: 0 8px 26px rgb(34 53 38 / 3%);
  min-width: 0;
}
#intro-audio-entry .ivd-audio-entry-copy { min-width: 0; padding-block: 4px 26px; }
#intro-audio-entry .ivd-audio-entry-eyebrow {
  margin: 0 0 12px;
  color: #64705b;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
#intro-audio-entry #intro-audio-entry-title {
  margin: 0 0 15px;
  color: var(--ivd-entry-ink);
  font: 500 clamp(31px, 3.5vw, 49px)/1.07 "IVDIVO Cormorant", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#intro-audio-entry .ivd-audio-entry-description { max-width: 54ch; margin: 0 0 18px; color: var(--ivd-entry-muted); font-size: 15px; line-height: 1.6; }
#intro-audio-entry .ivd-audio-entry-stats { display: flex; flex-wrap: wrap; gap: 5px 0; margin: 0 0 23px; color: #51624f; font-size: 12px; line-height: 1.6; }
#intro-audio-entry .ivd-audio-entry-stats > span { display: inline-flex; align-items: baseline; gap: .3em; }
#intro-audio-entry .ivd-audio-entry-stats > span + span::before { content: "·"; margin-inline: 10px; color: #a38b5b; }
#intro-audio-entry .ivd-audio-entry-stats strong { color: var(--ivd-entry-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
#intro-audio-entry .ivd-audio-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; }
#intro-audio-entry .ivd-audio-entry-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.5;
}
#intro-audio-entry .ivd-audio-entry-primary { color: #fffaf0; background: #1d4937; border: 1px solid #1d4937; border-radius: 4px; padding: 11px 19px; transition: background-color .18s ease; }
#intro-audio-entry .ivd-audio-entry-primary:hover { color: #fffaf0; background: #123b2b; }
#intro-audio-entry .ivd-audio-entry-primary svg { flex: 0 0 19px; }
#intro-audio-entry .ivd-audio-entry-primary > span:last-child { margin-left: 6px; font-size: 17px; font-weight: 400; }
#intro-audio-entry .ivd-audio-entry-secondary { color: var(--ivd-entry-ink); border-bottom: 1px solid #b6a681; padding: 10px 0 8px; }
#intro-audio-entry .ivd-audio-entry-secondary:hover { color: #0e3124; border-bottom-color: #244e38; }
#intro-audio-entry .ivd-audio-entry-art { position: relative; width: 100%; max-width: 350px; height: 245px; margin-inline: auto; min-width: 0; }
#intro-audio-entry .ivd-audio-entry-cover { display: block; position: absolute; width: 53%; height: auto; aspect-ratio: 1; object-fit: cover; border: 5px solid #fffdf6; border-radius: 3px; box-shadow: 0 9px 23px rgb(31 47 33 / 17%); }
#intro-audio-entry .ivd-audio-entry-cover-back { top: 8%; left: 3%; transform: rotate(-8deg); }
#intro-audio-entry .ivd-audio-entry-cover-side { top: 13%; right: 2%; transform: rotate(9deg); }
#intro-audio-entry .ivd-audio-entry-cover-front { top: 17%; left: 23%; z-index: 1; transform: rotate(-1deg); }
#intro-audio-entry .ivd-audio-entry-art-caption { position: absolute; inset: auto 0 9px; text-align: center; font: italic 19px/1.3 "IVDIVO Cormorant", "Cormorant Garamond", Georgia, serif; color: #69705a; }
#intro-audio-entry .ivd-audio-entry-topics { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(15px, 2.4vw, 32px); margin-top: 3px; padding: 11px 0 14px; border-top: 1px solid var(--ivd-entry-line); }
#intro-audio-entry .ivd-audio-entry-topics-label { font-size: 11px; color: var(--ivd-entry-muted); margin-right: auto; }
#intro-audio-entry .ivd-audio-entry-topics a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ivd-entry-ink); font-size: 12px; text-decoration: none; line-height: 1.4; }
#intro-audio-entry .ivd-audio-entry-topics a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
#intro-audio-entry .ivd-audio-entry-topic-count { color: #6a735f; font-size: 10px; font-variant-numeric: tabular-nums; }
#intro-audio-entry .ivd-audio-entry-topics a > span:last-child { color: #957b43; }
#intro-audio-entry a:focus-visible { outline: 3px solid #8a6427; outline-offset: 5px; }

/* The existing catalogue nodes are moved once into this dialog.
   Header + local nav + scrollable main + player are separate layout rows. */
body.ivd-library-open { overflow: hidden; overscroll-behavior: none; }
body.ivd-mini-visible:not(.ivd-library-open) { padding-bottom: max(144px, calc(128px + env(safe-area-inset-bottom))); }
#ivdivo-v4-app.ivd-portal-enabled { background: transparent; padding-bottom: 0 !important; }
#ivdivo-v4-app #ivd-intro-library-dialog {
  box-sizing: border-box;
  width: min(1440px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
  margin: 24px auto;
  padding: 0;
  border: 1px solid #bfb79f;
  border-radius: 10px;
  color: #173c2c;
  background: #fbf9f2;
  overflow: hidden;
  box-shadow: 0 24px 80px rgb(10 31 21 / 24%);
  inset: 0;
}
#ivdivo-v4-app #ivd-intro-library-dialog:not([open]) { display: none; }
#ivdivo-v4-app #ivd-intro-library-dialog[open] { display: flex; flex-direction: column; }
#ivdivo-v4-app #ivd-intro-library-dialog::backdrop { background: rgb(9 29 20 / 62%); backdrop-filter: blur(2px); }
#ivdivo-v4-app .ivd-library-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 30px 16px; border-bottom: 1px solid #d5c9ab; background: #f7f2e7; position: sticky; top: 0; flex: 0 0 auto; z-index: 3; }
#ivdivo-v4-app .ivd-library-heading { min-width: 0; }
#ivdivo-v4-app #ivd-library-title { font: 600 29px/1.08 "IVDIVO Cormorant", "Cormorant Garamond", Georgia, serif; letter-spacing: -.015em; color: #214a36; margin: 0; }
#ivdivo-v4-app .ivd-library-context { font: 12px/1.5 Manrope, system-ui, sans-serif; color: #66735d; margin: 5px 0 0; overflow-wrap: anywhere; }
#ivdivo-v4-app .ivd-library-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 14px; }
#ivdivo-v4-app .ivd-library-page-link { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: #36583f; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
#ivdivo-v4-app .ivd-library-close { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; border: 1px solid #bcbca7; background: #fffdf7; border-radius: 5px; padding: 8px 12px; font-size: 13px; color: #214331; }
#ivdivo-v4-app .ivd-library-close:hover { background: #ebeade; }
#ivdivo-v4-app .ivd-library-content { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; background: #fcfaf5; }
#ivdivo-v4-app .ivd-library-content > .ivv4-local-nav { grid-column: 1; grid-row: 1; flex: 0 0 auto; padding-block: 2px; background: #fffdf7; border-color: #e1dccd; }
#ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .container { width: calc(100% - 60px); }
#ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .primary-nav { flex-wrap: wrap; gap: 1px 24px; min-width: 0; height: auto; min-height: 44px; }
#ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .primary-nav a { min-height: 44px; white-space: normal; }
#ivdivo-v4-app .ivd-library-content > #main-content { grid-column: 1; grid-row: 2; overflow-x: hidden; overflow-y: auto; min-width: 0; min-height: 0; padding-bottom: 24px; scrollbar-gutter: stable; overscroll-behavior: contain; scroll-padding-top: 20px; }
#ivdivo-v4-app .ivd-library-content > #main-content .container { width: min(1280px, calc(100% - 60px)); }
#ivdivo-v4-app #ivd-intro-library-dialog .page-intro { padding-top: 28px; }
#ivdivo-v4-app #ivd-intro-library-dialog .page-intro::before { content: none; }
#ivdivo-v4-app #ivd-intro-library-dialog .page-intro h1,
#ivdivo-v4-app #ivd-intro-library-dialog .page-intro h2[data-intro-heading] { font-size: clamp(32px, 3.4vw, 48px); }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-grid { gap: 22px; }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-card { display: flex; flex-direction: column; padding: 0 25px 24px; min-width: 0; }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-card::after { display: none; }
#ivdivo-v4-app #ivd-intro-library-dialog .ivd-collection-art { margin: 0 -25px 22px; height: clamp(140px, 15vw, 195px); background: #e5e3d5; overflow: hidden; flex: 0 0 auto; }
#ivdivo-v4-app #ivd-intro-library-dialog .ivd-collection-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-card .collection-number { margin-bottom: 12px; font-size: 25px; }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-card h2 { font-size: 27px; }
#ivdivo-v4-app #ivd-intro-library-dialog .collection-card p { flex: 1 1 auto; }
#ivdivo-v4-app #ivd-intro-library-dialog #player { position: static; grid-column: 1; grid-row: 3; width: 100%; min-width: 0; margin: 0; inset: auto; z-index: 2; background: #fffdf8; padding-top: 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid #c9c4ac; box-shadow: 0 -5px 20px rgb(29 51 35 / 4%); }
#ivdivo-v4-app #ivd-intro-library-dialog #player .container { width: calc(100% - 48px); }
#ivdivo-v4-app #ivd-intro-library-dialog #player :is(button, select, .queue-link) { min-width: 44px; min-height: 44px; }
#ivdivo-v4-app #ivd-intro-library-dialog #player .player-progress input { min-height: 28px; }
#ivdivo-v4-app #ivd-intro-library-dialog #toast { position: absolute; bottom: 18px; z-index: 4; }
body.player-open #ivdivo-v4-app #ivd-intro-library-dialog #toast { bottom: 150px; }
#ivdivo-v4-app #ivd-intro-library-dialog :is(a, button, input, select, summary):focus-visible { outline: 3px solid #876321; outline-offset: 4px; }

/* Compact controls share the existing audio element; no second player engine. */
#ivdivo-v4-app .ivd-mini-player { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(860px, calc(100% - 32px)); max-width: calc(100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 12px 18px 10px; border: 1px solid #aaa88d; border-top: 2px solid #aa8b50; border-radius: 8px; background: #fcf9f0; box-shadow: 0 8px 35px rgb(20 43 29 / 20%); color: #244a35; z-index: 100000; }
#ivdivo-v4-app .ivd-mini-player[hidden] { display: none !important; }
#ivdivo-v4-app .ivd-mini-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
#ivdivo-v4-app .ivd-mini-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; min-height: 44px; max-width: 100%; width: 100%; overflow: hidden; padding: 2px 0; margin: 0; border: 0; background: transparent; color: #1b4330; font-size: 13px; font-weight: 650; line-height: 1.45; }
#ivdivo-v4-app .ivd-mini-title:hover { text-decoration: underline; text-underline-offset: 3px; }
#ivdivo-v4-app .ivd-mini-status { color: #66715d; font-size: 10px; line-height: 1.4; }
#ivdivo-v4-app .ivd-mini-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
#ivdivo-v4-app .ivd-mini-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid #b6b9a2; border-radius: 5px; color: #244a35; background: #fffdf6; font-size: 12px; font-weight: 600; line-height: 1.3; }
#ivdivo-v4-app .ivd-mini-actions .ivd-mini-toggle { color: #fffaf0; background: #204d37; border-color: #204d37; }
#ivdivo-v4-app .ivd-mini-actions .ivd-mini-toggle svg,
#ivdivo-v4-app .ivd-mini-actions .ivd-mini-toggle img { width: 18px; height: 18px; }
#ivdivo-v4-app .ivd-mini-actions .ivd-mini-toggle img { filter: brightness(0) invert(1); }
#ivdivo-v4-app .ivd-mini-actions .ivd-mini-close { font-size: 17px; font-weight: 400; }
#ivdivo-v4-app .ivd-mini-actions > button:hover { border-color: #385e3f; }
#ivdivo-v4-app .ivd-mini-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; }
#ivdivo-v4-app .ivd-mini-progress progress { display: block; appearance: none; border: 0; border-radius: 3px; width: 100%; height: 4px; min-width: 0; overflow: hidden; background: #e0dfd1; accent-color: #5e7851; }
#ivdivo-v4-app .ivd-mini-progress progress::-webkit-progress-bar { background: #e0dfd1; border-radius: 3px; }
#ivdivo-v4-app .ivd-mini-progress progress::-webkit-progress-value { background: #5e7851; border-radius: 3px; }
#ivdivo-v4-app .ivd-mini-progress progress::-moz-progress-bar { background: #5e7851; border-radius: 3px; }
#ivdivo-v4-app .ivd-mini-time { flex: 0 0 auto; color: #65715e; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 1000px) {
  #intro-audio-entry .ivd-audio-entry-card { grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; padding-inline: 27px; }
  #intro-audio-entry .ivd-audio-entry-art { height: 210px; }
  #intro-audio-entry .ivd-audio-entry-art-caption { bottom: 20px; }
  #intro-audio-entry .ivd-audio-entry-topics-label { flex-basis: 100%; margin-top: 2px; }
  #intro-audio-entry .ivd-audio-entry-topics { gap: 2px 22px; }
  #ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .ivv4-local-label { display: none; }
}
@media (max-width: 760px) {
  #intro-audio-entry { scroll-margin-top: 110px; }
  #intro-audio-entry .ivd-audio-entry-shell { width: calc(100% - 36px); }
  #intro-audio-entry .ivd-audio-entry-card { grid-template-columns: minmax(0, 1fr); padding: 25px 24px 0; gap: 0; }
  #intro-audio-entry .ivd-audio-entry-copy { padding-bottom: 14px; }
  #intro-audio-entry #intro-audio-entry-title { font-size: clamp(34px, 5vw, 43px); }
  #intro-audio-entry .ivd-audio-entry-art { grid-row: 2; height: 155px; max-width: 300px; margin-block: 9px 17px; }
  #intro-audio-entry .ivd-audio-entry-cover { width: 42%; border-width: 4px; }
  #intro-audio-entry .ivd-audio-entry-cover-back { top: 4%; left: 5%; }
  #intro-audio-entry .ivd-audio-entry-cover-front { top: 9%; left: 29%; }
  #intro-audio-entry .ivd-audio-entry-cover-side { top: 4%; right: 4%; }
  #intro-audio-entry .ivd-audio-entry-art-caption { display: none; }
  #intro-audio-entry .ivd-audio-entry-topics { grid-row: 3; padding-block: 10px 12px; }
  #ivdivo-v4-app #ivd-intro-library-dialog { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  #ivdivo-v4-app .ivd-library-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: max(12px, env(safe-area-inset-top)) 18px 9px; }
  #ivdivo-v4-app .ivd-library-heading { grid-column: 1; grid-row: 1; }
  #ivdivo-v4-app #ivd-library-title { font-size: 26px; }
  #ivdivo-v4-app .ivd-library-context { font-size: 11px; }
  #ivdivo-v4-app .ivd-library-actions { display: contents; }
  #ivdivo-v4-app .ivd-library-close { grid-column: 2; grid-row: 1; min-height: 44px; padding-inline: 10px; }
  #ivdivo-v4-app .ivd-library-page-link { grid-column: 1 / -1; grid-row: 2; width: fit-content; min-height: 44px; font-size: 11px; }
  #ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .container { width: calc(100% - 36px); }
  #ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .primary-nav { gap: 0 17px; justify-content: flex-start; }
  #ivdivo-v4-app .ivd-library-content > .ivv4-local-nav .primary-nav a { font-size: 11px; }
  #ivdivo-v4-app .ivd-library-content > #main-content .container { width: calc(100% - 36px); }
  #ivdivo-v4-app #ivd-intro-library-dialog .page-intro { padding-top: 22px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .page-intro h1,
  #ivdivo-v4-app #ivd-intro-library-dialog .page-intro h2[data-intro-heading] { font-size: 34px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-card { padding: 0 18px 20px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-card h2 { font-size: 25px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .ivd-collection-art { margin-inline: -18px; height: 150px; }
  #ivdivo-v4-app #ivd-intro-library-dialog #player .container { width: calc(100% - 32px); }
  body.player-open #ivdivo-v4-app #ivd-intro-library-dialog #toast { bottom: 205px; }
}
@media (max-width: 520px) {
  #intro-audio-entry .ivd-audio-entry-card { padding-inline: 20px; }
  #intro-audio-entry .ivd-audio-entry-description { font-size: 14px; }
  #intro-audio-entry .ivd-audio-entry-stats { font-size: 11px; }
  #intro-audio-entry .ivd-audio-entry-stats > span + span::before { margin-inline: 7px; }
  #intro-audio-entry .ivd-audio-entry-actions { gap: 8px 20px; }
  #intro-audio-entry .ivd-audio-entry-actions a { font-size: 12px; }
  #intro-audio-entry .ivd-audio-entry-primary { padding-inline: 14px; }
  #intro-audio-entry .ivd-audio-entry-topics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  #intro-audio-entry .ivd-audio-entry-topics-label { margin: 2px 0 5px; }
  #intro-audio-entry .ivd-audio-entry-topics a { width: fit-content; max-width: 100%; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-grid { grid-template-columns: minmax(0, 1fr); }
  #ivdivo-v4-app #ivd-intro-library-dialog .ivd-collection-art { height: 180px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-card .collection-number { font-size: 23px; margin-bottom: 8px; }
  #ivdivo-v4-app #ivd-intro-library-dialog .collection-card p { margin-bottom: 16px; }
  #ivdivo-v4-app .ivd-mini-player { width: calc(100% - 20px); max-width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom)); gap: 5px 9px; padding: 10px 12px 8px; }
  #ivdivo-v4-app .ivd-mini-actions { gap: 4px; }
  #ivdivo-v4-app .ivd-mini-actions > button { padding-inline: 8px; font-size: 11px; }
  #ivdivo-v4-app .ivd-mini-title { font-size: 12px; }
  #ivdivo-v4-app .ivd-mini-progress { gap: 8px; }
}
@media (max-width: 380px) {
  #intro-audio-entry .ivd-audio-entry-shell { width: calc(100% - 24px); }
  #intro-audio-entry .ivd-audio-entry-actions { gap: 5px 15px; }
  #intro-audio-entry .ivd-audio-entry-primary { width: 100%; }
  #intro-audio-entry .ivd-audio-entry-art { max-width: 255px; height: 135px; }
  #ivdivo-v4-app .ivd-mini-player { grid-template-columns: minmax(0, 1fr); }
  #ivdivo-v4-app .ivd-mini-actions { justify-content: flex-start; }
  #ivdivo-v4-app .ivd-mini-title { min-height: 44px; }
  body.ivd-mini-visible:not(.ivd-library-open) { padding-bottom: max(185px, calc(170px + env(safe-area-inset-bottom))); }
}
/* Landscape and zoomed viewports keep a usable catalogue area. If the fixed
   controls exceed the available height, the content grid itself can scroll. */
@media (max-height: 520px) {
  #ivdivo-v4-app #ivd-intro-library-dialog { height: 100vh; height: 100dvh; max-height: 100dvh; margin-block: 0; border-radius: 0; }
  #ivdivo-v4-app .ivd-library-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 18px; }
  #ivdivo-v4-app .ivd-library-heading { grid-column: 1; grid-row: 1; }
  #ivdivo-v4-app #ivd-library-title { font-size: 23px; }
  #ivdivo-v4-app .ivd-library-context { font-size: 10px; line-height: 1.4; margin-top: 2px; }
  #ivdivo-v4-app .ivd-library-actions { display: contents; }
  #ivdivo-v4-app .ivd-library-page-link { grid-column: 2; grid-row: 1; min-height: 44px; max-width: 14ch; font-size: 11px; }
  #ivdivo-v4-app .ivd-library-close { grid-column: 3; grid-row: 1; min-height: 44px; padding-inline: 9px; }
  #ivdivo-v4-app .ivd-library-content { grid-template-rows: auto minmax(104px, 1fr) auto; overflow-y: auto; }
  #ivdivo-v4-app .ivd-library-content > #main-content { min-height: 104px; overscroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #intro-audio-entry *,
  #ivdivo-v4-app #ivd-intro-library-dialog *,
  #ivdivo-v4-app .ivd-mini-player * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  #intro-audio-entry .ivd-audio-entry-card,
  #ivdivo-v4-app #ivd-intro-library-dialog,
  #ivdivo-v4-app .ivd-library-bar,
  #ivdivo-v4-app .ivd-mini-player { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  #intro-audio-entry .ivd-audio-entry-primary,
  #ivdivo-v4-app .ivd-library-close,
  #ivdivo-v4-app .ivd-mini-actions > button { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  #intro-audio-entry .ivd-audio-entry-cover { box-shadow: none; border: 1px solid CanvasText; }
}

/* Keep the reading index while the catalogue is accessed through its portal. */
#ivd-english-intro-release.ivd-portal-enabled > .ivd-intro-release-heading{display:none}
#ivdivo-v4-app .ivd-library-loading{padding:36px 30px;color:#58675c}
#intro-audio-entry .ivd-audio-entry-reading{grid-column:1/-1;margin:0;padding:2px 0 0;font:14px/1.6 system-ui,sans-serif;color:#58675c}
#intro-audio-entry .ivd-audio-entry-reading a{display:inline-flex;align-items:center;min-height:44px;color:#244a35;text-underline-offset:4px;gap:8px}
