@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-VariableFont_wdth_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("assets/fonts/RobotoCondensed-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* MGT brand palette — the only five + neutrals */
  --brand-navy: #000f9e;
  --navy: #000f9e;
  --navy-2: #000f9e;
  --blue: #000f9e;
  --blue-2: #0061c8;
  --sky: #89b7e8;
  --magenta: #b54096;
  --purple: #b54096;
  --gray: #e6e6e6;
  --gray-2: #f5f6f8;
  --border: #e6e6e6;
  --border-strong: #c4c7ce;
  --text: #1a1a1a;
  --muted: #5a5a66;
  --white: #ffffff;
  --success: #0061c8;
  --warning: #5a5a66;
  --shadow: 0 4px 16px rgba(0, 15, 158, 0.08);
  --shadow-lift: 0 12px 32px rgba(0, 15, 158, 0.12);
  --radius: 6px;
  /* Brand gradients */
  --grad-blue: linear-gradient(135deg, #000f9e 0%, #0061c8 100%);
  --grad-blue-purple: linear-gradient(135deg, #000f9e 0%, #4a2bb4 55%, #b54096 100%);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue-2);
}

.app-shell {
  height: 100vh;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: var(--white);
}

.side-rail {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #000f9e 0%, #3523aa 48%, #7440ad 76%, #b54096 100%);
  color: var(--white);
  border-right: 0;
}

.brand {
  position: relative;
  isolation: isolate;
  z-index: 1;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: transparent;
}

.brand img {
  position: relative;
  z-index: 1;
  display: block;
  width: 174px;
  height: auto;
}

.rail-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 6px 0;
}

.rail-nav a {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  border-left: 5px solid transparent;
}

.rail-nav a:hover,
.rail-nav a.active {
  background: transparent;
  border-left-color: var(--sky);
  color: var(--white);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-mark,
.rollout-mark {
  margin-top: auto;
  padding: 22px 28px 28px;
}

.partner-mark p,
.rollout-mark p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.partner-mark img {
  display: block;
  width: 168px;
  max-width: 100%;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
}

.rollout-mark {
  display: grid;
  gap: 0;
}

.rollout-mark strong,
.rollout-mark span {
  display: block;
  width: 168px;
  max-width: 100%;
  padding: 9px 10px 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-navy);
}

.rollout-mark strong {
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.rollout-mark span {
  padding-bottom: 10px;
  border-radius: 0 0 var(--radius) var(--radius);
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 700;
}

.workspace {
  height: 100vh;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--white);
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: var(--grad-blue-purple);
  color: var(--white);
  box-shadow: none;
  overflow: hidden;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.guide-title {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(176, 202, 241, 0.58);
  background: rgba(24, 55, 126, 0.42);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0 13px;
  font-size: 0.92rem;
  font-weight: 700;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.content-grid {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 0;
  align-items: start;
}

.primary-column {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong, #c4c7ce) transparent;
}

.primary-column::-webkit-scrollbar,
.summary-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.primary-column::-webkit-scrollbar-thumb,
.summary-panel::-webkit-scrollbar-thumb {
  background: #c4c7ce;
  border-radius: 999px;
}

.primary-column::-webkit-scrollbar-track,
.summary-panel::-webkit-scrollbar-track {
  background: transparent;
}

.hero-panel {
  min-width: 0;
  max-width: 100%;
  min-height: 316px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 28px;
  padding: 44px 40px 34px;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(0, 15, 158, 0.9) 0%, rgba(74, 43, 180, 0.72) 52%, rgba(181, 64, 150, 0.38) 100%),
    url("assets/campus-hero.png") center / cover;
  border-bottom: 3px solid var(--magenta);
}

.hero-copy h1 {
  margin: 0;
  max-width: 860px;
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 3.25vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 400;
  overflow-wrap: normal;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.12rem;
}

.assessment-meta {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow);
}

.assessment-meta label,
.notes-card label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
}

.assessment-meta input,
.notes-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  padding: 10px 11px;
  font-size: 0.96rem;
}

.assessment-meta input:focus,
.notes-card textarea:focus {
  outline: 3px solid rgba(33, 104, 187, 0.18);
  border-color: var(--blue-2);
}

