/* Shared chapter navigation for public profiles and the People directory. */
body.people-reading.roster-page.roster-poster #main-content.roster-main {
  display: block !important;
}
body.profile-reading #main-content .profile-reading-navigation {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 24px !important;
  padding: 20px 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #454545 !important;
  background: none !important;
}
body.profile-reading #main-content .profile-reading-label {
  margin: 0 0 8px !important;
  color: #c7c7c7 !important;
  font: 700 12px/1.4 Arial, sans-serif !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.profile-reading-nav,
.people-reading-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.profile-reading #main-content .profile-reading-nav a,
body.people-reading #main-content .people-reading-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #555;
  color: #fff !important;
  background: #181818;
  font: 700 15px/1.35 Arial, sans-serif !important;
  text-decoration: none;
}
.profile-reading-nav a:hover,
.people-reading-nav a:hover {
  border-color: #e31b23 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.profile-reading-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 12px;
}
body.profile-reading #main-content .profile-reading-index {
  min-width: 0;
  flex: 1 1 16rem;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
body.profile-reading #main-content .profile-reading-index > summary {
  width: fit-content;
  padding: 5px 0 !important;
  color: #d7d7d7 !important;
  background: none !important;
  font: 600 14px/1.5 Arial, sans-serif !important;
  cursor: pointer;
}
body.profile-reading #main-content .profile-reading-index .profile-record-nav {
  margin: 8px 0 0 !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #454545 !important;
}
body.profile-reading #main-content .profile-reading-index .profile-record-nav > div {
  gap: 4px 18px;
}
body.profile-reading #main-content .profile-reading-index .profile-record-nav :is(a,p) {
  min-height: 32px;
  font-size: 14px !important;
}
.profile-reading-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.profile-reading-controls[hidden] { display: none; }
.profile-reading-controls button {
  padding: 5px 0;
  border: 0;
  background: none;
  color: #ddd;
  font: 600 14px/1.5 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
body.profile-reading #main-content .profile-reading-chapter {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  border: 1px solid #484848 !important;
  border-left: 3px solid #e31b23 !important;
  border-radius: 0 !important;
  background: #151515 !important;
  box-shadow: none !important;
  color: #fff !important;
  scroll-margin-top: 170px;
}
body.profile-reading #main-content .profile-reading-chapter > summary {
  position: relative;
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 17px 54px 17px 20px !important;
  background: #191919 !important;
  color: #fff !important;
  font: 750 19px/1.35 Arial, sans-serif !important;
  cursor: pointer;
}
.profile-reading-chapter > summary::-webkit-details-marker { display: none; }
.profile-reading-chapter > summary::marker { content: ''; }
body.profile-reading #main-content .profile-reading-chapter > summary::after {
  content: '+' !important;
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ff4c55 !important;
  font: 400 27px/1 Arial, sans-serif !important;
}
body.profile-reading #main-content .profile-reading-chapter[open] > summary::after {
  content: '−' !important;
}
body.profile-reading #main-content .profile-reading-chapter > summary small {
  display: block;
  margin-top: 5px;
  color: #bfbfbf !important;
  font: 400 14px/1.5 Arial, sans-serif !important;
}
body.profile-reading #main-content .profile-reading-chapter > :is(.profile-reading-body,.reading-fold-body) {
  padding: 20px !important;
  border-top: 1px solid #454545 !important;
}
.profile-reading-body > :first-child { margin-top: 0 !important; }
.profile-reading-body > :last-child { margin-bottom: 0 !important; }
body.profile-reading #main-content .profile-file > summary {
  gap: 16px;
  padding: 18px 0 !important;
}
body.profile-reading #main-content .profile-file > summary strong {
  font: 750 20px/1.35 Arial, sans-serif !important;
  text-transform: none !important;
}
body.profile-reading #main-content .profile-file > summary small {
  font: 400 14px/1.5 Arial, sans-serif !important;
}
body.profile-reading #main-content [id] { scroll-margin-top: 170px; }
.profile-reading-navigation :is(a,button,summary):focus-visible,
.profile-reading-chapter > summary:focus-visible,
.people-reading-nav a:focus-visible,
.people-reading-context > summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
body.people-reading #main-content .people-reading-nav {
  margin: 0 !important;
  padding: 16px 0 !important;
  border: 0 !important;
  background: none !important;
}
body.people-reading #main-content .people-reading-context {
  padding: 0 !important;
  margin: 22px 0 30px !important;
  border: 1px solid #484848 !important;
  background: none !important;
}
body.people-reading #main-content .people-reading-context > summary {
  padding: 16px 20px;
  color: #fff;
  font: 700 16px/1.4 Arial, sans-serif;
  cursor: pointer;
}
.people-reading-context > div { padding: 0 20px 20px; }
body.people-reading #main-content .people-reading-context .audit-entry {
  margin: 0 !important;
  padding: 20px 0 !important;
  border: 0 !important;
}
body.people-reading #main-content .people-reading-context .roster-bottom {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  border-top-width: 1px !important;
}
@media (max-width: 640px) {
  body.profile-reading #main-content .profile-reading-chapter > summary {
    padding: 16px 44px 16px 14px !important;
    font-size: 17px !important;
  }
  body.profile-reading #main-content .profile-reading-chapter > summary::after { right: 14px; }
  body.profile-reading #main-content .profile-reading-chapter > :is(.profile-reading-body,.reading-fold-body) {
    padding: 16px 12px !important;
  }
  body.profile-reading #main-content .profile-reading-nav a,
  body.people-reading #main-content .people-reading-nav a { padding-inline: 10px; font-size: 14px !important; }
  .profile-reading-options { gap: 6px; }
  .profile-reading-controls { flex-basis: 100%; }
}
@media print {
  .profile-reading-navigation { display: none !important; }
  .profile-reading-chapter > .profile-reading-body { display: block !important; }
  .profile-reading-chapter > summary::after { display: none !important; }
}

