/* Six-band score layout, based on the supplied mobile reference. */
:root {
  --lavender: #ebe9ff;
  --tile: #ebe9fc;
  --gauge: #9c96fa;
}
.site-header { height: 64px; }
.header-inner { height: 64px; }
.account-menu { top: 58px; }
.test-details {
  border-bottom: 1px solid #a6a0db;
  padding-bottom: 5px;
}
.test-details h3 {
  margin: 1px 0 5px;
  font: 700 19px/25px Arial, sans-serif;
  letter-spacing: -.5px;
}
.test-details #test-name {
  margin: 0 0 6px;
  font: 800 21px/26px Arial, sans-serif;
  color: #080808;
  letter-spacing: -.3px;
  overflow-wrap: anywhere;
}
.test-details p {
  font: 400 17px/24px Arial, sans-serif;
  letter-spacing: -.6px;
  overflow-wrap: anywhere;
}
.score-card { padding: 13px; }
.score-card:not(.best-card) .overall-score > h4 {
  margin: 47px 0 9px;
  font: 700 18px/25px Arial, sans-serif;
  letter-spacing: -.4px;
}
.score-gauge {
  width: 192px;
  height: 155px;
  margin: 0 auto 48px;
}
.score-gauge svg {
  width: 192px;
  height: 96px;
}
.gauge-track, .gauge-fill { stroke-width: 26; }
.gauge-track { stroke: #dcdcdc; }
.gauge-fill { stroke: #9e98fb; }
.gauge-value { top: 55px; }
.gauge-value strong {
  font: 700 22px/30px Arial, sans-serif;
  letter-spacing: -.5px;
  white-space: nowrap;
}
.gauge-value > span {
  margin-top: 6px;
  font: 400 19px/28px Arial, sans-serif;
  letter-spacing: -.7px;
  color: var(--ink);
}
.gauge-value > .cefr-value { margin-top: 12px; }
.section-scores {
  max-width: 300px;
  gap: 18px 18px;
}
.section-label {
  font: 400 20px/26px Arial, sans-serif;
  letter-spacing: -.7px;
  gap: 6px;
  margin-bottom: 13px;
}
.section-label .icon { width: 22px; height: 22px; }
.score-tile { height: 88px; background: #ebe9fc; }
.score-tile strong {
  font: 700 22px/30px Arial, sans-serif;
  letter-spacing: -.7px;
  white-space: nowrap;
}
.score-info {
  white-space: normal;
  font: 400 14px/20px Arial, sans-serif;
  align-items: flex-start;
  margin-bottom: 14px;
  letter-spacing: -.45px;
}
.score-info .icon { margin-top: 1px; }
.score-info u { text-underline-offset: 2px; }
.best-section { margin-top: 34px; }
.best-summary { display: none; }
.best-desktop-overall { display: block; }
.best-desktop-overall > h4 {
  margin: 47px 0 9px;
  font: 700 18px/25px Arial, sans-serif;
  letter-spacing: 0;
}
.best-card .gauge-fill { stroke: #f1946f; }
.best-card .gauge-track { stroke: #fbe7dd; }
.best-card .section-scores { row-gap: 23px; }
.best-card .score-tile { background: #f9e2cf; }
.best-card-heading .best-desktop-description,
.score-tile .tile-date { display: none; }
.print-report .report-disclaimer {
  border: 2px solid #a09abf;
  padding: 10px;
  font-weight: 700;
}
@media (min-width: 700px) {
  .site-header { height: 82px; }
  .header-inner { height: 82px; }
  .account-menu { top: 68px; }
  .score-card { padding: 24px 28px; }
  .score-card:not(.best-card) .overall-score > h4 { margin-top: 32px; }
  .best-desktop-overall > h4 { margin-top: 32px; }
  .score-gauge { margin-bottom: 38px; }
  .section-scores { max-width: none; }
  .section-label { font-size: 19px; }
  .site-header .brand { font-size: 49px; }
}
@media (max-width: 379px) {
  .site-header .brand { font-size: 31px; }
  .section-label { font-size: 18px; gap: 5px; }
  .score-tile strong { font-size: 20px; }
  .section-scores { column-gap: 13px; }
  .test-details h3 { font-size: 18px; }
  .test-details p { font-size: 15px; }
  .score-info { font-size: 12px; }
}
/* Keep configurable website names inside the existing navigation layout. */
.brand-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:lowercase}
.brand-mark{flex-shrink:0}
.header-inner > .brand{margin-right:auto}
.site-header .brand{min-width:0;max-width:calc(100% - 182px)}
.welcome-header .brand{max-width:100%}
.home-title{padding:0 12px;overflow-wrap:anywhere}
.side-menu [data-site-name],.side-menu [data-home-title],.account-menu [data-site-name]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.print-report .report-brand{overflow-wrap:anywhere}
@media(min-width:700px){.site-header .brand{max-width:420px}}
@media(max-width:379px){.site-header .brand{font-size:28px;max-width:calc(100% - 165px)}}
@media(max-width:699px){.site-header .brand{max-width:calc(100% - 172px)}}

/* Desktop uses the full page width, with one horizontal row per score report. */
@media (min-width: 1000px) {
  .header-inner { max-width: none; padding: 0 36px; }
  .scores-main { max-width: none; width: 100%; margin-top: 28px; padding: 0 40px 42px; }
  .scores-main > h2 { font-size: 30px; line-height: 38px; margin-bottom: 6px; }
  .score-info { margin-bottom: 14px; }
  .score-panels { display: flex; flex-direction: column; gap: 26px; }
  .score-card { width: 100%; padding: 16px 14px 10px; border-color: #b7b0cd; }
  .test-details { padding-bottom: 7px; }
  .test-details h3 { margin: 0 0 5px; font-size: 16px; line-height: 23px; letter-spacing: -.3px; }
  .test-details #test-name,
  .test-details p { display: inline; margin: 0; font-size: 15px; line-height: 22px; font-weight: 400; letter-spacing: -.3px; }
  .test-details #test-name::after { content: " | "; white-space: pre; }
  .score-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); column-gap: 22px; align-items: start; padding: 29px 8px 4px; }
  .overall-score { min-width: 0; text-align: center; }
  .score-card:not(.best-card) .overall-score > h4,
  .overall-score > h4 { margin: 0 0 6px; font: 400 15px/22px Arial, sans-serif; letter-spacing: -.35px; }
  .score-gauge { width: 140px; height: 116px; margin: 0 auto; }
  .score-gauge svg { width: 140px; height: 70px; }
  .gauge-value { top: 34px; }
  .gauge-value strong { font-size: 18px; line-height: 24px; letter-spacing: -.4px; }
  .gauge-value > span { margin-top: 2px; font-size: 15px; line-height: 22px; letter-spacing: -.4px; }
  .gauge-value > .cefr-value { margin-top: 9px; }
  .section-scores { width: 100%; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; }
  .section-score { min-width: 0; }
  .section-label { font-size: 16px; line-height: 22px; letter-spacing: -.4px; gap: 5px; margin-bottom: 8px; }
  .section-label .icon { width: 20px; height: 20px; }
  .score-tile { width: min(100%, 178px); min-height: 78px; height: auto; margin: 0 auto; border-radius: 3px; padding: 12px 6px; gap: 4px; }
  .score-tile strong { font-size: 18px; line-height: 25px; letter-spacing: -.45px; }
  .best-section { margin: 0; }
  .best-section > h2,
  .best-card-heading > h3,
  .best-card-heading > p:not(.best-desktop-description),
  .best-summary,
  .best-card .section-date { display: none; }
  .best-card { border-color: #e8ad93; }
  .best-card-heading { padding: 0 0 8px; border-bottom: 1px solid #d9c2b8; }
  .best-card-heading .best-desktop-description { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; font: 400 15px/23px Arial, sans-serif; letter-spacing: -.35px; }
  .best-desktop-description strong { white-space: nowrap; }
  .best-desktop-description sup { font-size: 9px; }
  .best-card .score-card-body { padding-top: 48px; padding-bottom: 28px; }
  .best-desktop-overall { display: block; }
  .best-card .score-tile { background: #fde9df; }
  .score-tile .tile-date { display: block; font-size: 14px; line-height: 20px; letter-spacing: -.45px; text-align: center; }
}

/* Score actions and the editable footer follow the supplied mobile reference. */
.score-actions {
  width: 100%;
  padding-top: 31px;
}
.score-actions .button-black {
  min-height: 42px;
  gap: 14px;
  text-align: left;
}
.score-actions .button-black > span {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.score-actions .button-black > .icon { flex-shrink: 0; }
.score-actions .download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 21px auto 0;
  padding: 4px 0;
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
}
.score-actions .download-link .icon {
  width: 21px;
  height: 21px;
  margin: 0;
  flex-shrink: 0;
}
.score-actions .download-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 44px 22px 8px;
  background: #fff;
  box-shadow: 0 -3px 7px #00000014;
  color: #111;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 650px;
  margin: 0 auto;
}
.site-footer .footer-links a {
  display: block;
  max-width: 100%;
  padding: 2px 0;
  color: #111;
  font: 400 16px/1.3 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.site-footer > p {
  max-width: 320px;
  margin: 18px auto 0;
  color: #111;
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.site-footer .back-to-top {
  position: relative;
  right: auto;
  bottom: auto;
  width: max-content;
  min-width: 42px;
  max-width: 100%;
  height: auto;
  min-height: 54px;
  margin: 18px -14px 0 auto;
  padding: 8px 10px;
  gap: 4px;
  border: 0;
  background: #ff9461;
  color: #111;
}
.site-footer .back-to-top .icon { width: 19px; height: 19px; }
.site-footer .back-to-top span {
  max-width: 180px;
  font: 400 14px/1.4 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
.footer-dialog-copy { white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .score-actions { max-width: 650px; padding-top: 32px; }
  .score-actions .button-black { min-height: 46px; }
  .score-actions .download-link { font-size: 16px; }
  .site-footer { padding: 42px 40px 18px; }
  .site-footer .footer-links a { font-size: 17px; }
  .site-footer > p { max-width: 650px; margin-top: 22px; font-size: 16px; }
  .site-footer .back-to-top { margin-right: -20px; }
}
