* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f3f6f8;
  color: #142231;
  font-family: Arial,Helvetica,sans-serif;
  line-height: 1.55;
}
a {
  color: #075494;
}
a:hover {
  text-decoration-thickness: 2px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #061f3d;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}
.top-strip {
  background: #061f3d;
  color: #fff;
  font-size: .84rem;
}
.top-strip>div {
  max-width: 1180px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.top-strip a {
  color: #fff;
  margin-left: auto;
}
.top-strip a+a {
  margin-left: 0;
}
.site-header,.admin-header {
  max-width: 1180px;
  margin: auto;
  min-height: 88px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #061f3d;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #061f3d;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand strong,.brand small {
  display: block;
}
.brand strong {
  font-size: 1.12rem;
  font-weight: 600;
}
.brand small {
  color: #566675;
  font-size: .85rem;
  margin-top: 2px;
}
.site-header nav,.admin-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-header nav a,.admin-header nav a {
  color: #061f3d;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover,.admin-header nav a:hover,.admin-header nav a.active {
  color: #0868b7;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  background: linear-gradient(120deg,#061f3d 0%,#0b315b 68%,#0b4778 100%);
  color: #fff;
}
.hero-inner {
  max-width: 1180px;
  margin: auto;
  padding: 56px 20px;
}
.hero h1 {
  max-width: 850px;
  margin: 6px 0 14px;
  font-size: 3rem;
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 600;
}
.hero p:not(.eyebrow) {
  max-width: 780px;
  color: #dbe8f4;
  font-size: 1.08rem;
}
.eyebrow,.step {
  color: #54b6f5;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  margin: 0 0 8px;
}
.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.trust-row span {
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 12px;
  font-size: .86rem;
}
.page-shell,.admin-main {
  max-width: 1180px;
  margin: auto;
  padding: 32px 20px 64px;
}
.card {
  background: #fff;
  border: 1px solid #d8e0e7;
  box-shadow: 0 14px 34px rgba(6,31,61,.09);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
}
.auth-card {
  padding: 32px;
}
.card h2 {
  color: #061f3d;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 10px;
}
.card p {
  color: #566675;
}
form label:not(.check) {
  display: block;
  color: #061f3d;
  font-weight: 600;
  margin: 16px 0 6px;
}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=date],input[type=search],input[type=number],select,textarea {
  width: 100%;
  border: 1px solid #aebbc7;
  border-radius: 2px;
  background: #fff;
  color: #142231;
  font: inherit;
  padding: 11px 12px;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,select:focus,textarea:focus,button:focus,a:focus {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}
.hint {
  color: #566675;
  font-size: .82rem;
  font-weight: 400;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: #142231;
  font-size: .91rem;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
}
.check.optional {
  background: #eaf4fb;
  border-left: 3px solid #0868b7;
  padding: 12px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button.primary {
  background: #0868b7;
  color: #fff;
}
.button.primary:hover {
  background: #075494;
}
.button.secondary {
  background: #fff;
  color: #061f3d;
  border-color: #061f3d;
}
.button.light {
  background: #fff;
  color: #061f3d;
  width: 100%;
}
.button.small {
  padding: 9px 13px;
  font-size: .88rem;
}
.auth-card .button {
  margin-top: 4px;
}
.honeypot {
  position: absolute!important;
  left: -10000px!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
}
.info-panel {
  background: #eaf4fb;
  border-left: 3px solid #0868b7;
  padding: 16px;
  margin-top: 28px;
}
.info-panel p {
  margin-bottom: 0;
}
.notice {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-left: 4px solid #0868b7;
  background: #eaf4fb;
}
.notice.success {
  border-color: #127c62;
  background: #e9f7f2;
}
.notice.error {
  border-color: #a12b2b;
  background: #fff0f0;
}
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}
.quiz-card {
  padding: 34px;
}
.quiz-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.quiz-meta span {
  background: #eaf4fb;
  color: #0b315b;
  padding: 6px 9px;
  font-size: .78rem;
  font-weight: 700;
}
.quiz-card h2 {
  font-size: 1.75rem;
}
fieldset {
  border: 0;
  margin: 24px 0;
  padding: 0;
}
.answer {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #d8e0e7;
  padding: 13px;
  margin: 9px 0;
  cursor: pointer;
  color: #142231;
  font-weight: 400;
}
.answer:hover {
  border-color: #0868b7;
  background: #f8fbfe;
}
.answer input:checked + .letter {
  background: #0868b7;
  border-color: #0868b7;
  color: #fff;
}
.answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9cabb9;
  color: #061f3d;
  font-weight: 700;
}
.result {
  margin-top: 26px;
  padding: 22px;
  border-left: 5px solid #0868b7;
  background: #eaf4fb;
}
.result.correct {
  border-color: #127c62;
  background: #e9f7f2;
}
.result.incorrect {
  border-color: #b36a17;
  background: #fff6e9;
}
.result-label {
  font-size: .76rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: #061f3d!important;
}
.result h3 {
  margin: 0 0 8px;
  color: #061f3d;
}
.source-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}
.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.score-card,.membership-card,.account-card {
  padding: 24px;
}
.score {
  display: flex;
  align-items: center;
  gap: 14px;
}
.score strong {
  font-size: 3rem;
  color: #0868b7;
  line-height: 1;
}
.score span {
  color: #566675;
  font-size: .9rem;
}
.membership-card {
  background: #061f3d;
  border-color: #061f3d;
  color: #fff;
}
.membership-card h2,.membership-card p {
  color: #fff;
}
.text-link {
  display: block;
  color: #fff;
  margin-top: 14px;
  text-align: center;
}
.account-card h2 {
  font-size: 1.2rem;
}
.site-footer {
  background: #061f3d;
  color: #fff;
  padding: 42px 20px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 36px;
}
.site-footer p {
  color: #c8d8e7;
  font-size: .88rem;
}
.site-footer a {
  display: block;
  color: #fff;
  margin: 6px 0;
}
.footer-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid #ed1c2e;
  background: #082b54;
}
.footer-counter strong {
  color: #fff;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.footer-counter span {
  color: #c8d8e7;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Admin */
.admin-body {
  background: #eef2f5;
}
.admin-header {
  max-width: 1180px;
  background: #fff;
  border-bottom: 1px solid #d8e0e7;
  padding-left: 20px;
  padding-right: 20px;
}
.admin-header .brand-mark {
  width: 48px;
  height: 48px;
}
.admin-main {
  min-height: 70vh;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.page-title h1 {
  margin: 0;
  color: #061f3d;
  font-size: 2rem;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.metric {
  background: #fff;
  border-top: 4px solid #0868b7;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(6,31,61,.09);
}
.metric strong {
  display: block;
  color: #061f3d;
  font-size: 2rem;
}
.metric span {
  color: #566675;
}
.panel {
  background: #fff;
  border: 1px solid #d8e0e7;
  padding: 22px;
  margin: 20px 0;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.panel h2 {
  margin: 0;
  color: #061f3d;
  font-weight: 600;
}
.filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th,td {
  text-align: left;
  border-bottom: 1px solid #d8e0e7;
  padding: 10px 9px;
  vertical-align: top;
}
th {
  color: #061f3d;
  background: #edf3f7;
  font-size: .78rem;
  letter-spacing: .03em;
}
tr:hover td {
  background: #f8fafc;
}
.status {
  display: inline-block;
  padding: 3px 7px;
  font-size: .74rem;
  font-weight: 700;
  background: #edf1f4;
  color: #061f3d;
}
.status.yes,.status.sent,.status.complete {
  background: #e9f7f2;
  color: #127c62;
}
.status.no,.status.failed {
  background: #fff0f0;
  color: #a12b2b;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.button.danger {
  background: #fff;
  border-color: #a12b2b;
  color: #a12b2b;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.checkbox-list {
  max-height: 380px;
  overflow: auto;
  border: 1px solid #d8e0e7;
}
.checkbox-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 1fr;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #d8e0e7;
  align-items: center;
}
.checkbox-row:nth-child(even) {
  background: #f7f9fb;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-footer {
  text-align: center;
  background: #061f3d;
  color: #c8d8e7;
  padding: 25px;
  font-size: .85rem;
}
.login-panel {
  max-width: 520px;
  margin: 30px auto;
  background: #fff;
  border-top: 5px solid #0868b7;
  padding: 32px;
  box-shadow: 0 14px 34px rgba(6,31,61,.09);
}
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.pagination a,.pagination span {
  padding: 6px 10px;
  border: 1px solid #d8e0e7;
  text-decoration: none;
}
.pagination span {
  background: #061f3d;
  color: #fff;
}
.email-preview {
  border: 1px solid #d8e0e7;
  background: #fff;
  padding: 18px;
  min-height: 180px;
}
.muted {
  color: #566675;
  font-size: .88rem;
}
.danger-zone {
  border-left: 4px solid #a12b2b;
}
@media (max-width: 900px) {
  .auth-grid,.quiz-layout,.site-footer-inner {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-header,.admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-header nav,.admin-header nav {
    gap: 14px;
  }
  .top-strip>div {
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-strip a {
    margin-left: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .checkbox-row {
    grid-template-columns: 28px 1fr;
  }
  .checkbox-row span:nth-last-child(-n+2) {
    display: none;
  }
}
@media (max-width: 560px) {
  .hero-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .quiz-card h2 {
    font-size: 1.35rem;
  }
  .page-shell,.admin-main {
    padding: 20px 14px 44px;
  }
  .auth-card,.quiz-card {
    padding: 22px;
  }
  .brand strong {
    font-size: .98rem;
  }
  .brand small {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .trust-row {
    display: grid;
  }
  .site-footer {
    padding: 34px 20px;
  }
  .page-title h1 {
    font-size: 1.6rem;
  }
}
/* Public quiz visual direction, based on the ACQP dark-blue and red campaign artwork. */
.public-body {
  background: #02142d;
  color: #fff;
}
.public-body .top-strip {
  background: #000d21;
  border-bottom: 2px solid #ed1c2e;
}
.public-body .site-header {
  max-width: 1180px;
  background: #00183a;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid #0c4f9f;
}
.public-body .site-header .brand,.public-body .site-header nav a {
  color: #fff;
}
.public-body .site-header .brand small {
  color: #9fc9f7;
}
.public-body .site-header .brand-mark {
  background: #0757bd;
  border-left: 6px solid #ed1c2e;
}
.public-body .hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 92% 15%,rgba(13,91,181,.35),transparent 33%),linear-gradient(125deg,#001c46 0%,#00132f 76%);
}
.public-body .hero:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 310px;
  height: 220px;
  opacity: .22;
  background: repeating-linear-gradient(135deg,transparent 0 10px,#1175e8 11px 12px);
}
.public-body .hero-inner {
  position: relative;
  z-index: 1;
}
.public-body .hero .eyebrow,.public-body .step {
  color: #fff;
}
.public-body .hero .eyebrow:after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #ed1c2e;
  margin-top: 12px;
}
.public-body .hero h1 {
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.public-body .hero h1:after {
  content: "";
  display: inline-block;
  width: 14px;
  height: .85em;
  background: #ed1c2e;
  transform: skew(-17deg);
  margin-left: 14px;
}
.public-body .trust-row span {
  border-color: #1776dc;
  background: rgba(0,45,100,.6);
}
.public-body .page-shell {
  background: #02142d;
}
.public-body .card {
  background: linear-gradient(145deg,#00265a,#001737);
  border-color: #176fd4;
  box-shadow: 0 20px 45px rgba(0,0,0,.28);
  color: #fff;
}
.public-body .card h2,.public-body .card h3,.public-body form label:not(.check) {
  color: #fff;
}
.public-body .card p {
  color: #dbe9f8;
}
.public-body .auth-card {
  border-top: 5px solid #ed1c2e;
}
.public-body .login-card {
  border-top-color: #086ee4;
}
.public-body .info-panel,.public-body .check.optional {
  background: #062c5e;
  border-left-color: #ed1c2e;
}
.public-body .check,.public-body .check a {
  color: #fff;
}
.public-body .button.primary {
  background: #ed1c2e;
  border-color: #ed1c2e;
}
.public-body .button.primary:hover {
  background: #c91020;
}
.public-body .button.secondary {
  background: transparent;
  color: #fff;
  border-color: #2b83e9;
}
.public-body .quiz-card {
  position: relative;
  overflow: hidden;
  border-top: 7px solid #086ee4;
}
.public-body .quiz-card:after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 150px;
  height: 120px;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(135deg,transparent 0 8px,#2a88ec 9px 10px);
}
.public-body .quiz-meta span {
  background: #073a79;
  color: #fff;
  border-left: 3px solid #ed1c2e;
}
.public-body .quiz-card h2 {
  padding-bottom: 18px;
  border-bottom: 3px solid #ed1c2e;
  text-transform: none;
}
.public-body .answer-form fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.public-body .answer {
  margin: 0;
  border: 2px solid #176fd4;
  border-radius: 7px;
  background: rgba(0,27,64,.72);
  min-height: 92px;
}
.public-body .answer:hover {
  background: #062d62;
  border-color: #4294f0;
}
.public-body .answer input:checked + .letter {
  background: #ed1c2e;
  color: #fff;
}
.public-body .letter {
  border: 0;
  color: #ed1c2e;
  font-size: 1.25rem;
}
.public-body .result {
  position: relative;
  z-index: 1;
  color: #fff;
  background: #062d62;
  border-color: #ed1c2e;
}
.public-body .result p,.public-body .result h3 {
  color: #fff;
}
.public-body .result.correct {
  background: #073d3a;
  border-color: #23b994;
}
.public-body .source-link {
  color: #fff;
}
.public-body .score-card {
  border-top: 5px solid #ed1c2e;
}
.public-body .score strong {
  color: #fff;
  text-shadow: 3px 3px 0 #0757bd;
}
.public-body .membership-card {
  background: linear-gradient(145deg,#073675,#001737);
  border-color: #287fe1;
  border-top: 5px solid #ed1c2e;
}
.public-body .account-card {
  border-top: 5px solid #086ee4;
}
.public-body .site-footer {
  border-top: 3px solid #ed1c2e;
  background: #000d21;
}
.public-body .notice {
  color: #fff;
  background: #073a79;
  border-color: #3494ff;
}
.public-body .notice.success {
  background: #0b4d46;
  border-color: #26c49f;
}
.public-body .notice.error {
  background: #5a1520;
  border-color: #ed1c2e;
}
@media (max-width: 720px) {
  .public-body .answer-form fieldset {
    grid-template-columns: 1fr;
  }
  .public-body .hero h1:after {
    width: 8px;
    margin-left: 8px;
  }
  .public-body .answer {
    min-height: 74px;
  }
}
.email-preview {
  display: block;
  width: 100%;
  padding: 0;
  min-height: 220px;
}
.answer input:focus + .letter {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}
.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  flex: none;
}
.admin-header .brand-logo {
  width: 38px;
  height: 38px;
}
.public-body .site-header .brand-logo {
  box-shadow: 4px 0 0 #ed1c2e;
}
.admin-header nav a.admin-public-link {
  background: #061f3d;
  color: #fff;
  border-left: 4px solid #ed1c2e;
  padding: 8px 11px;
  text-decoration: none;
}
.admin-header nav a.admin-public-link:hover {
  background: #075494;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 560px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .admin-header .brand-logo {
    width: 36px;
    height: 36px;
  }
}