/* Related profiles retain their authored analysis inside consistent chapters. */
body.profile-reading.profile-reading-secondary #main-content {
  box-sizing: border-box;
  display: block !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  min-width: 0;
  margin: 0 auto !important;
  padding: 28px 0 56px !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body > :is(section,article,header) {
  margin: 0 0 24px !important;
  padding-top: 18px !important;
  padding-bottom: 20px !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body h2 {
  font-size: clamp(25px, 3vw, 38px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body h3 {
  font-size: clamp(20px, 2.1vw, 26px) !important;
  line-height: 1.28 !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body :is(p,li,blockquote,a) {
  overflow-wrap: anywhere;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body :is(img,video,audio,iframe) {
  max-width: 100%;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-source-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px 20px !important;
  margin: 8px 0 0 !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #454545 !important;
  background: none !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-source-nav a {
  min-height: 32px !important;
  padding: 4px 0 !important;
  font-size: 14px !important;
}
.profile-reading-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
}
.profile-reading-related a {
  color: #eee;
  font: 600 15px/1.5 Arial, sans-serif;
  text-underline-offset: 4px;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body .county-hero h2 span {
  color: #ff454c;
}
body.profile-reading.profile-reading-secondary #main-content :is(.ej-access-panel,.ce-stream-register) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
body.profile-reading.profile-reading-secondary #main-content .ej-access-table {
  min-width: 600px;
}
body.profile-reading.profile-reading-secondary #main-content .ej-access-table :is(th,td) {
  display: table-cell !important;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body .shubham-exit-photo {
  width: min(100%, 523px);
  margin: 0 auto 24px;
  border-top: 3px solid #e31b23;
  background: #181818;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body .shubham-rms-panel {
  width: 100%;
  margin: 20px 0 0 !important;
  padding: 20px !important;
  background: #f7f9fb;
  border: 1px solid #d0d0d0;
  border-top: 3px solid #e31b23;
}
body.profile-reading.profile-reading-secondary #main-content .profile-reading-body .shubham-court-update {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #5c5c5c;
  background: #181818 !important;
  color: #fff !important;
}
body.page-shubham.profile-reading #main-content > .viral-hero {
  width: 100%;
}
@media (max-width: 640px) {
  body.profile-reading.profile-reading-secondary #main-content {
    width: calc(100% - 28px) !important;
    padding-top: 18px !important;
  }
  body.profile-reading.profile-reading-secondary #main-content .profile-reading-body > :is(section,article,header) {
    padding-top: 12px !important;
    padding-bottom: 16px !important;
  }
  body.profile-reading.profile-reading-secondary #main-content .profile-reading-body .shubham-rms-panel {
    padding: 14px !important;
  }
}

body.profile-reading #main-content > .profile-commentary {
  margin: 18px 0 24px !important;
  padding: clamp(18px, 3vw, 32px) !important;
  border-top: 4px solid #e31b23;
  background: #151515;
  color: #f4f4f4;
  scroll-margin-top: 4rem;
}
body.profile-reading #main-content .profile-commentary h2 {
  max-width: 32ch;
  margin: 0 0 18px !important;
  color: #fff;
  font: 900 clamp(28px, 4vw, 46px)/1.1 'IVDB Condensed', Impact, Arial, sans-serif !important;
}
body.profile-reading #main-content .profile-commentary p {
  max-width: 72ch;
  margin: 0 0 1em !important;
  color: inherit;
  font: 400 clamp(17px, 1.4vw, 20px)/1.55 Arial, sans-serif !important;
}
body.profile-reading #main-content .profile-commentary p:last-child {
  margin-bottom: 0 !important;
}
