:root {
  --brand-navy: #0e2e45;
  --brand-teal: #409097;
  --brand-green: #53b684;
  --ink: var(--brand-navy);
  --muted: #5d7480;
  --line: #d4e2e5;
  --surface: #ffffff;
  --wash: #f3f7f8;
  --teal: #2f747a;
  --shadow: 0 16px 40px rgba(14, 46, 69, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbfb 0, var(--wash) 320px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--teal);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-navy);
}

button,
input,
select {
  font: inherit;
}

button,
.link-button {
  border: 0;
  border-radius: 8px;
  background: var(--brand-navy);
  box-shadow: 0 6px 16px rgba(14, 46, 69, 0.16);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

button:hover,
.link-button:hover {
  background: #214f60;
  color: #fff;
}

button:focus-visible,
.link-button:focus-visible,
.secondary-button:focus-visible,
.secondary-link:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(83, 182, 132, 0.55);
  outline-offset: 3px;
}

.secondary-button,
.secondary-link {
  background: rgba(64, 144, 151, 0.1);
  border: 1px solid rgba(64, 144, 151, 0.28);
  border-radius: 8px;
  box-shadow: none;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  text-decoration: none;
}

.secondary-button:hover,
.secondary-link:hover {
  background: rgba(83, 182, 132, 0.16);
  border-color: rgba(83, 182, 132, 0.55);
  color: var(--brand-navy);
}

.site-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 14px rgba(14, 46, 69, 0.04);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-name,
.brand small {
  display: block;
}

.brand-name {
  color: var(--brand-navy);
}

.brand-name strong {
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-logo {
  display: block;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px clamp(16px, 4vw, 48px) 56px;
}

.intro-band,
.result-hero,
.admin-header {
  align-items: end;
  background: linear-gradient(125deg, var(--brand-navy) 0%, #17495a 58%, var(--brand-teal) 100%);
  border-radius: 16px;
  border-top: 5px solid var(--brand-green);
  box-shadow: 0 18px 42px rgba(14, 46, 69, 0.16);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 22px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
}

.result-hero {
  grid-template-columns: 1fr;
}

.intro-band h1,
.result-hero h1,
.admin-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.95;
  margin: 0;
}

.lead {
  font-size: 21px;
  margin: 14px 0 0;
  max-width: 760px;
}

.eyebrow {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.landing-page {
  display: grid;
  gap: 24px;
}

.landing-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(83, 182, 132, 0.24), transparent 28%),
    linear-gradient(125deg, var(--brand-navy) 0%, #17495a 62%, var(--brand-teal) 100%);
  border-radius: 18px;
  border-top: 5px solid var(--brand-green);
  box-shadow: 0 18px 42px rgba(14, 46, 69, 0.16);
  color: #fff;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
}

.landing-hero-content {
  align-self: center;
}

.landing-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7vw, 82px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.landing-tagline {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 650;
  line-height: 1.2;
  margin: 22px 0 18px;
  max-width: 760px;
}

.landing-hero-content > p:last-of-type {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  margin: 0;
  max-width: 660px;
}

.landing-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.landing-primary-action {
  background: var(--brand-green);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  color: var(--brand-navy);
}

.landing-primary-action:hover {
  background: #6ac495;
  color: var(--brand-navy);
}

.landing-text-link {
  color: #fff;
  font-weight: 750;
}

.landing-text-link:hover {
  color: #fff;
}

.landing-hero-summary {
  align-self: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 32px);
}

.landing-hero-summary ul {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.landing-hero-summary li {
  display: grid;
  gap: 12px;
  grid-template-columns: 20px 1fr;
}

.landing-hero-summary li::before {
  background: var(--brand-green);
  border-radius: 999px;
  color: var(--brand-navy);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  line-height: 20px;
  text-align: center;
  width: 20px;
}

.landing-section-heading h2,
.landing-cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

.landing-section-heading .eyebrow,
.landing-cta .eyebrow {
  color: var(--brand-teal);
}

.landing-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
}

.landing-section-heading {
  max-width: 760px;
}

.landing-section-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}

.landing-how {
  border-top: 4px solid var(--brand-teal);
}

