/* Branded visual refinements using only the approved All Star palette. */
.intro .intro-grid {
  min-height: calc(100vh - 285px);
}

.intro .hero-title {
  max-width: 760px;
}

.intro .hero-copy {
  color: var(--navy);
  max-width: 680px;
}

.intro .intro-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 18px 45px rgba(7, 54, 107, 0.2);
}

.intro .intro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--orange);
}

body .pattern {
  background-image: url("pattern-arrow.svg");
  background-size: 107px 107px;
  opacity: 0.1;
}

.topbar .brand img {
  width: 132px;
  filter: none;
}

.intro .intro-card h2,
.intro .benefit strong,
.intro .benefit span {
  color: #fff;
}

.intro .benefit {
  grid-template-columns: 54px 1fr;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--blue);
}

.intro .benefit i {
  width: 48px;
  height: 48px;
}

.intro .benefit i svg {
  width: 25px;
  height: 25px;
}

.intro .benefit:last-child {
  border-bottom: 0;
}

.intro .benefit i {
  background: var(--orange);
  color: #fff;
}

.intro .benefit:nth-of-type(2) i {
  background: var(--teal);
  color: var(--navy);
}

.intro .benefit:nth-of-type(3) i {
  background: var(--green);
  color: var(--navy);
}

.action .score-1 .priority-label {
  background: var(--orange);
  color: #fff;
}

.action .score-2 .priority-label {
  background: var(--blue);
  color: #fff;
}

#action .improvement-card.score-3 {
  border-left-color: var(--green);
}

#action .score-3 .priority-label {
  background: var(--green);
  color: var(--navy);
}

#action .selected-response {
  background: rgba(8, 184, 189, 0.12);
  color: var(--navy);
}

#action .improvement-section {
  background: #fff;
  border: 4px solid var(--blue);
}

#action .improvement-card.score-2 {
  background: rgba(8, 184, 189, 0.1);
}

#action .improvement-card.score-1 {
  background: rgba(241, 90, 42, 0.1);
}

#action .improvement-card.score-3 {
  background: rgba(66, 184, 135, 0.1);
}

#action .improvement-head {
  display: block;
}

#action .improvement-head h2,
#action .improvement-head p {
  color: var(--navy);
}

#action .improvement-head > div {
  width: 100%;
}

#action .improvement-head .eyebrow,
#action .improvement-head h2 {
  white-space: nowrap;
}

#action .improvement-head h2 {
  font-size: clamp(1.2rem, 3.2vw, 2.25rem);
}

#action .improvement-head p {
  max-width: none;
  margin-top: 8px;
}

#action .resource-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 2px solid #0A2D56;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #0A2D56;
  font-weight: 800;
  text-decoration: none;
}

#action .resource-link::after {
  content: "→";
  margin-left: 2px;
  text-decoration: none;
}

#action .case {
  background: #fff;
  border: 4px solid var(--blue);
  color: var(--navy);
}

#action .case-label,
#action .case h3,
#action .case p,
#action .case a {
  color: var(--navy);
}

#action .case p {
  opacity: 1;
}

#action .case h3 {
  color: var(--orange);
}

#action .selected-response {
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--navy);
}

#action .improvement-card {
  border: 0;
  border-left: 6px solid var(--orange);
  box-shadow: none;
}

#action .improvement-card.score-2 {
  border-left-color: var(--teal);
}

#action .improvement-card.score-3 {
  border-left-color: var(--green);
}

#action .priority h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--orange);
}

#action .priority:nth-child(2) h3::after {
  background: var(--teal);
}

#action .priority:nth-child(3) h3::after {
  background: var(--green);
}

#action .action-controls {
  justify-content: flex-start;
}

#action #restartBtn {
  background: #fff;
  border: 2px solid #0A2D56;
  color: #0A2D56;
}

#action #resultsBtn {
  border: 2px solid #0A2D56;
}

