/* Readability corrections for the portfolio and legacy dark pages.
   Reading Assistant does not load this file. App workspaces use their own theme. */
@media screen {
  body[data-site-theme] .profile-page :is(.text-muted-foreground,.text-gray-400,.text-slate-400){color:#ddcbbb}
  body[data-site-theme] .profile-page :is(p,li){line-height:1.7}
  body[data-site-theme] .profile-page .prose{font-size:1rem;line-height:1.75}
  body[data-site-theme] .profile-page .mobile-about-copy{font-size:1rem;line-height:1.7}
  body[data-site-theme] .profile-page .profile-bottom-nav :is(a,button){min-height:44px}
  body[data-site-theme] .profile-page .profile-bottom-nav :is(span,.text-xs){font-size:.875rem;line-height:1.4;white-space:normal}
  body[data-site-theme] .profile-page :is(.text-\[10px\],.text-\[11px\]){font-size:.75rem;line-height:1.5}
  body[data-site-theme] .profile-page :is(a,p,h1,h2,h3){overflow-wrap:anywhere}
  body[data-site-theme] .bc-contact span{font-size:.75rem;line-height:1.5}
  body[data-site-theme] .mobile-card-sheet{background:linear-gradient(125deg,#62442deb,#30221cf2 42%,#191411f5)}
  body[data-site-theme] .book-caption span{color:#d0b8a1;font-size:.8125rem}
  body[data-site-theme] .books-footer{color:#d0b8a1}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.row-actions a,.course-meta-grid,.bar-chart small,.bar-chart span,.side-label,.reading){color:#d8c4b1}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.reading,.submission-text){font-size:1rem;line-height:1.8}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.format-bar,.submission-text,.quiz-start,.quiz-result){background:#30241e;color:#fff1e2;border-color:#806247}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.format-bar span,.quiz-result p,.quiz-start p){color:#d8c4b1}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.format-bar button,.mini-actions button,.question .actions button,.filter-tabs button,.setting-tabs button,.row-actions button,.row-actions a){font-size:.875rem;line-height:1.5;min-height:36px}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.tag,.badge){font-size:.8125rem;line-height:1.5;white-space:normal}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(.tag.approved,.tag.available){color:#c5efd6;background:#254333}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) .tag.refunded{color:#e0dcff;background:#403451}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) .tag.trash{color:#ffd3d5;background:#582e32}
  body[data-site-theme]:not(.workspace-theme):not(.course-designer) :is(input,select,textarea){font-size:1rem}
  body[data-site-theme].publishing-page:not(.course-designer) small{color:#d8c4b1;font-size:.8125rem}
  body[data-site-theme].publishing-page:not(.course-designer) :is(.article-body,.prose){color:#fff1e2;line-height:1.8;font-size:1.1875rem}
  body[data-site-theme].publishing-page:not(.course-designer) :is(.article-body,.prose) a{color:#ffdaa8;text-decoration:underline;text-underline-offset:4px}
  body[data-site-theme]:is(.catalog,.analytics-page) .brand small{font-size:.75rem;line-height:1.5}
  body[data-site-theme].vertical-player .caption{background:#1a1818ed}
  body[data-site-theme].vertical-player .caption p{font-size:1rem;line-height:1.6}
}
/* Preserve the fixed outer frame while letting enlarged text scroll inside it. */
@media screen and (max-width:767px){
  body[data-site-theme] .profile-page .mobile-about-copy{font-size:1rem!important}
  body[data-site-theme] .profile-page .mobile-name-card{min-width:0;flex-shrink:0}
  body[data-site-theme] .profile-page .profile-bottom-nav{flex-wrap:wrap;row-gap:4px}
}

@media screen {
  body[data-site-theme] .profile-page :is(.text-white\/40,.text-white\/50,.text-white\/60,.text-white\/70){color:#ddcbbb}
  body[data-site-theme] .profile-page :is(p.text-xs,li.text-xs,.career-experience-scroll .text-xs){font-size:.875rem}
  body[data-site-theme] .profile-page .profile-bottom-nav>.glass-panel{flex-wrap:wrap;justify-content:center}
}