.intro-section,
.section-block {
  padding: 34px 40px;
  border-bottom: 1px solid var(--border);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

h2,
h3 {
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 1.32rem;
}

p {
  margin: 0;
}

.intro-section p,
.section-heading p {
  max-width: 1050px;
  font-size: 1.05rem;
}

.intro-copy > p + p {
  margin-top: 14px;
}

.leadership-use {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.leadership-use h3 {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 1.08rem;
}

.leadership-use h3:first-child {
  margin-top: 0;
}

.leadership-use p {
  font-size: 0.96rem;
}

.highlight-panel,
.services-panel {
  background: var(--gray);
  padding: 24px;
  border-radius: var(--radius);
}

.highlight-panel ul,
.services-panel ul,
.domain-card ul {
  margin: 0;
  padding-left: 22px;
}

.highlight-panel li,
.services-panel li,
.domain-card li {
  margin: 0 0 10px;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 24px;
}

/* MGT signature: purple eyebrow + short rule above section titles */
.eyebrow {
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 8px;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 8px;
  background: var(--purple);
}

.lifecycle-figure {
  margin: 0;
  padding: 22px;
  background: linear-gradient(135deg, #f2f4f8, #e8e9ea);
  border-radius: var(--radius);
  overflow: hidden;
}

.lifecycle-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.lifecycle-step {
  position: relative;
  min-width: 0;
}

.lifecycle-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: calc(100% - 1px);
  width: 16px;
  height: 3px;
  background: #b5bac3;
  transform: translateY(-50%);
}

.life-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 14px;
  border: 7px solid var(--ring-color);
  border-radius: 50%;
  background: var(--white);
  text-align: center;
  box-shadow: inset 0 0 0 4px #f0f1f4, 0 5px 14px rgba(4, 22, 92, 0.1);
}

.life-ring strong,
.life-ring span {
  display: block;
}

.life-ring strong {
  margin-bottom: 6px;
  color: var(--ring-color);
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.life-ring span {
  color: var(--text);
  font-size: clamp(0.58rem, 0.72vw, 0.72rem);
  line-height: 1.2;
}

body.k12 .hero-panel {
  background:
    linear-gradient(105deg, rgba(0, 15, 158, 0.9) 0%, rgba(74, 43, 180, 0.72) 52%, rgba(181, 64, 150, 0.38) 100%),
    url("assets/school-hero.png") center / cover;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.domain-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border);
}

.domain-number {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-blue-purple);
  color: var(--white);
  font-weight: 700;
}

.domain-card h3 {
  margin: 3px 0 10px;
}

.checklist-section {
  background: #fbfcff;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.checklist-header p {
  max-width: 820px;
  color: var(--muted);
}

.checklist-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-button,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  font-weight: 500;
}

.small-button {
  border: 1px solid var(--blue-2);
  background: var(--blue-2);
  color: var(--white);
  padding: 0 14px;
  font-size: 0.9rem;
}

.small-button.secondary {
  background: var(--white);
  color: var(--blue-2);
}

.checklist-list {
  display: grid;
  gap: 12px;
}

.domain-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.domain-toggle {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  background: var(--white);
  color: var(--text);
  text-align: left;
}

.domain-toggle:hover {
  background: #f4f7fd;
}

.domain-toggle h3 {
  margin: 0;
  font-size: 1.08rem;
}

.domain-score {
  min-width: 58px;
  text-align: right;
  color: var(--blue);
  font-weight: 700;
}

.chevron {
  transition: transform 180ms ease;
}

.domain-group.collapsed .chevron {
  transform: rotate(-90deg);
}

.domain-items {
  border-top: 1px solid var(--border);
}

.domain-group.collapsed .domain-items {
  display: none;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 414px;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px 10px 62px;
  border-bottom: 1px solid #edf0f5;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row p {
  margin: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.segmented label {
  position: relative;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fbfcff;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:focus-visible) {
  outline: 3px solid rgba(33, 104, 187, 0.2);
}

.segmented label:has(input:checked) {
  border-color: var(--sky);
  background: rgba(137, 183, 232, 0.28);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--sky);
}

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 6px 0 28px;
  padding: 44px 22px 34px;
  background: var(--gray);
  border-radius: var(--radius);
}