#action .cta .btn {
  background: #0A2D56;
  border-color: #0A2D56;
  color: #fff;
}

#action .priority {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  background: rgba(241, 90, 42, 0.1);
  border: 1px solid rgba(241, 90, 42, 0.32);
  border-top: 0;
  box-shadow: none;
}

#action .priority:nth-child(2) {
  background: rgba(8, 184, 189, 0.1);
  border-color: rgba(8, 184, 189, 0.34);
  border-top: 0;
}

#action .priority:nth-child(3) {
  background: rgba(66, 184, 135, 0.1);
  border-color: rgba(66, 184, 135, 0.34);
  border-top: 0;
}

#action .priority-num {
  position: static;
  grid-row: 1 / 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #0A2D56;
  opacity: 1;
  font-size: 1.1rem;
}

#action .priority:nth-child(2) .priority-num {
  background: var(--teal);
  color: #0A2D56;
}

#action .priority:nth-child(3) .priority-num {
  background: var(--green);
  color: #0A2D56;
}

#action .priority h3,
#action .priority p {
  color: var(--navy);
}

#action .priority h3 {
  font-size: 1.15rem;
}

#action .priority .mini,
#action .priority:nth-child(2) .mini,
#action .priority:nth-child(3) .mini {
  color: var(--navy);
}

.score-card .big-score {
  --score-progress: 0%;
  position: relative;
  width: 190px;
  height: 190px;
  margin: 8px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 var(--score-progress),
    rgba(255, 255, 255, 0.2) var(--score-progress) 100%
  );
  text-align: center;
}

.score-card .big-score::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--navy);
}

.score-card .big-score span,
.score-card .big-score small {
  position: relative;
  z-index: 1;
}

.score-card .level-line {
  display: none;
}

body footer {
  align-items: flex-end;
  gap: 22px;
}

.footer-left {
  display: grid;
  gap: 8px;
}

.copyright {
  color: var(--navy);
  font-size: 0.76rem;
}

.footer-credibility {
  margin-left: auto;
  text-align: right;
  line-height: 1.35;
  max-width: 430px;
}

.footer-credibility .tagline {
  margin-bottom: 4px;
  font-size: 1rem;
}

.trust-statement {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .intro .intro-grid {
    min-height: auto;
  }

  .intro .intro-card {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  body footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-credibility {
    margin-left: 0;
    text-align: left;
  }

  #action .priority {
    grid-template-columns: 46px 1fr;
  }
}