.landing-assessment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.landing-assessment-grid article {
  background: rgba(64, 144, 151, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.landing-assessment-grid article:last-child {
  background: rgba(83, 182, 132, 0.12);
}

.landing-assessment-grid span {
  align-items: center;
  background: var(--brand-navy);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-weight: 850;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.landing-assessment-grid h3 {
  font-size: 22px;
  margin: 18px 0 6px;
}

.landing-assessment-grid p {
  color: var(--muted);
  margin: 0;
}

.landing-reassurance {
  color: var(--muted);
  margin: 24px 0 0;
}

.landing-cta {
  align-items: center;
  background: var(--brand-navy);
  border-radius: 16px;
  color: #fff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 48px);
}

.landing-cta .eyebrow {
  color: var(--brand-green);
}

.landing-cta h2 {
  max-width: 760px;
}

.landing-cta .link-button {
  background: var(--brand-green);
  color: var(--brand-navy);
  flex: 0 0 auto;
}

.landing-cta .link-button:hover {
  background: #6ac495;
  color: var(--brand-navy);
}

.survey-form,
.form-section,
.area-block,
.auth-panel,
.admin-table,
.detail-grid > div,
.chart-panel,
.insight-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.survey-form {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.form-section,
.auth-panel,
.admin-table {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 30px);
}

.section-heading {
  border-bottom: 1px solid var(--line);
  display: block;
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.section-heading .eyebrow,
.chart-card-heading .eyebrow {
  color: var(--brand-teal);
  margin-bottom: 6px;
}

.section-heading h2,
.auth-panel h1,
.insight-panel h2,
.detail-grid h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}

.field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label span {
  color: var(--ink);
  display: block;
  font-weight: 750;
  margin-bottom: 7px;
}

input,
select {
  background: #fff;
  border: 1px solid #bfd0d5;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

select {
  appearance: auto;
}

input:focus,
select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(64, 144, 151, 0.2);
  outline: 0;
}

.consent-row {
  align-items: start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.consent-row input {
  margin-top: 3px;
  min-height: auto;
  width: auto;
}

.consent-row label {
  color: var(--ink);
  font-weight: 750;
}

.consent-row a {
  text-underline-offset: 2px;
}

.policy-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 880px;
  overflow: hidden;
}

.policy-header {
  background: linear-gradient(125deg, var(--brand-navy) 0%, #17495a 58%, var(--brand-teal) 100%);
  border-top: 5px solid var(--brand-green);
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
}

.policy-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
  margin: 0;
}

.policy-header > p:last-child {
  margin: 14px 0 0;
}

.policy-content {
  padding: clamp(22px, 5vw, 52px);
}

.policy-content section + section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}

.policy-content h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.policy-content h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}

.policy-content p,
.policy-content address {
  margin: 0 0 16px;
}

.policy-content address {
  font-style: normal;
}

.policy-content ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.policy-content li + li {
  margin-top: 4px;
}

.rights-list h3 + p {
  margin-top: 0;
}

.area-block {
  box-shadow: none;
  margin-top: 16px;
  overflow: hidden;
}

.area-title {
  align-items: center;
  background: #f7fafb;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.area-title > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.area-title h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.area-title p {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
  text-align: right;
}

.area-number {
  align-items: center;
  background: var(--brand-green);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(83, 182, 132, 0.14);
  color: var(--brand-navy);
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.response-table,
.answer-table,
.score-table {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 210px) minmax(170px, 210px);
}

.score-table {
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(110px, 140px));
}

.response-table > *,
.answer-table > *,
.score-table > * {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 14px;
}

.response-table > *:nth-last-child(-n + 3),
.answer-table > *:nth-last-child(-n + 3),
.score-table > *:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.response-head,
.score-head {
  background: rgba(64, 144, 151, 0.1);
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.statement-cell {
  color: var(--ink);
  font-weight: 650;
}

.select-cell {
  align-items: center;
  display: flex;
}

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

.capability-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 190px;
  padding: 14px;
  transition: background 160ms ease, border-color 160ms ease;
}

.capability-row:hover {
  background: #f8fbfb;
  border-color: rgba(64, 144, 151, 0.48);
}

.capability-chart {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: minmax(210px, 300px) minmax(320px, 1fr);
}

.capability-chart-label {
  align-self: center;
  display: grid;
  line-height: 1.25;
}

.capability-chart-label span {
  font-weight: 750;
}

.capability-chart-track {
  align-items: center;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 20% 100%;
  border-right: 1px solid var(--line);
  display: flex;
  min-height: 34px;
}

.capability-chart-bar {
  align-items: center;
  display: flex;
  height: 24px;
  justify-content: end;
  min-width: 0;
  padding-right: 8px;
  width: calc(var(--capability-score) * 20%);
}

.capability-chart-bar strong {
  color: #fff;
  font-size: 12px;
}

.capability-level-basic {
  background: #d64545;
}

.capability-level-established {
  background: #f2c94c;
}

.capability-level-integrated {
  background: #2e9b55;
}

.capability-chart-bar.capability-level-established strong {
  color: var(--ink);
}

