/* GDPR Engineering Playbook — tool (decision helper) styles.
   The question/option/verdict UI for the interactive tools. Loaded by tool
   pages alongside bulma.min.css + site.css; driven by each tool's inline
   <script>. Tokens come from site.css. */

.tool-wrap { max-width: 720px; margin: 0 auto; }

.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 18px;
}
.disclaimer {
  font-size: 12px; color: var(--muted);
  background: var(--lightred); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; margin-top: 14px;
}
.disclaimer b { color: var(--ink); }

.q { margin: 0 0 18px; }
.q:last-of-type { margin-bottom: 0; }
.q .qn { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.q .qt { font-size: 16px; font-weight: 700; margin: 4px 0 10px; line-height: 1.35; }
.q .qhint { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }

.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  font: inherit; text-align: left;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 11px; padding: 11px 14px;
  cursor: pointer; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--brand); }
.opt .mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
}
.opt[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.opt[aria-pressed="true"] .mark { border-color: var(--brand); }
.opt[aria-pressed="true"] .mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.opt .ot { display: block; font-size: 14px; font-weight: 600; }
.opt .od { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.opt .ob { display: block; min-width: 0; }

.switchrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 14px; margin-top: 8px;
}
.switchrow .lbl { font-size: 13.5px; }
.switch {
  font: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 12.5px;
  color: var(--ink);
}
.switch[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }

.verdict {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--gray);
}
.verdict.show-in { background: var(--lightred); border-color: var(--warn-line); }
.verdict.show-out { background: var(--metal); border-color: var(--ok-line); }
.verdict .vlab { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.verdict .vmain { font-size: 19px; font-weight: 800; margin: 5px 0 8px; line-height: 1.2; }
.verdict .vbody { font-size: 13.5px; line-height: 1.6; }
.verdict ul { margin: 9px 0 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.verdict li { position: relative; padding-left: 20px; font-size: 13px; }
.verdict li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.verdict .placeholder { color: var(--muted); font-size: 13.5px; }

.toolbar { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  font: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 9px 15px; font-weight: 600; font-size: 13px;
  color: var(--ink); text-decoration: none; display: inline-block;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-accent); }

@media (max-width: 520px) {
  .opts.two { grid-template-columns: 1fr; }
}