@media print {
  @page {
    size: letter landscape;
    margin: 0.3in;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 100%;
    background: #fff !important;
  }

  .topbar,
  .pattern,
  footer,
  .report-actions,
  .recommend .btn,
  .action-controls,
  .improvement-toggle {
    display: none !important;
  }

  .screen {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
  }

  .results,
  .action {
    display: block !important;
  }

  .results::before,
  .action::before,
  .improvement-section::before {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 14px;
    padding: 0 18px;
    background: var(--navy);
    border-left: 5px solid var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    content: "Employee Recognition Program Success Scorecard";
  }

  .results::after {
    content: "Results Summary";
    position: absolute;
    top: 15px;
    right: 18px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  .results {
    position: relative;
    page-break-after: always;
  }

  .results-head {
    gap: 12px;
  }

  .results-head h1 {
    font-size: 1.65rem !important;
    line-height: 1.1 !important;
    margin: 4px 0 5px !important;
  }

  .results-head .sub {
    font-size: 0.78rem !important;
    margin: 0 !important;
  }

  .eyebrow {
    font-size: 0.6rem !important;
    letter-spacing: 1px !important;
  }

  .rating-pill {
    padding: 7px 12px;
    font-size: 0.68rem;
  }

  .results-grid {
    grid-template-columns: 1fr 1.05fr 1.8fr;
    gap: 10px;
    margin-top: 12px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
    box-shadow: none !important;
  }

  .card-title {
    font-size: 0.65rem;
    margin-bottom: 8px;
  }

  .big-score {
    font-size: 3rem;
  }

  .score-card .big-score {
    width: 145px;
    height: 145px;
    margin: 3px auto 8px;
  }

  .score-card .big-score::before {
    inset: 11px;
  }

  .big-score small {
    font-size: 1rem;
  }

  .rating-name {
    font-size: 1rem;
    margin-top: 8px;
  }

  .score-note {
    font-size: 0.7rem;
    line-height: 1.3;
    margin: 7px 0;
  }

  .level-line {
    margin-top: 10px;
  }

  .radar-wrap {
    min-height: 160px;
  }

  .radar-wrap canvas {
    width: 160px !important;
    height: 160px !important;
  }

  .bars {
    gap: 6px;
  }

  .bar-line {
    font-size: 0.62rem;
    margin-bottom: 2px;
  }

  .track {
    height: 6px;
  }

  .strength-gap {
    gap: 10px;
    margin-top: 10px;
  }

  .strength,
  .insight,
  .recommend {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .strength strong,
  .insight strong,
  .recommend strong {
    font-size: 0.86rem;
    margin-bottom: 4px;
  }

  .strength p,
  .insight p,
  .recommend p {
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .recommend {
    margin-top: 10px;
    display: block;
  }

  .action {
    display: flex !important;
    flex-direction: column;
    page-break-before: always;
  }

  .action::before {
    order: 0;
    content: "Employee Recognition Program Success Scorecard | Personalized Action Plan";
  }

  .action-head {
    order: 1;
  }

  .action-head h1 {
    font-size: 1.65rem !important;
    margin: 4px 0 5px !important;
  }

  .action-head .sub {
    font-size: 0.76rem;
    margin: 0;
  }

  .priority-grid {
    order: 2;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .action .priority {
    min-height: 145px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: none !important;
  }

  .action .priority-num {
    font-size: 2.4rem;
  }

  .action .priority h3 {
    font-size: 0.98rem;
    margin-bottom: 7px;
    padding-right: 28px;
  }

  .action .priority p {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .action .priority .mini {
    font-size: 0.58rem;
    margin-top: 9px;
  }

  .case-row {
    order: 3;
    grid-template-columns: 1.35fr 0.8fr;
    gap: 10px;
    margin-top: 12px;
  }

  .case,
  .cta {
    padding: 14px;
    border-radius: 12px;
  }

  .case-label {
    font-size: 0.58rem;
  }

  .case h3,
  .cta h3 {
    font-size: 0.92rem;
    margin: 5px 0;
  }

  .case p,
  .cta p {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .case a,
  .cta .btn {
    font-size: 0.68rem;
  }

  .cta .btn {
    padding: 7px 11px;
  }

  .improvement-section {
    order: 4;
    page-break-before: always;
    margin-top: 0 !important;
    padding: 18px !important;
    border-radius: 0 !important;
  }

  .improvement-section::before {
    content: "Employee Recognition Program Success Scorecard | Detailed Improvement Areas";
    margin: -18px -18px 14px;
    background: var(--blue);
  }

  .improvement-head {
    margin-bottom: 10px;
  }

  .improvement-head h2 {
    font-size: 1.35rem !important;
  }

  .improvement-head p {
    font-size: 0.68rem;
  }

  .improvement-list {
    gap: 9px;
  }

  .improvement-card {
    padding: 12px;
    border-radius: 10px;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .improvement-card h3 {
    font-size: 0.92rem;
  }

  .response-score,
  .priority-label {
    font-size: 0.58rem;
  }

  .selected-response {
    padding: 7px 9px;
    margin: 7px 0;
    font-size: 0.64rem;
  }

  .guidance-copy,
  .improvement-card ul {
    font-size: 0.62rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .resource-link {
    font-size: 0.62rem;
  }
}
