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

.cl-hero {
  padding: clamp(70px, 9vw, 126px) 0;
}

.cl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}

.cl-hero-copy h1 {
  max-width: 760px;
  margin-top: 18px;
}

.cl-hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.cl-hero-copy .cl-lead {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
}

.cl-start-card,
.cl-shell,
.cl-score-card,
.cl-result-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.cl-start-card {
  padding: clamp(28px, 4vw, 42px);
}

.cl-time {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(166, 136, 111, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.cl-start-card h2 {
  margin-top: 22px;
  font-size: clamp(29px, 3vw, 38px);
}

.cl-start-card ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.cl-start-card li {
  position: relative;
  padding-left: 23px;
  color: var(--ink-soft);
}

.cl-start-card li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.cl-guidance {
  margin: 24px 0;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 14px;
}

.cl-start-card .btn {
  width: 100%;
}

.cl-noscript {
  margin: 16px 0 0;
  color: #8a3c35;
  font-size: 14px;
}

.cl-questionnaire {
  min-height: 70vh;
  background: var(--paper);
}

.cl-shell {
  width: min(900px, calc(100% - 40px));
  padding: clamp(26px, 5vw, 54px);
}

.cl-progress-header {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.65fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 36px;
}

.cl-progress-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.cl-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sand);
}

.cl-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.cl-step-heading {
  outline: none;
}

.cl-step-heading > span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cl-step-heading h2 {
  margin-top: 10px;
  font-size: clamp(27px, 3.4vw, 40px);
}

.cl-questions {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.cl-question {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.cl-question.has-error {
  border-color: #a84e45;
  box-shadow: 0 0 0 2px rgba(168, 78, 69, 0.08);
}

.cl-question legend {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.cl-question-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(166, 136, 111, 0.12);
  color: var(--accent-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.cl-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0 54px;
}

.cl-options label {
  position: relative;
  cursor: pointer;
}

.cl-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cl-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(81, 76, 70, 0.24);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cl-options input:hover + span {
  border-color: var(--accent);
}

.cl-options input:focus-visible + span {
  outline: 3px solid rgba(166, 136, 111, 0.3);
  outline-offset: 2px;
}

.cl-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(134, 107, 85, 0.18);
}

.cl-question-error {
  margin: 10px 0 0 54px;
  color: #8a3c35;
  font-size: 13px;
  font-weight: 600;
}

.cl-navigation {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cl-result {
  min-height: 70vh;
  scroll-margin-top: 90px;
}

.cl-result:focus {
  outline: none;
}

.cl-result-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: 22px;
  align-items: stretch;
}

.cl-score-card,
.cl-result-copy {
  padding: clamp(30px, 5vw, 54px);
}

.cl-score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--accent);
  color: #fff;
}

.cl-score-card > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cl-score-card strong {
  display: flex;
  align-items: baseline;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 118px);
  font-weight: 500;
  line-height: 1;
}

.cl-score-card small {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
}

.cl-score-card p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.cl-result-copy h2 {
  margin-top: 16px;
}

.cl-result-copy > div > p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.cl-result-notice {
  margin-top: 30px;
  padding: 22px;
  border-left: 3px solid var(--accent);
  background: var(--sand);
}

.cl-result-notice h3 {
  font-size: 18px;
}

.cl-result-notice p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.cl-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cl-source {
  padding: 34px 0;
}

.cl-source p {
  max-width: 900px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 820px) {
  .cl-hero-grid,
  .cl-result-grid {
    grid-template-columns: 1fr;
  }

  .cl-progress-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cl-score-card {
    min-height: 270px;
  }
}

@media (max-width: 560px) {
  .cl-hero {
    padding: 58px 0;
  }

  .cl-shell {
    width: min(100% - 24px, 900px);
    padding: 22px 16px;
  }

  .cl-question {
    padding: 20px 16px;
  }

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

  .cl-question-number {
    width: 32px;
    height: 32px;
  }

  .cl-options {
    grid-template-columns: 1fr;
    margin-left: 44px;
  }

  .cl-question-error {
    margin-left: 44px;
  }

  .cl-navigation {
    grid-template-columns: 1fr;
  }

  .cl-navigation > * {
    width: 100%;
  }

  .cl-navigation > span {
    display: none;
  }

  .cl-result-actions {
    display: grid;
  }

  .cl-result-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-progress span,
  .cl-options span {
    transition: none;
  }
}

.cl-page .cl-progress span{width:0}.cl-page .cl-result-copy{border:0;box-shadow:none;background:none;padding:0}.cl-page .cl-step-heading p{margin-top:20px;color:var(--ink-soft)}.cl-page .cl-options input:checked + span{background:var(--accent-dark);border-color:var(--accent-dark)}

@media(max-width:560px){.cl-page .cl-options{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0}.cl-page .cl-question-error{margin-left:0}}

.cl-page .cl-progress span{width:0}
.cl-page .cl-question legend{display:block;font-size:20px;line-height:1.5}
.cl-page .cl-options{margin-left:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.cl-page .cl-question-error{margin-left:0}
.cl-page .cl-result-copy{border:0;box-shadow:none;background:none;padding:0}
.cl-page .cl-checks{display:grid;gap:14px;margin-top:24px}
.cl-page .cl-checks label{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;background:var(--paper)}
.cl-page input[type=checkbox]{flex:none;width:22px;height:22px;accent-color:var(--accent-dark);margin-top:3px}
.cl-page .cl-symptoms{min-width:0;border:0;padding:0;margin:0}
.cl-page .cl-symptoms legend{font-family:var(--serif);font-size:22px;line-height:1.5}
.cl-page .cl-confirm{display:flex;gap:12px;align-items:center;padding:20px;background:var(--sand);border-radius:var(--radius);cursor:pointer}
.cl-page .cl-environments{display:grid;gap:16px;font-family:var(--serif);font-size:22px}
.cl-page select{max-width:100%;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:white;color:var(--ink);font:inherit}
.cl-page .cl-choose{padding-top:30px}.cl-page .cl-choose label{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.cl-page .cl-instructions{margin:0 0 30px;color:var(--ink-soft)}
.cl-page .cl-hero-copy h2{font-size:clamp(34px,4vw,58px)}
.cl-page [data-error]{color:#8a3c35;font-weight:600}
.cl-page input:focus-visible,.cl-page select:focus-visible{outline:3px solid var(--accent-dark);outline-offset:3px}
@media(max-width:560px){.cl-page .cl-question legend{font-size:19px}.cl-page .cl-checks label{padding:14px}.cl-page .cl-symptoms legend{font-size:20px}}

.cl-page .cl-start-card .btn{margin-top:20px}

/* Intro hierarchy: clinical guidance above the secondary privacy notice. */
[data-sexual-checklist] .cl-start-card .cl-guidance {
  font-size: 16px;
  line-height: 1.6;
}
[data-sexual-checklist] .cl-start-card .cl-privacy-notice {
  font-size: 14px;
  line-height: 1.55;
}

[data-sexual-checklist] .sexual-block{margin:2rem 0;}
[data-sexual-checklist] .sexual-block h3{font-size:1.4rem;}
[data-sexual-checklist] .sexual-block h4{font-size:1.15rem;line-height:1.5;}
