/* Request a Brief v2 -- page-local styles (STAGED 2026-10-07).
   Every color comes from the site tokens in ../css/style.css. Typography follows DBT-1
   (READABILITY > INFORMATION DENSITY): reading text 16.5px / 1.6 at every width, questions
   >= body size and bold, secondary text >= 14px, step headings >= 1.25x body. */

.rq2 { font-size: 16.5px; line-height: 1.6; }
.rq2[hidden], .rq2 [hidden] { display: none !important; }
.rq2 .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; }

.rq2-progress { font-size: 14px; color: var(--gray-on-light); margin: 0 0 6px; font-weight: 600;
                letter-spacing: 0.02em; }
.rq2-step { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius);
            padding: var(--space-3); margin-bottom: var(--space-3); }
.rq2-step h2 { font-size: 21px; line-height: 1.3; margin: 0 0 4px; color: var(--navy);
               text-transform: none; letter-spacing: 0; }
.rq2-step h2:focus { outline: none; }
.rq2-step h2:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.rq2-sub { font-size: 14px; color: var(--gray-on-light); margin: 0 0 var(--space-2); }

.rq2-q { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.rq2-q > legend, .rq2-q > .rq2-label { display: block; font-size: 16.5px; font-weight: 700;
            color: var(--navy); margin: 0 0 6px; padding: 0; line-height: 1.4; }
.rq2-req { color: var(--orange-dark); font-weight: 700; }
.rq2-help { display: block; font-size: 14px; color: var(--gray-on-light); margin: -2px 0 8px;
            line-height: 1.45; font-weight: 400; }
.rq2-group { border-top: 1px solid var(--gray-light); padding-top: 18px; margin-top: 4px; }
.rq2-group > h3 { font-size: 17px; margin: 0 0 12px; color: var(--navy); }

.rq2 input[type="text"], .rq2 input[type="email"], .rq2 input[type="url"], .rq2 input[type="date"],
.rq2 input[type="time"], .rq2 select, .rq2 textarea {
  width: 100%; font: inherit; font-size: 16.5px; line-height: 1.5; padding: 10px 12px;
  border: 1px solid #b9c1cb; border-radius: 8px; color: var(--navy); background: var(--white);
  min-height: 46px; }
.rq2 textarea { resize: vertical; min-height: 0; overflow: hidden; }
.rq2 input[type="date"] { max-width: 15rem; }
.rq2 input[type="time"] { max-width: 10rem; }
.rq2 input:focus-visible, .rq2 select:focus-visible, .rq2 textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.rq2 [aria-invalid="true"] { border-color: var(--orange-dark) !important;
  box-shadow: 0 0 0 2px rgba(184, 79, 31, 0.18); }
.rq2 ::placeholder { color: #6b7480; opacity: 1; }   /* 4.5:1 on white */

/* Chips and cards: real radio / checkbox inputs, visually hidden but focusable. */
.rq2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rq2-chip { position: relative; display: inline-flex; }
.rq2-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rq2-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 9px 15px; border: 1.5px solid #b9c1cb; border-radius: 999px; background: var(--white);
  font-size: 15.5px; line-height: 1.3; color: var(--navy); cursor: pointer; }
.rq2-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.rq2-chip input:checked + span::before { content: "\2713"; font-weight: 700; }
.rq2-chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.rq2-chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }

.rq2-cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .rq2-cards { grid-template-columns: 1fr 1fr; } }
.rq2-card span { flex-direction: column; align-items: flex-start; gap: 0; width: 100%;
  border-radius: 10px; padding: 12px 14px; text-align: left; font-weight: 700; }
.rq2-card { display: flex; }
.rq2-card span small { display: block; font-weight: 400; font-size: 14px; color: var(--gray-on-light); }
.rq2-card input:checked + span small { color: #dfe5ec; }
.rq2-card input:checked + span::before { content: none; }
.rq2-desc span { flex-direction: column; align-items: flex-start; border-radius: 10px; }
.rq2-desc span small { font-size: 14px; font-weight: 400; color: var(--gray-on-light); }
.rq2-desc input:checked + span small { color: #dfe5ec; }

.rq2-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0;
             font-size: 16.5px; cursor: pointer; }
.rq2-check input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--navy); }

.rq2-rows { display: grid; gap: 8px; }
.rq2-row { display: flex; gap: 8px; align-items: center; }
.rq2-row label { flex: 0 0 auto; font-size: 14px; color: var(--slate); min-width: 4.6rem; }
.rq2-linkbtn { background: none; border: 0; padding: 10px 2px; min-height: 44px; font: inherit;
  font-size: 15.5px; font-weight: 600; color: var(--orange-dark); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; }
