.checklist-page {
  --checklist-navy: #071d34;
  --checklist-blue: #139fe3;
  --checklist-teal: #00bfa5;
  --checklist-green: #21a66f;
  --checklist-yellow: #eea31c;
  --checklist-red: #dc565b;
  --checklist-border: #d8e2e8;
  --checklist-soft: #eef5f8;
}

.checklist-page [hidden] {
  display: none !important;
}

.checklist-page .eyebrow {
  letter-spacing: 0;
}

.checklist-hero {
  padding: 64px 0 48px;
}

.checklist-hero h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: 3.6rem;
}

.checklist-hero .lead {
  max-width: 900px;
}

.checklist-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: #edf8f1;
  font-size: 0.9rem;
  font-weight: 600;
}

.checklist-hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checklist-hero-facts svg {
  width: 19px;
  height: 19px;
  color: var(--green-2);
}

.checklist-section {
  min-height: 680px;
}

.checklist-loading {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.checklist-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #cbdde5;
  border-top-color: var(--checklist-teal);
  border-radius: 50%;
  animation: checklist-spin 0.8s linear infinite;
}

@keyframes checklist-spin {
  to {
    transform: rotate(360deg);
  }
}

.checklist-message {
  width: 100%;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 4px solid;
  background: #ffffff;
  color: var(--ink);
}

.checklist-message-error {
  border-color: var(--checklist-red);
  background: #fff0f0;
  color: #7b2225;
}

.checklist-app,
.compliance-report {
  width: 100%;
  color: var(--checklist-navy);
}

.checklist-progress {
  margin-bottom: 46px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--checklist-border);
}

.checklist-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.checklist-progress-copy span {
  color: #607487;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.checklist-progress-copy strong {
  font-size: 1rem;
}

.checklist-progress-track {
  height: 7px;
  overflow: hidden;
  background: #dfe9ee;
  border-radius: 4px;
}

.checklist-progress-track span {
  display: block;
  width: 14.2857%;
  height: 100%;
  background: var(--checklist-teal);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.checklist-progress-dots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.checklist-progress-dot {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #718494;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
}

.checklist-progress-dot::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-bottom: 7px;
  background: #dfe9ee;
}

.checklist-progress-dot.is-current,
.checklist-progress-dot.is-complete {
  color: var(--checklist-navy);
}

.checklist-progress-dot.is-current::before,
.checklist-progress-dot.is-complete::before {
  background: var(--checklist-teal);
}

.checklist-step {
  min-height: 450px;
}

.checklist-step-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.checklist-step-head .eyebrow {
  margin-bottom: 12px;
  color: #087c64;
}

.checklist-step-head h2 {
  color: var(--checklist-navy);
  font-size: 2.35rem;
}

.checklist-step-head p:last-child {
  max-width: 820px;
  margin: 14px 0 0;
  color: #526879;
}

.checklist-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.checklist-field {
  display: grid;
  gap: 8px;
  color: var(--checklist-navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.checklist-field small {
  color: #758796;
  font-size: 0.72rem;
  font-weight: 500;
}

.checklist-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8cad4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--checklist-navy);
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
}

.checklist-field input:focus,
.storage-consent input:focus-visible {
  outline: 3px solid rgba(19, 159, 227, 0.22);
  outline-offset: 2px;
  border-color: var(--checklist-blue);
}

.response-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--checklist-border);
  border-bottom: 1px solid var(--checklist-border);
}

.response-key > div {
  display: grid;
  grid-template-columns: 16px auto;
  column-gap: 9px;
  align-items: center;
}

.response-key p {
  grid-column: 2;
  margin: 3px 0 0;
  color: #617584;
  font-size: 0.8rem;
}

.response-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.response-dot-yes {
  background: var(--checklist-green);
}

.response-dot-no {
  background: var(--checklist-red);
}

.response-dot-na {
  background: #71879b;
}

.question-list {
  border-top: 1px solid var(--checklist-border);
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: center;
  min-height: 112px;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--checklist-border);
}

.question-copy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--checklist-navy);
  font-weight: 600;
}

.question-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff7f2;
  color: #087c64;
  font-size: 0.78rem;
  font-weight: 800;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #b9cbd5;
  border-radius: 6px;
  overflow: hidden;
}

.answer-option {
  position: relative;
  min-width: 0;
  border-right: 1px solid #b9cbd5;
}

.answer-option:last-child {
  border-right: 0;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-option span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px 6px;
  background: #ffffff;
  color: #4e6373;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.answer-option input:focus-visible + span {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(19, 159, 227, 0.3);
  outline-offset: -3px;
}

.answer-option input[value="yes"]:checked + span {
  background: var(--checklist-green);
  color: #ffffff;
}

.answer-option input[value="no"]:checked + span {
  background: var(--checklist-red);
  color: #ffffff;
}

.answer-option input[value="na"]:checked + span {
  background: #637c91;
  color: #ffffff;
}

.phase-indicator {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 20px 0;
}

.phase-indicator strong {
  font-size: 1.4rem;
}

.phase-indicator p {
  margin: 3px 0 0;
  color: #617584;
  font-size: 0.83rem;
}

.phase-indicator-track {
  height: 10px;
  overflow: hidden;
  background: #dfe9ee;
  border-radius: 5px;
}

.phase-indicator-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--checklist-teal);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.review-summary {
  border-top: 1px solid var(--checklist-border);
  margin-bottom: 28px;
}

.review-row,
.report-phase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--checklist-border);
}

.review-row strong,
.report-phase strong {
  color: var(--checklist-navy);
}

.review-score,
.report-phase-score {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: right;
}