.roadmap-step {
  position: relative;
  display: grid;
  grid-template-rows: 52px 1fr;
  gap: 10px;
  text-align: center;
  color: #1e2430;
}

.roadmap-step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  border-top: 2px dashed var(--border-strong, #c4c7ce);
}

.roadmap-step:first-child::before {
  left: 50%;
  width: 50%;
}

.roadmap-step:last-child::before {
  width: 50%;
}

.roadmap-dot {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border: 5px solid var(--dot-light);
  border-radius: 50%;
  background: var(--dot-color);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(0, 15, 158, 0.18);
}

.roadmap-step p {
  max-width: 150px;
  justify-self: center;
  font-size: 0.96rem;
  line-height: 1.2;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.summary-panel {
  position: static;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong, #c4c7ce) transparent;
  padding: 28px 24px;
  background: var(--gray-2);
  border-left: 1px solid var(--border);
}

.summary-card {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(13, 31, 70, 0.06);
}

.summary-card h2 {
  font-size: 1.52rem;
  margin-bottom: 8px;
}

.summary-card h3 {
  font-size: 1.14rem;
}

.score-meter {
  --score: 0;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--meter-color, var(--magenta)) calc(var(--score) * 1%), #d1d5dc 0);
}

.meter-center {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--white);
  text-align: center;
}

.meter-center strong {
  color: var(--magenta);
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 700;
}

.meter-center span {
  color: var(--magenta);
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
}

.level-description {
  text-align: center;
  color: var(--text);
  font-weight: 700;
}

/* MGT curved call-out score card — gradient + dot-matrix, single oversized corner */
.summary-card.score-card {
  border: 0;
  color: var(--white);
  background: var(--grad-blue-purple);
  border-bottom-left-radius: 64px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.summary-card.score-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.3px, transparent 1.7px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.summary-card.score-card > * {
  position: relative;
}

.summary-card.score-card h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.score-card .score-meter {
  width: auto;
  height: auto;
  display: block;
  place-items: initial;
  margin: 0;
  border-radius: 0;
  background: none;
}

.score-card .meter-center {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
  text-align: left;
}

.score-card .meter-center strong {
  display: block;
  color: var(--white);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 1;
}

.score-card .meter-center span {
  display: block;
  margin-top: 4px;
  color: var(--sky);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-card .level-description {
  margin-top: 10px;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.calculation-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.calculation-card dl div,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.calculation-card dt {
  color: var(--blue-2);
  font-weight: 700;
}

.calculation-card dd {
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}

.total-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.calculation-card p {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.priority-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.priority-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
}

.priority-rank {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-blue-purple);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.priority-score {
  min-width: 48px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--magenta);
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

.notes-card textarea {
  resize: vertical;
  min-height: 120px;
  text-transform: none;
  font-weight: 500;
}

.summary-actions {
  display: grid;
  gap: 10px;
}

.primary-action,
.secondary-action {
  width: 100%;
  border: 1px solid var(--blue);
  padding: 0 16px;
  font-size: 1rem;
}

/* 2° CTA — solid Primary Blue */
.primary-action {
  background: var(--grad-blue-purple);
  color: var(--white);
}

/* 1° CTA — Soft Purple, the MGT primary CTA color (highest-intent only) */
.primary-action.cta-purple {
  background: var(--grad-blue-purple);
  border-color: #4a2bb4;
}

/* 3° CTA — outlined Primary Blue */
.secondary-action {
  background: var(--white);
  color: var(--blue);
}

.primary-action:hover,
.secondary-action:hover,
.small-button:hover {
  filter: brightness(0.94);
}

.save-status {
  min-height: 20px;
  color: var(--blue);
  font-size: 0.86rem;
  text-align: center;
  font-weight: 700;
}

.privacy-note {
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.privacy-note strong {
  color: var(--blue);
}

.site-footer {
  padding: 24px 40px 34px;
  color: var(--text);
}

.print-report {
  display: none;
}

.results-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 45, 0.72);
}

.results-modal[hidden],
.email-report-form[hidden],
.results-actions[hidden],
.results-unlocked[hidden] {
  display: none;
}

.results-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 34px;
  border-top: 6px solid var(--brand-navy);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(2, 9, 46, 0.3);
}

.results-dialog::-webkit-scrollbar {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--gray);
  outline: none;
}