.rq2-linkbtn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.rq2-x { background: none; border: 1px solid var(--gray-light); border-radius: 8px; min-width: 44px;
  min-height: 44px; font-size: 20px; color: var(--slate); cursor: pointer; }

.rq2-rank { display: grid; gap: 8px; }
.rq2-rankbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px;
  padding: 8px 12px; border: 1.5px solid #b9c1cb; border-radius: 10px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--navy); cursor: pointer; text-align: left; }
.rq2-rankbtn[aria-pressed="true"] { border-color: var(--navy); background: #eef1f5; font-weight: 700; }
.rq2-rankbtn .rk { display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  align-items: center; justify-content: center; border: 1.5px dashed #9aa4b1; font-size: 14px; flex: 0 0 auto; }
.rq2-rankbtn[aria-pressed="true"] .rk { background: var(--navy); color: var(--white); border: 0; }
.rq2-rankbtn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.rq2-count { display: block; font-size: 14px; color: var(--gray-on-light); margin-top: 4px; text-align: right; }
.rq2-count.is-over { color: var(--orange-dark); font-weight: 700; text-align: left; }
.rq2-err { display: block; color: var(--orange-dark); font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.rq2-err:empty { display: none; }
.rq2-errsum { border: 2px solid var(--orange-dark); border-radius: 8px; padding: 12px 14px; margin: 0 0 18px;
  background: #fff7f3; }
.rq2-errsum:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.rq2-errsum h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--navy); }
.rq2-errsum ul { margin: 0; padding-left: 1.2rem; }
.rq2-errsum a { color: var(--orange-dark); font-weight: 600; }

.rq2-note { font-size: 14.5px; color: var(--slate); background: var(--off-white);
  border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; padding: 10px 12px; margin: 8px 0 0; }
.rq2-notice { font-size: 15px; color: var(--navy); background: #fff7f0; border: 1px solid #f0c9b0;
  border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; }
.rq2-notice .rq2-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rq2-notice button { min-height: 44px; padding: 6px 14px; border-radius: 999px; font: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--navy);
  background: var(--white); color: var(--navy); }
.rq2-restored { font-size: 14.5px; background: #eef6f5; border-left: 3px solid var(--teal);
  padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 0 0 14px; }
.rq2-consent { font-size: 14px; color: var(--slate); line-height: 1.5; margin: 18px 0 0; }

.rq2-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.rq2-actions .btn { min-height: 48px; border: 0; cursor: pointer; font-family: inherit; }
.rq2-actions .btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: var(--white); }
.rq2-actions .btn-secondary:hover, .rq2-actions .btn-secondary:focus-visible { background: #eef1f5; }
.rq2-actions .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.rq2-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.rq2-actions .rq2-back { margin-right: auto; }
.rq2-actions .rq2-full { flex: 1 1 100%; text-align: center; }
.rq2-status { flex: 1 1 100%; margin: 4px 0 0; font-size: 15px; }
.rq2-status.is-error { color: var(--navy); font-weight: 700; }

.rq2-about summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

@media (max-width: 480px) {
  .rq2-step { padding: 18px 16px; }
  .rq2-actions .btn { flex: 1 1 100%; text-align: center; }
  .rq2-actions .rq2-back { flex: 0 0 auto; margin-right: 0; order: 9; }
  .rq2-row label { min-width: 0; }
}

/* The site header is sticky; keep a focused step heading clear of it. */
.rq2-step { scroll-margin-top: 96px; }
.rq2-errsum, .rq2 .rq2-q { scroll-margin-top: 96px; }
/* Described chips show selection by fill and border; the inline check glyph would stack above the label. */
.rq2-desc input:checked + span::before { content: none; }

/* ---- catalog 2.1 compat additions (2026-10-07) ---- */
.rq2-grouphead { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-on-light);
  margin: 26px 0 14px; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.rq2-privacy { background: var(--off-white); border-left: 3px solid var(--orange); padding: 10px 12px;
  margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--slate); border-radius: 0 8px 8px 0; }
.rq2-privacy strong { color: var(--navy); }
.rq2-step > .rq2-privacy { margin: 0 0 18px; }
.rq2-shorten { border: 2px solid var(--orange-dark); border-radius: 8px; padding: 12px 14px; margin: 18px 0 0;
  background: #fff7f3; font-size: 15px; }
.rq2-shorten:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.rq2-shorten h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--navy); }
.rq2-shorten ul { margin: 6px 0; padding-left: 1.2rem; }
.rq2-shorten .btn { min-height: 48px; border: 0; cursor: pointer; font-family: inherit; }
.rq2-shorten .btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: var(--white); }
@media (max-width: 480px) { .rq2-shorten .btn { flex: 1 1 100%; } }