.status-label {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-green {
  color: #14835a;
}

.status-yellow {
  color: #9a6300;
}

.status-red {
  color: #b7353a;
}

.storage-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--checklist-border);
  color: var(--checklist-navy);
  font-weight: 600;
}

.storage-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--checklist-teal);
}

.checklist-disclaimer {
  margin: 18px 0 0;
  color: #687b89;
  font-size: 0.82rem;
}

.checklist-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checklist-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--checklist-border);
}

.checklist-actions > :last-child {
  margin-left: auto;
}

.checklist-btn-primary,
.checklist-btn-secondary {
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.checklist-btn-primary {
  border-color: var(--checklist-teal);
  background: var(--checklist-teal);
  color: #032c25;
}

.checklist-btn-secondary {
  border-color: #9db2bd;
  background: #ffffff;
  color: var(--checklist-navy);
}

.checklist-btn-primary:disabled,
.checklist-btn-secondary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--checklist-border);
}

.report-header .eyebrow {
  margin-bottom: 10px;
  color: #087c64;
}

.report-header h2 {
  color: var(--checklist-navy);
  font-size: 2.8rem;
}

.report-reference {
  margin: 10px 0 0;
  color: #607487;
  font-weight: 600;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-overall {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
  padding: 30px;
  border-left: 6px solid;
  background: var(--checklist-soft);
}

.report-overall.status-green {
  border-color: var(--checklist-green);
}

.report-overall.status-yellow {
  border-color: var(--checklist-yellow);
}

.report-overall.status-red {
  border-color: var(--checklist-red);
}

.report-score {
  min-width: 150px;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.report-overall h3 {
  margin-bottom: 8px;
  color: var(--checklist-navy);
  font-size: 1.55rem;
}

.report-overall p {
  margin: 0;
  color: #526879;
}

.report-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 48px;
  background: var(--checklist-border);
  border: 1px solid var(--checklist-border);
}

.report-metadata div {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
}

.report-metadata dt {
  color: #657a89;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.report-metadata dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--checklist-navy);
  font-weight: 700;
}

.report-section {
  margin-top: 50px;
}

.report-section-head {
  margin-bottom: 18px;
}

.report-section-head .eyebrow {
  margin-bottom: 8px;
  color: #087c64;
}

.report-section-head h3,
.report-sources h3 {
  color: var(--checklist-navy);
  font-size: 1.8rem;
}

.report-phase > div:first-child span {
  display: block;
  margin-top: 4px;
  color: #647888;
  font-size: 0.78rem;
}

.report-priorities {
  margin: 0;
  padding: 0;
  counter-reset: priority;
  list-style: none;
  border-top: 1px solid var(--checklist-border);
}

.report-priority {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--checklist-border);
  counter-increment: priority;
}

.report-priority::before {
  content: counter(priority);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff7f2;
  color: #087c64;
  font-weight: 800;
}

.report-priority strong {
  display: block;
  margin-bottom: 5px;
  color: var(--checklist-navy);
}

.report-priority p {
  margin: 0;
  color: #536979;
}

.report-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--checklist-border);
  border: 1px solid var(--checklist-border);
}

.report-week {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
}

.report-week span {
  display: block;
  margin-bottom: 6px;
  color: #087c64;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-week h4 {
  margin: 0;
  color: var(--checklist-navy);
  font-size: 1rem;
}

.report-week ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #536979;
  font-size: 0.84rem;
}

.report-sources {
  padding-top: 28px;
  border-top: 1px solid var(--checklist-border);
}

.report-sources p,
.report-sources ul {
  color: #5f7382;
  font-size: 0.82rem;
}

.report-sources a {
  color: #06705b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .checklist-fields,
  .report-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .question-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .answer-options {
    max-width: 360px;
  }

  .report-header {
    display: grid;
  }

  .report-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .checklist-hero {
    padding: 48px 0 40px;
  }

  .checklist-hero h1 {
    font-size: 2.4rem;
  }

  .checklist-hero-facts {
    display: grid;
    gap: 10px;
  }

  .checklist-progress-copy {
    display: grid;
    gap: 4px;
  }

  .checklist-progress-copy strong {
    font-size: 0.9rem;
  }

  .checklist-progress-dots {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
  }

  .checklist-progress-dot {
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .checklist-progress-dot.is-current,
  .checklist-progress-dot.is-complete {
    color: transparent;
  }

  .checklist-step-head h2,
  .report-header h2 {
    font-size: 1.9rem;
  }

  .checklist-fields,
  .response-key,
  .report-metadata,
  .report-plan {
    grid-template-columns: 1fr;
  }

  .question-copy {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .question-number {
    width: 30px;
    height: 30px;
  }

  .answer-options {
    max-width: none;
  }

  .phase-indicator {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-row,
  .report-phase {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .review-row .status-label,
  .report-phase .status-label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .checklist-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checklist-actions > :last-child {
    margin-left: 0;
  }

  .report-actions {
    display: grid;
  }

  .report-overall {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px;
  }

  .report-score {
    font-size: 2.8rem;
  }

  .report-priority {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }
}

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

  html,
  body,
  .page-scroll {
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .site-header,
  .checklist-hero,
  .checklist-loading,
  .checklist-app,
  .no-print {
    display: none !important;
  }

  .checklist-section {
    min-height: 0;
    padding: 0;
    background: #ffffff !important;
  }

  .wrap {
    width: 100%;
  }

  .compliance-report {
    display: block !important;
    color: #071d34;
    font-size: 10pt;
  }

  .report-header h2 {
    font-size: 24pt;
  }

  .report-overall,
  .report-section,
  .report-phase,
  .report-priority,
  .report-week {
    break-inside: avoid;
  }

  .report-section {
    margin-top: 28px;
  }

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

  a {
    text-decoration: none !important;
  }
}