.capability-chart-axis {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.submit-bar {
  align-items: center;
  background: rgba(243, 247, 248, 0.94);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: end;
  margin-top: 22px;
  padding: 16px 0;
}

.flash-stack {
  left: 50%;
  max-width: min(760px, calc(100% - 28px));
  position: fixed;
  top: 84px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 20;
}

.flash {
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-weight: 750;
  margin: 0 0 8px;
  padding: 12px 14px;
}

.flash.error {
  background: #fff1ec;
  border: 1px solid #efb4a4;
  color: #873520;
}

.flash.success {
  background: #eaf7f0;
  border: 1px solid #9dcdb1;
  color: #205c38;
}

.result-dashboard {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.admin-report-charts {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.chart-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
}

.impact-chart-panel {
  border-top: 4px solid var(--brand-teal);
}

.capability-chart-panel {
  border-top: 4px solid var(--brand-green);
}

.chart-card-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  width: 100%;
}

.chart-card-heading h2 {
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.08;
  margin: 0;
}

.chart-card-description {
  color: var(--muted);
  margin: 10px 0 4px;
  width: 100%;
}

.impact-chart-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.chart-panel canvas {
  aspect-ratio: 1;
  display: block;
  max-width: 100%;
}

.impact-chart-tooltip {
  background: var(--brand-navy);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(14, 46, 69, 0.2);
  color: #fff;
  display: grid;
  font-size: 13px;
  gap: 2px 8px;
  grid-template-columns: 10px auto;
  line-height: 1.35;
  max-width: 260px;
  padding: 9px 11px;
  pointer-events: none;
  position: fixed;
  z-index: 100;
}

.impact-chart-tooltip[hidden] {
  display: none;
}

.impact-chart-tooltip strong,
.impact-chart-tooltip > span:last-child {
  grid-column: 2;
}

.impact-chart-tooltip-dot {
  align-self: center;
  border-radius: 999px;
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 9px;
  width: 9px;
}

.impact-chart-tooltip > span:last-child {
  color: rgba(255, 255, 255, 0.82);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 8px 0 2px;
}

.chart-legend span {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 7px;
}

.legend-dot {
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.legend-dot.current {
  background: var(--brand-teal);
}

.legend-dot.future {
  background: var(--brand-green);
}

.capability-chart-panel {
  align-items: stretch;
}

.capability-chart-panel .capability-chart {
  gap: 8px 12px;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  grid-template-rows: repeat(9, minmax(31px, 1fr)) auto;
  margin-top: 16px;
  overflow: visible;
  padding-bottom: 0;
  width: 100%;
}

.capability-chart-panel .capability-chart-label {
  font-size: 13px;
}

.capability-chart-panel .capability-chart-track {
  min-height: 31px;
}

.insight-panel {
  border-top: 4px solid var(--brand-green);
  padding: 22px;
}

.insight-panel h3 {
  color: var(--brand-teal);
  font-size: 14px;
  margin: 22px 0 8px;
  text-transform: uppercase;
}

.insight-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-panel li {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}

.insight-panel .link-button {
  margin-top: 22px;
  width: 100%;
}

.result-overview {
  align-items: end;
  display: grid;
  gap: 12px 28px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.result-overview h2 {
  grid-column: 1 / -1;
}

.result-overview h3 {
  margin-top: 0;
}

.result-overview .link-button {
  margin-top: 0;
  min-width: 180px;
  width: auto;
}

.admin-overview-panel {
  margin-bottom: 20px;
}

.auth-panel {
  margin: 50px auto;
  max-width: 430px;
}

.auth-panel-text {
  color: var(--muted);
  margin: 12px 0 0;
}

.auth-panel form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-header {
  align-items: center;
}

.admin-header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-header .secondary-button,
.admin-header .secondary-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.admin-header .secondary-button:hover,
.admin-header .secondary-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.admin-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 145px minmax(160px, 1fr) minmax(180px, 1fr) minmax(160px, 1fr) 70px 90px 112px;
  padding: 13px 0;
}

.admin-row-head {
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-row small {
  color: var(--muted);
  display: block;
  overflow-wrap: anywhere;
}

.admin-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.admin-actions form {
  margin: 0;
}

.admin-action {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--teal);
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  height: auto;
  min-height: 0;
  padding: 4px;
  text-decoration: none;
}

.admin-action:hover {
  background: transparent;
  color: var(--brand-navy);
}

.danger-button,
.danger-button:hover {
  background: transparent;
  color: #a52a2a;
}

.empty-state {
  color: var(--muted);
  margin: 0;
  padding: 22px 0 0;
}

.detail-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.detail-grid > div {
  border-top: 4px solid var(--brand-teal);
  padding: 22px;
}

dl {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: 150px minmax(0, 1fr);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.capability-answer-table {
  grid-template-columns: minmax(280px, 1fr) minmax(110px, 140px);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 26px;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-hero-summary {
    max-width: 680px;
  }

  .intro-band,
  .result-hero,
  .admin-header,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .response-table,
  .answer-table,
  .score-table {
    grid-template-columns: 1fr;
  }

  .capability-chart {
    grid-template-columns: minmax(180px, 240px) minmax(280px, 1fr);
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .response-head:not(.statement-cell),
  .score-head:not(:first-child) {
    display: none;
  }

  .select-cell {
    padding-top: 0;
  }

  .area-title {
    align-items: start;
    flex-direction: column;
  }

  .area-title p {
    max-width: none;
    text-align: left;
  }

}

@media (max-width: 880px) {
  .result-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-overview .link-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .admin-row-head {
    display: none;
  }

  .admin-row:not(.admin-row-head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 0;
  }

  .admin-row:not(.admin-row-head) > span:not(.admin-actions)::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .admin-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .landing-page {
    gap: 18px;
  }

  .landing-hero {
    padding: 30px 22px;
  }

  .landing-hero h1 {
    font-size: 48px;
  }

  .landing-tagline {
    font-size: 22px;
  }

  .landing-actions,
  .landing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-assessment-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 26px 20px;
  }

  .landing-actions .link-button,
  .landing-cta .link-button {
    width: 100%;
  }

  .result-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-report-charts {
    grid-template-columns: 1fr;
  }

  .admin-header-actions {
    flex-wrap: wrap;
  }

  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    position: static;
  }

  main {
    padding-inline: 12px;
  }

  .field-grid,
  .capability-row {
    grid-template-columns: 1fr;
  }

  .capability-chart {
    overflow: visible;
  }

  .capability-chart-label {
    margin: 18px 0 6px;
  }

  .capability-chart-track {
    min-height: 28px;
  }

  .capability-chart-axis-spacer {
    display: none;
  }

  .capability-chart-axis {
    margin-top: 8px;
  }

  .result-overview {
    display: block;
  }

  .result-overview > div + div {
    margin-top: 22px;
  }

  .result-overview .link-button {
    margin-top: 22px;
    width: 100%;
  }

  .intro-band,
  .result-hero,
  .admin-header {
    padding: 24px 18px;
  }

  .intro-band h1,
  .result-hero h1,
  .admin-header h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .section-heading h2,
  .auth-panel h1,
  .insight-panel h2,
  .detail-grid h2 {
    font-size: 25px;
  }

  .submit-bar {
    justify-content: stretch;
  }

  .submit-bar button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .chart-card-heading {
    align-items: start;
    flex-direction: column;
  }

  .capability-chart-panel .capability-chart {
    display: block;
  }

  .capability-chart-panel .capability-chart-label {
    margin-top: 14px;
  }

  .admin-row:not(.admin-row-head) {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-column: 1;
  }

  dl {
    gap: 6px 14px;
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media print {
  @page {
    margin: 10mm;
    size: A4 landscape;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .flash-stack,
  .admin-header-actions {
    display: none;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .admin-header {
    background: none;
    border: 0;
    box-shadow: none;
    color: #000;
    margin-bottom: 5mm;
    padding: 0;
  }

  .admin-header h1 {
    font-size: 30px;
  }

  .detail-grid {
    gap: 6mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid > div {
    break-inside: avoid;
    box-shadow: none;
  }

  .admin-report-charts {
    break-before: page;
    break-after: page;
    display: grid;
    gap: 6mm;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: 185mm;
    margin: 0;
  }

  .admin-report-charts .chart-panel {
    break-inside: avoid;
    box-shadow: none;
    height: 185mm;
    padding: 5mm;
  }

  .admin-report-charts .chart-card-heading h2 {
    font-size: 20px;
  }

  .admin-report-charts .chart-card-description {
    font-size: 11px;
    margin-top: 2mm;
  }

  .admin-report-charts .impact-chart-wrap {
    flex: 1;
    min-height: 0;
  }

  .admin-report-charts .impact-chart-panel canvas {
    height: 125mm !important;
    width: 125mm !important;
  }

  .admin-report-charts .chart-legend {
    font-size: 12px;
    padding: 1mm 0 0;
  }

  .admin-report-charts .capability-chart-panel .capability-chart {
    flex: 1;
    gap: 2mm 3mm;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    grid-template-rows: repeat(9, minmax(7mm, 1fr)) auto;
    margin-top: 3mm;
  }

  .admin-report-charts .capability-chart-label {
    font-size: 9px;
  }

  .admin-report-charts .capability-chart-track {
    min-height: 7mm;
  }

  .form-section {
    break-inside: avoid;
    box-shadow: none;
    margin-top: 0;
  }

  .form-section + .form-section {
    break-before: page;
  }

  .score-table {
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(90px, 120px));
  }

  .capability-answer-table {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .capability-answer-table > * {
    font-size: 11px;
    padding: 8px 10px;
  }

  .response-head,
  .score-head {
    display: block !important;
  }
}
