/* One frozen bar: the logo and the menu stay at the top of every EnScribe page. */
body > header.app-header,
body > nav#siteNav,
body > nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 900 !important;
  background: #0A090D !important;
  border-bottom: 1px solid #232029 !important;
  backdrop-filter: none !important;
}
body > header.app-header .wrap,
body > nav .wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: min(1360px, calc(100% - 32px)) !important;
  min-height: 112px !important;
  height: auto !important;
  padding: 8px 0 !important;
  margin: 0 auto !important;
}
body > header.app-header .nav-brand,
body > nav .nav-brand,
body > nav > .wrap > a {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  flex: none !important;
  text-align: center !important;
}
body > header.app-header .nav-brand *,
body > nav .nav-brand *,
body > nav > .wrap > a * {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
body > header.app-header img,
body > nav img {
  height: 88px !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
}
#esAppVersion,
.es-app-version {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  color: #FFFFFF !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
body > header.app-header ul,
body > nav ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
body > header.app-header ul a,
body > nav ul a {
  color: #A8A0A6 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  white-space: nowrap !important;
}
body > header.app-header ul a:hover,
body > nav ul a:hover,
body > header.app-header ul a[aria-current="page"],
body > nav ul a[aria-current="page"] {
  color: #EDE9EA !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}
html {
  scroll-padding-top: 132px;
  scroll-padding-bottom: 180px;
}
body {
  padding-top: 120px;
}

/* Minimalist UI: hide non-expandable clutter & verbose sub-labels */
.score-tile .sub,
.group-summary,
#scorecardSub,
.scorecard-banner .eyebrow,
.deep-dive,
.evaluator-bio-card,
.rubric-defense-card,
.rubric-addon-toggle-box,
.ad-how,
.drop-hint,
.es-what-box {
  display: none !important;
}
@media (max-width: 1300px) {
  body > nav#siteNav .nav-toggle { display: none !important; }
  body > nav#siteNav ul,
  body > nav ul,
  body > header.app-header ul {
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body > nav#siteNav ul a,
  body > nav ul a,
  body > header.app-header ul a {
    display: inline !important;
    padding: 0 !important;
  }
}
.page-head:has(> h1.es-page-title),
.hero:has(> h1.es-page-title) {
  padding: 8px 0 0;
  border-bottom: 0;
  margin-bottom: 8px;
}
.page-head h1.es-page-title,
.hero h1.es-page-title {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 6px 0 16px;
  letter-spacing: 0;
  color: #fff;
}
.es-note {
  background: #17161A;
  border: 1px solid #34303A;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 18px 0;
}
.es-note summary {
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.es-note p, .es-note li {
  color: #D6D0D3;
  font-size: 15px;
  line-height: 1.55;
}
/* Step 2: Tone down vermillion horizontal .stripe and eliminate red initial letters (.fl / .bl-f) outside EnScribe wordmark */
.stripe {
  height: 2px !important;
  background: linear-gradient(90deg, #E8553F 0%, #F07A3A 60%, transparent 100%) !important;
  border: 0 !important;
  opacity: 0.85 !important;
}
.fl,
h1 .bl-f,
h2 .bl-f,
h3 .bl-f,
h4 .bl-f,
.hero .fl,
.page-head .fl {
  color: inherit !important;
}

/* Step 5: Universal Reassurance Strip */
.es-reassurance-strip {
  max-width: 1120px;
  width: calc(100% - 32px);
  margin: 28px auto 12px;
  padding: 12px 18px;
  background: #17161A;
  border: 1px solid #2B2638;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: Montserrat, sans-serif;
  font-size: 12.5px;
  color: #D6D0D3;
  text-align: center;
}
.es-reassurance-strip b {
  color: #EDE9EA;
  font-weight: 700;
}
.es-reassurance-strip a {
  color: #F07A3A;
  font-weight: 700;
  text-decoration: none;
}
.es-reassurance-strip a:hover {
  text-decoration: underline;
}
.es-reassure-dot {
  color: #6F6870;
}

/* Unified EnScribe Footer: AUTOMATA logo lower-left, copyright EnScribe 2026 AUTOMATA Reports, Contact page link */
footer.site-footer,
body > footer {
  border-top: 1px solid #34303A;
  padding: 32px 0;
  margin-top: 28px;
  background: #17161A;
  font-family: Montserrat, sans-serif;
  font-size: 13.5px;
  color: #A8A0A6;
}
.es-footer-wrap {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.es-footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.es-footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  flex-shrink: 0;
}
.es-footer-copy {
  margin: 0;
  font-size: 13.5px;
  color: #D6D0D3;
  line-height: 1.4;
}
.es-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.es-footer-links a {
  color: #A8A0A6;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.es-footer-links a:hover {
  color: #EDE9EA;
}
@media (max-width: 760px) {
  body { padding-top: 132px; overflow-x: hidden; }
  body > header.app-header .wrap,
  body > nav .wrap {
    flex-wrap: wrap !important;
    padding: 8px 0 !important;
  }
  .app-shell {
    padding: 20px 14px !important;
  }
  .es-paper-type-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  #esPaperType {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* A wrapped mobile menu must occupy its real height, rather than cover page titles. */
@media (max-width: 760px) {
  body { padding-top: 0; }
  body > header.app-header,
  body > nav#siteNav,
  body > nav { position: sticky !important; }
  .es-uploads > label { min-width: 0; overflow-wrap: anywhere; }
  .es-uploads input { width: 100%; min-width: 0; max-width: 100%; }
  .format-pills { flex-wrap: wrap; }
}