.results-eyebrow {
  margin: 0 46px 7px 0;
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-dialog h2 {
  margin-right: 46px;
  font-size: 2rem;
}

.results-score-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 26px 0 14px;
}

.results-score {
  color: var(--brand-navy);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1;
}

.results-score-row strong {
  display: block;
  color: var(--brand-navy);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 1.65rem;
}

.results-score-row p {
  margin-top: 5px;
  color: var(--muted);
}

.results-points {
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.results-actions {
  margin-top: 24px;
}

.gate-copy {
  margin: 0 0 16px;
  color: var(--muted);
}

.results-actions .primary-action {
  width: 100%;
}

.results-unlocked {
  margin-top: 22px;
}

.unlocked-note {
  margin: 0 0 14px;
  color: #177245;
  font-weight: 700;
}

.results-unlocked .secondary-action {
  width: 100%;
}

.email-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.email-form-actions > * {
  flex: 1;
  justify-content: center;
}

.email-report-form {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.email-form-heading h3 {
  margin-bottom: 6px;
  color: var(--brand-navy);
}

.email-form-heading p,
.email-copy-notice {
  color: var(--muted);
  font-size: 0.9rem;
}

.email-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.email-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.email-form-grid .email-field {
  grid-column: 1 / -1;
}

.email-form-grid input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
  text-transform: none;
}

.email-form-grid input:focus {
  border-color: var(--blue-2);
  outline: 3px solid rgba(0, 97, 200, 0.14);
}

.email-copy-notice {
  margin-top: 13px;
}

.email-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.email-status.error {
  color: #a12b2b;
}

.email-status.success {
  color: #177245;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    background: var(--white);
  }

  .side-rail {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    min-width: 0;
    max-width: 100vw;
  }

  .brand {
    padding: 16px 22px;
  }

  .topbar {
    background: var(--grad-blue-purple);
  }

  .rail-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 12px;
    min-width: 0;
    max-width: 100%;
  }

  .rail-nav a {
    min-height: 58px;
    min-width: max-content;
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 4px solid transparent;
    padding: 0 16px;
  }

  .rail-nav a:hover,
  .rail-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--sky);
  }

  .partner-mark,
  .rollout-mark {
    display: none;
  }

  .topbar {
    top: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 860px) {
  .topbar {
    min-height: auto;
    padding: 14px 18px;
    align-items: start;
    flex-direction: column;
    overflow: hidden;
  }

  .topbar > div {
    min-width: 0;
    max-width: 100%;
  }

  .topbar-actions {
    width: 100%;
  }

  .icon-button {
    flex: 1;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 34px 22px 24px;
  }

  .intro-section,
  .section-block {
    padding: 28px 22px;
  }

  .intro-section,
  .domain-grid,
  .service-columns {
    grid-template-columns: 1fr;
  }

  .lifecycle-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .lifecycle-step {
    width: min(230px, 100%);
  }

  .lifecycle-step:not(:last-child)::after {
    display: none;
  }

  .checklist-header {
    flex-direction: column;
  }

  .checklist-tools {
    justify-content: start;
  }

  .check-row {
    grid-template-columns: 1fr;
    padding: 14px 14px 16px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .roadmap-line {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 18px;
  }

  .roadmap-step {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: 1fr;
    text-align: left;
    align-items: center;
  }

  .roadmap-step::before {
    left: 26px;
    top: 0;
    height: 100%;
    width: 0;
    border-top: 0;
    border-left: 2px dashed #798091;
  }

  .roadmap-step:first-child::before,
  .roadmap-step:last-child::before {
    left: 26px;
    width: 0;
  }

  .roadmap-step p {
    max-width: none;
    justify-self: start;
  }

  .summary-panel {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 15px;
  }

  .app-shell,
  .workspace {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .content-grid,
  .primary-column,
  .summary-panel {
    height: auto;
    overflow: visible;
  }

  .side-rail {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 142px;
  }

  .rail-nav a {
    font-size: 0.9rem;
  }

  .guide-title {
    font-size: 0.92rem;
  }

  .topbar-actions,
  .guide-title,
  .hero-copy,
  .assessment-meta,
  .intro-section > *,
  .section-heading,
  .highlight-panel,
  .services-panel,
  .domain-grid,
  .checklist-header,
  .checklist-list,
  .roadmap-line {
    max-width: 342px;
  }

  .hero-copy h1 {
    max-width: 342px;
    font-size: 1.7rem;
    overflow-wrap: break-word;
  }

  .hero-copy p,
  .intro-section p,
  .section-heading p {
    max-width: 342px;
  }

  .domain-toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .domain-score {
    display: none;
  }

  .score-meter {
    width: 202px;
    height: 202px;
  }

  .results-modal {
    align-items: end;
    padding: 0;
  }

  .results-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 26px 20px 22px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .results-dialog h2 {
    font-size: 1.65rem;
  }

  .results-score-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }

  .results-score {
    font-size: 3.4rem;
  }

  .results-score-row strong {
    font-size: 1.3rem;
  }

  .results-actions,
  .email-form-actions,
  .email-form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .email-form-grid .email-field {
    grid-column: auto;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    background: var(--white);
    color: #111827;
    overflow: visible;
  }

  .app-shell {
    display: none;
  }

  .results-modal {
    display: none !important;
  }

  .print-report {
    display: block;
    font-family: "Roboto", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  .print-report h1,
  .print-report h2,
  .print-report h3 {
    font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
    color: var(--blue);
    letter-spacing: 0;
  }

  .report-cover {
    border: 0;
    border-radius: 10px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--grad-blue-purple);
    color: var(--white);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .report-mgt-mark {
    width: 190px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .report-mgt-mark img {
    display: block;
    max-width: 178px;
    max-height: 68px;
  }

  .report-rollout-mark {
    display: grid;
    gap: 5px;
    justify-items: end;
    color: var(--navy);
    font-size: 8.5pt;
    font-weight: 700;
  }

  .report-rollout-mark strong {
    display: block;
    max-width: 220px;
    color: var(--blue);
    font-size: 12pt;
    line-height: 1.15;
    text-align: right;
  }

  .report-cover h1 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 24pt;
    line-height: 1.05;
  }

  .report-cover > p {
    color: rgba(255, 255, 255, 0.9);
  }

  .report-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .report-meta div,
  .report-score-card {
    border: 1px solid #d7dae4;
    border-radius: 6px;
    padding: 10px;
    background: #f7f8fb;
  }

  .report-label {
    display: block;
    color: var(--blue);
    font-size: 8.5pt;
    font-weight: 700;
    text-transform: uppercase;
  }

  .report-value {
    display: block;
    margin-top: 3px;
    color: var(--navy);
    font-size: 12pt;
    font-weight: 700;
  }

  .report-overview {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .report-score {
    color: var(--magenta);
    font-size: 32pt;
    line-height: 1;
    font-weight: 700;
  }

  .report-score-card h2,
  .domain-summary h2,
  .final-report h2 {
    margin: 0 0 8px;
    font-size: 17pt;
  }

  .report-priority-list {
    margin: 6px 0 0;
    padding-left: 18px;
  }

  .domain-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
  }

  .domain-summary-table th {
    background: var(--grad-blue-purple);
    color: var(--white);
    text-align: left;
    font-weight: 700;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .domain-summary-table th,
  .domain-summary-table td {
    border: 1px solid #cfd5e1;
    padding: 7px 8px;
    vertical-align: top;
  }

  .domain-summary-table tr:nth-child(even) td {
    background: #f7f8fb;
  }

  .report-bar {
    height: 8px;
    min-width: 92px;
    background: #d8dde6;
    border-radius: 999px;
    overflow: hidden;
  }

  .report-bar span {
    display: block;
    height: 100%;
    width: var(--percent);
    background: var(--grad-blue-purple);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .final-report {
    margin-top: 18px;
    border-top: 3px solid var(--magenta);
    padding-top: 14px;
    break-inside: avoid;
  }

  .final-report p {
    margin: 0 0 8px;
  }

  .final-report .notes {
    min-height: 52px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d7dae4;
    background: #f7f8fb;
  }

  .report-footer {
    margin-top: 18px;
    color: #4b5563;
    font-size: 9pt;
  }

  .domain-summary {
    break-inside: auto;
  }
}
