/* /readiness-check only, on top of /css/pages.css (same tokens). Mobile first. */
.rc-promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.rc-promises li::before { content: "\2713"; margin-right: 8px; color: #12805c; font-weight: 800; }

.rc-layout { display: grid; gap: 48px; max-width: 820px; padding-block: 48px 72px; }

/* Questions */
.rc-group {
  margin: 30px 0 4px; padding-top: 18px; border-top: 2px solid var(--ink-strong); color: var(--ink-strong);
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
}
.rc-group:first-of-type { margin-top: 0; }
.rc-q { margin: 0; padding: 18px 0 20px; border: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.rc-q legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; color: var(--ink-strong); font-size: 1.04rem; font-weight: 700; line-height: 1.5; }
.rc-q legend + * { clear: both; }
.rc-n { margin-right: 6px; color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; font-weight: 500; }
.rc-q.is-open legend { color: #9a5b00; }
.rc-q.is-open .rc-opt { border-color: #e2b25c; }

.rc-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rc-options.is-stack { grid-template-columns: 1fr; }
.rc-opt {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--ink); font-size: 0.95rem; font-weight: 600; line-height: 1.35; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.rc-opt:hover { border-color: var(--blue); }
.rc-opt, .rc-opt input { scroll-margin-bottom: 150px; } /* keyboard focus never hides behind the sticky bar */
.rc-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.rc-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--ink-strong); }
.rc-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.rc-submit { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 10px; margin-top: 24px; padding: 14px 0 16px; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); }
.rc-progress { margin: 0; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.04em; }
.rc-bar { height: 4px; background: var(--line); }
.rc-bar span { display: block; width: 0; height: 100%; background: var(--blue); transition: width 200ms ease; }
.rc-submit .button { width: fit-content; min-height: 50px; border: 0; cursor: pointer; font-size: 0.85rem; }
.form-status { min-height: 1.2em; margin: 0; color: var(--body); font-size: 0.93rem; }
.has-result .rc-submit { position: static; }

/* Result */
.rc-result { scroll-margin-top: 92px; padding: 28px 26px 30px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--white); }
.rc-result:focus { outline: none; }
.rc-score-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin: 16px 0 18px; }
.rc-score { margin: 0; color: var(--ink-strong); line-height: 1; white-space: nowrap; }
.rc-score b { font-size: clamp(3.2rem, 9vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; }
.rc-score span { margin-left: 4px; color: var(--muted); font-size: 1.1rem; font-weight: 700; }
.rc-result h2 { margin: 0 0 6px; color: var(--ink-strong); font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.035em; line-height: 1.15; }
.rc-result p { color: var(--body); font-size: 1rem; line-height: 1.7; }
.rc-score-row p { margin: 0; }
.rc-js2 { font-size: 0.95rem; }
.rc-result h3 { margin: 28px 0 6px; color: var(--ink-strong); font-size: 1.15rem; letter-spacing: -0.02em; }
.rc-gaps { margin: 0; padding: 0; list-style: none; counter-reset: gap; border-top: 1px solid var(--line); }
.rc-gap { position: relative; padding: 18px 0 16px 46px; border-bottom: 1px solid var(--line); counter-increment: gap; }
.rc-gap::before { position: absolute; left: 0; top: 19px; content: counter(gap, decimal-leading-zero); color: var(--blue); font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.rc-gap h4 { margin: 0 0 4px; color: var(--ink-strong); font-size: 1.05rem; letter-spacing: -0.01em; }
.rc-gap p { margin: 6px 0 0; font-size: 0.97rem; line-height: 1.65; }
.rc-gap strong { color: var(--ink-strong); }
.rc-gap a { color: var(--blue); font-weight: 700; }
.rc-answer { color: var(--muted) !important; font-size: 0.85rem !important; }
.rc-refs { color: var(--muted) !important; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem !important; letter-spacing: 0.02em; }
.rc-note { margin: 16px 0 0; }
.rc-disclaimer { margin: 18px 0 0; padding: 12px 14px; border: 1px dashed #b9c8e4; background: var(--pale); color: var(--body); font-size: 0.86rem !important; line-height: 1.6 !important; }

.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.rc-actions .button { cursor: pointer; }
.rc-back { padding: 0; border: 0; background: none; color: var(--blue); font-size: 0.9rem; font-weight: 700; text-decoration: underline; cursor: pointer; }

.rc-send { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.rc-send h3 { margin-top: 0; }
.rc-send h3 span { color: var(--muted); font-weight: 600; }
.rc-fields { display: grid; gap: 12px; margin: 14px 0 12px; }
.rc-field { display: grid; gap: 6px; color: var(--ink-strong); font-size: 0.9rem; font-weight: 700; }
.rc-field input {
  min-height: 48px; padding: 0 12px; border: 1px solid #b9c8e4; border-radius: var(--radius);
  background: var(--white); color: var(--ink-strong); font: 500 1rem "Manrope", Arial, sans-serif;
}
.rc-field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.rc-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; color: var(--body); font-size: 0.92rem; line-height: 1.55; }
.rc-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.rc-consent a { color: var(--blue); }
.rc-send .button { border: 0; cursor: pointer; font-size: 0.85rem; }
.rc-send .button:disabled { opacity: 0.6; cursor: default; transform: none; }
.rc-send.is-sent .rc-fields, .rc-send.is-sent .rc-consent, .rc-send.is-sent .button { display: none; }
.rc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.rc-about { max-width: none; }

@media (min-width: 700px) {
  .rc-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .rc-layout { padding-block: 32px 56px; gap: 36px; }
  .rc-options { grid-template-columns: 1fr 1fr; }
  .rc-result { padding: 22px 16px 24px; }
  .rc-score-row { grid-template-columns: 1fr; gap: 10px; }
  .rc-gap { padding-left: 36px; }
}

/* Print or save as PDF: the result only, in black on white. */
@media print {
  .site-header, .site-footer, .rc-hero, .rc-check, .rc-about, .cta-band, .rc-actions, .rc-send, .mg-consent { display: none !important; }
  .rc-layout { display: block; padding: 0; max-width: none; }
  .rc-result { border: 0; padding: 0; }
  .rc-result::before { content: "MAKGLOBAL readiness self-check, makglobal.africa/readiness-check"; display: block; margin-bottom: 10px; color: #000; font: 600 10pt "IBM Plex Mono", monospace; }
  .rc-result p, .rc-gap p { color: #000 !important; }
  .rc-gap { break-inside: avoid; }
  a { color: #000 !important; text-decoration: none; }
}
