.materials-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -10%, rgba(72, 111, 255, .13), transparent 32rem),
    radial-gradient(circle at 88% 14%, rgba(109, 75, 255, .08), transparent 30rem),
    var(--bg);
}

.materials-ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .15;
  pointer-events: none;
}
.materials-ambient-one { top: 12vh; left: -240px; background: #406dff; }
.materials-ambient-two { top: 46vh; right: -260px; background: #724dff; }

.materials-header {
  width: min(calc(100% - 72px), 1480px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(154, 181, 232, .12);
}
.materials-top-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: #93a3ba; }
.materials-top-nav a { transition: color .2s ease; }
.materials-top-nav a:hover { color: #fff; }

.materials-hero {
  width: min(calc(100% - 72px), 1480px);
  margin: 0 auto;
  padding: 64px 0 54px;
}
.materials-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(54px, 6.2vw, 92px);
  line-height: .94;
  letter-spacing: -.062em;
  font-weight: 790;
}
.materials-hero h1 span {
  color: transparent;
  background: linear-gradient(92deg, #c3d6ff 0%, #7196ff 48%, #9bd8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.materials-lead {
  max-width: 860px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.58;
  letter-spacing: -.018em;
}

.materials-library {
  width: min(calc(100% - 72px), 1480px);
  margin: 0 auto;
  padding: 52px 0 110px;
  border-top: 1px solid rgba(154, 181, 232, .12);
}
.materials-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.materials-library h2,
.materials-footer-cta h2 {
  margin: 9px 0 0;
  color: #f5f7fb;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: .98;
  letter-spacing: -.052em;
}
.materials-tabs {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(144, 173, 230, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.materials-tab {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8797ad;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.materials-tab:hover { color: #e7edf8; }
.materials-tab.is-active {
  color: #fff;
  background: #18243a;
  box-shadow: inset 0 0 0 1px rgba(139, 175, 255, .14), 0 8px 24px rgba(0, 0, 0, .16);
}
.materials-category-copy {
  max-width: 900px;
  margin: 20px 0 30px;
  color: #8291a6;
  font-size: 15px;
  line-height: 1.65;
}

.materials-workspace {
  min-height: 720px;
  height: min(78vh, 910px);
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(145, 173, 226, .14);
  border-radius: 28px;
  background: rgba(7, 12, 20, .76);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .23);
}
.materials-browser {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(145, 173, 226, .12);
  background: linear-gradient(180deg, rgba(17, 27, 43, .9), rgba(9, 15, 24, .92));
}
.materials-browser-head {
  flex: 0 0 auto;
  padding: 20px;
  border-bottom: 1px solid rgba(145, 173, 226, .1);
}
.materials-browser-head.compact { padding-bottom: 16px; }
.materials-browser-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.materials-browser-head.compact > div { margin-bottom: 0; }
.materials-browser-head span {
  color: #dce5f3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.materials-browser-head strong {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #90affb;
  background: rgba(98, 137, 233, .11);
  font-size: 12px;
}
.materials-search input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(142, 170, 226, .14);
  border-radius: 11px;
  outline: none;
  background: rgba(6, 11, 19, .62);
  color: #e9eef8;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.materials-search input::placeholder { color: #68788e; }
.materials-search input:focus { border-color: rgba(112, 151, 247, .45); box-shadow: 0 0 0 3px rgba(74, 115, 221, .11); }
.materials-list,
.audio-list,
.guide-library-list,
.guide-page-index { min-height: 0; }
.materials-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #33425a transparent;
}
.material-list-item {
  width: 100%;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(141, 168, 218, .075);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.material-list-item:hover { background: rgba(102, 139, 230, .055); }
.material-list-item.is-active {
  background: linear-gradient(90deg, rgba(83, 124, 225, .17), rgba(83, 124, 225, .035));
  box-shadow: inset 3px 0 #6e99ff;
}
.material-list-item.is-placeholder .material-list-copy strong { color: #a9b3c2; }
.material-list-copy { min-width: 0; }
.material-list-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #dfe6f1;
  font-size: 13px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.material-list-copy > span { display: block; margin-top: 6px; color: #697a91; font-size: 11px; }
.materials-list-empty { margin: 0; padding: 28px 20px; color: #77869b; font-size: 13px; line-height: 1.5; }

.materials-reader {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #33425a transparent;
  background:
    radial-gradient(circle at 84% 0, rgba(75, 112, 211, .08), transparent 25rem),
    #080e17;
}
.article-reader-card { max-width: 960px; min-height: 100%; margin: 0 auto; padding: 34px clamp(28px, 4vw, 58px) 72px; }
.article-reader-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(143, 172, 227, .12);
  border-radius: 22px;
  background: #101a29;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}
.article-reader-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-reader-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(95, 125, 188, .16), transparent 28%),
    linear-gradient(145deg, #121d2c, #0b121d);
  color: #73839a;
  text-align: center;
}
.article-reader-cover-placeholder span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-reader-cover-placeholder strong { color: #b6c0cf; font-size: clamp(24px, 3vw, 38px); font-weight: 760; letter-spacing: -.03em; }
.article-reader-body { max-width: 760px; margin: 34px auto 0; }
.article-reader-meta { display: flex; align-items: center; gap: 12px; color: #74849a; font-size: 12px; }
.article-reader-meta span { color: #82a7ff; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-reader-meta time::before { content: "•"; margin-right: 12px; color: #435269; }
.article-reader-body h2 {
  margin: 14px 0 24px;
  color: #f3f6fb;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.article-reader-body p { margin: 0 0 20px; color: #a6b1c0; font-size: 17px; line-height: 1.75; }
.article-reader-body .article-lead { color: #d5dce8; font-size: 20px; line-height: 1.62; }

.article-rich-text { color: #a6b1c0; font-size: 17px; line-height: 1.75; }
.article-rich-text > p:first-child { color: #d5dce8; font-size: 20px; line-height: 1.62; }
.article-rich-text p { margin: 0 0 20px; }
.article-rich-text strong { color: #e6ebf4; font-weight: 760; }
.article-rich-text em { color: #c7d0df; }
.article-rich-text h3, .article-rich-text h4 { margin: 34px 0 14px; color: #edf2f9; line-height: 1.18; letter-spacing: -.025em; }
.article-rich-text h3 { font-size: 25px; }
.article-rich-text h4 { font-size: 20px; }
.article-rich-text ul, .article-rich-text ol { margin: 0 0 22px; padding-left: 26px; color: #aab5c5; }
.article-rich-text li { margin: 8px 0; padding-left: 4px; }
.article-rich-text blockquote { margin: 26px 0; padding: 18px 22px; border-left: 3px solid #6f97ff; border-radius: 0 14px 14px 0; background: rgba(86, 124, 219, .075); color: #cad4e3; }
.article-rich-text code { padding: 3px 7px; border: 1px solid rgba(123, 155, 225, .14); border-radius: 7px; background: rgba(18, 30, 49, .92); color: #acc2ff; font: 600 13px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.article-rich-text a { color: #88aaff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-rich-text hr { margin: 32px 0; border: 0; border-top: 1px solid rgba(140, 167, 216, .11); }
.article-bot-cta { margin: 30px 0; padding: 22px 22px 20px; border: 1px solid rgba(102, 147, 255, .25); border-radius: 20px; background: radial-gradient(circle at 0 0, rgba(76, 121, 241, .15), transparent 18rem), linear-gradient(135deg, rgba(22, 37, 62, .94), rgba(9, 16, 28, .96)); box-shadow: 0 22px 50px rgba(0,0,0,.18); }
.article-bot-cta-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #dce7ff; }
.article-bot-cta-kicker span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(86, 130, 245, .18); color: #80a5ff; }
.article-bot-cta-kicker strong { font-size: 14px; letter-spacing: .01em; }
.article-bot-cta p { margin: 0 0 15px; color: #c2cede; }
.article-bot-cta p a { color: #eef4ff; font-weight: 730; }
.article-bot-cta-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 12px; background: linear-gradient(135deg, #76a0ff, #4466ed); color: white !important; font-size: 13px; font-weight: 780; text-decoration: none !important; box-shadow: 0 10px 24px rgba(68, 102, 237, .2); }
.reader-mobile-bar { display: none; }


.audio-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #33425a transparent;
}
.audio-list-item {
  width: 100%;
  min-height: 108px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(141, 168, 218, .075);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.audio-list-item:hover { background: rgba(102, 139, 230, .055); }
.audio-list-item.is-active {
  background: linear-gradient(90deg, rgba(83, 124, 225, .17), rgba(83, 124, 225, .035));
  box-shadow: inset 3px 0 #6e99ff;
}
.audio-list-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(137, 168, 232, .16);
  border-radius: 16px;
  background: radial-gradient(circle at 38% 34%, rgba(111, 151, 255, .24), rgba(20, 31, 50, .92));
}
.audio-list-icon span { padding-left: 2px; color: #91aff9; font-size: 14px; }
.audio-list-icon b { color: #9fb8f3; font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.audio-list-copy { min-width: 0; }
.audio-list-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #dfe6f1;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.audio-list-copy em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: #75869d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.audio-list-copy > span { display: block; margin-top: 7px; color: #91a1b7; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.audio-list-item.is-placeholder .audio-list-copy strong { color: #a9b3c2; }

.audio-reader-card { max-width: 960px; min-height: 100%; margin: 0 auto; padding: 42px clamp(28px, 4vw, 58px) 72px; }
.audio-reader-hero {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.audio-reader-cover {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(143, 172, 227, .14);
  border-radius: 28px;
  background: #101a29;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}
.audio-reader-cover > img { width: 100%; height: 100%; object-fit: cover; }
.audio-cover-placeholder {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 72% 24%, var(--audio-glow, rgba(78, 120, 235, .34)), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(75, 116, 214, .14), transparent 40%),
    linear-gradient(145deg, var(--audio-top, #182844), var(--audio-bottom, #090f18) 72%);
  color: #72839b;
}
.audio-cover-placeholder::before, .audio-cover-placeholder::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(157, 187, 255, .14);
  border-radius: 50%;
  pointer-events: none;
}
.audio-cover-placeholder::before { width: 68%; aspect-ratio: 1; top: -17%; right: -18%; }
.audio-cover-placeholder::after { width: 42%; aspect-ratio: 1; top: 4%; right: -5%; }
.audio-cover-placeholder > * { position: relative; z-index: 1; }
.audio-cover-kicker { color: rgba(200, 215, 244, .64); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.audio-cover-placeholder > strong { color: #edf3ff; font-size: clamp(64px, 8vw, 104px); line-height: .8; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.audio-cover-caption { color: #9baac1; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.audio-theme-control { --audio-glow: rgba(255, 145, 89, .23); --audio-top: #2a2130; --audio-bottom: #0c1018; }
.audio-theme-questions { --audio-glow: rgba(90, 211, 195, .24); --audio-top: #152d34; --audio-bottom: #0a1119; }
.audio-theme-intonation { --audio-glow: rgba(174, 112, 255, .26); --audio-top: #241d3c; --audio-bottom: #0b0f19; }
.audio-theme-irony { --audio-glow: rgba(244, 178, 86, .22); --audio-top: #30271d; --audio-bottom: #0e1118; }
.audio-theme-energy { --audio-glow: rgba(105, 210, 153, .24); --audio-top: #173229; --audio-bottom: #0a1117; }
.audio-theme-tempo { --audio-glow: rgba(91, 169, 255, .28); --audio-top: #162b41; --audio-bottom: #091017; }
.audio-wave-bars { height: 48px; display: flex; align-items: center; gap: 5px; }
.audio-wave-bars i { width: 4px; border-radius: 99px; background: linear-gradient(180deg, #8cb2ff, #557dff); opacity: .82; }
.audio-wave-bars i:nth-child(1), .audio-wave-bars i:nth-child(7) { height: 18px; }
.audio-wave-bars i:nth-child(2), .audio-wave-bars i:nth-child(6) { height: 30px; }
.audio-wave-bars i:nth-child(3), .audio-wave-bars i:nth-child(5) { height: 42px; }
.audio-wave-bars i:nth-child(4) { height: 48px; }
.audio-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; color: #74849a; font-size: 12px; }
.audio-reader-meta > span { color: #82a7ff; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.audio-reader-meta > strong { color: #9daac0; font-weight: 650; }
.audio-reader-meta > strong::before, .audio-reader-meta time::before { content: "•"; margin-right: 11px; color: #435269; }
.audio-reader-intro h2 { margin: 13px 0 18px; color: #f3f6fb; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.01; letter-spacing: -.052em; }
.audio-reader-intro p { margin: 0; color: #a6b1c0; font-size: 17px; line-height: 1.7; }
.audio-player-shell {
  margin-top: 36px;
  padding: 19px 20px 17px;
  border: 1px solid rgba(144, 173, 230, .13);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 32, 51, .9), rgba(11, 18, 29, .95));
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}
.audio-player-shell > .audio-player-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.audio-player-shell > .audio-player-heading span { color: #dce5f4; font-size: 13px; font-weight: 760; }
.audio-player-shell > .audio-player-heading strong { color: #7e91ac; font-size: 12px; font-variant-numeric: tabular-nums; }
.audio-native-player { width: 100%; display: block; }
.audio-player-placeholder {
  min-height: 76px;
  margin-top: 36px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(144, 173, 230, .13);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 32, 51, .86), rgba(11, 18, 29, .92));
}
.audio-player-placeholder button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: #243657; color: #8ea9e7; }
.audio-player-line { height: 10px; overflow: hidden; border-radius: 999px; background: #202c3e; }
.audio-player-line i { display: block; width: 16%; height: 100%; background: #607fca; opacity: .55; }
.audio-player-placeholder > span:last-child { color: #6c7e98; font-size: 12px; font-variant-numeric: tabular-nums; }
.audio-reader-description { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(145, 173, 226, .1); }
.audio-reader-description > span { color: #82a7ff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.audio-reader-description p { max-width: 760px; margin: 12px 0 0; color: #a3afbf; font-size: 16px; line-height: 1.72; }
.audio-reader-description p + p { margin-top: 16px; }

.guide-library-list {
  flex: 0 0 auto;
  max-height: 42%;
  overflow-y: auto;
  border-bottom: 1px solid rgba(145, 173, 226, .1);
}
.guide-list-item {
  width: 100%;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(141, 168, 218, .065);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}
.guide-list-item:hover { background: rgba(102, 139, 230, .055); }
.guide-list-item.is-active { background: rgba(89, 128, 224, .13); box-shadow: inset 3px 0 #6e99ff; }
.guide-list-item.is-disabled { opacity: .62; }
.guide-list-copy strong { display: block; color: #e0e7f2; font-size: 13px; line-height: 1.3; }
.guide-list-copy span { display: block; margin-top: 5px; color: #718198; font-size: 11px; }
.guide-page-index { flex: 1 1 auto; overflow-y: auto; padding: 14px 0 16px; }
.guide-page-index-head { padding: 0 16px 10px; display: flex; align-items: center; justify-content: space-between; color: #708097; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.guide-page-index-head strong { color: #91a7ca; }
.guide-page-link {
  width: 100%;
  min-height: 42px;
  padding: 7px 15px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.guide-page-link:hover { background: rgba(104, 140, 228, .055); }
.guide-page-link.is-active { background: rgba(96, 135, 234, .1); }
.guide-page-link span { color: #59708f; font-size: 10px; font-weight: 800; }
.guide-page-link strong { color: #aab6c7; font-size: 12px; font-weight: 650; line-height: 1.25; }
.guide-page-link.is-active span, .guide-page-link.is-active strong { color: #bdd0ff; }

.guide-reader-shell { max-width: 930px; margin: 0 auto; padding: 24px clamp(18px, 3.2vw, 44px) 48px; }
.guide-reader-toolbar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reader-back {
  display: none;
  border: 0;
  background: transparent;
  color: #91a6c5;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.guide-reader-toolbar > div { margin-left: auto; display: flex; align-items: center; gap: 13px; color: #718097; font-size: 11px; }
.guide-reader-toolbar strong { min-width: 48px; height: 28px; display: inline-grid; place-items: center; border-radius: 9px; background: #131e30; color: #a9c0fb; }
.guide-progress { height: 3px; margin: 4px 0 18px; overflow: hidden; border-radius: 999px; background: rgba(125, 150, 199, .12); }
.guide-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #547cff, #8ab8ff); transition: width .28s ease; }
.guide-page-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 980px;
  border: 1px solid rgba(177, 195, 229, .14);
  border-radius: 24px;
  background-image: var(--guide-bg);
  background-position: center;
  background-size: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .33);
}
.guide-page-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .73));
  backdrop-filter: saturate(.78) contrast(1.04);
  pointer-events: none;
}
.guide-page-frame::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .025), transparent 46%);
  pointer-events: none;
}
.guide-sheet {
  min-height: 980px;
  padding: clamp(44px, 6vw, 74px) clamp(36px, 7vw, 82px) 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  color: #eef2f7;
  font-size: 18px;
  line-height: 1.48;
  text-shadow: 0 1px 2px rgba(0,0,0,.38);
}
.guide-sheet h2 {
  max-width: 820px;
  margin: 0 0 30px;
  color: #ffad55;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 860;
  text-transform: uppercase;
  text-wrap: balance;
}
.guide-sheet h3 { margin: 18px 0 8px; color: #ffad55; font-size: 20px; line-height: 1.28; }
.guide-sheet p { margin: 0 0 18px; }
.guide-numbered-section { margin-bottom: 2px; }
.guide-numbered-section p { margin-bottom: 10px; }
.guide-accent-list, .guide-plain-list { margin: 0 0 18px; padding-left: 1.25em; }
.guide-accent-list li, .guide-plain-list li { margin-bottom: 14px; padding-left: .25em; }
.guide-accent-list li::marker { color: #ffad55; font-weight: 800; }
.guide-accent-list strong { color: #ffad55; }
.guide-link-line a { color: #ffad55; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255, 173, 85, .42); text-underline-offset: 3px; }
.guide-sheet-cover { justify-content: center; padding-left: 42%; background: linear-gradient(90deg, transparent 0 32%, rgba(5, 9, 14, .22) 45%, rgba(5, 9, 14, .68) 100%); }
.guide-cover-author { margin-bottom: 112px; color: #eef3fb; font-size: 18px; font-weight: 850; letter-spacing: .03em; }
.guide-cover-title-wrap h2 { margin: 0; color: #f7f9fc; font-size: clamp(52px, 7vw, 82px); line-height: .98; }
.guide-cover-title-wrap h2 span { color: #ffad55; }
.guide-cover-title-wrap p { margin: 72px 0 0; color: #f5f7fb; font-size: 24px; line-height: 1.28; font-weight: 650; }
.guide-cover-title-wrap p strong { color: inherit; }
.guide-cover-title-wrap .guide-cover-accent { color: #ffad55; font-weight: 800; }
.guide-photo-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 34%); gap: 24px; align-items: end; }
.guide-photo-flow img { width: 100%; max-height: 420px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 18px 32px rgba(0,0,0,.45)); }
.guide-photo-flow-end { margin-top: 4px; }
.guide-photo-flow-end img { max-height: 520px; }
.guide-sheet-dense { font-size: 16.5px; line-height: 1.4; }
.guide-sheet-dense h2 { margin-bottom: 24px; }
.guide-drill { margin: 10px 0 24px; color: #e7ebf2; font-size: 15px; line-height: 1.45; letter-spacing: .005em; }
.guide-drill strong, .guide-drill-major { color: #ffad55; font-weight: 800; }
.guide-drill-major { font-size: 22px; letter-spacing: .02em; }
.guide-sheet-liguria { padding-left: clamp(30px, 5vw, 60px); padding-right: clamp(30px, 5vw, 60px); }
.guide-sheet-liguria h2 { font-size: clamp(34px, 4.3vw, 52px); }
.guide-liguria-text { font-size: 14.7px; line-height: 1.38; }
.guide-liguria-text p { margin-bottom: 14px; }
.guide-sheet-conclusion .guide-closing-note { margin-top: 22px; padding: 22px 24px; border: 1px solid rgba(147, 179, 246, .16); border-radius: 18px; background: rgba(224, 233, 246, .08); }
.guide-closing-note p:last-child { margin-bottom: 0; }
.guide-reader-nav { min-height: 54px; display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; align-items: center; gap: 16px; margin-top: 14px; }
.guide-reader-nav > span { color: #788aa4; font-size: 11px; text-align: center; }
.guide-reader-nav button {
  height: 40px;
  border: 1px solid rgba(142, 170, 225, .13);
  border-radius: 11px;
  background: rgba(17, 27, 43, .72);
  color: #a7b8d1;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.guide-reader-nav button:last-child { justify-self: stretch; }
.guide-reader-nav button:disabled { opacity: .28; cursor: default; }
.reader-placeholder, .reader-loading { min-height: 100%; padding: 56px; display: grid; place-content: center; text-align: center; color: #8292a7; }
.reader-placeholder strong { color: #e4eaf3; }
.reader-placeholder-guide img { width: min(420px, 80%); max-height: 320px; object-fit: cover; margin: 0 auto 24px; border-radius: 20px; }
.reader-placeholder-guide > span { color: #82a7ff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.reader-placeholder-guide h2 { margin: 10px 0; color: #eef3fb; font-size: 32px; }
.reader-placeholder-guide p { max-width: 520px; margin: 0 auto 18px; line-height: 1.55; }
.materials-empty { padding: 42px; border: 1px dashed rgba(139, 170, 230, .18); border-radius: 22px; color: #8797ad; text-align: center; }
.materials-empty strong { display: block; margin-bottom: 8px; color: #dfe6f2; }


.materials-channels {
  width: min(calc(100% - 72px), 1480px);
  margin: 0 auto 38px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: 46px;
  align-items: center;
  border: 1px solid rgba(139, 173, 239, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0, rgba(74, 111, 217, .13), transparent 32%),
    linear-gradient(145deg, rgba(15, 24, 38, .92), rgba(8, 14, 23, .95));
}
.materials-channels-copy h2 { margin: 9px 0 16px; color: #f5f7fb; font-size: clamp(30px, 3.8vw, 48px); line-height: 1; letter-spacing: -.05em; }
.materials-channels-copy > p:last-child { max-width: 620px; margin: 0; color: #8797ad; font-size: 15px; line-height: 1.65; }
.materials-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.materials-channel-card {
  min-height: 176px;
  padding: 22px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(147, 177, 236, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(22, 34, 54, .88), rgba(11, 18, 29, .95));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.materials-channel-card:hover { transform: translateY(-3px); border-color: rgba(135, 171, 255, .28); background: linear-gradient(145deg, rgba(27, 42, 67, .94), rgba(12, 20, 32, .98)); }
.materials-channel-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(82, 122, 226, .12); color: #92b0ff; }
.materials-channel-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.materials-channel-copy { min-width: 0; }
.materials-channel-copy small { display: block; color: #73839a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.materials-channel-copy strong { display: block; margin-top: 7px; color: #edf2fa; font-size: 22px; letter-spacing: -.025em; }
.materials-channel-copy > span { display: block; margin-top: 9px; color: #8291a7; font-size: 13px; line-height: 1.48; }
.materials-channel-arrow { color: #6684c9; font-size: 18px; transition: color .2s ease, transform .2s ease; }
.materials-channel-card:hover .materials-channel-arrow { color: #a8beff; transform: translate(2px, -2px); }

.materials-footer-cta {
  width: min(calc(100% - 72px), 1480px);
  margin: 0 auto 90px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(139, 173, 239, .16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 0, rgba(86, 123, 255, .18), transparent 34%),
    linear-gradient(145deg, rgba(18, 28, 44, .9), rgba(10, 16, 26, .92));
}
.materials-footer-cta h2 { max-width: 820px; font-size: clamp(32px, 4vw, 48px); }
.materials-footer-cta .button { white-space: nowrap; }
.materials-site-footer { margin-bottom: 10px; }
.footer-feature-link { color: #9eb9ff !important; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1080px) {
  .materials-header, .materials-hero, .materials-library, .materials-channels, .materials-footer-cta { width: min(calc(100% - 48px), 1480px); }
  .materials-workspace { grid-template-columns: 300px minmax(0, 1fr); }
  .guide-sheet { padding-left: 48px; padding-right: 48px; }
  .guide-sheet-cover { padding-left: 38%; }
}

@media (max-width: 860px) {
  .materials-library-head { align-items: flex-start; flex-direction: column; gap: 24px; }
  .materials-tabs { width: 100%; }
  .materials-tab { flex: 1; }
  .materials-workspace { grid-template-columns: 275px minmax(0, 1fr); min-height: 680px; }
  .material-list-item { grid-template-columns: 70px minmax(0, 1fr); padding-left: 11px; padding-right: 11px; }
  .guide-sheet { font-size: 16.5px; }
  .guide-sheet-dense { font-size: 15px; }
  .guide-photo-flow { grid-template-columns: 1fr; }
  .guide-photo-flow img { max-height: 300px; justify-self: center; max-width: 280px; }
  .guide-sheet-cover { padding-left: 32%; }
  .materials-channels { grid-template-columns: 1fr; }
  .materials-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-footer-cta { grid-template-columns: 1fr; }
  .materials-footer-cta .button { justify-self: start; }
}

@media (max-width: 760px) {
  .materials-header, .materials-hero, .materials-library, .materials-channels, .materials-footer-cta { width: calc(100% - 32px); }
  .materials-header { min-height: 74px; }
  .materials-top-nav { gap: 14px; font-size: 13px; }
  .materials-top-nav a:first-child { display: none; }
  .materials-hero { padding: 54px 0 42px; }
  .materials-hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .materials-lead { font-size: 16px; }
  .materials-library { padding: 44px 0 78px; }
  .materials-category-copy { margin-bottom: 22px; }
  .materials-workspace { display: block; height: auto; min-height: 560px; border-radius: 22px; }
  .materials-browser { min-height: 620px; max-height: 74vh; border-right: 0; }
  .materials-reader { display: none; min-height: 620px; max-height: none; overflow: visible; }
  .materials-workspace.is-reading .materials-browser { display: none; }
  .materials-workspace.is-reading .materials-reader { display: block; }
  .reader-mobile-bar { display: flex; min-height: 42px; align-items: center; justify-content: space-between; margin-bottom: 18px; color: #778aa6; font-size: 11px; }
  .reader-mobile-bar button, .reader-back { display: inline-flex; border: 0; background: transparent; color: #a8bcdb; font: inherit; font-size: 12px; cursor: pointer; }
  .article-reader-card { padding: 18px 16px 44px; }
  .article-reader-cover { border-radius: 16px; }
  .article-reader-body { margin-top: 24px; }
  .article-reader-body h2 { font-size: 36px; }
  .article-reader-body p { font-size: 16px; }
  .article-reader-body .article-lead { font-size: 18px; }
  .article-rich-text { font-size: 16px; }
  .article-rich-text > p:first-child { font-size: 18px; }
  .article-bot-cta { padding: 18px 17px; border-radius: 17px; }
  .guide-reader-shell { padding: 14px 10px 34px; }
  .guide-reader-toolbar { padding: 0 6px; }
  .guide-reader-toolbar > div span { display: none; }
  .guide-page-frame { min-height: 0; border-radius: 18px; }
  .guide-sheet { min-height: 760px; padding: 38px 26px 46px; font-size: 16px; line-height: 1.5; }
  .guide-sheet h2 { font-size: 38px; }
  .guide-sheet h3 { font-size: 18px; }
  .guide-sheet-cover { min-height: 760px; padding-left: 42%; padding-right: 22px; }
  .guide-cover-author { margin-bottom: 82px; font-size: 13px; }
  .guide-cover-title-wrap h2 { font-size: 48px; }
  .guide-cover-title-wrap p { margin-top: 54px; font-size: 17px; }
  .guide-sheet-dense { font-size: 14px; }
  .guide-drill { font-size: 12.5px; overflow-wrap: anywhere; }
  .guide-drill-major { font-size: 17px; }
  .guide-liguria-text { font-size: 12.4px; line-height: 1.4; }
  .guide-reader-nav { grid-template-columns: 88px minmax(0, 1fr) 88px; gap: 7px; }
  .guide-reader-nav button span { display: none; }
  .audio-reader-hero { grid-template-columns: 1fr; }
  .audio-reader-cover { width: min(320px, 76vw); margin: 0 auto; }
  .audio-reader-intro { text-align: center; }
  .audio-reader-meta { justify-content: center; }
  .audio-reader-card { padding: 24px 20px 46px; }
  .materials-channels { margin-bottom: 28px; padding: 30px 22px; }
  .materials-channel-grid { grid-template-columns: 1fr; }
  .materials-channel-card { min-height: 0; }
  .materials-footer-cta { margin-bottom: 68px; padding: 30px 22px; }
  .materials-footer-cta .button { width: 100%; }
}

@media (max-width: 460px) {
  .materials-tabs { gap: 4px; padding: 4px; }
  .materials-tab { min-height: 50px; padding: 0 8px; font-size: 12px; }
  .materials-hero h1 { font-size: 48px; }
  .materials-browser { min-height: 580px; }
  .guide-sheet { padding-left: 21px; padding-right: 21px; }
  .guide-sheet-cover { padding-left: 36%; padding-right: 16px; background: linear-gradient(90deg, rgba(5,9,14,.05) 0 26%, rgba(5,9,14,.62) 46%, rgba(5,9,14,.78) 100%); }
  .guide-cover-title-wrap h2 { font-size: 42px; }
  .guide-photo-flow img { max-width: 230px; }
  .guide-reader-nav > span { max-width: 120px; justify-self: center; }
}

/* v8 – second audit: guide master/detail responsiveness, SVG audio controls, source-link repairs */
.materials-page {
  --guide-overlay-opacity: .82;
  --scrollbar-thumb: rgba(108, 139, 205, .62);
  --scrollbar-thumb-hover: rgba(132, 166, 238, .82);
  --scrollbar-track: rgba(9, 16, 27, .36);
}

/* The library is intentionally roomier; guide mode grows with the full page instead of nesting a page-sized scrollbar. */
.materials-workspace {
  min-height: 860px;
  height: min(86vh, 1040px);
}
.materials-workspace.is-guide-mode {
  --guide-browser-width: clamp(280px, 24vw, 350px);
  position: relative;
  display: block;
  min-height: 0;
  height: auto;
  padding-left: var(--guide-browser-width);
}
.materials-workspace.is-guide-mode .materials-reader {
  width: 100%;
  min-height: 0;
  overflow: visible;
}
.materials-workspace.is-guide-mode .materials-browser {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--guide-browser-width);
  min-height: 0;
  max-height: none;
}

/* One coherent scrollbar language instead of browser-default white rails. */
html,
.materials-list,
.audio-list,
.guide-library-list,
.guide-page-index,
.materials-reader {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
html::-webkit-scrollbar,
.materials-list::-webkit-scrollbar,
.audio-list::-webkit-scrollbar,
.guide-library-list::-webkit-scrollbar,
.guide-page-index::-webkit-scrollbar,
.materials-reader::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track,
.materials-list::-webkit-scrollbar-track,
.audio-list::-webkit-scrollbar-track,
.guide-library-list::-webkit-scrollbar-track,
.guide-page-index::-webkit-scrollbar-track,
.materials-reader::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb,
.materials-list::-webkit-scrollbar-thumb,
.audio-list::-webkit-scrollbar-thumb,
.guide-library-list::-webkit-scrollbar-thumb,
.guide-page-index::-webkit-scrollbar-thumb,
.materials-reader::-webkit-scrollbar-thumb {
  min-height: 52px;
  border: 2px solid rgba(8, 14, 23, .86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 153, 224, .78), rgba(75, 101, 160, .7));
  box-shadow: inset 0 0 0 1px rgba(191, 210, 255, .08), 0 0 14px rgba(64, 103, 196, .12);
}
html::-webkit-scrollbar-thumb:hover,
.materials-list::-webkit-scrollbar-thumb:hover,
.audio-list::-webkit-scrollbar-thumb:hover,
.guide-library-list::-webkit-scrollbar-thumb:hover,
.guide-page-index::-webkit-scrollbar-thumb:hover,
.materials-reader::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 177, 245, .94), rgba(90, 122, 192, .9));
}
html::-webkit-scrollbar-corner,
.materials-list::-webkit-scrollbar-corner,
.audio-list::-webkit-scrollbar-corner,
.guide-library-list::-webkit-scrollbar-corner,
.guide-page-index::-webkit-scrollbar-corner,
.materials-reader::-webkit-scrollbar-corner { background: transparent; }

/* Guide page: source graphics remain below a single centrally tunable dark layer. */
.guide-reader-shell { max-width: 980px; padding-top: 26px; container-type: inline-size; }
.guide-page-frame {
  min-height: 1320px; /* fallback for browsers without container query units */
  min-height: calc(100cqw * 1.4142857); /* A4 minimum; content may grow taller */
  height: auto;
  aspect-ratio: auto;
  background-position: center;
  background-size: cover;
}
.guide-page-frame::before {
  background: rgba(0, 0, 0, var(--guide-overlay-opacity));
  -webkit-backdrop-filter: saturate(.68) contrast(1.08);
  backdrop-filter: saturate(.68) contrast(1.08);
}
.guide-page-frame::after {
  background:
    radial-gradient(circle at 48% 12%, rgba(255, 178, 89, .035), transparent 34%),
    linear-gradient(180deg, rgba(6, 10, 16, .02), rgba(4, 7, 12, .13));
}
.guide-sheet-source {
  min-height: 100%;
  padding: clamp(48px, 5.4vw, 70px) clamp(42px, 6.3vw, 74px) 58px;
  color: #f1f3f7;
  font-size: 17.5px;
  line-height: 1.44;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .54);
}
.guide-sheet-source h2 {
  max-width: 780px;
  margin-bottom: 27px;
  color: #ffab50;
  font-size: clamp(37px, 4.7vw, 58px);
  line-height: .98;
}
.guide-sheet-source p { margin-bottom: 15px; }
.guide-sheet-compact { font-size: 15.6px; line-height: 1.4; }
.guide-sheet-compact h2 { font-size: clamp(34px, 4.3vw, 52px); margin-bottom: 22px; }
.guide-sheet-dense { font-size: 14.2px; line-height: 1.36; }
.guide-sheet-dense h2 { font-size: clamp(31px, 4vw, 47px); margin-bottom: 18px; }
.guide-sheet-ultra-dense { font-size: 12.8px; line-height: 1.32; }
.guide-sheet-ultra-dense h2 { font-size: clamp(28px, 3.7vw, 43px); margin-bottom: 16px; }
.guide-strong-paragraph { color: #fff; font-weight: 760; }
.guide-subhead { margin-top: 7px !important; color: #ffd09b; font-weight: 780; }
.guide-sheet-source a { color: #ffc276; text-decoration-color: rgba(255, 194, 118, .45); text-underline-offset: 3px; }
.guide-source-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 7px 0 17px; }
.guide-source-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 174, 85, .25);
  border-radius: 11px;
  background: rgba(255, 174, 85, .08);
  color: #ffd09a;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}
.guide-paid-cta {
  margin-top: auto;
  padding: 17px 18px 16px;
  border: 1px solid rgba(255, 174, 85, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 31, 21, .82), rgba(18, 20, 27, .88));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}
.guide-paid-cta > span { display: block; color: #ffb45f; font-size: 12px; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.guide-paid-cta p { margin: 5px 0 11px; color: #eef1f6; font-size: 14px; line-height: 1.42; }
.guide-paid-cta a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 11px;
  background: #ffad55;
  color: #15100b !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
  text-shadow: none;
  transition: transform .18s ease, background .18s ease;
}
.guide-paid-cta a:hover { transform: translateY(-1px); background: #ffc071; }
.guide-paid-cta a:focus-visible { outline: 3px solid rgba(255, 184, 105, .28); outline-offset: 3px; }
.guide-sheet-cover-source {
  min-height: 100%;
  justify-content: center;
  padding: clamp(54px, 6vw, 82px) clamp(42px, 7vw, 88px);
  background: linear-gradient(90deg, rgba(5, 8, 13, .22), rgba(5, 8, 13, .68));
}
.guide-cover-content { max-width: 720px; }
.guide-sheet-cover-source .guide-cover-author { display: block; margin: 0 0 clamp(70px, 9vw, 116px); }
.guide-sheet-cover-source h2 { max-width: 760px; margin: 0; font-size: clamp(46px, 6vw, 76px); color: #ffad55; }
.guide-sheet-cover-source p { max-width: 650px; margin: 42px 0 0; color: #f7f8fb; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.32; font-weight: 690; }
.guide-cover-badge { display: inline-flex; margin-top: 42px; padding: 9px 13px; border: 1px solid rgba(255, 178, 89, .34); border-radius: 999px; color: #ffc37e; background: rgba(255, 174, 85, .08); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

/* Custom podcast player – one selected episode, metadata-only loading until playback. */
.audio-reader-card { max-width: 1040px; }
.audio-player-shell-custom {
  margin-top: 42px;
  padding: 24px 26px 26px;
  border: 1px solid rgba(137, 169, 232, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(84, 126, 231, .13), transparent 19rem),
    linear-gradient(145deg, rgba(20, 31, 49, .94), rgba(10, 17, 28, .96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .22);
}
.audio-player-shell-custom > .audio-player-heading { margin-bottom: 18px; }
.audio-player-shell-custom > .audio-custom-player {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 46px;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
}
.audio-custom-player audio { display: none; }
.audio-custom-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 194, 255, .24);
  border-radius: 24px;
  background: linear-gradient(145deg, #739cff, #405fda);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(55, 91, 194, .28), inset 0 1px rgba(255,255,255,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.audio-custom-play:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.06); box-shadow: 0 20px 40px rgba(55, 91, 194, .34), inset 0 1px rgba(255,255,255,.2); }
.audio-custom-play:focus-visible, .audio-custom-mute:focus-visible, .audio-custom-seek:focus-visible { outline: 3px solid rgba(119, 157, 255, .28); outline-offset: 3px; }
.audio-custom-icon { width: 30px; height: 30px; display: block; pointer-events: none; }
.audio-custom-icon-pause, .audio-custom-icon-muted { display: none; }
.audio-custom-player.is-playing .audio-custom-icon-play { display: none; }
.audio-custom-player.is-playing .audio-custom-icon-pause { display: block; }
.audio-custom-mute.is-muted .audio-custom-icon-volume { display: none; }
.audio-custom-mute.is-muted .audio-custom-icon-muted { display: block; }
.audio-custom-main { min-width: 0; }
.audio-custom-time { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; color: #a9b8cf; font-size: 12px; font-variant-numeric: tabular-nums; }
.audio-custom-time strong { color: #7487a4; font-weight: 700; }
.audio-custom-seek {
  --audio-progress: 0%;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}
.audio-custom-seek::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7198ff 0 var(--audio-progress), rgba(112, 136, 181, .22) var(--audio-progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(133, 162, 220, .07);
}
.audio-custom-seek::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #101a2a;
  border-radius: 50%;
  background: #9ab8ff;
  box-shadow: 0 3px 12px rgba(0,0,0,.32);
}
.audio-custom-seek::-moz-range-track { height: 7px; border-radius: 999px; background: rgba(112, 136, 181, .22); }
.audio-custom-seek::-moz-range-progress { height: 7px; border-radius: 999px; background: #7198ff; }
.audio-custom-seek::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #101a2a; border-radius: 50%; background: #9ab8ff; }
.audio-custom-mute {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 169, 229, .15);
  border-radius: 15px;
  background: rgba(18, 29, 47, .86);
  color: #9eb4d8;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.audio-custom-mute:hover { background: rgba(31, 47, 75, .92); color: #d6e2f8; }
.audio-custom-mute .audio-custom-icon { width: 22px; height: 22px; }
.audio-custom-mute.is-muted { color: #7b8ca6; }

@media (max-width: 1080px) {
  .materials-workspace { min-height: 820px; height: min(88vh, 980px); }
  .materials-workspace.is-guide-mode { --guide-browser-width: 300px; min-height: 0; height: auto; }
  .materials-workspace.is-guide-mode .materials-browser { min-height: 0; max-height: none; }
}

/* Guide pages need more width than article/audio readers. Switch them to master/detail earlier on tablets and small laptops. */
@media (max-width: 980px) {
  .materials-workspace.is-guide-mode { display: block; min-height: 560px; height: auto; padding-left: 0; }
  .materials-workspace.is-guide-mode .materials-browser { position: static; width: auto; min-height: 620px; max-height: 74vh; border-right: 0; }
  .materials-workspace.is-guide-mode .materials-reader { display: none; width: auto; min-height: 0; max-height: none; overflow: visible; }
  .materials-workspace.is-guide-mode.is-reading .materials-browser { display: none; }
  .materials-workspace.is-guide-mode.is-reading .materials-reader { display: block; }
  .materials-workspace.is-guide-mode .reader-back { display: inline-flex; border: 0; background: transparent; color: #a8bcdb; font: inherit; font-size: 12px; cursor: pointer; }
}

@media (max-width: 760px) {
  .materials-workspace,
  .materials-workspace.is-guide-mode { min-height: 560px; height: auto; }
  .materials-workspace.is-guide-mode .materials-browser { min-height: 620px; max-height: 74vh; }
  .materials-workspace.is-guide-mode .materials-reader { overflow: visible; }
  .guide-page-frame { min-height: 0; aspect-ratio: auto; overflow: hidden; }
  .guide-sheet > *, .guide-cover-content { min-width: 0; }
  .guide-sheet h2, .guide-sheet-source h2, .guide-sheet-cover-source h2 { overflow-wrap: anywhere; hyphens: auto; }
  .guide-sheet a, .guide-sheet-source a { overflow-wrap: anywhere; word-break: break-word; }
  .guide-sheet-source { min-height: 0; padding: 38px 25px 44px; font-size: 15.5px; line-height: 1.48; }
  .guide-sheet-compact, .guide-sheet-dense, .guide-sheet-ultra-dense { font-size: 14.5px; line-height: 1.45; }
  .guide-sheet-source h2, .guide-sheet-compact h2, .guide-sheet-dense h2, .guide-sheet-ultra-dense h2 { font-size: 36px; margin-bottom: 22px; }
  .guide-sheet-cover-source { min-height: 760px; padding: 46px 28px; }
  .guide-sheet-cover-source .guide-cover-author { margin-bottom: 76px; }
  .guide-sheet-cover-source h2 { font-size: 43px; }
  .guide-sheet-cover-source p { font-size: 18px; }
  .guide-paid-cta { margin-top: 22px; }
  .audio-player-shell-custom { margin-top: 30px; padding: 20px 18px 21px; border-radius: 21px; }
  .audio-player-shell-custom > .audio-custom-player { grid-template-columns: 64px minmax(0, 1fr); gap: 15px; }
  .audio-custom-play { width: 64px; height: 64px; border-radius: 20px; }
  .audio-custom-play .audio-custom-icon { width: 27px; height: 27px; }
  .audio-custom-mute { display: none; }
}


/* v10 – owner visual pass: compact libraries, source-faithful guide layouts, scroll handoff and stable audio composition */

/* Compact article and guide navigation: thumbnails were unreadable at this size and only inflated rows. */
.material-list-item-compact {
  min-height: 48px;
  padding: 8px 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}
.material-list-number,
.guide-list-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 158, 224, .13);
  border-radius: 9px;
  background: rgba(66, 94, 151, .09);
  color: #7790b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}
.material-list-item-compact.is-active .material-list-number,
.guide-list-item-compact.is-active .guide-list-number { color: #c4d5ff; border-color: rgba(116, 153, 244, .28); background: rgba(91, 132, 233, .14); }
.material-list-item-compact .material-list-copy strong { -webkit-line-clamp: 2; font-size: 12.5px; line-height: 1.3; }
.material-list-item-compact .material-list-copy > span { display: none; }
.guide-library-list { max-height: none; }
.guide-list-item-compact {
  min-height: 52px;
  padding: 9px 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}
.guide-list-item-compact .guide-list-copy span { display: none; }
.guide-list-item-compact .guide-list-copy strong { font-size: 12.5px; line-height: 1.3; }

/* One primary document scroll. Browser/catalogue columns may scroll, but reader content expands into the page. */
.materials-workspace.is-article-mode,
.materials-workspace.is-audio-mode,
.materials-workspace.is-guide-mode {
  position: relative;
  display: grid;
  grid-template-columns: clamp(270px, 23vw, 340px) minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  height: auto;
  padding-left: 0;
  overflow: visible;
}
.materials-workspace.is-article-mode .materials-browser,
.materials-workspace.is-audio-mode .materials-browser,
.materials-workspace.is-guide-mode .materials-browser {
  position: sticky;
  inset: auto;
  top: 16px;
  width: auto;
  height: min(86vh, 940px);
  max-height: calc(100vh - 32px);
  min-height: 620px;
  align-self: start;
  border-radius: 27px 0 0 27px;
}
.materials-workspace.is-article-mode .materials-reader,
.materials-workspace.is-audio-mode .materials-reader,
.materials-workspace.is-guide-mode .materials-reader {
  width: auto;
  min-height: 760px;
  overflow: visible;
  overscroll-behavior: auto;
}
.materials-list,
.audio-list,
.guide-library-list,
.guide-page-index {
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
}

/* A4 guide sizing is driven by viewport height when possible. This keeps the entire sheet visible on normal desktop screens. */
.guide-reader-shell {
  width: min(100%, 820px, calc((100svh - 118px) / 1.4142857));
  max-width: none;
  margin-inline: auto;
  padding: 18px 0 38px;
  container-type: inline-size;
}
.guide-page-frame {
  min-height: calc(100cqw * 1.4142857);
  border-color: rgba(91, 113, 151, .32);
  border-radius: 20px;
  background-color: #090b0f;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.guide-sheet-source {
  min-height: calc(100cqw * 1.4142857);
  padding: 6.2cqw 6.3cqw 5.4cqw;
  font-size: clamp(13.5px, 2.18cqw, 18px);
  line-height: 1.48;
}
.guide-sheet-source h2 {
  margin-bottom: 3.2cqw;
  font-size: clamp(30px, 5.4cqw, 49px);
  line-height: .98;
}
.guide-sheet-source p { margin-bottom: 2.15cqw; }
.guide-sheet-compact { font-size: clamp(12.8px, 1.95cqw, 16.4px); line-height: 1.43; }
.guide-sheet-dense { font-size: clamp(11.8px, 1.72cqw, 14.6px); line-height: 1.38; }
.guide-sheet-ultra-dense { font-size: clamp(10.8px, 1.54cqw, 13px); line-height: 1.34; }

/* Each guide owns its contrast. The original AI files do not share one global overlay recipe. */
.guide-id-speech-improvisation { --guide-overlay-opacity: .18; }
.guide-id-diction { --guide-overlay-opacity: .88; }
.guide-id-clean-speech { --guide-overlay-opacity: .88; }
.guide-id-confidence { --guide-overlay-opacity: 0; }
.guide-id-speech-improvisation .guide-sheet-source,
.guide-id-diction .guide-sheet-source,
.guide-id-clean-speech .guide-sheet-source {
  justify-content: space-between;
}
.guide-id-speech-improvisation .guide-sheet-source { font-size: clamp(13.8px, 2.22cqw, 18.4px); }
.guide-id-speech-improvisation .guide-sheet-compact { font-size: clamp(12.9px, 1.98cqw, 16.5px); }
.guide-id-diction .guide-sheet-source { font-size: clamp(13.6px, 2.18cqw, 18px); }
.guide-id-clean-speech .guide-sheet-source { font-size: clamp(13.3px, 2.12cqw, 17.7px); }

/* Confidence guide keeps the Illustrator dark-header/light-body language instead of blackening the whole page. */
.guide-id-confidence::before { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.guide-id-confidence::after { background: none; }
.guide-id-confidence .guide-sheet-source { color: #171717; text-shadow: none; }
.guide-id-confidence .guide-sheet-source p { color: inherit; }
.guide-id-confidence .guide-sheet-source .guide-strong-paragraph,
.guide-id-confidence .guide-sheet-source .guide-subhead { color: #171717; }
.guide-id-confidence .guide-sheet-source a { color: #a85d17; text-decoration-color: rgba(168,93,23,.42); }

/* Standard confidence sheets: headline belongs to the dark top artwork, copy begins in the light body. */
.guide-id-confidence:not(.guide-page-01):not(.guide-page-02):not(.guide-page-03):not(.guide-page-18):not(.guide-page-20):not(.guide-page-27):not(.guide-page-30) .guide-sheet-source h2 {
  max-width: 72%;
  color: #ffab50;
  margin-bottom: 30cqw;
  text-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.guide-id-confidence:not(.guide-page-01):not(.guide-page-02):not(.guide-page-03):not(.guide-page-18):not(.guide-page-20):not(.guide-page-27):not(.guide-page-30) .guide-sheet-source > p:first-of-type:is(:not(.guide-strong-paragraph)) {
  /* Quote paragraphs on several source pages sit in the top-right dark field. Pages without a quote override naturally below. */
}

/* Known quote-header pages from the source AI. */
.guide-id-confidence.guide-page-05 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-06 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-07 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-08 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-09 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-16 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-17 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-19 .guide-sheet-source > p:first-of-type,
.guide-id-confidence.guide-page-28 .guide-sheet-source > p:first-of-type {
  position: absolute;
  top: 15cqw;
  right: 6.2cqw;
  width: 43%;
  margin: 0;
  color: #f5f5f5;
  font-size: .93em;
  line-height: 1.35;
  text-align: right;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

/* Confidence page 3: biography starts in dark upper-left; the remaining copy belongs to the white body. */
.guide-id-confidence.guide-page-03 .guide-sheet-source h2 { color: #ffab50; max-width: 48%; margin-bottom: 2.6cqw; }
.guide-id-confidence.guide-page-03 .guide-sheet-source > p:nth-of-type(-n+2) {
  max-width: 55%;
  color: #f5f5f5;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}
.guide-id-confidence.guide-page-03 .guide-sheet-source > p:nth-of-type(3) { margin-top: 13cqw; }

/* Confidence page 2 has light body plus a dark closing block in the source artwork. */
.guide-id-confidence.guide-page-02 .guide-sheet-source { font-size: clamp(12.2px, 1.72cqw, 14.2px); line-height: 1.36; padding-top: 5.4cqw; }
.guide-id-confidence.guide-page-02 .guide-sheet-source p { margin-bottom: 1.45cqw; }
.guide-id-confidence.guide-page-02 .guide-sheet-source h2 { color: #ffab50; max-width: 70%; margin-bottom: 20.5cqw; font-size: clamp(29px, 5.1cqw, 45px); }
.guide-id-confidence.guide-page-02 .confidence-dark-tail {
  margin-top: 19.5cqw;
  color: #f2f2f2;
  text-shadow: 0 2px 4px rgba(0,0,0,.46);
}
.guide-id-confidence.guide-page-02 .confidence-dark-tail p { color: inherit; margin-bottom: 1.35cqw; }
.guide-id-confidence.guide-page-02 .guide-paid-cta { margin-top: 1cqw; }

/* Full-light confidence continuation pages do not reserve a fake dark header. */
.guide-id-confidence.guide-page-18 .guide-sheet-source h2,
.guide-id-confidence.guide-page-20 .guide-sheet-source h2,
.guide-id-confidence.guide-page-27 .guide-sheet-source h2,
.guide-id-confidence.guide-page-30 .guide-sheet-source h2 { color: #111; margin-bottom: 3.2cqw; text-shadow: none; }
.guide-id-confidence.guide-page-30 .guide-sheet-source { padding-right: 32cqw; }
.guide-id-confidence.guide-page-01 .guide-sheet-cover-source { color: #fff; }

/* Bot training cards inside guide exercises. */
.guide-bot-cta {
  margin: 1.2cqw 0 2cqw;
  padding: 1.65cqw 1.8cqw;
  border: 1px solid rgba(99, 145, 255, .28);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(27, 43, 70, .92), rgba(10, 17, 29, .95));
  color: #eaf0fb;
  text-shadow: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}
.guide-bot-cta > span { display:block; margin-bottom: .6cqw; color:#91b0ff; font-size:.72em; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.guide-bot-cta p { margin:0 0 1cqw !important; color:#dce5f4 !important; font-size:.88em; line-height:1.38; text-shadow:none !important; }
.guide-bot-cta strong { color:#fff; }
.guide-bot-cta a { min-height:36px; display:inline-flex; align-items:center; padding:0 13px; border-radius:10px; background:#7198ff; color:#fff !important; font-size:.78em; font-weight:850; text-decoration:none !important; }
.guide-id-confidence .guide-bot-cta { background: linear-gradient(135deg, rgba(22,35,58,.96), rgba(12,19,31,.98)); }
.guide-id-confidence .guide-bot-cta p { color:#e8edf5 !important; }

/* Audio: fixed visual rhythm across titles of different lengths. */
.audio-reader-card { max-width: 1040px; }
.audio-reader-hero { align-items: start; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); min-height: 330px; }
.audio-reader-cover { width: 100%; max-width: 320px; }
.audio-reader-intro { min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.audio-reader-intro h2 {
  min-height: 2.95em;
  margin: 13px 0 16px;
  display: flex;
  align-items: center;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.02;
}
.audio-reader-intro h2.audio-title-long { font-size: clamp(27px, 2.9vw, 42px); }
.audio-reader-intro h2.audio-title-xlong { font-size: clamp(24px, 2.55vw, 37px); }
.audio-reader-intro > p { min-height: 5.1em; }
.audio-player-shell-custom > .audio-custom-player { grid-template-columns: 82px minmax(0, 1fr) 46px; }
.audio-custom-play { width:82px; height:82px; border-radius:50%; }
.audio-custom-icon { width:32px; height:32px; }
.audio-custom-seek { height:26px; }
.audio-custom-seek::-webkit-slider-runnable-track { height:13px; box-shadow: inset 0 0 0 1px rgba(133,162,220,.1), 0 5px 18px rgba(56,87,164,.12); }
.audio-custom-seek::-webkit-slider-thumb { width:24px; height:24px; margin-top:-5.5px; border-width:3px; }
.audio-custom-seek::-moz-range-track,
.audio-custom-seek::-moz-range-progress { height:13px; }
.audio-custom-seek::-moz-range-thumb { width:20px; height:20px; }

@media (max-width: 980px) {
  .materials-workspace.is-guide-mode { display:block; min-height:560px; height:auto; padding-left:0; }
  .materials-workspace.is-guide-mode .materials-browser { position:static; width:auto; height:auto; min-height:620px; max-height:74vh; border-radius:27px; }
  .materials-workspace.is-guide-mode .materials-reader { display:none; width:auto; min-height:0; max-height:none; overflow:visible; }
  .materials-workspace.is-guide-mode.is-reading .materials-browser { display:none; }
  .materials-workspace.is-guide-mode.is-reading .materials-reader { display:block; }
  .materials-workspace.is-guide-mode .reader-back { display:inline-flex; }
}
@media (max-width: 760px) {
  .materials-workspace.is-article-mode,
  .materials-workspace.is-audio-mode { display:block; }
  .materials-workspace.is-article-mode .materials-browser,
  .materials-workspace.is-audio-mode .materials-browser { position:static; height:auto; min-height:620px; max-height:none; border-radius:27px; }
  .materials-workspace.is-article-mode .materials-reader,
  .materials-workspace.is-audio-mode .materials-reader { display:none; }
  .materials-workspace.is-article-mode.is-reading .materials-browser,
  .materials-workspace.is-audio-mode.is-reading .materials-browser { display:none; }
  .materials-workspace.is-article-mode.is-reading .materials-reader,
  .materials-workspace.is-audio-mode.is-reading .materials-reader { display:block; }
  .guide-reader-shell { width:100%; padding-inline:0; }
  .guide-page-frame { border-radius:15px; }
  .guide-id-confidence.guide-page-30 .guide-sheet-source { padding-right:6.3cqw; }
  .audio-reader-hero { grid-template-columns:1fr; min-height:0; }
  .audio-reader-cover { max-width:420px; margin-inline:auto; }
  .audio-reader-intro { min-height:0; }
  .audio-reader-intro h2 { min-height:0; display:block; }
  .audio-reader-intro > p { min-height:0; }
  .audio-player-shell-custom > .audio-custom-player { grid-template-columns:66px minmax(0,1fr); gap:15px; }
  .audio-custom-play { width:66px; height:66px; }
  .audio-custom-mute { display:none; }
}

/* v12 – final polish: keep player geometry explicit after historical responsive overrides. */
.audio-custom-play { border-radius: 50%; }
.audio-custom-seek::-webkit-slider-runnable-track { min-height: 13px; }
.audio-custom-seek::-moz-range-track,
.audio-custom-seek::-moz-range-progress { min-height: 13px; }

/* v10.1 – compact paid access and source-layer cleanup */
.guide-inline-access {
  display: inline-flex;
  align-items: center;
  margin-left: .35em;
  padding: .22em .62em;
  border: 1px solid rgba(255,174,85,.36);
  border-radius: 999px;
  background: rgba(255,174,85,.11);
  color: #ffb45f !important;
  font-size: .88em;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
}
.guide-paid-cta {
  padding: 1.15cqw 1.35cqw 1.2cqw;
  border-radius: 13px;
}
.guide-paid-cta > span { font-size: clamp(9px, 1.18cqw, 11px); }
.guide-paid-cta p { margin: .35cqw 0 .75cqw !important; font-size: clamp(11px, 1.45cqw, 13px) !important; line-height: 1.35; }
.guide-paid-cta a { min-height: 33px; padding: 0 12px; font-size: 11px; border-radius: 9px; }


/* v1.59 – confidence guide: fixed body type, adaptive rhythm, source-aware zones. */
.guide-id-confidence .guide-sheet-source,
.guide-id-confidence .guide-sheet-source.guide-sheet-compact,
.guide-id-confidence .guide-sheet-source.guide-sheet-dense,
.guide-id-confidence .guide-sheet-source.guide-sheet-ultra-dense {
  font-size:clamp(13.8px,2.08cqw,17.2px);
}
.guide-id-confidence .guide-sheet-source { line-height:1.42; }
.guide-id-confidence .guide-sheet-source.guide-sheet-compact { line-height:1.34; }
.guide-id-confidence .guide-sheet-source.guide-sheet-dense,
.guide-id-confidence .guide-sheet-source.guide-sheet-ultra-dense { line-height:1.28; }
.guide-id-confidence .guide-sheet-source p { margin-bottom:1.6cqw; }
.guide-id-confidence .guide-sheet-source.guide-sheet-compact p { margin-bottom:1.12cqw; }
.guide-id-confidence .guide-sheet-source.guide-sheet-dense p,
.guide-id-confidence .guide-sheet-source.guide-sheet-ultra-dense p { margin-bottom:.88cqw; }

/* Most confidence pages have a dark illustrated header and a light reading field. */
.guide-id-confidence:is(.guide-page-04,.guide-page-05,.guide-page-06,.guide-page-07,.guide-page-08,.guide-page-09,.guide-page-10,.guide-page-11,.guide-page-12,.guide-page-13,.guide-page-14,.guide-page-15,.guide-page-16,.guide-page-17,.guide-page-19,.guide-page-21,.guide-page-22,.guide-page-23,.guide-page-24,.guide-page-25,.guide-page-26,.guide-page-28,.guide-page-29) .guide-sheet-source {
  padding-top:var(--confidence-body-start,44cqw);
}
.guide-id-confidence:is(.guide-page-04,.guide-page-05,.guide-page-06,.guide-page-07,.guide-page-08,.guide-page-09,.guide-page-10,.guide-page-11,.guide-page-12,.guide-page-13,.guide-page-14,.guide-page-15,.guide-page-16,.guide-page-17,.guide-page-19,.guide-page-21,.guide-page-22,.guide-page-23,.guide-page-24,.guide-page-25,.guide-page-26,.guide-page-28,.guide-page-29) .guide-sheet-source > h2 {
  position:absolute; top:5.4cqw; left:6.3cqw; right:6.3cqw; margin:0; max-width:70%;
  color:#ffab50; font-size:clamp(30px,5.05cqw,46px); line-height:.98; text-shadow:0 2px 5px rgba(0,0,0,.45);
}
.guide-id-confidence:is(.guide-page-21,.guide-page-22,.guide-page-23,.guide-page-24) .guide-sheet-source > h2 { font-size:clamp(26px,4.2cqw,39px); max-width:78%; }
.guide-id-confidence.guide-page-25 .guide-sheet-source > h2 { font-size:clamp(29px,4.7cqw,43px); }

/* Dark/light boundary measured from the actual Illustrator backgrounds. */
.guide-id-confidence.guide-page-04 { --confidence-body-start:49cqw; }
.guide-id-confidence.guide-page-05 { --confidence-body-start:44cqw; }
.guide-id-confidence.guide-page-06 { --confidence-body-start:49cqw; }
.guide-id-confidence.guide-page-07 { --confidence-body-start:39cqw; }
.guide-id-confidence.guide-page-08 { --confidence-body-start:44cqw; }
.guide-id-confidence.guide-page-09 { --confidence-body-start:42cqw; }
.guide-id-confidence.guide-page-10 { --confidence-body-start:49cqw; }
.guide-id-confidence.guide-page-11 { --confidence-body-start:52cqw; }
.guide-id-confidence.guide-page-12 { --confidence-body-start:31cqw; }
.guide-id-confidence.guide-page-13 { --confidence-body-start:24cqw; }
.guide-id-confidence.guide-page-14 { --confidence-body-start:42cqw; }
.guide-id-confidence.guide-page-15 { --confidence-body-start:46cqw; }
.guide-id-confidence.guide-page-16 { --confidence-body-start:42cqw; }
.guide-id-confidence.guide-page-17 { --confidence-body-start:27cqw; }
.guide-id-confidence.guide-page-19 { --confidence-body-start:47cqw; }
.guide-id-confidence.guide-page-21,
.guide-id-confidence.guide-page-22,
.guide-id-confidence.guide-page-23,
.guide-id-confidence.guide-page-24,
.guide-id-confidence.guide-page-25,
.guide-id-confidence.guide-page-26 { --confidence-body-start:34cqw; }
.guide-id-confidence.guide-page-28 { --confidence-body-start:49cqw; }
.guide-id-confidence.guide-page-29 { --confidence-body-start:42cqw; }

.guide-id-confidence .confidence-top-quote {
  position:absolute; top:12.5cqw; right:6.2cqw; width:38%; margin:0 !important;
  color:#f4f4f4 !important; font-size:.9em; line-height:1.32; text-align:right; text-shadow:0 2px 4px rgba(0,0,0,.56);
}
.guide-id-confidence:is(.guide-page-07,.guide-page-09) .guide-sheet-source > h2 { max-width:53%; }
.guide-id-confidence:is(.guide-page-07,.guide-page-09) .confidence-top-quote { top:12.2cqw; width:40%; }

/* Page 02: title / light body / dark closing field are three explicit source zones. */
.guide-id-confidence.guide-page-02 .guide-sheet-source {
  padding:0 6.3cqw 5cqw; font-size:clamp(13.8px,2.08cqw,17.2px); line-height:1.38;
}
.guide-id-confidence.guide-page-02 .guide-sheet-source > h2 {
  position:absolute; top:5.4cqw; left:6.3cqw; right:6.3cqw; margin:0; max-width:68%;
  color:#ffab50; font-size:clamp(30px,5.05cqw,46px); line-height:.98; text-shadow:0 2px 5px rgba(0,0,0,.45);
}
.guide-id-confidence.guide-page-02 .confidence-light-body {
  position:absolute; top:35cqw; left:6.3cqw; right:6.3cqw; color:#171717; line-height:1.38;
}
.guide-id-confidence.guide-page-02 .confidence-light-body p { margin:0 0 1.05cqw; }
.guide-id-confidence.guide-page-02 .confidence-dark-tail {
  position:absolute; top:101.5cqw; left:6.3cqw; right:6.3cqw; margin:0; color:#f2f2f2; line-height:1.36; text-shadow:0 2px 4px rgba(0,0,0,.46);
}
.guide-id-confidence.guide-page-02 .confidence-dark-tail p { margin:0 0 1.05cqw; color:inherit; }

/* Page 03 follows the original biography split; body text keeps the same base size. */
.guide-id-confidence.guide-page-03 .guide-sheet-source { font-size:clamp(13.8px,2.08cqw,17.2px); line-height:1.36; }
.guide-id-confidence.guide-page-03 .guide-sheet-source p { margin-bottom:1.15cqw; }
.guide-id-confidence.guide-page-03 .guide-sheet-source > p:nth-of-type(3) { margin-top:11cqw; }

/* Page 11 contains a large black diagram in the middle of the white field – reserve it instead of printing through it. */
.guide-id-confidence.guide-page-11 .guide-sheet-source > p:nth-of-type(3) { margin-top:24.5cqw; }

/* Full-light pages: same body size, density only changes spacing. */
.guide-id-confidence:is(.guide-page-18,.guide-page-20,.guide-page-27,.guide-page-30) .guide-sheet-source {
  font-size:clamp(13.8px,2.08cqw,17.2px);
}
.guide-id-confidence.guide-page-30 .guide-sheet-source { padding-right:28cqw; line-height:1.28; }
.guide-id-confidence.guide-page-30 .guide-sheet-source p { margin-bottom:.9cqw; }

/* Speech-improvisation: stronger exercise hierarchy without shrinking body text. */
.guide-id-speech-improvisation .guide-sheet-source .guide-strong-paragraph {
  color:#ffbe72; font-size:1.08em; line-height:1.28; font-weight:850;
}
.guide-id-speech-improvisation .guide-sheet-source .guide-subhead {
  color:#ffc681; font-size:1.13em; line-height:1.24; font-weight:860; margin-top:.7cqw !important; margin-bottom:.75cqw !important;
}
.guide-id-speech-improvisation .guide-bot-cta .guide-strong-paragraph,
.guide-id-speech-improvisation .guide-bot-cta .guide-subhead { font-size:inherit; }

/* V13 geometry correction: source-sheet min-height is the whole A4 sheet, including padding. */
.guide-sheet-source { box-sizing: border-box; }

/* v1.59.1 – final confidence spacing corrections after source-overlay visual review. */
.guide-id-confidence.guide-page-29 .guide-sheet-source { line-height:1.32; }
.guide-id-confidence.guide-page-29 .guide-sheet-source > p { margin-bottom:1.0cqw; }
.guide-id-confidence.guide-page-29 .guide-paid-cta { margin:.6cqw 0 0; padding:1.0cqw 1.25cqw 1.05cqw; }
.guide-id-confidence.guide-page-29 .guide-paid-cta p { margin:.25cqw 0 .55cqw !important; }
/* Confidence paid-access cards stay readable on the light-body pages. */
.guide-id-confidence .guide-sheet-source .guide-paid-cta p { color:#eef1f6; }
@media (max-width:760px) {
  /* Page 02 keeps the source three-zone composition while allowing its full-size body copy to breathe on narrow screens. */
  .guide-id-confidence.guide-page-02 { background-size:100% auto; background-position:top center; background-color:#262626; }
  .guide-id-confidence.guide-page-02 .guide-sheet-source { min-height:174cqw; }
}
@media (max-width:410px) {
  .guide-id-confidence.guide-page-02 .guide-sheet-source { min-height:187cqw; }
}

/* v14 – Open Materials acceptance gate: adaptive guide catalogue, top page navigation and stable audio reader. */
@media (min-width: 981px) {
  /* A tall desktop uses the whole guide height instead of forcing an arbitrary 86vh sidebar. */
  .materials-workspace.is-guide-mode .materials-browser {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .materials-workspace.is-guide-mode .guide-library-list {
    flex: 0 0 auto;
    overflow: visible;
  }
  .materials-workspace.is-guide-mode .guide-page-index {
    flex: 0 0 auto;
    overflow: visible;
    padding: 9px 0 11px;
  }
  .materials-workspace.is-guide-mode .guide-page-index-head {
    padding: 0 14px 6px;
  }
  .materials-workspace.is-guide-mode .guide-page-link {
    min-height: 27px;
    padding: 3px 12px;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
  }
  .materials-workspace.is-guide-mode .guide-page-link strong {
    overflow: hidden;
    font-size: 10.8px;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .materials-workspace.is-guide-mode .guide-page-link span { font-size: 9px; }
}

/* On genuinely short desktop viewports the catalogue becomes viewport-bound and scrollable again. */
@media (min-width: 981px) and (max-height: 1049px) {
  .materials-workspace.is-guide-mode .materials-browser {
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
  }
  .materials-workspace.is-guide-mode .guide-library-list {
    overflow-y: auto;
    max-height: 39%;
  }
  .materials-workspace.is-guide-mode .guide-page-index {
    flex: 1 1 auto;
    overflow-y: auto;
  }
}

/* Compact top navigation around the reading progress. */
.guide-toolbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #718097;
  font-size: 11px;
}
.guide-top-nav { display: flex; align-items: center; gap: 6px; }
.guide-top-nav-arrow,
.guide-page-picker > summary {
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(139, 169, 226, .13);
  border-radius: 9px;
  background: rgba(17, 29, 47, .78);
  color: #a9c0fb;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.guide-top-nav-arrow { width: 30px; padding: 0; }
.guide-top-nav-arrow:hover,
.guide-page-picker > summary:hover { border-color: rgba(118, 153, 239, .28); background: rgba(29, 45, 71, .92); color: #d6e2ff; }
.guide-top-nav-arrow:disabled { opacity: .28; cursor: default; }
.guide-page-picker { position: relative; }
.guide-page-picker > summary {
  min-width: 62px;
  padding: 0 10px;
  list-style: none;
  user-select: none;
}
.guide-page-picker > summary::-webkit-details-marker { display: none; }
.guide-page-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 74vw);
  max-height: min(56vh, 470px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(139, 169, 226, .18);
  border-radius: 14px;
  background: rgba(10, 17, 28, .98);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  scrollbar-width: thin;
  scrollbar-color: #425b87 transparent;
}
.guide-page-picker-item {
  width: 100%;
  min-height: 38px;
  padding: 6px 9px;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.guide-page-picker-item:hover { background: rgba(92, 130, 225, .08); }
.guide-page-picker-item.is-active { background: rgba(92, 130, 225, .14); }
.guide-page-picker-item span { color: #7894d5; font-size: 10px; font-weight: 850; }
.guide-page-picker-item strong { overflow: hidden; color: #bdc8d9; font-size: 11px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.guide-page-picker-item.is-active span,
.guide-page-picker-item.is-active strong { color: #d7e2ff; }

/* Confidence page 03: source zones are explicit so the note never covers the bird artwork. */
.guide-id-confidence.guide-page-03 .confidence-page03 {
  position: relative;
  padding: 0;
  font-size: clamp(13.8px, 2.08cqw, 17.2px);
  line-height: 1.36;
}
.guide-id-confidence.guide-page-03 .confidence-page03-top {
  position: absolute;
  top: 6.1cqw;
  left: 6.3cqw;
  width: 50%;
  color: #f5f5f5;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}
.guide-id-confidence.guide-page-03 .confidence-page03-top h2 {
  margin: 0 0 2.4cqw;
  color: #ffab50;
  font-size: clamp(30px, 5.05cqw, 46px);
  line-height: .98;
  text-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.guide-id-confidence.guide-page-03 .confidence-page03-top p { margin: 0 0 1.15cqw; color: inherit; }
.guide-id-confidence.guide-page-03 .confidence-page03-body {
  position: absolute;
  top: 54cqw;
  bottom: 39cqw;
  left: 6.3cqw;
  right: 6.3cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #171717;
}
.guide-id-confidence.guide-page-03 .confidence-page03-body p { margin: 0 0 1.35cqw; }
.guide-id-confidence.guide-page-03 .confidence-page03-note {
  position: absolute;
  left: 6.3cqw;
  bottom: 5.7cqw;
  width: 55%;
  color: #232323;
}
.guide-id-confidence.guide-page-03 .confidence-page03-note p { margin: 0 0 .95cqw; color: inherit; }
.guide-id-confidence.guide-page-03 .confidence-page03-note .guide-subhead { margin: 0 0 .75cqw !important; color: #171717; font-size: 1em; }

/* Stable desktop podcast geometry: selecting another episode does not move the player or card bottom. */
@media (min-width: 761px) {
  .materials-workspace.is-audio-mode .materials-reader { min-height: 1020px; }
  .audio-reader-card {
    min-height: 1020px;
    box-sizing: border-box;
  }
  .audio-reader-hero { height: 330px; min-height: 330px; }
  .audio-reader-intro { height: 320px; min-height: 320px; }
  .audio-reader-intro h2 {
    height: 3.12em;
    min-height: 3.12em;
    overflow: hidden;
  }
  .audio-reader-intro > p {
    min-height: 5em;
    max-height: 5em;
    overflow: hidden;
  }
  .audio-reader-description { min-height: 265px; }
  .audio-reader-description.is-long p { line-height: 1.58; }
  .audio-reader-description.is-long p + p { margin-top: 11px; }
}


@media (min-width: 761px) and (max-width: 1100px) {
  .materials-workspace.is-audio-mode .materials-reader { min-height: 1120px; }
  .audio-reader-card { min-height: 1120px; }
}

@media (max-width: 760px) {
  .guide-toolbar-meta { gap: 8px; }
  .guide-toolbar-meta > span { display: none; }
  .guide-page-picker-menu { position: fixed; top: 74px; right: 14px; width: min(330px, calc(100vw - 28px)); max-height: 68vh; }
  .guide-id-confidence.guide-page-03 .confidence-page03 { min-height: 174cqw; }
  .guide-id-confidence.guide-page-03 .confidence-page03-top { top: 7cqw; width: 55%; }
  .guide-id-confidence.guide-page-03 .confidence-page03-body { top: 59cqw; bottom: 48cqw; }
  .guide-id-confidence.guide-page-03 .confidence-page03-note { bottom: 6.5cqw; width: 58%; font-size: .93em; line-height: 1.3; }
}

/* v14.1 – avoid title/excerpt clipping while preserving fixed podcast landmarks. */
@media (min-width: 1101px) {
  .audio-reader-intro h2 { height: 3.35em; min-height: 3.35em; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .audio-reader-hero { height: 390px; min-height: 390px; }
  .audio-reader-intro { height: 380px; min-height: 380px; }
  .audio-reader-intro h2 { height: 4.2em; min-height: 4.2em; font-size: clamp(26px, 3.3vw, 34px); }
  .audio-reader-intro h2.audio-title-long { font-size: clamp(24px, 3vw, 31px); }
  .audio-reader-intro h2.audio-title-xlong { font-size: clamp(22px, 2.75vw, 28px); }
  .audio-reader-intro > p { min-height: 7em; max-height: 7em; line-height: 1.58; }
  .materials-workspace.is-audio-mode .materials-reader,
  .audio-reader-card { min-height: 1190px; }
}


/* V26 – owner visual follow-up: natural article catalogue, readable guide nav and tighter podcast cards. */
@media (min-width: 761px) {
  /* Articles use the document scroll instead of a short nested scrollbar. */
  .materials-workspace.is-article-mode { align-items: stretch; }
  .materials-workspace.is-article-mode .materials-browser {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: stretch;
  }
  .materials-workspace.is-article-mode .materials-reader {
    min-height: 0;
  }
  .materials-workspace.is-article-mode .materials-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  /* Podcast geometry stays identical between episodes, but no longer wastes a full 1020px card. */
  .materials-workspace.is-audio-mode .materials-reader,
  .audio-reader-card { min-height: 900px; }
  .audio-reader-card { max-width: 980px; padding-top: 32px; padding-bottom: 52px; }
  .audio-reader-hero { grid-template-columns: minmax(240px, 286px) minmax(0, 1fr); height: 296px; min-height: 296px; gap: clamp(24px, 3.3vw, 42px); }
  .audio-reader-cover { max-width: 286px; }
  .audio-reader-intro { height: 286px; min-height: 286px; }
  .audio-reader-intro h2 { height: 3.05em; min-height: 3.05em; margin-bottom: 12px; }
  .audio-reader-intro > p { min-height: 4.25em; max-height: 4.25em; line-height: 1.58; }
  .audio-player-shell-custom { margin-top: 28px; padding-top: 21px; padding-bottom: 22px; }
  .audio-reader-description { min-height: 190px; margin-top: 26px; padding-top: 22px; }
  .audio-reader-description p { line-height: 1.62; }
  .audio-reader-description p + p,
  .audio-reader-description.is-long p + p { margin-top: 8px; }
}

/* The guide catalogue is navigation, not legal fine print. */
.guide-list-item-compact { min-height: 56px; }
.guide-list-item-compact .guide-list-copy strong {
  font-size: 14.5px;
  line-height: 1.34;
  font-weight: 600;
}

/* V34 – article catalogue typography matches the readable guide navigation rhythm. */
.material-list-item-compact .material-list-copy strong {
  font-size: 14.5px;
  line-height: 1.34;
  font-weight: 600;
}
@media (min-width: 981px) {
  .materials-workspace.is-guide-mode .guide-page-link { min-height: 32px; padding: 5px 12px; }
  .materials-workspace.is-guide-mode .guide-page-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13.2px;
    line-height: 1.26;
    font-weight: 560;
    white-space: normal;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .materials-workspace.is-guide-mode .guide-page-link span { font-size: 10.5px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .materials-workspace.is-audio-mode .materials-reader,
  .audio-reader-card { min-height: 1060px; }
  .audio-reader-hero { height: 350px; min-height: 350px; }
  .audio-reader-intro { height: 340px; min-height: 340px; }
  .audio-reader-intro h2 { height: 3.7em; min-height: 3.7em; }
  .audio-reader-intro > p { min-height: 5.5em; max-height: 5.5em; }
}

/* V27 – owner guide pager polish: balanced toolbar, equal controls, compact page counter. */
.guide-reader-toolbar {
  min-height: 52px;
  position: relative;
}
.guide-reader-toolbar > .guide-toolbar-meta {
  width: 100%;
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: #7f8ea5;
  font-size: 12px;
}
.guide-reader-toolbar > .guide-toolbar-meta > span {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.guide-reader-toolbar .guide-top-nav {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid rgba(139, 169, 226, .13);
  border-radius: 14px;
  background: rgba(11, 19, 31, .54);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.guide-reader-toolbar .guide-top-nav-arrow,
.guide-reader-toolbar .guide-page-picker > summary {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  margin: 0;
  border-radius: 10px;
  line-height: 1;
}
.guide-reader-toolbar .guide-top-nav-arrow {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 15px;
}
.guide-reader-toolbar .guide-page-picker {
  height: 38px;
}
.guide-reader-toolbar .guide-page-picker > summary {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.guide-reader-toolbar .guide-page-picker[open] > summary {
  border-color: rgba(118, 153, 239, .32);
  background: rgba(29, 45, 71, .96);
  color: #dce6ff;
}
/* Do not let the generic toolbar <strong> rule deform labels inside the picker menu. */
.guide-reader-toolbar .guide-page-picker-menu .guide-page-picker-item strong {
  min-width: 0;
  height: auto;
  display: block;
  place-items: initial;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 980px) {
  .guide-reader-toolbar > .guide-toolbar-meta {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .guide-reader-toolbar > .guide-toolbar-meta > span { grid-column: 1; }
  .guide-reader-toolbar .guide-top-nav { grid-column: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .guide-reader-toolbar { min-height: 48px; gap: 8px; }
  .guide-reader-toolbar > .guide-toolbar-meta {
    width: auto;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }
  .guide-reader-toolbar > .guide-toolbar-meta > span { display: none; }
  .guide-reader-toolbar .guide-top-nav { padding: 2px; }
  .guide-reader-toolbar .guide-top-nav-arrow,
  .guide-reader-toolbar .guide-page-picker,
  .guide-reader-toolbar .guide-page-picker > summary {
    height: 36px;
    min-height: 36px;
  }
  .guide-reader-toolbar .guide-top-nav-arrow { width: 36px; min-width: 36px; }
  .guide-reader-toolbar .guide-page-picker > summary { width: 64px; min-width: 64px; max-width: 64px; }
  /* Earlier mobile rule hides toolbar descendant spans; restore page numbers inside the picker menu. */
  .guide-reader-toolbar .guide-page-picker-menu .guide-page-picker-item span { display: block; }
}


/* ========================================================================
   Open Materials v1.82 · shared landing style system · 2026-09-06
   Adds dark/light parity, shared glow surfaces and a documented page chrome.
   ======================================================================== */

.materials-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(960px 620px at 92% -8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 66%),
    radial-gradient(840px 620px at -6% 28%, color-mix(in srgb, #6A7F96 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--canvas, var(--bg)), var(--bg));
}
.materials-page .brand { color: var(--text); }
.materials-brand-tools { display: inline-flex; align-items: center; gap: 14px; }
.materials-theme-toggle { flex: 0 0 auto; }
.materials-header,
.materials-library,
.materials-channels,
.materials-footer-cta {
  border-color: var(--line);
}
.materials-library,
.materials-channels,
.materials-footer-cta,
.materials-browser,
.materials-reader,
.material-list-item,
.materials-tab,
.materials-channel-card {
  position: relative;
  isolation: isolate;
}
.materials-channels,
.materials-footer-cta,
.material-list-item,
.materials-tab,
.materials-channel-card { overflow: hidden; }
.materials-library::before,
.materials-channels::before,
.materials-footer-cta::before,
.material-list-item::before,
.materials-tab::before,
.materials-channel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--cursor-opacity, 0);
  background: radial-gradient(260px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(104,151,219,.14) 0%, rgba(79,124,178,.06) 36%, transparent 78%);
  transition: opacity .24s ease;
  z-index: 0;
}
html[data-theme="light"] .materials-library::before,
html[data-theme="light"] .materials-channels::before,
html[data-theme="light"] .materials-footer-cta::before,
html[data-theme="light"] .material-list-item::before,
html[data-theme="light"] .materials-tab::before,
html[data-theme="light"] .materials-channel-card::before {
  background: radial-gradient(240px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(233,144,67,.14) 0%, rgba(135,105,74,.07) 36%, transparent 78%);
}
.materials-library > *,
.materials-channels > *,
.materials-footer-cta > *,
.material-list-item > *,
.materials-tab > *,
.materials-channel-card > :not(.cursor-glow-layer) { z-index: 1; }
.materials-header { width: min(calc(100% - 48px), 1480px); }
.materials-header,
.materials-library,
.materials-channels,
.materials-footer-cta {
  background: linear-gradient(145deg, rgba(15, 24, 39, .84), rgba(8, 14, 24, .95));
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.materials-header {
  margin-top: 22px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(16px) saturate(120%);
}
.materials-library {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 42px 34px 52px;
}
.materials-tabs { background: rgba(255,255,255,.04); }
.materials-tab {
  color: var(--muted-strong);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.materials-tab.is-active {
  color: #FFD0A1;
  border-color: #A9682E;
  background: rgba(245,160,79,.12);
  box-shadow: inset 0 -2px 0 rgba(245,160,79,.55);
}
.materials-workspace { background: rgba(255,255,255,.015); border-color: rgba(154,179,220,.14); }
.materials-browser { background: linear-gradient(180deg, rgba(15,23,38,.92), rgba(10,16,27,.98)); }
.materials-reader { background: linear-gradient(180deg, rgba(10,16,27,.95), rgba(8,14,24,.98)); }
.material-list-item { background: rgba(255,255,255,.03); border-color: rgba(140,168,214,.12); }
.material-list-item.is-active { border-color: rgba(245,160,79,.36); box-shadow: inset 0 -2px 0 rgba(245,160,79,.48); }
.materials-channels {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(14, 22, 36, .88), rgba(8, 14, 24, .96));
}
.materials-channel-card {
  border-color: rgba(140,168,214,.14);
  background: linear-gradient(145deg, rgba(18, 28, 46, .92), rgba(10, 16, 27, .98));
}
.materials-footer-cta {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(14,22,36,.88), rgba(8,14,24,.96));
}
html[data-theme="light"] .materials-page { color: var(--text); }
html[data-theme="light"] .materials-header,
html[data-theme="light"] .materials-library,
html[data-theme="light"] .materials-channels,
html[data-theme="light"] .materials-footer-cta {
  background: linear-gradient(138deg, #FFFDF9 0%, #F7F3EE 58%, #ECE7E1 100%);
  border-color: #D3CEC7;
  box-shadow: 0 18px 46px rgba(56, 61, 69, .08), inset 0 1px 0 rgba(255,255,255,.90);
}
html[data-theme="light"] .materials-top-nav { color: #5D6A7C; }
html[data-theme="light"] .materials-top-nav a:hover { color: var(--text); }
html[data-theme="light"] .materials-hero h1 { color: var(--text); }
html[data-theme="light"] .materials-hero h1 span { color: var(--accent-text); }
html[data-theme="light"] .materials-lead,
html[data-theme="light"] .materials-category-copy,
html[data-theme="light"] .materials-channels-copy > p:last-child { color: var(--muted); }
html[data-theme="light"] .materials-tabs { background: #F1EEE8; }
html[data-theme="light"] .materials-tab {
  color: #344254;
  border-color: #D7D2CC;
  background: linear-gradient(180deg, #FAF8F3 0%, #F0ECE6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-theme="light"] .materials-tab:hover { color: #1F2835; border-color: #D1A46B; }
html[data-theme="light"] .materials-tab.is-active {
  color: #5D3613;
  border-color: #D29A63;
  background: linear-gradient(180deg, #FFF4E5 0%, #F3E4D1 100%);
  box-shadow: inset 0 -2px 0 rgba(233,144,67,.52), 0 10px 22px rgba(125, 89, 51, .09);
}
html[data-theme="light"] .materials-workspace { background: #F8F5F0; border-color: #D8D2CB; }
html[data-theme="light"] .materials-browser { background: linear-gradient(180deg, #F8F5F0, #F0ECE5); border-right-color: #DDD8D1; }
html[data-theme="light"] .materials-reader { background: linear-gradient(180deg, #FFFCF7, #F6F1EA 66%, #EEE9E2); }
html[data-theme="light"] .materials-browser-head span,
html[data-theme="light"] .materials-browser-head strong,
html[data-theme="light"] .materials-library h2,
html[data-theme="light"] .materials-footer-cta h2,
html[data-theme="light"] .materials-channels-copy h2 { color: var(--text); }
html[data-theme="light"] .materials-search input { color: var(--text); background: #FFFDF9; border-color: #D8D2CB; }
html[data-theme="light"] .materials-search input::placeholder { color: #8792A1; }
html[data-theme="light"] .material-list-item {
  color: #334052;
  background: linear-gradient(180deg, #FCFAF6 0%, #F1EDE7 100%);
  border-color: #D8D2CB;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-theme="light"] .material-list-item strong,
html[data-theme="light"] .material-list-number { color: var(--text); }
html[data-theme="light"] .material-list-item.is-active {
  border-color: #D29A63;
  background: linear-gradient(180deg, #FFF6EA 0%, #F2E6D8 100%);
  box-shadow: inset 0 -2px 0 rgba(233,144,67,.5), 0 12px 24px rgba(87, 72, 56, .08);
}
html[data-theme="light"] .materials-empty { border-color: #D9D3CB; color: var(--muted); }
html[data-theme="light"] .materials-empty strong { color: var(--text); }
html[data-theme="light"] .materials-channel-card {
  border-color: #D8D2CB;
  background: linear-gradient(145deg, #FFFCF7, #F2EDE6 70%, #ECE7E1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-theme="light"] .materials-channel-card:hover {
  border-color: #D1A46B;
  background: linear-gradient(145deg, #FFF9EF, #F4EBDD 74%, #EEE7DE);
  box-shadow: 0 14px 28px rgba(82, 71, 57, .08), inset 0 1px 0 rgba(255,255,255,.95);
}
html[data-theme="light"] .materials-channel-icon { background: rgba(233, 144, 67, .08); color: #C67C35; }
html[data-theme="light"] .materials-channel-copy small { color: #7B6A58; }
html[data-theme="light"] .materials-channel-copy strong { color: var(--text); }
html[data-theme="light"] .materials-channel-copy > span,
html[data-theme="light"] .materials-channel-arrow { color: var(--muted); }
html[data-theme="light"] .materials-footer-cta .button { border-color: #D0D5DD; background: #F8F5F0; color: var(--text); }
html[data-theme="light"] .materials-footer-cta .button:hover { border-color: #D1A46B; background: #FFF8EE; }
@media (max-width: 760px) {
  .materials-header { width: calc(100% - 32px); padding: 14px 18px; }
  .materials-brand-tools { gap: 10px; }
}


/* Open Materials v1.82 corrective: shared glow layer only. */
.materials-library::before,
.materials-channels::before,
.materials-footer-cta::before,
.material-list-item::before,
.materials-tab::before,
.materials-channel-card::before { content: none; }

/* v1.83 reader/light repairs. Authored guide pages/covers are media surfaces,
   not themeable HTML chrome; their original layout and artwork stay intact. */
.materials-page .materials-ambient { display: none; }
.materials-page .materials-hero h1 span {
  color: var(--sand); background: none; -webkit-text-fill-color: currentColor;
}
.materials-page .materials-library .materials-workspace { min-width: 0; }
.materials-page .materials-browser,
.materials-page .materials-reader { min-width: 0; }
.materials-page .materials-library { padding: 32px 24px 36px; }
.materials-page .materials-top-nav a:hover { color: var(--accent); }
.materials-page .materials-library :is(button,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.materials-page .materials-library :is(.guide-page-picker-menu) { z-index: 20; }
html[data-theme="light"] .materials-page :is(.article-reader-title,.reader-title,.audio-reader-title,.article-reader-body,.article-body,.reader-placeholder,.article-bot-cta,.audio-player-card,.audio-player,.audio-reader-description) { color: var(--text); }
html[data-theme="light"] .materials-page :is(.article-reader-body,.article-body) :is(p,li,blockquote,h3,h4,strong) { color: inherit; }
html[data-theme="light"] .materials-page :is(.reader-meta,.article-reader-meta,.article-reader-excerpt,.article-reader-date,.audio-reader-meta,.audio-reader-description,.reader-back,.audio-time) { color: var(--muted-strong); }
html[data-theme="light"] .materials-page :is(.article-reader-body,.article-body) a { color: var(--accent-text); }
html[data-theme="light"] .materials-page .article-bot-cta { background: var(--satin); border-color: var(--line-strong); box-shadow: none; }
html[data-theme="light"] .materials-page .article-bot-cta :is(strong,p,a) { color: var(--text); }
html[data-theme="light"] .materials-page :is(.guide-list-item,.guide-page-link,.guide-top-nav,.guide-top-nav-arrow,.guide-page-picker > summary,.guide-page-picker-menu,.guide-page-picker-item,.guide-bottom-nav button,.audio-list-item) {
  background: var(--surface-raised); border-color: var(--line); color: var(--text); box-shadow: none;
}
html[data-theme="light"] .materials-page :is(.guide-list-item,.guide-page-link,.guide-page-picker-item,.audio-list-item) :is(strong,small,span) { color: var(--muted-strong); }
html[data-theme="light"] .materials-page :is(.guide-list-item,.guide-page-link,.guide-page-picker-item,.audio-list-item).is-active { background: var(--accent-soft); border-color: var(--accent-text); }
html[data-theme="light"] .materials-page :is(.guide-list-item,.guide-page-link,.guide-page-picker-item,.audio-list-item).is-active :is(strong,span) { color: var(--text); }
html[data-theme="light"] .materials-page .materials-reader > :is(.article-reader,.audio-reader) { background: transparent; }
@media (max-width: 760px) {
  .materials-page .materials-library { padding: 22px 12px 26px; border-radius: 22px; }
  .materials-page .materials-header { flex-wrap: wrap; gap: 12px; }
  .materials-page .materials-header .brand { font-size: 13px; letter-spacing: .08em; }
}

/* v1.84: actual article/audio inner nodes must inherit the Light foreground,
   not legacy pale #a6b1c0 from their nested text container. */
.materials-page :is(.article-reader-meta > span,.audio-reader-meta > span,.audio-reader-description > span) { color: var(--sand); }
html[data-theme="light"] .materials-page .article-rich-text { color: var(--muted-strong); }
html[data-theme="light"] .materials-page .article-rich-text > p:first-child { color: var(--text); }
html[data-theme="light"] .materials-page .article-rich-text :is(strong,h3,h4,em) { color: var(--text); }
html[data-theme="light"] .materials-page .article-rich-text :is(ul,ol,li,blockquote) { color: var(--muted-strong); }
html[data-theme="light"] .materials-page .article-rich-text blockquote { border-color: var(--sand); background: var(--sand-soft); }
html[data-theme="light"] .materials-page .article-rich-text code { background: var(--surface-focal); border-color: var(--line); color: var(--accent-text); }
html[data-theme="light"] .materials-page :is(.audio-reader-intro > p,.audio-reader-description p,.audio-reader-meta strong,.guide-toolbar-meta > span,.guide-page-index-head,.audio-list-copy em) { color: var(--muted-strong); }
.materials-page .article-bot-cta-action { background: var(--accent); color: var(--cta-text) !important; box-shadow: none; }
html[data-theme="light"] .materials-page :is(.audio-player-shell,.audio-custom-player) { background: var(--surface-focal); border-color: var(--line); box-shadow: none; }
html[data-theme="light"] .materials-page :is(.audio-player-heading span,.audio-player-heading strong,.audio-custom-time span,.audio-custom-time strong,.reader-mobile-bar,.reader-mobile-bar button) { color: var(--muted-strong); }
html[data-theme="light"] .materials-page :is(.audio-custom-play,.audio-custom-mute) { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
html[data-theme="light"] .materials-page .audio-custom-seek { accent-color: var(--accent-text); }
.materials-page .materials-list { overflow-anchor: none; }
.materials-page .materials-channel-card :is(strong,span) { overflow-wrap: anywhere; }
