/* Public practice pages. Loaded after legal.css, which supplies the palette,
   the page frame and the typography — this file only adds what a page of
   worked questions needs. */

.q {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.q h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 6px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.q .n {
  flex: none;
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.q .topic {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px 36px;
}

.opts {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 36px;
}
.opts li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
}
/* The correct option is marked in text as well as in colour: colour alone
   fails for anyone who cannot distinguish it, and in print it disappears. */
.opts li.ok {
  border-color: #2e9c5a;
  background: rgba(46, 156, 90, 0.08);
  font-weight: 600;
}
.opts li.ok em {
  /* 4.5:1 on the tinted row (Lighthouse color-contrast); the dark theme
     lifts it again below. */
  color: #1f7a43;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}

.rat {
  margin: 0 0 8px 36px;
  font-size: 15px;
}
.rat.off {
  color: var(--muted);
}
.rat strong {
  color: var(--ink);
}

/* legal.css styles only the header links, so body links fell back to the
   browser default — unreadable blue on the dark palette. */
main a,
footer a {
  color: var(--brand);
}

.topics,
.rel {
  margin: 0 0 8px 18px;
  padding: 0;
}
.topics li,
.rel li {
  margin-bottom: 4px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}

.cta {
  margin: 36px -28px -8px;
  padding: 24px 28px 28px;
  border-top: 1px solid var(--line);
  background: rgba(94, 39, 247, 0.05);
  border-radius: 0 0 16px 16px;
}
.cta h2 {
  margin-top: 0;
}
.cta ul {
  margin: 0 0 18px 18px;
  padding: 0;
}
.cta li {
  margin-bottom: 5px;
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
}

@media (max-width: 560px) {
  .q .topic,
  .opts,
  .rat {
    margin-left: 0;
  }
}

/* Breadcrumb and the short answer under the intro (added with the SEO pass). */
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}
.crumbs a {
  color: var(--brand);
  text-decoration: none;
}
.short {
  margin: 18px 0 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(94, 39, 247, 0.06);
  border-radius: 12px;
}
.short p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .opts li.ok em {
    color: #5fcf8a;
  }
}
