/* learn/negotiation/ - "Negotiating with agents, safely and fairly". Loaded after ../personas/personas.css and
   ../agents/agents.css (same tokens; the ag-* components and the .ag colours --pub/--pro/--pri are reused, so <main>
   is "pr ag ng"). Only the page-specific pieces live here: the message figure, the bands demo, the rule families,
   the five questions and the before-you-send check. */
.ng-hero { background:
  radial-gradient(1000px 400px at 85% -10%, color-mix(in srgb, var(--pri) 14%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--fleet) 16%, transparent), transparent 70%); }

/* ---------- one message, two parts ---------- */
.ng-env svg { max-height: 410px; }
.ng-env .paper { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.ng-env .band { fill: var(--ink); }
.ng-env .band-t { fill: var(--bg); font-weight: 900; font-size: 13px; letter-spacing: .16em; }
.ng-env .sec-t { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; }
.ng-env .sec-t.go { fill: var(--pub); }
.ng-env .sec-t.stay { fill: var(--pri); }
.ng-env .tile { stroke-width: 1.6; }
.ng-env .tile.go { fill: color-mix(in srgb, var(--pub) 10%, var(--card)); stroke: var(--pub); }
.ng-env .tile.stay { fill: color-mix(in srgb, var(--pri) 8%, var(--card)); stroke: var(--pri); stroke-dasharray: 4 3; }
.ng-env .tl { fill: var(--ink); font-weight: 800; font-size: 11.5px; }
.ng-env .ts { fill: var(--muted); font-size: 10.5px; font-weight: 600; }
.ng-env .cut { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 4; }
.ng-env .part { transition: opacity .25s; }
.ng-env.focused .part { opacity: .18; }
.ng-env.focused .part.on { opacity: 1; }

/* ---------- code of conduct: ag-roles cards, one emphasised ---------- */
.ng-code article.you { border-width: 2px; }

/* ---------- bands demo ---------- */
.ng-bands h3 { margin: 0 0 4px; font-size: 1.2em; }
.ng-hits { margin: 18px 0 0; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ng-hits legend { font-weight: 700; margin-bottom: 8px; }
.ng-band-out { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; margin-top: 18px; align-items: stretch; }
@media (max-width: 760px) { .ng-band-out { grid-template-columns: 1fr; } }
.ng-band { --c: var(--pro); border: 2px solid var(--c); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.ng-band[data-band="green"] { --c: var(--pub); }
.ng-band[data-band="red"] { --c: var(--pri); }
.ng-band small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78em; }
.ng-band b { font-size: 1.6em; color: var(--c); }
.ng-band-col { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.ng-band-col h4 { margin: 0 0 4px; font-size: .92em; color: var(--muted); }
.ng-band-col p { margin: 0; }
.ng-band-col code { font-weight: 800; }

/* ---------- rule families ---------- */
.ng-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ng-fams article { --c: var(--pro); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius, 16px);
  padding: 14px 16px; background: var(--card); display: flex; flex-direction: column; }
.ng-fams article.nobody { --c: var(--pri); }
.ng-fams h3 { margin: 0 0 4px; font-size: 1.1em; }
.ng-fams p { margin: 0 0 10px; flex: 1; font-size: .95em; }
.ng-ov { align-self: flex-start; font-size: .78em; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }

/* ---------- people ---------- */
.ng .pr-never li { margin: .4em 0; }
.ng-q-h { margin: 28px 0 10px; font-size: 1.2em; }
.ng-qs { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ng-qs li { counter-increment: q; position: relative; padding: 12px 14px 12px 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ng-qs li::before { content: counter(q); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: .9em; background: var(--fleet); color: var(--on-fleet); }
.ng-qs b { display: block; }
.ng-qs .pr-react { border-top: 0; padding-top: 0; margin-top: 6px; }

/* ---------- before you send ---------- */
.ng-check-l { display: block; font-weight: 700; margin-bottom: 6px; }
.ng-check textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); resize: vertical; min-height: 7em; }
.ng-check textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.ng-check-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.ng-local { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .88em; font-weight: 700; color: var(--good); }
.ng-local svg { width: 18px; height: 18px; }
.ng-check-sum { margin: 14px 0 0; font-weight: 700; }
.ng-check-sum:empty { display: none; }
.ng-findings { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ng-findings li { --c: var(--pro); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 10px 14px; background: var(--bg); }
.ng-findings li.high { --c: var(--pri); }
.ng-findings li.ok { --c: var(--pub); }
.ng-findings b { display: block; }
.ng-findings q { font-style: italic; color: var(--muted); }
.ng-findings p { margin: 4px 0 0; }
.ng-findings .alt { color: var(--ink); }
.ng-findings .alt::before { content: "Instead: "; font-weight: 800; color: var(--c); }

.ng .pr-idea a { color: var(--accent); font-weight: 700; }
