:root {
  color-scheme: light;
  --ink: #1c2628;
  --muted: #5f6d6d;
  --line: #d6dedb;
  --line-strong: #b9c7c2;
  --canvas: #f3f5f2;
  --paper: #ffffff;
  --green: #0d6a59;
  --green-dark: #173f38;
  --green-soft: #e4f3ed;
  --blue: #2d608a;
  --blue-soft: #e7f0f8;
  --amber: #9a6414;
  --amber-soft: #fff1d6;
  --gold: #f3ca65;
  --rose: #9b4050;
  --rose-soft: #f9e7ea;
  --charcoal: #293336;
  --font-min: 16px;
}

/* Keep the normal start path compact. */
.project-start .persona-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-start .persona-selector button {
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
  grid-template-rows: none;
  align-content: center;
  gap: 5px;
  overflow: visible;
}

.project-start .persona-selector button > strong,
.project-start .persona-selector button > span {
  font-size: var(--font-min);
  line-height: 1.45;
}

.project-setup > header > .button {
  margin-left: auto;
}

.case-tools-dialog {
  width: min(1080px, 100%);
}

.case-tools-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.case-tools-entities {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-tools-entities h3 {
  margin: 0;
  font-size: 18px;
}

.case-tools-dialog .case-workspace,
.case-tools-dialog .goal-autopilot {
  margin: 18px 0 0;
}

@media (max-width: 760px) {
  .project-start .persona-selector {
    grid-template-columns: 1fr;
  }

  .project-start .persona-selector button {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-start .persona-selector button:last-child {
    border-bottom: 0;
  }

  .project-setup > header > .button {
    width: 100%;
    margin: 10px 0 0;
  }
}

/* Case OS, evidence lineage and persona outputs */
.entity-project-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entity-project-fields label:first-child,
.entity-project-fields label:nth-child(2) {
  grid-column: span 1;
}

.entity-boundary-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #2a6094;
  background: #eef5fb;
  color: #263f54;
  font-size: 1rem;
  line-height: 1.6;
}

.goal-autopilot {
  margin-top: 18px;
  border: 1px solid #bdc9c2;
  border-left: 5px solid #b25f25;
  background: #fff;
  padding: 18px;
}

.goal-autopilot.ready {
  border-left-color: #14705a;
}

.goal-autopilot > header,
.workspace-panel > header,
.evidence-intake > header,
.monitoring-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.goal-autopilot header span,
.workspace-panel header > div > span,
.persona-output-panel > div > span {
  display: block;
  color: #52645a;
  font-weight: 800;
  font-size: 1rem;
}

.goal-autopilot h3,
.workspace-panel h2,
.persona-output-panel h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.goal-autopilot header > strong {
  min-width: 58px;
  text-align: center;
  padding: 8px;
  color: #fff;
  background: #253f58;
}

.goal-autopilot ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.goal-autopilot li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d8dedb;
  color: #6a4a35;
}

.goal-autopilot li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 24px;
  border: 2px solid #b8794d;
}

.goal-autopilot li.complete {
  color: #1f5b4a;
  background: #edf6f2;
}

.goal-autopilot li.complete span {
  border-color: #14705a;
  background: #14705a;
  color: #fff;
}

.workspace-panel {
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 24px;
  background: #f4f7fa;
  border-top: 4px solid #2a6094;
  border-bottom: 1px solid #c5d0d8;
}

.workspace-panel header p {
  max-width: 780px;
  margin: 8px 0 0;
}

.workspace-status {
  padding: 7px 10px;
  border: 1px solid #9eb0bd;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-status.synced { border-color: #5c9a83; color: #176149; }
.workspace-status.error { border-color: #bd6a2b; color: #8c3e16; background: #fff5ed; }
.workspace-status.saving,
.workspace-status.loading { color: #2a6094; }

.workspace-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.workspace-controls label,
.workspace-id {
  display: grid;
  gap: 6px;
}

.workspace-controls label > span,
.workspace-id > span {
  font-weight: 800;
}

.workspace-id code {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.workspace-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workspace-error,
.evidence-privacy-note {
  padding: 10px 12px;
  border-left: 4px solid #b25f25;
  background: #fff5ed;
}

.workspace-panel details { margin-top: 16px; }
.workspace-panel summary { cursor: pointer; font-weight: 800; }
.workspace-activity { list-style: none; margin: 10px 0 0; padding: 0; }
.workspace-activity li { display: grid; grid-template-columns: minmax(160px, .4fr) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid #d5dde2; }
.workspace-activity span { display: flex; gap: 10px; }

.evidence-intake {
  margin: 22px 0 28px;
  border-top: 4px solid #2a6094;
}

.evidence-intake-form,
.monitoring-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.evidence-intake-form label,
.monitoring-form label {
  display: grid;
  gap: 6px;
}

.evidence-intake-form label > span,
.monitoring-form label > span {
  font-weight: 800;
}

.evidence-excerpt-field,
.monitoring-wide {
  grid-column: span 2;
}

.evidence-intake-form > button,
.monitoring-form > button {
  align-self: end;
  min-height: 48px;
}

.evidence-asset-list,
.monitoring-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.evidence-asset,
.monitoring-list article {
  border: 1px solid #cbd4cf;
  border-left: 4px solid #14705a;
  background: #fff;
  padding: 14px;
}

.evidence-asset > header,
.monitoring-list article > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.evidence-asset > header > span,
.monitoring-list article > header > span {
  padding: 5px 7px;
  background: #253f58;
  color: #fff;
  font-weight: 800;
}

.evidence-asset header div { display: grid; gap: 3px; }
.evidence-asset header .evidence-asset-actions {
  display: flex;
  gap: 6px;
}
.evidence-asset > p { margin: 12px 0; }
.evidence-asset-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evidence-asset-meta code { overflow-wrap: anywhere; color: #41544a; }

.specialist-review-controls {
  display: grid;
  grid-template-columns: 1fr minmax(140px, .6fr) minmax(160px, .7fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d5ddd8;
}

.specialist-review-controls label { display: grid; gap: 5px; }
.specialist-review-controls label > span { font-weight: 800; }
.specialist-question { grid-column: 1 / -1; }

.monitoring-panel {
  margin: 24px 0;
  border-top: 4px solid #b25f25;
}

.monitoring-list article dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.monitoring-list article dl div { padding: 10px; background: #f5f7f5; }
.monitoring-list dt { color: #53645b; font-weight: 800; }
.monitoring-list dd { margin: 4px 0 0; overflow-wrap: anywhere; }

.persona-output-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-left: 5px solid #2a6094;
  background: #eef5fb;
}

.persona-output-panel p { margin: 7px 0 0; max-width: 760px; }

@media (max-width: 880px) {
  .entity-project-fields,
  .goal-autopilot ol,
  .evidence-intake-form,
  .monitoring-form,
  .monitoring-list article dl {
    grid-template-columns: 1fr;
  }
  .workspace-controls { grid-template-columns: 1fr; }
  .workspace-buttons { justify-content: flex-start; }
  .evidence-excerpt-field,
  .monitoring-wide { grid-column: auto; }
  .specialist-review-controls { grid-template-columns: 1fr; }
  .specialist-question { grid-column: auto; }
  .persona-output-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .workspace-panel,
  .goal-autopilot,
  .persona-output-panel { padding: 16px; }
  .goal-autopilot > header,
  .workspace-panel > header,
  .evidence-intake > header,
  .monitoring-panel > header { flex-direction: column; }
  .workspace-activity li { grid-template-columns: 1fr; }
}

/* Benchmark-led topic workflow */
.peer-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}

.topic-selection-panel,
.topic-benchmark,
.inherited-issue-context {
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 18px 20px;
  background: #fff;
}

.topic-selection-panel > header,
.topic-benchmark > header,
.inherited-issue-context > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.topic-selection-panel h2,
.topic-benchmark h2,
.inherited-issue-context h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.topic-selection-panel > header > strong {
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 16px;
}

.topic-selection-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  list-style: none;
}

.topic-selection-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 12px;
}

.topic-selection-steps li:last-child {
  border-right: 0;
}

.topic-selection-steps li > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: var(--font-min);
}

.topic-selection-steps span,
.topic-selection-steps strong,
.topic-selection-steps small {
  display: block;
}

.topic-selection-steps strong {
  font-size: 16px;
}

.topic-selection-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.selected-topic-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 54px;
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 9px;
  background: #f8faf9;
}

.selected-topic-tray button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  border: 1px solid #a7cbbf;
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--green-dark);
  background: #eef8f4;
  text-align: left;
}

.selected-topic-tray button span {
  overflow: hidden;
  max-width: 320px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-min);
}

.selected-topic-tray button i {
  font-style: normal;
  font-weight: 900;
}

.selected-topic-tray p {
  display: grid;
  gap: 3px;
  margin: auto 4px;
}

.selected-topic-tray p span {
  color: var(--muted);
  font-size: var(--font-min);
}

.topic-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.button.disabled,
.button[disabled] {
  pointer-events: none;
  opacity: 0.48;
}

.requirement-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.requirement-row.prioritised {
  border-color: #86bbaa;
  box-shadow: inset 4px 0 0 var(--green);
}

.requirement-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px 11px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.requirement-main .framework-cells {
  grid-column: 2 / -1;
}

.topic-select-button {
  align-self: stretch;
  min-width: 112px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 9px 11px;
  color: var(--blue);
  background: #f4f8fc;
  font-size: var(--font-min);
  font-weight: 900;
}

.topic-select-button[aria-pressed="true"] {
  color: var(--green-dark);
  background: var(--green-soft);
}

.topic-benchmark > header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.topic-matrix-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.topic-matrix {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.topic-matrix th,
.topic-matrix td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px;
  vertical-align: top;
  text-align: left;
}

.topic-matrix tr:last-child th,
.topic-matrix tr:last-child td {
  border-bottom: 0;
}

.topic-matrix th:last-child,
.topic-matrix td:last-child {
  border-right: 0;
}

.topic-matrix thead th {
  background: #f5f8f7;
}

.topic-matrix thead th:first-child,
.topic-matrix tbody th {
  width: 230px;
}

.topic-matrix th strong,
.topic-matrix th small,
.topic-matrix tbody th span {
  display: block;
}

.topic-matrix th strong {
  font-size: 16px;
  line-height: 1.45;
}

.topic-matrix th small,
.topic-matrix tbody th span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-min);
}

.topic-signal,
.topic-signal a {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.topic-signal b {
  font-size: var(--font-min);
}

.topic-signal small {
  color: var(--muted);
  font-size: var(--font-min);
}

.topic-signal.evidence b {
  color: var(--green-dark);
}

.topic-signal.related b {
  color: var(--blue);
}

.topic-signal.not-found b,
.topic-signal.unresearched b {
  color: var(--muted);
}

.topic-matrix-note,
.inherited-issue-context > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.inherited-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.inherited-issue-list span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #a7cbbf;
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--green-dark);
  background: #eef8f4;
  font-size: var(--font-min);
}

@media (max-width: 1040px) {
  .peer-form {
    grid-template-columns: 1fr 1fr;
  }

  .peer-form .button {
    grid-column: 1 / -1;
  }

  .topic-selection-steps {
    grid-template-columns: 1fr;
  }

  .topic-selection-steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topic-selection-steps li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .peer-form,
  .topic-selection-panel > header,
  .topic-benchmark > header,
  .inherited-issue-context > header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .requirement-row,
  .requirement-main {
    grid-template-columns: 1fr;
  }

  .requirement-main .framework-cells {
    grid-column: 1;
  }

  .topic-select-button {
    min-height: 42px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .topic-next-actions .button {
    width: 100%;
  }
}

/* Persona-led project home and compact cross-application navigation */
.project-menu {
  position: sticky;
  top: 64px;
  z-index: 38;
  min-height: 54px;
  padding: 7px max(20px, calc((100% - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: #173f38;
  border-bottom: 1px solid #315b53;
}

.project-menu > span {
  flex: 0 0 auto;
  color: #d4e3dd;
  font-size: var(--font-min);
  font-weight: 800;
}

.project-menu-links {
  width: min(100%, 980px);
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid #507068;
  border-radius: 6px;
  background: #0f2d27;
}

.project-menu-links a {
  min-height: 38px;
  padding: 7px 10px;
  display: grid;
  place-items: center;
  color: #dce8e4;
  border-radius: 4px;
  font-size: var(--font-min);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.project-menu-links a:hover {
  background: #31564e;
}

.project-menu-links a.active {
  color: #173f38;
  background: #e3f3ec;
}

.compact-project-context {
  min-height: 48px;
  padding: 7px max(20px, calc((100% - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #eef3f0;
}

.project-menu,
.project-menu-links,
.compact-project-context {
  scrollbar-width: none;
}

.project-menu::-webkit-scrollbar,
.project-menu-links::-webkit-scrollbar,
.compact-project-context::-webkit-scrollbar {
  display: none;
}

.case-library-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-project-context > a,
.compact-project-context > span {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: #fff;
  border-left: 3px solid var(--line-strong);
  font-size: var(--font-min);
  text-decoration: none;
}

.compact-project-context > a {
  color: #fff;
  background: var(--green);
  border-left-color: var(--green-dark);
  font-weight: 900;
}

.compact-project-context b {
  color: var(--green);
}

.project-start {
  background: var(--canvas);
}

.project-start > section {
  padding: 36px max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
}

.project-start-intro {
  min-height: 160px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #173f38;
}

.project-start-intro .section-kicker {
  color: #9fe0c5;
}

.project-start-intro h1 {
  max-width: 760px;
  margin: 7px 0 10px;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: 0;
}

.project-start-status {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) minmax(260px, auto);
  gap: 16px;
  align-items: center;
}

.project-start-status > span,
.project-start-status small {
  color: #c9dad4;
  font-size: var(--font-min);
}

.project-start-status > strong {
  font-size: 24px;
}

.project-start-status > div {
  height: 9px;
  overflow: hidden;
  background: #46675e;
}

.project-start-status i {
  height: 100%;
  display: block;
  background: #9fe0c5;
}

.project-start-footer {
  padding: 24px max(24px, calc((100% - 1180px) / 2));
  color: #fff;
  background: #0f3029;
}

.project-setup,
.persona-work-queue,
.package-role-guide {
  background: #fff;
}

.project-intent,
.optional-tools {
  background: #f1f5f3;
}

.project-setup > header,
.project-intent > header,
.persona-work-queue > header,
.package-role-guide > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.project-setup > header > span,
.project-intent > header > span,
.persona-work-queue > header > span,
.package-role-guide > header > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.project-start h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
}

.project-start header p,
.optional-tools p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.65;
}

.persona-selector {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.persona-selector button {
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.persona-selector button:last-child {
  border-right: 0;
}

.persona-selector button:hover {
  background: #f4f8f6;
}

.persona-selector button.active {
  color: #fff;
  background: var(--green-dark);
  box-shadow: inset 0 -5px 0 #9fe0c5;
}

.persona-selector strong,
.persona-selector span {
  font-size: var(--font-min);
  line-height: 1.45;
}

.persona-selector span {
  color: var(--muted);
}

.persona-selector button.active span {
  color: #d6e7e1;
}

.project-fields {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.project-fields input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: var(--font-min);
}

.project-intent-options {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.project-intent-options button {
  min-width: 0;
  min-height: 174px;
  padding: 13px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.project-intent-options button:last-child {
  border-right: 0;
}

.project-intent-options button > b {
  color: var(--green);
  font-size: var(--font-min);
}

.project-intent-options button span,
.project-intent-options button strong,
.project-intent-options button small {
  min-width: 0;
  display: block;
}

.project-intent-options button strong {
  font-size: var(--font-min);
  line-height: 1.45;
}

.project-intent-options button small {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.project-intent-options button:hover,
.project-intent-options button.active {
  background: #e8f4ef;
  box-shadow: inset 0 -5px 0 var(--green);
}

.project-primary-action {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: #244f45;
}

.project-primary-action span,
.project-primary-action strong {
  display: block;
  font-size: var(--font-min);
}

.project-primary-action span {
  color: #c6d9d2;
}

.persona-task-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.persona-task-list li {
  min-height: 92px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 76px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.persona-task-list li > span {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.persona-task-list li > div strong,
.persona-task-list li > div p,
.persona-task-list li > div small {
  display: block;
  font-size: var(--font-min);
}

.persona-task-list li > div p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.55;
}

.persona-task-list li > div small {
  color: var(--blue);
  font-weight: 800;
}

.persona-task-list li > label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--font-min);
  font-weight: 800;
}

.persona-task-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.persona-task-list li > a {
  min-height: 42px;
  padding: 8px 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  font-size: var(--font-min);
  font-weight: 900;
  text-decoration: none;
}

.persona-task-list li.complete {
  background: #f2f7f4;
}

.persona-task-list li.complete > div strong {
  color: var(--green);
}

.optional-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: 36px;
  align-items: center;
}

.optional-tools > div > span {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.optional-tools nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.optional-tools a {
  min-height: 76px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 3px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.optional-tools a + a {
  border-left: 1px solid var(--line);
}

.optional-tools strong,
.optional-tools a span {
  font-size: var(--font-min);
}

.optional-tools a span {
  color: var(--muted);
}

.package-role-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.package-role-list article {
  min-height: 160px;
  padding: 18px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.package-role-list article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.package-role-list article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.package-role-list article > b {
  color: var(--green);
  font-size: 20px;
}

.package-role-list h3 {
  margin: 0;
  font-size: 20px;
}

.package-role-list p,
.package-role-list span {
  display: block;
  font-size: var(--font-min);
  line-height: 1.6;
}

.package-role-list p {
  margin: 6px 0;
  color: var(--muted);
}

.package-role-list span {
  color: var(--blue);
  font-weight: 800;
}

/* Consistent readable type scale across the working screens. */
.research-hero h1,
.ngo-hero-copy h1,
.workflow-hero h1,
.section-heading h1 {
  font-size: 34px;
}

.research-hero p,
.ngo-hero-copy > p {
  font-size: 16px;
}

@media (max-width: 920px) {
  .project-menu {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .project-menu > span {
    display: none;
  }

  .project-menu-links {
    flex: 0 0 auto;
    width: max-content;
  }

  .project-start-intro,
  .optional-tools {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-start-status {
    grid-template-columns: auto auto minmax(140px, 1fr);
  }

  .project-start-status small {
    grid-column: 1 / -1;
  }

  .project-intent-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-intent-options button {
    min-height: 148px;
    border-bottom: 1px solid var(--line);
  }

  .project-intent-options button:nth-child(2n) {
    border-right: 0;
  }

  .project-intent-options button:last-child {
    grid-column: 1 / -1;
    min-height: 120px;
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .project-menu {
    top: 64px;
    padding-inline: 12px;
  }

  .project-menu-links {
    grid-auto-columns: minmax(138px, 1fr);
  }

  .project-start > section {
    padding: 28px 18px;
  }

  .project-start-intro h1 {
    font-size: 28px;
  }

  .project-start-intro p {
    font-size: 16px;
  }

  .project-start-footer {
    padding: 22px 18px;
  }

  .project-start-status {
    grid-template-columns: 1fr auto;
  }

  .project-start-status > div,
  .project-start-status small {
    grid-column: 1 / -1;
  }

  .persona-selector,
  .project-fields,
  .project-intent-options,
  .optional-tools nav,
  .package-role-list {
    grid-template-columns: 1fr;
  }

  .persona-selector button,
  .project-intent-options button,
  .project-intent-options button:nth-child(2n) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .persona-selector button:last-child,
  .project-intent-options button:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .project-primary-action,
  .persona-work-queue > header {
    align-items: stretch;
    display: grid;
  }

  .persona-work-queue > header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .persona-work-queue > header .button {
    grid-column: 1 / -1;
  }

  .persona-task-list li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .persona-task-list li > label,
  .persona-task-list li > a {
    grid-column: 2;
    justify-self: stretch;
  }

  .persona-task-list li > a {
    width: 100%;
  }

  .optional-tools a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .package-role-list article,
  .package-role-list article:nth-child(odd),
  .package-role-list article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .package-role-list article:last-child {
    border-bottom: 0;
  }

  .research-hero h1,
  .ngo-hero-copy h1,
  .workflow-hero h1,
  .section-heading h1 {
    font-size: 28px;
  }
}

/* Research-first experience */
.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 76px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.language-switch button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: #fff;
  font-size: var(--font-min);
  font-weight: 900;
}

.language-switch button + button {
  border-left: 1px solid var(--line);
}

.language-switch button.active {
  color: #fff;
  background: var(--blue);
}

.research-landing {
  min-height: calc(100vh - 64px);
  background: #fff;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(520px, 1.08fr);
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  min-height: 520px;
  margin: 0 auto;
  padding: 64px 24px 54px;
}

.research-intro h1 {
  max-width: 620px;
  margin: 10px 0 18px;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0;
}

.research-intro p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.research-entry {
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(27, 48, 43, 0.09);
}

.research-entry > label {
  display: block;
  margin-bottom: 9px;
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 900;
}

.research-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.research-search-row input {
  min-width: 0;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.research-search-row .button {
  min-width: 150px;
  min-height: 52px;
}

.research-examples {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.research-examples-heading {
  display: grid;
  gap: 3px;
}

.research-examples-heading strong {
  color: var(--charcoal);
  font-size: 16px;
}

.research-examples-heading span {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.research-example-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.research-examples button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  color: #41514f;
  background: #f7f9f8;
  font-size: var(--font-min);
  font-weight: 800;
}

.research-examples button:hover {
  border-color: var(--green);
  color: var(--green);
}

.research-examples p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.research-privacy {
  margin: 15px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: var(--font-min);
}

.research-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.research-process > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  border-right: 1px solid var(--line);
  padding: 16px 24px;
}

.research-process > div:last-child {
  border-right: 0;
}

.research-process b,
.research-progress b {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: var(--font-min);
}

.research-process span {
  color: #344442;
  font-size: 16px;
  font-weight: 900;
}

.research-outcome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 24px 48px;
}

.research-outcome > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding: 5px 24px;
}

.research-outcome > div:last-child {
  border-right: 0;
}

.research-outcome strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.research-outcome span {
  color: var(--muted);
}

.research-outcome span b,
.research-outcome span small {
  display: block;
}

.research-outcome span b {
  color: var(--ink);
  font-size: 16px;
}

.research-outcome span small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 600;
  line-height: 1.5;
}

.research-loading {
  display: grid;
  align-content: center;
  gap: 42px;
  width: min(860px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 56px 0;
}

.research-loading-copy {
  display: flex;
  align-items: center;
  gap: 22px;
}

.research-loading-copy h1 {
  margin: 5px 0 7px;
  font-size: 28px;
  letter-spacing: 0;
}

.research-loading-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.research-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: research-spin 800ms linear infinite;
}

@keyframes research-spin {
  to { transform: rotate(360deg); }
}

.research-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
  font-size: var(--font-min);
  font-weight: 800;
}

.research-progress li::before {
  position: absolute;
  top: 15px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.research-progress li:first-child::before {
  display: none;
}

.research-progress li.active,
.research-progress li.complete {
  color: var(--green-dark);
}

.research-progress li.active b,
.research-progress li.complete b {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 1600px;
  margin: 0 auto;
}

.app-shell .workflow-nav {
  position: sticky;
  top: 64px;
  z-index: 20;
  align-self: start;
  height: calc(100vh - 64px);
  border-right: 1px solid var(--line);
  border-bottom: 0;
  overflow-y: auto;
  background: #fff;
}

.app-shell .case-identity {
  display: grid;
  gap: 4px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 18px;
}

.app-shell .case-identity > span {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.app-shell .case-identity strong {
  margin-top: 2px;
  font-size: 16px;
  white-space: normal;
}

.app-shell .case-identity small {
  color: var(--muted);
  font-size: var(--font-min);
}

.app-shell .case-identity .text-button {
  justify-self: start;
  margin-top: 5px;
}

.app-shell .workflow-steps {
  display: grid;
  grid-template-columns: 1fr;
  padding: 10px;
}

.app-shell .workflow-steps button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 61px;
  border: 0;
  border-radius: 5px;
  padding: 9px 10px;
}

.app-shell .workflow-steps button + button {
  margin-top: 2px;
}

.app-shell .workflow-steps button > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--font-min);
}

.app-shell .workflow-steps button > span,
.app-shell .workflow-steps button strong,
.app-shell .workflow-steps button small {
  display: block;
}

.app-shell .workflow-steps button strong {
  color: var(--ink);
  font-size: var(--font-min);
}

.app-shell .workflow-steps button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
}

.app-shell .workflow-steps button.complete > b {
  border-color: #88b9aa;
  color: var(--green);
  background: var(--green-soft);
}

.app-shell .workflow-steps button.active {
  border-top: 0;
  box-shadow: inset 3px 0 0 var(--green);
}

.app-shell .workflow-steps button.active > b {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.workflow-help {
  display: grid;
  gap: 4px;
  margin: 8px 18px 18px;
  border-left: 3px solid var(--amber);
  padding: 9px 10px;
  color: #5a4b34;
  background: #fff8ea;
}

.workflow-help strong {
  font-size: var(--font-min);
}

.workflow-help span {
  font-size: var(--font-min);
  line-height: 1.5;
}

.app-shell .workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 32px 64px;
  scroll-margin-top: 76px;
}

.research-review-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.research-warning {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  border-left: 4px solid var(--amber);
  padding: 11px 14px;
  color: #604a29;
  background: var(--amber-soft);
  font-size: var(--font-min);
}

.landing-error {
  margin: 14px 0 0;
}

.research-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.research-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border-right: 1px solid var(--line);
  padding: 13px 15px;
}

.research-metrics > div:last-child {
  border-right: 0;
}

.research-metrics span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.research-metrics strong {
  color: var(--blue);
  font-size: 20px;
}

.research-section,
.facts-form {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.research-section > .panel-heading {
  border-bottom: 1px solid var(--line);
  padding: 17px 19px;
}

.research-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-signal {
  min-width: 0;
  min-height: 138px;
  border-right: 1px solid var(--line);
  padding: 15px;
}

.research-signal:last-child {
  border-right: 0;
}

.research-signal:nth-child(3n) {
  border-right: 0;
}

.research-signal:nth-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}

.research-freshness {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.research-signal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.research-signal header > strong {
  font-size: 16px;
}

.research-signal > b {
  display: block;
  min-height: 34px;
  margin-top: 12px;
  color: var(--green-dark);
  font-size: var(--font-min);
}

.research-signal.notFound > b {
  color: var(--muted);
}

.confidence {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.confidence.high {
  color: #0d6248;
  background: var(--green-soft);
}

.confidence.medium {
  color: #225c85;
  background: var(--blue-soft);
}

.confidence.low {
  color: #7d5010;
  background: var(--amber-soft);
}

.research-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.research-source-chips a {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--blue);
  background: #fff;
  font-size: var(--font-min);
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-no-source {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.4;
}

.cdp-rating-section {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.cdp-rating-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.cdp-rating-heading h2 {
  margin: 3px 0 5px;
  font-size: 17px;
  letter-spacing: 0;
}

.cdp-rating-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.cdp-rating-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.cdp-latest,
.cdp-history {
  min-width: 0;
  padding: 18px 20px;
}

.cdp-latest {
  border-right: 1px solid var(--line);
}

.cdp-latest > span,
.cdp-history > div:first-child > span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 900;
}

.cdp-latest-year {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 13px;
}

.cdp-latest-year strong {
  color: var(--blue);
  font-size: 25px;
}

.cdp-latest-year small,
.cdp-history > div:first-child > small,
.cdp-published-source > span {
  color: var(--muted);
  font-size: var(--font-min);
}

.cdp-score-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 5px;
}

.cdp-score-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  min-height: 58px;
  border-right: 1px solid var(--line);
  padding: 9px 10px;
}

.cdp-score-list > div:last-child {
  border-right: 0;
}

.cdp-score-list span {
  color: #3f4d4b;
  font-size: var(--font-min);
  font-weight: 800;
}

.cdp-score-list small {
  grid-column: 1 / 3;
  color: #8b3b2f;
  font-size: var(--font-min);
}

.cdp-score {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #63706e;
  font-size: 16px;
}

.cdp-score.a { background: #167052; }
.cdp-score.b { background: #286b9b; }
.cdp-score.c { color: #473b19; background: #e2bd55; }
.cdp-score.d,
.cdp-score.f { background: #a84c3e; }

.cdp-published-source {
  margin-top: 12px;
}

.cdp-history > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cdp-history-table {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.cdp-history-table > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  min-height: 51px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.cdp-history-table > div > strong {
  color: var(--blue);
  font-size: 16px;
}

.cdp-history-table > div > span {
  font-size: var(--font-min);
  line-height: 1.5;
}

.cdp-history-table .research-source-chips {
  grid-column: 2;
  margin-top: 0;
}

.cdp-history > p,
.cdp-no-rating p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.cdp-no-rating {
  margin-top: 10px;
  border-left: 3px solid #c28b2e;
  padding: 8px 12px;
  background: #fff9ed;
}

.cdp-verification {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(330px, 1.2fr);
  gap: 10px 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  background: #f6f8f7;
}

.cdp-verification > div {
  display: grid;
  gap: 2px;
}

.cdp-verification strong {
  font-size: 16px;
}

.cdp-verification span,
.cdp-verification p {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.cdp-verification nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cdp-verification a {
  border: 1px solid #9fb6c8;
  border-radius: 4px;
  padding: 6px 8px;
  color: #17577f;
  background: #fff;
  font-size: var(--font-min);
  font-weight: 900;
  text-decoration: none;
}

.cdp-verification p {
  grid-column: 1 / 3;
  margin: 0;
}

.research-fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-fact-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  min-height: 112px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.research-fact-list > div:nth-child(3n) {
  border-right: 0;
}

.research-fact-list > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.research-fact-list > div > span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.research-fact-list > div > strong {
  grid-column: 1;
  font-size: 16px;
}

.research-fact-list > div > .confidence {
  grid-column: 2;
  grid-row: 1 / 3;
}

.research-fact-list .research-source-chips {
  grid-column: 1 / 3;
}

.facts-section {
  padding: 20px;
}

.facts-section + .facts-section {
  border-top: 1px solid var(--line);
}

.facts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.facts-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
  letter-spacing: 0;
}

.facts-form .applicability-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facts-form .field > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.45;
}

.attention-field {
  border-left: 3px solid var(--amber);
  padding-left: 10px;
}

.attention-field > span i {
  margin-left: 4px;
  color: var(--amber);
  font-size: var(--font-min);
  font-style: normal;
}

.facts-form .commitment-options label {
  min-height: 38px;
  padding: 7px 10px;
  font-size: var(--font-min);
}

.facts-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 15px 20px;
  background: #f8faf9;
}

.research-source-list > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
}

.research-source-list > a:last-child {
  border-bottom: 0;
}

.research-source-list > a:hover {
  background: #f7faf8;
}

.research-source-list > a > span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: var(--font-min);
  font-weight: 900;
}

.research-source-list strong,
.research-source-list small,
.research-source-list p {
  display: block;
}

.research-source-list strong {
  font-size: var(--font-min);
}

.research-source-list small {
  margin-top: 2px;
  color: var(--blue);
  font-size: var(--font-min);
}

.research-source-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.research-source-list > a > b {
  align-self: center;
  color: var(--green);
  font-size: var(--font-min);
}

.research-empty {
  padding: 24px;
}

.research-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

@media (max-width: 1120px) {
  .research-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  .research-intro h1 {
    font-size: 34px;
  }

  .app-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .research-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .research-signal:nth-child(3) {
    border-right: 0;
  }

  .research-signal:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .facts-form .applicability-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .app-shell .workflow-nav {
    top: 64px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    contain: inline-size;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .app-shell .workspace {
    max-width: 100%;
    min-width: 0;
  }

  .app-shell .case-identity,
  .workflow-help {
    display: none;
  }

  .app-shell .workflow-steps {
    grid-template-columns: repeat(6, minmax(152px, 1fr));
    min-width: 920px;
    padding: 7px 12px;
  }

  .app-shell .workflow-steps button {
    min-height: 54px;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 7px 10px;
  }

  .app-shell .workflow-steps button + button {
    margin-top: 0;
  }

  .app-shell .workflow-steps button.active {
    box-shadow: inset 0 -3px 0 var(--green);
  }

  .research-process {
    grid-template-columns: 1fr 1fr;
  }

  .research-process > div:nth-child(2) {
    border-right: 0;
  }

  .research-process > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .research-metrics,
  .research-fact-list {
    grid-template-columns: 1fr 1fr;
  }

  .research-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .research-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .research-fact-list > div,
  .research-fact-list > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .research-fact-list > div:nth-child(2n) {
    border-right: 0;
  }

  .research-fact-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .topbar-inner {
    gap: 8px;
  }

  .top-actions {
    gap: 5px;
  }

  .language-switch {
    width: 64px;
  }

  .top-actions .button.small {
    padding-right: 9px;
    padding-left: 9px;
  }

  .research-hero {
    width: 100%;
    min-width: 0;
    padding: 38px 16px 32px;
  }

  .research-intro,
  .research-entry {
    width: 100%;
    min-width: 0;
  }

  .research-intro h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .research-intro p {
    font-size: 16px;
  }

  .research-entry {
    padding: 18px;
  }

  .research-search-row {
    grid-template-columns: 1fr;
  }

  .research-search-row .button {
    width: 100%;
  }

  .research-process {
    grid-template-columns: 1fr;
  }

  .research-process > div,
  .research-process > div:nth-child(2) {
    min-height: 60px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .research-process > div:last-child {
    border-bottom: 0;
  }

  .research-outcome {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .research-outcome > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
  }

  .research-outcome > div:last-child {
    border-bottom: 0;
  }

  .research-progress {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .research-progress li {
    grid-template-columns: 34px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .research-progress li::before {
    display: none;
  }

  .app-shell .workflow-nav {
    top: 58px;
  }

  .app-shell .workspace {
    padding: 18px 15px 50px;
  }

  .research-warning {
    display: grid;
  }

  .research-metrics,
  .research-signal-grid,
  .research-fact-list,
  .facts-form .applicability-form-grid,
  .cdp-rating-layout,
  .cdp-verification {
    grid-template-columns: 1fr;
  }

  .cdp-latest {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cdp-score-list {
    grid-template-columns: 1fr;
  }

  .cdp-score-list > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cdp-score-list > div:last-child {
    border-bottom: 0;
  }

  .cdp-verification nav {
    justify-content: flex-start;
  }

  .cdp-verification p {
    grid-column: auto;
  }

  .research-metrics > div,
  .research-metrics > div:nth-child(2),
  .research-signal,
  .research-signal:nth-child(3),
  .research-fact-list > div,
  .research-fact-list > div:nth-child(2n),
  .research-fact-list > div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-metrics > div:last-child,
  .research-signal:last-child,
  .research-fact-list > div:last-child {
    border-bottom: 0;
  }

  .facts-heading,
  .facts-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .facts-actions .button {
    width: 100%;
  }

  .research-source-list > a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .research-source-list > a > b {
    grid-column: 2;
    justify-self: start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    Inter, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(45, 96, 138, 0.2);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
}

.top-actions,
.step-actions,
.decision-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-switcher {
  min-height: 48px;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: sticky;
  top: 64px;
  z-index: 39;
  border-bottom: 1px solid #303b36;
  background: #17211d;
  color: #fff;
}

.tool-switcher > span {
  color: #aeb9b3;
  font-size: var(--font-min);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-switcher-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid #4b5852;
  border-radius: 6px;
  background: #0d1512;
}

.tool-switcher-tabs a {
  min-width: 0;
  min-height: 31px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #d7ded9;
  text-decoration: none;
  font-size: var(--font-min);
  font-weight: 900;
  white-space: nowrap;
}

.tool-switcher-tabs a:hover {
  color: #fff;
  background: #303b36;
}

.tool-switcher-tabs a.active {
  color: #fff;
  background: var(--green);
}

.button,
.text-button {
  border-radius: 6px;
  font-weight: 800;
}

.button {
  min-height: 40px;
  border: 1px solid transparent;
  padding: 9px 14px;
}

.button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 16px;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button.primary:hover {
  background: #09594b;
}

.button.secondary {
  color: var(--charcoal);
  background: #fff;
  border-color: var(--line-strong);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.button.light {
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}

.button.outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.full {
  width: 100%;
}

.text-button {
  border: 0;
  padding: 7px 4px;
  color: var(--green);
  background: transparent;
  font-size: 16px;
}

.setup-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.setup-inner {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(620px, 1.35fr);
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 24px 28px;
}

.purpose-copy {
  align-self: center;
}

.eyebrow,
.section-kicker,
.step-label {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.purpose-copy h1 {
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
}

.purpose-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.moment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.moment-row span {
  border-left: 3px solid var(--green);
  padding: 3px 9px;
  color: #40504f;
  background: #f2f7f5;
  font-size: var(--font-min);
  font-weight: 800;
}

.case-form {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 42px;
}

.form-heading,
.panel-heading,
.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.form-heading {
  align-items: center;
  margin-bottom: 14px;
}

.form-heading h2,
.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

legend,
.field > span {
  display: block;
  margin-bottom: 6px;
  color: #374846;
  font-size: var(--font-min);
  font-weight: 900;
}

.mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mode-option {
  position: relative;
  min-width: 0;
}

.mode-option input,
.standard-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
}

.mode-option b {
  color: #344442;
  font-size: 16px;
}

.mode-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.35;
}

.mode-option input:checked + span {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.mode-option input:checked + span b {
  color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr);
  gap: 12px;
  margin-top: 13px;
}

.form-row.lower {
  grid-template-columns: minmax(180px, 0.62fr) minmax(360px, 1.38fr);
}

.field {
  min-width: 0;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
}

.example-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.example-row > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.example-row button {
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  color: #435250;
  background: #f8faf9;
  font-size: var(--font-min);
  font-weight: 800;
}

.example-row button:hover {
  border-color: var(--green);
  color: var(--green);
}

.standard-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.standard-option {
  position: relative;
}

.standard-option span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #42514f;
  background: #fff;
  cursor: pointer;
  font-size: var(--font-min);
  font-weight: 900;
  text-align: center;
}

.standard-option input:checked + span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.form-footer p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.45;
}

.applicability-inputs {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0 12px;
}

.applicability-inputs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.applicability-inputs summary::-webkit-details-marker {
  display: none;
}

.applicability-inputs summary span,
.applicability-inputs summary b,
.applicability-inputs summary small {
  display: block;
}

.applicability-inputs summary b {
  color: var(--charcoal);
  font-size: 16px;
}

.applicability-inputs summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
}

.applicability-inputs summary i {
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.applicability-form-grid {
  display: grid;
  grid-template-columns: 0.55fr 0.85fr 1fr 1.45fr;
  gap: 8px;
  margin-top: 11px;
}

.applicability-form-grid select {
  font-size: var(--font-min);
}

.commitment-fieldset {
  margin-top: 10px;
}

.commitment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.commitment-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 8px;
  color: #3d4d4b;
  background: #fff;
  font-size: var(--font-min);
  font-weight: 800;
}

.commitment-options input {
  width: 14px;
  min-height: 14px;
  margin: 0;
}

.attribute-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 5px;
  padding: 3px 7px;
  color: #43524f;
  background: #eef2f0;
  font-size: var(--font-min);
  font-weight: 900;
  white-space: nowrap;
}

.chip.success {
  color: #145a44;
  background: var(--green-soft);
}

.chip.warning {
  color: #7b4c0a;
  background: var(--amber-soft);
}

.chip.neutral {
  border: 1px solid var(--line);
  background: #fff;
}

.preflight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 42px 24px 64px;
}

.pain-section h2,
.fit-section h2,
.process-band h2,
.step-heading h1 {
  margin: 6px 0 0;
  letter-spacing: 0;
}

.pain-section h2,
.fit-section h2 {
  font-size: 22px;
  line-height: 1.45;
}

.pain-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.pain-list > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.pain-number {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
}

.pain-list strong {
  font-size: 16px;
}

.pain-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.fit-section {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.fit-list {
  display: grid;
  gap: 0;
  margin: 21px 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.fit-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.fit-list strong,
.fit-list span {
  display: block;
}

.fit-list strong {
  font-size: 16px;
}

.fit-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-min);
}

.scope-note {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--amber);
  padding: 10px 12px;
  color: #574b39;
  background: #fff9ed;
  font-size: var(--font-min);
}

.scope-note.compact {
  margin-top: 12px;
}

.workflow-nav {
  position: sticky;
  top: 64px;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.workflow-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 9px 16px 9px 0;
}

.case-identity strong,
.case-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-identity strong {
  font-size: 16px;
}

.case-identity span {
  color: var(--muted);
  font-size: var(--font-min);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
}

.workflow-steps button {
  min-height: 58px;
  border: 0;
  border-top: 3px solid transparent;
  border-right: 1px solid var(--line);
  padding: 8px 12px;
  color: #465452;
  background: #fff;
  text-align: left;
}

.workflow-steps button strong,
.workflow-steps button span {
  display: block;
}

.workflow-steps button strong {
  font-size: var(--font-min);
}

.workflow-steps button span {
  margin-top: 1px;
  color: var(--muted);
  font-size: var(--font-min);
}

.workflow-steps button.active {
  border-top-color: var(--green);
  color: var(--green);
  background: #f3f8f6;
}

.workspace {
  max-width: 1440px;
  min-height: 540px;
  margin: 0 auto;
  padding: 24px;
  scroll-margin-top: 132px;
}

.decision-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 148px;
  border-radius: 6px;
  padding: 24px 28px;
  color: #fff;
  background: var(--green-dark);
}

.decision-banner .eyebrow {
  color: #a9ddcd;
}

.decision-banner h2 {
  max-width: 900px;
  margin: 7px 0 6px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
}

.decision-banner p {
  max-width: 800px;
  margin: 0;
  color: #d6e9e3;
  font-size: 16px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.metric-strip > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  min-height: 82px;
  border-right: 1px solid var(--line);
  padding: 14px 16px;
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.metric-strip strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--charcoal);
  font-size: 28px;
  line-height: 1;
}

.metric-strip small {
  color: #344442;
  font-size: var(--font-min);
}

.summary-columns,
.review-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.work-panel,
.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #fff;
}

.panel-intro {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: var(--font-min);
}

.action-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.action-list li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.action-list strong {
  display: block;
  font-size: 16px;
}

.action-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.action-list small {
  color: var(--blue);
  font-size: var(--font-min);
  font-weight: 800;
  text-align: right;
}

.stage-advice {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  margin-top: 6px;
  border-left: 4px solid var(--blue);
  padding: 10px 12px;
  background: var(--blue-soft);
  font-size: var(--font-min);
}

.benchmark-table {
  border-top: 1px solid var(--line);
}

.benchmark-head,
.benchmark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 130px;
  gap: 10px;
  align-items: center;
}

.benchmark-head {
  padding: 8px 0;
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 900;
}

.benchmark-row {
  min-height: 70px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.benchmark-row strong,
.benchmark-row small {
  display: block;
}

.benchmark-row strong {
  font-size: 16px;
}

.benchmark-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.45;
}

.benchmark-row > span:last-child {
  color: #3e4c4a;
  font-size: var(--font-min);
  font-weight: 800;
}

.level {
  display: inline-flex;
  justify-content: center;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: var(--font-min);
  font-weight: 900;
}

.level.high {
  color: #7c2736;
  background: var(--rose-soft);
}

.level.medium {
  color: #145a44;
  background: var(--green-soft);
}

.level.later {
  color: #744a0e;
  background: var(--amber-soft);
}

.model-caveat {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.process-band {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.process-band h2 {
  font-size: 16px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-steps button,
.process-steps a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.process-steps button:hover,
.process-steps a:hover {
  color: var(--green);
  background: #edf5f2;
}

.process-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: var(--font-min);
}

.process-steps strong,
.process-steps small {
  display: block;
}

.process-steps strong {
  font-size: var(--font-min);
}

.process-steps small {
  color: var(--muted);
  font-size: var(--font-min);
}

.step-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.step-heading h1 {
  font-size: 24px;
  line-height: 1.35;
}

.step-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: #3d4d4a;
  font-size: var(--font-min);
  font-weight: 800;
}

.toggle input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}

.result-count {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 40px;
  border-radius: 5px;
  color: var(--green);
  background: var(--green-soft);
  font-size: var(--font-min);
  font-weight: 900;
}

.requirements-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  align-items: start;
}

.requirement-panel {
  padding: 8px;
}

.requirement-list {
  display: grid;
  gap: 7px;
}

.requirement-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px 11px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.requirement-row:hover,
.requirement-row.selected {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.req-id {
  display: grid;
  place-items: center;
  width: 43px;
  height: 30px;
  border-radius: 5px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: var(--font-min);
  font-weight: 900;
}

.req-id.large {
  width: 50px;
  height: 38px;
  flex: 0 0 auto;
}

.req-copy strong,
.req-copy small {
  display: block;
}

.req-copy strong {
  font-size: 16px;
}

.req-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.45;
}

.reuse-count {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
  white-space: nowrap;
}

.framework-cells {
  display: grid;
  grid-column: 2 / 4;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 5px;
}

.framework-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 6px;
  background: #f9faf9;
}

.framework-cell b {
  color: #4c5a58;
  font-size: var(--font-min);
}

.framework-cell i {
  border-radius: 4px;
  padding: 2px 4px;
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 900;
}

.framework-cell i.strong {
  color: #135c42;
  background: var(--green-soft);
}

.framework-cell i.partial {
  color: #784b0a;
  background: var(--amber-soft);
}

.framework-cell i.expert {
  color: #842d3d;
  background: var(--rose-soft);
}

.detail-panel {
  position: sticky;
  top: 140px;
}

.detail-title {
  justify-content: flex-start;
}

.detail-title h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.detail-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.status-detail {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.status-detail > div {
  display: grid;
  grid-template-columns: 70px auto;
  gap: 5px 8px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.status-detail > div > span:first-child {
  color: #40504d;
  font-size: var(--font-min);
  font-weight: 900;
}

.status-detail small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.45;
}

.status,
.priority {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 21px;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: var(--font-min);
  font-weight: 900;
  white-space: nowrap;
}

.status.strong {
  color: #135c42;
  background: var(--green-soft);
}

.status.partial {
  color: #784b0a;
  background: var(--amber-soft);
}

.status.expert {
  color: #842d3d;
  background: var(--rose-soft);
}

.priority.p1 {
  color: #fff;
  background: var(--charcoal);
}

.priority.p2 {
  color: #1f527c;
  background: var(--blue-soft);
}

.priority.p3 {
  color: #784b0a;
  background: var(--amber-soft);
}

.priority.p4 {
  color: #53605e;
  background: #edf0ef;
}

.review-callout {
  margin: 13px 0;
  border-left: 4px solid var(--rose);
  padding: 10px 11px;
  background: #fff6f7;
}

.review-callout strong,
.review-callout span {
  display: block;
  font-size: var(--font-min);
}

.review-callout p {
  margin: 4px 0 6px;
  color: #59464a;
  font-size: var(--font-min);
  line-height: 1.5;
}

.review-callout span {
  color: var(--rose);
  font-weight: 800;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: var(--font-min);
}

.evidence-links {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
}

.evidence-links > div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 7px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}

.evidence-links > div > span {
  color: var(--blue);
  font-size: var(--font-min);
  font-weight: 900;
}

.evidence-links strong {
  font-size: var(--font-min);
}

.empty-result {
  padding: 30px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.evidence-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  background: #fff;
}

.evidence-progress > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.evidence-progress strong {
  font-size: 18px;
}

.evidence-progress span,
.evidence-progress small {
  color: var(--muted);
  font-size: var(--font-min);
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}

.evidence-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.evidence-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  border-top: 4px solid var(--green);
  padding: 10px 3px 0;
}

.evidence-group:nth-child(2) > header {
  border-top-color: var(--blue);
}

.evidence-group:nth-child(3) > header {
  border-top-color: var(--amber);
}

.evidence-group h2 {
  margin: 0;
  font-size: 16px;
}

.evidence-group header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.evidence-group header > span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 900;
}

.evidence-tasks {
  display: grid;
  gap: 8px;
}

.group-empty {
  display: grid;
  gap: 5px;
  min-height: 126px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.group-empty strong {
  color: #465451;
  font-size: var(--font-min);
}

.group-empty span {
  font-size: var(--font-min);
}

.evidence-task {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: #fff;
  cursor: pointer;
}

.evidence-task:hover {
  border-color: var(--green);
}

.evidence-task.done {
  background: #f2f7f4;
}

.evidence-task > input {
  width: 17px;
  min-height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.task-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.task-title b {
  font-size: var(--font-min);
  line-height: 1.4;
}

.task-body > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.task-meta i {
  border-left: 2px solid var(--blue);
  padding-left: 5px;
  color: #41504e;
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 800;
}

.reuse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.review-summary {
  display: grid;
  grid-template-columns: 180px 180px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.review-summary > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
}

.review-summary strong {
  color: var(--rose);
  font-size: 24px;
}

.review-summary span {
  color: #465451;
  font-size: var(--font-min);
  font-weight: 800;
}

.review-summary p {
  margin: 0;
  padding: 12px 16px;
  color: var(--muted);
  font-size: var(--font-min);
}

.review-list,
.gap-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.review-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.review-item strong {
  font-size: var(--font-min);
}

.review-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.review-item small {
  color: var(--rose);
  font-size: var(--font-min);
  font-weight: 800;
}

.gap-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.gap-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.gap-top > span {
  color: var(--rose);
  font-size: var(--font-min);
  font-weight: 900;
}

.gap-top strong {
  font-size: var(--font-min);
}

.gap-item > p {
  margin: 5px 0 8px 41px;
  color: var(--muted);
  font-size: var(--font-min);
}

.question-box {
  display: grid;
  gap: 3px;
  margin-left: 41px;
  border-left: 3px solid var(--amber);
  padding: 7px 9px;
  background: #fff9ed;
}

.question-box small {
  color: var(--amber);
  font-size: var(--font-min);
  font-weight: 900;
}

.question-box strong {
  font-size: var(--font-min);
}

.owner-line {
  display: block;
  margin: 6px 0 0 41px;
  color: var(--blue);
  font-size: var(--font-min);
  font-weight: 800;
}

.handoff-layout {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.handoff-options > h2 {
  margin: 5px 0 14px;
  font-size: 17px;
}

.handoff-options > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 65px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 10px 2px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.handoff-options > button:hover {
  color: var(--green);
}

.handoff-options > button strong,
.handoff-options > button small {
  display: block;
}

.handoff-options > button strong {
  font-size: 16px;
}

.handoff-options > button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--font-min);
}

.handoff-options > button b {
  color: var(--green);
  font-size: var(--font-min);
}

.memo-panel pre {
  max-height: 610px;
  margin: 14px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
  color: #2e3a3c;
  background: #f8faf8;
  font-family: "Yu Gothic", Meiryo, sans-serif;
  font-size: var(--font-min);
  line-height: 1.7;
  white-space: pre-wrap;
}

.source-panel {
  padding: 20px;
}

.source-group + .source-group {
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
  padding-top: 28px;
}

.source-group > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 14px;
}

.source-group > header h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

.source-group > header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.source-group > header > b {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: var(--font-min);
}

.source-list {
  display: grid;
}

.source-row {
  display: grid;
  grid-template-columns: 140px minmax(220px, 300px) minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.source-row:hover {
  color: var(--green);
}

.source-row > span {
  color: var(--blue);
  font-size: var(--font-min);
  font-weight: 900;
}

.source-row strong {
  font-size: 16px;
  line-height: 1.45;
}

.source-row small {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.source-row b {
  color: var(--green);
  font-size: var(--font-min);
  text-align: right;
}

.source-footnote {
  margin-top: 14px;
  border-left: 4px solid var(--amber);
  padding: 9px 11px;
  color: var(--muted);
  background: #fff9ed;
  font-size: var(--font-min);
  line-height: 1.6;
}

.applicability-snapshot {
  margin-bottom: 14px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 15px 0 11px;
  background: #fff;
}

.snapshot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 12px;
}

.snapshot-heading h2 {
  margin: 3px 0 0;
  font-size: 16px;
  letter-spacing: 0;
}

.snapshot-results {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.snapshot-results > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  border-right: 1px solid var(--line);
  padding: 11px 13px;
}

.snapshot-results > div:last-child {
  border-right: 0;
}

.snapshot-results span {
  color: var(--charcoal);
  font-size: var(--font-min);
  font-weight: 900;
}

.snapshot-results small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--font-min);
}

.applicability-snapshot > p {
  margin: 9px 16px 0;
  color: var(--muted);
  font-size: var(--font-min);
}

.applicability-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 22px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: var(--font-min);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.applicability-badge.mandatory {
  color: #fff;
  background: var(--green);
}

.applicability-badge.voluntary {
  color: #245578;
  background: var(--blue-soft);
}

.applicability-badge.commitment {
  color: #fff;
  background: var(--blue);
}

.applicability-badge.check {
  color: #754907;
  background: var(--amber-soft);
}

.applicability-badge.planned {
  color: #843746;
  background: var(--rose-soft);
}

.applicability-badge.scopeout {
  color: #455351;
  background: #e9eeec;
}

.applicability-verdict {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 22px;
  color: #fff;
  background: #263d3f;
}

.applicability-verdict > div {
  display: grid;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.applicability-verdict > div span,
.applicability-verdict > div small {
  color: #d2e1df;
  font-size: var(--font-min);
}

.applicability-verdict > div strong {
  margin: 2px 0;
  font-size: 23px;
}

.applicability-verdict p {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: var(--font-min);
}

.applicability-verdict p span {
  color: #dce7e5;
  line-height: 1.65;
}

.applicability-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.applicability-attributes {
  position: sticky;
  top: 143px;
  border-right: 1px solid var(--line-strong);
  padding: 4px 18px 4px 0;
}

.applicability-attributes h2 {
  margin: 3px 0 12px;
  font-size: 17px;
}

.applicability-attributes dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.applicability-attributes dl > div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.applicability-attributes dt {
  color: var(--muted);
  font-size: var(--font-min);
}

.applicability-attributes dd {
  margin: 0;
  color: var(--charcoal);
  font-size: var(--font-min);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.commitment-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.commitment-summary strong {
  flex-basis: 100%;
  font-size: var(--font-min);
}

.commitment-summary span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--muted);
  background: #fff;
  font-size: var(--font-min);
}

.accuracy-callout {
  margin-top: 14px;
  border-left: 4px solid var(--blue);
  padding: 9px 10px;
  background: var(--blue-soft);
}

.accuracy-callout strong {
  font-size: var(--font-min);
}

.accuracy-callout p {
  margin: 3px 0 0;
  color: #345166;
  font-size: var(--font-min);
}

.applicability-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.applicability-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 285px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 6px;
  padding: 15px;
  background: #fff;
}

.applicability-card.mandatory {
  border-left-color: var(--green);
}

.applicability-card.commitment,
.applicability-card.voluntary {
  border-left-color: var(--blue);
}

.applicability-card.check {
  border-left-color: var(--amber);
}

.applicability-card.planned {
  border-left-color: var(--rose);
}

.applicability-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.applicability-card > header span,
.applicability-card > header small {
  display: block;
}

.applicability-card > header span {
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 900;
}

.applicability-card > header small {
  margin-top: 1px;
  color: var(--muted);
  font-size: var(--font-min);
}

.timing-line {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.timing-line span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.timing-line strong {
  color: var(--charcoal);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.applicability-explanation {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 11px 0;
}

.applicability-explanation p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.applicability-explanation p b {
  display: block;
  margin-bottom: 1px;
  color: #354442;
  font-size: var(--font-min);
}

.assessment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.assessment-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.assessment-meta .research-source-chips {
  justify-content: flex-end;
}

.collection-plan {
  margin: 2px 0 12px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.collection-plan-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 7px;
}

.collection-plan-heading strong {
  color: var(--charcoal);
  font-size: var(--font-min);
}

.collection-plan-heading span {
  color: var(--muted);
  font-size: var(--font-min);
}

.collection-plan-list {
  display: grid;
}

.collection-task {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 8px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.collection-task > b {
  grid-row: 1 / span 3;
  align-self: start;
  color: var(--green-dark);
  font-size: var(--font-min);
}

.collection-task > strong {
  color: var(--charcoal);
  font-size: var(--font-min);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.collection-task > span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.4;
}

.collection-task > span i {
  min-width: 24px;
  color: #50625f;
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-task .task-due {
  color: #843746;
  font-weight: 800;
}

.applicability-card footer {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 9px;
}

.applicability-card footer a {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
  text-decoration: none;
}

.applicability-card footer a:hover {
  text-decoration: underline;
}

.rule-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.rule-notes > div {
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding: 13px 15px;
}

.rule-notes > div:last-child {
  border-right: 0;
}

.rule-notes strong {
  color: var(--green-dark);
  font-size: var(--font-min);
}

.rule-notes span {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 30, 29, 0.58);
}

.guide-dialog {
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 6px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(14, 31, 27, 0.25);
}

.guide-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.guide-dialog h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--charcoal);
  background: #fff;
  font-size: 20px;
}

.guide-purpose {
  margin-top: 22px;
  border-left: 5px solid var(--green);
  padding: 4px 0 4px 18px;
}

.guide-purpose h3,
.guide-section-heading h3,
.guide-situations h3 {
  margin: 5px 0 0;
  font-size: 16px;
}

.guide-purpose p {
  max-width: 800px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-outcomes {
  margin-top: 26px;
}

.guide-outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.guide-outcome-grid section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 14px 0;
}

.guide-outcome-grid section:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.guide-outcome-grid section:nth-child(even) {
  padding-left: 16px;
}

.guide-outcome-grid section > b {
  color: var(--blue);
  font-size: 16px;
}

.guide-outcome-grid h4 {
  margin: 0;
  font-size: 16px;
}

.guide-outcome-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.guide-situations {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  margin-top: 26px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 0;
}

.guide-situations ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-situations li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.guide-situations li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.workflow-heading {
  margin-top: 26px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-top: 10px;
}

.guide-grid section {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.guide-grid section > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.guide-grid h3 {
  margin: 0;
  font-size: 16px;
}

.guide-grid p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.6;
}

.status-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.status-guide > div {
  min-height: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}

.status-guide > div > span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.guide-guardrail {
  margin-top: 14px;
  border-left: 4px solid var(--amber);
  padding: 10px 12px;
  background: #fff9ed;
}

.guide-guardrail strong {
  font-size: 16px;
}

.guide-guardrail p {
  margin: 3px 0 0;
  color: #625643;
  font-size: var(--font-min);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 340px;
  transform: translateY(12px);
  border-radius: 6px;
  padding: 11px 14px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 12px 28px rgba(18, 28, 26, 0.2);
  font-size: var(--font-min);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .setup-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .purpose-copy {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
    gap: 6px 30px;
  }

  .purpose-copy .eyebrow,
  .purpose-copy h1 {
    grid-column: 1;
  }

  .purpose-copy p,
  .purpose-copy .moment-row {
    grid-column: 2;
  }

  .purpose-copy p {
    grid-row: 1 / 3;
    align-self: center;
  }

  .purpose-copy .moment-row {
    margin-top: 4px;
  }

  .case-form {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .summary-columns,
  .requirements-layout,
  .review-columns,
  .handoff-layout {
    grid-template-columns: 1fr;
  }

  .applicability-layout {
    grid-template-columns: 1fr;
  }

  .applicability-attributes {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 0 0 16px;
  }

  .detail-panel {
    position: static;
  }

  .evidence-groups {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-group:last-child {
    grid-column: 1 / 3;
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .setup-inner,
  .workspace,
  .workflow-inner,
  .preflight {
    padding-right: 16px;
    padding-left: 16px;
  }

  .purpose-copy {
    display: block;
  }

  .purpose-copy p {
    margin-top: 0;
  }

  .purpose-copy .moment-row {
    margin-top: 14px;
  }

  .preflight {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fit-section {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 25px;
    padding-left: 0;
  }

  .workflow-inner {
    display: block;
    overflow-x: auto;
  }

  .case-identity {
    display: none;
  }

  .workflow-steps {
    min-width: 800px;
  }

  .applicability-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .snapshot-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-results > div:nth-child(2n) {
    border-right: 0;
  }

  .snapshot-results > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .applicability-results {
    grid-template-columns: 1fr;
  }

  .applicability-card {
    min-height: 0;
  }

  .rule-notes {
    grid-template-columns: 1fr;
  }

  .rule-notes > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rule-notes > div:last-child {
    border-bottom: 0;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric-strip > div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-band {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / 3;
  }

  .evidence-progress {
    grid-template-columns: 1fr;
  }

  .review-summary {
    grid-template-columns: 1fr 1fr;
  }

  .review-summary p {
    grid-column: 1 / 3;
    border-top: 1px solid var(--line);
  }

  .source-row {
    grid-template-columns: 92px minmax(0, 1fr) 70px;
  }

  .source-row small {
    grid-column: 2 / 4;
    padding-bottom: 9px;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    min-height: 58px;
  }

  .tool-switcher {
    top: 58px;
    gap: 8px;
    padding-inline: 16px;
  }

  .tool-switcher > span {
    display: none;
  }

  .tool-switcher-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-switcher-tabs a {
    padding-inline: 7px;
    font-size: var(--font-min);
    white-space: normal;
    text-align: center;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .top-actions .text-button {
    display: none;
  }

  .setup-inner {
    padding-top: 22px;
  }

  .purpose-copy h1 {
    font-size: 27px;
  }

  .mode-options,
  .form-row,
  .form-row.lower {
    grid-template-columns: 1fr;
  }

  .mode-option > span {
    min-height: 50px;
  }

  .standard-options {
    grid-template-columns: 1fr 1fr;
  }

  .applicability-form-grid {
    grid-template-columns: 1fr;
  }

  .commitment-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .snapshot-heading,
  .applicability-verdict {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .snapshot-heading {
    flex-direction: column;
  }

  .snapshot-heading .button {
    width: 100%;
  }

  .snapshot-results {
    grid-template-columns: 1fr;
  }

  .snapshot-results > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .snapshot-results > div:last-child {
    border-bottom: 0;
  }

  .applicability-verdict > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 12px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .preflight {
    padding-top: 30px;
  }

  .pain-section h2,
  .fit-section h2 {
    font-size: 19px;
  }

  .workflow-nav {
    top: 58px;
  }

  .workspace {
    padding-top: 18px;
  }

  .decision-banner {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .decision-banner h2,
  .step-heading h1 {
    font-size: 20px;
  }

  .decision-actions,
  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .decision-actions .button,
  .step-actions .button {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip > div:last-child {
    border-bottom: 0;
  }

  .action-list li {
    grid-template-columns: 28px 1fr;
  }

  .action-list small {
    grid-column: 2;
    text-align: left;
  }

  .stage-advice {
    grid-template-columns: 1fr;
  }

  .benchmark-head {
    display: none;
  }

  .benchmark-row {
    grid-template-columns: 1fr auto;
  }

  .benchmark-row > span:last-child {
    grid-column: 1 / 3;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .step-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .result-count {
    min-height: 34px;
  }

  .requirement-row {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .reuse-count {
    grid-column: 2;
  }

  .framework-cells {
    grid-column: 1 / 3;
  }

  .evidence-groups {
    grid-template-columns: 1fr;
  }

  .evidence-group:last-child {
    grid-column: auto;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .review-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .review-summary p {
    grid-column: auto;
  }

  .gap-item > p,
  .question-box,
  .owner-line {
    margin-left: 0;
  }

  .source-row {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    padding: 10px 0;
  }

  .source-row > span,
  .source-row strong,
  .source-row small {
    grid-column: 1 / 3;
  }

  .source-row small {
    padding-bottom: 0;
  }

  .source-panel {
    padding: 14px;
  }

  .source-group > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .guide-dialog {
    padding: 17px;
  }

  .guide-outcome-grid,
  .guide-grid,
  .status-guide {
    grid-template-columns: 1fr;
  }

  .guide-outcome-grid section,
  .guide-outcome-grid section:nth-child(even) {
    border-right: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .guide-situations {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Evidence confidence, live peers and persistent project workflow */
.quality-gate,
.peer-comparison {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.quality-gate {
  border-top: 5px solid var(--green);
  padding: 19px 20px;
}

.quality-gate.review {
  border-top-color: var(--amber);
}

.quality-gate.needsEvidence {
  border-top-color: var(--rose);
}

.quality-gate > header,
.peer-comparison > header,
.recent-cases-heading,
.case-library-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quality-gate h2,
.peer-comparison h2,
.recent-cases h2,
.case-library-dialog h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: 0;
}

.quality-gate > p,
.peer-comparison > header p,
.recent-cases > p,
.case-library-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.65;
}

.quality-gate-status {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 6px 9px;
  color: #fff;
  background: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.quality-gate-status.review {
  background: var(--amber);
}

.quality-gate-status.needsEvidence {
  background: var(--rose);
}

.quality-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.quality-control-grid > div {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 11px 12px;
}

.quality-control-grid > div:last-child {
  border-right: 0;
}

.quality-control-grid span,
.quality-control-grid small {
  display: block;
  color: var(--muted);
  font-size: var(--font-min);
}

.quality-control-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--green-dark);
  font-size: 16px;
}

.quality-control-grid .review strong,
.quality-control-grid .needsEvidence strong {
  color: var(--amber);
}

.quality-issues {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.quality-issues article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  border-left: 4px solid var(--amber);
  padding: 9px 11px;
  background: #fff8ea;
}

.quality-issues article > b {
  color: var(--amber);
  font-size: var(--font-min);
}

.quality-issues article strong,
.quality-issues article p {
  font-size: var(--font-min);
}

.quality-issues article p {
  margin: 3px 0 0;
  color: #53615e;
  line-height: 1.55;
}

.fact-asof {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.peer-comparison > header {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.peer-comparison > header p {
  max-width: 760px;
}

.peer-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 20px;
  background: #f6f8f6;
}

.peer-form label,
.evidence-task-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #465451;
  font-size: var(--font-min);
  font-weight: 900;
}

.peer-form input,
.evidence-task-controls input,
.evidence-task-controls select,
.evidence-task-controls textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.peer-form input {
  min-height: 42px;
}

.peer-loading,
.peer-empty,
.peer-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 20px 18px;
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  background: var(--blue-soft);
}

.peer-empty,
.peer-insight {
  align-items: flex-start;
}

.peer-empty strong,
.peer-empty span,
.peer-insight strong,
.peer-insight span,
.peer-loading strong {
  font-size: var(--font-min);
  line-height: 1.55;
}

.peer-insight {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.peer-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.peer-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.peer-table th,
.peer-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  font-size: var(--font-min);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.peer-table thead th {
  color: #465451;
  background: #eef2ef;
  white-space: nowrap;
}

.peer-table tbody th {
  min-width: 170px;
}

.peer-table tbody tr.current {
  background: #f1f7f4;
}

.peer-table th small,
.peer-table td small,
.peer-table td a {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--font-min);
}

.peer-table td a {
  color: var(--blue);
  font-weight: 800;
}

.recent-cases {
  max-width: 1240px;
  margin: 0 auto 34px;
  border-top: 1px solid var(--line);
  padding: 24px;
}

.recent-case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.recent-case-list button {
  display: grid;
  gap: 5px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.recent-case-list button:hover {
  border-color: var(--green);
  background: #f4f8f6;
}

.recent-case-list strong {
  font-size: 16px;
}

.recent-case-list span,
.recent-case-list small {
  color: var(--muted);
  font-size: var(--font-min);
}

.project-library-button b {
  display: inline-grid;
  min-width: 21px;
  min-height: 21px;
  margin-left: 3px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: var(--font-min);
}

.case-library-dialog {
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 6px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(14, 31, 27, 0.25);
}

.case-library-dialog > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}

.case-library-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.case-library-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
}

.case-library-list article > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.case-library-list article > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.case-library-list article strong {
  font-size: 16px;
}

.case-library-list article span,
.case-library-list article small {
  color: var(--muted);
  font-size: var(--font-min);
}

.text-button.danger {
  color: var(--rose);
}

.evidence-groups {
  grid-template-columns: 1fr;
}

.evidence-task {
  display: block;
  min-height: 0;
  padding: 0;
  cursor: default;
}

.evidence-task.overdue {
  border-left: 4px solid var(--rose);
}

.evidence-task-main {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 14px;
}

.evidence-verify {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: transparent;
  background: #fff;
  cursor: pointer;
}

.evidence-verify input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.evidence-verify:has(input:checked) {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.task-title {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.task-title i {
  border-radius: 4px;
  padding: 3px 6px;
  color: #fff;
  background: var(--rose);
  font-size: var(--font-min);
  font-style: normal;
  font-weight: 900;
}

.evidence-task-controls {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.2fr) 160px minmax(220px, 1.2fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px 58px;
  background: #f8faf8;
}

.evidence-task-controls textarea {
  resize: vertical;
}

.evidence-note-field {
  grid-column: 1 / -1;
}

.evidence-url-field {
  position: relative;
}

.evidence-url-field a {
  position: absolute;
  right: 7px;
  bottom: 8px;
  color: var(--blue);
  background: #fff;
  font-size: var(--font-min);
  font-weight: 900;
}

.evidence-url-field:has(a) input {
  padding-right: 50px;
}

.evidence-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 12px;
}

.evidence-progress-meta .alert {
  color: var(--rose);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #d9e5df;
}

.site-footer strong {
  flex: 0 0 auto;
  font-size: 16px;
}

.site-footer div {
  max-width: 760px;
  display: grid;
  gap: 7px;
  text-align: right;
}

.site-footer span {
  font-size: var(--font-min);
  font-weight: 700;
  line-height: 1.65;
}

.site-footer small {
  color: #a8bbb2;
  font-size: var(--font-min);
}

.site-footer .footer-license a {
  color: #d4ecdf;
  font-weight: 800;
  text-decoration-color: rgba(212, 236, 223, .42);
  text-underline-offset: 3px;
}

.site-footer .rights-holder {
  display: inline-block;
  margin-inline-start: 1.5em;
  white-space: nowrap;
}

.site-footer .np-series-footer-region {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(217, 229, 223, .22);
}

.site-footer .np-series-footer-identity {
  margin: 0;
  display: grid;
  gap: 2px;
  text-align: start;
}

.site-footer .np-series-footer-identity strong {
  color: #f6faf7;
  font-size: 16px;
  letter-spacing: .14em;
}

.site-footer .np-series-footer-identity span {
  color: #a8bbb2;
  font-size: 16px;
}

.site-footer .np-series-footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e4f5d8;
  font-size: 16px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer .np-series-footer-link:focus-visible {
  outline: 3px solid #f2d66d;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .site-footer .np-series-footer-region {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
}

/* Common header map and the whole-site guide. These controls keep their text
   at 16px or larger so they remain readable on every embedded app. */
.top-actions .site-map-menu-top {
  flex: 0 0 auto;
  margin-left: 0;
}

.top-actions .site-map-menu-top > summary {
  min-height: 38px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1.15;
}

.top-actions .site-map-menu-top > div {
  z-index: 160;
}

.site-map-menu > div,
.site-map-menu header small,
.site-map-menu .site-map-groups > details > summary b,
.site-map-menu .site-map-groups > details > summary small,
.site-map-menu nav span,
.site-map-menu .site-map-panel > footer {
  font-size: 16px;
  line-height: 1.5;
}

.site-map-menu > div { overflow-wrap: anywhere; }

.journey-switcher-guide {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.journey-switcher-guide:hover,
.journey-switcher-guide:focus-visible { background: rgba(255,255,255,.16); }

.whole-site-guide-backdrop {
  z-index: 240;
  align-items: flex-start;
  overflow-y: auto;
  padding: clamp(18px, 4vh, 52px) 18px;
}

.whole-site-guide {
  width: min(940px, 100%);
  max-height: none;
  margin: auto;
  color: #173f35;
  background: #fffdf8;
}

.whole-site-guide header {
  align-items: flex-start;
}

.whole-site-guide h2 {
  max-width: 22ch;
  color: #173f35;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.13;
}

.whole-site-guide-lead {
  max-width: 62ch;
  margin: 0 0 22px;
  color: #39574e;
  font-size: 16px;
  line-height: 1.75;
}

.guide-entry-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
}

.guide-entry-points > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #c8ded5;
  border-radius: 17px;
  color: #173f35;
  background: linear-gradient(145deg, #f8fcf8, #ebf5ef);
  text-decoration: none;
}

.guide-entry-points > a:hover,
.guide-entry-points > a:focus-visible {
  border-color: #2e9b76;
  background: #e1f3e9;
  transform: translateY(-2px);
}

.guide-entry-points b {
  color: #b3642f;
  font-size: 16px;
  letter-spacing: .08em;
}

.guide-entry-points span { display: grid; gap: 7px; min-width: 0; }
.guide-entry-points strong { font-size: 18px; line-height: 1.3; }
.guide-entry-points small { color: #426158; font-size: 16px; line-height: 1.55; }
.guide-entry-points i { color: #1b7d61; font-size: 22px; font-style: normal; }

.whole-site-guide-sections > h3 {
  margin: 0 0 10px;
  color: #173f35;
  font-size: 20px;
}

.whole-site-guide-sections > details,
.whole-site-guide-personas {
  overflow: clip;
  margin: 8px 0;
  border: 1px solid #cfdfd8;
  border-radius: 15px;
  background: #fbfdfb;
}

.whole-site-guide-sections summary,
.whole-site-guide-personas > summary {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px 15px;
  color: #173f35;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.whole-site-guide-personas > summary { grid-template-columns: 1fr 24px; }
.whole-site-guide-sections summary::-webkit-details-marker,
.whole-site-guide-personas summary::-webkit-details-marker { display: none; }
.whole-site-guide-sections summary > span { color: #b3642f; font-size: 16px; font-weight: 900; }
.whole-site-guide-sections summary > strong,
.whole-site-guide-personas summary { font-size: 17px; }
.whole-site-guide-sections summary > i,
.whole-site-guide-personas summary > i { font-size: 20px; font-style: normal; text-align: center; }
.whole-site-guide-sections details[open] summary > i,
.whole-site-guide-personas[open] summary > i { transform: rotate(45deg); }

.whole-site-guide-sections details > div { padding: 0 16px 16px 59px; }
.whole-site-guide-sections p { max-width: 68ch; margin: 0; color: #416057; font-size: 16px; line-height: 1.7; }
.whole-site-guide-sections nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.whole-site-guide-sections nav a,
.whole-site-guide-sections nav button,
.whole-site-guide-judgement button { min-height: 42px; padding: 9px 12px; border: 1px solid #a9cabc; border-radius: 10px; color: #145c48; background: #eef8f2; font: inherit; font-size: 16px; font-weight: 800; line-height: 1.25; text-decoration: none; cursor: pointer; }
.whole-site-guide-sections nav a:hover,
.whole-site-guide-sections nav button:hover,
.whole-site-guide-judgement button:hover { border-color: #238465; background: #ddf0e5; }

.whole-site-guide-personas > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid #dce9e2; background: #dce9e2; }
.whole-site-guide-personas section { min-width: 0; padding: 14px 16px; background: #fff; }
.whole-site-guide-personas strong { color: #173f35; font-size: 16px; }
.whole-site-guide-personas p { margin: 5px 0 0; color: #557067; font-size: 16px; line-height: 1.55; }

.whole-site-guide-judgement { margin-top: 20px; padding: 18px; border: 1px solid #dbc99d; border-radius: 16px; background: #fff8e7; }
.whole-site-guide-judgement strong { display: block; color: #634817; font-size: 18px; line-height: 1.45; }
.whole-site-guide-judgement p { max-width: 70ch; margin: 8px 0 13px; color: #5f563f; font-size: 16px; line-height: 1.7; }
.whole-site-guide-judgement button { border-color: #b79247; color: #674d1c; background: #fffdf8; }

@media (max-width: 1140px) {
  .topbar-inner { align-items: flex-start; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .guide-entry-points { grid-template-columns: 1fr; }
  .guide-entry-points > a { min-height: 0; }
}

@media (max-width: 820px) {
  .journey-switcher-guide { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}

@media (max-width: 680px) {
  .topbar-inner { gap: 10px; }
  .top-actions { gap: 7px; }
  .top-actions .site-map-menu-top > summary { min-height: 36px; padding: 0 10px; font-size: 16px; }
  .top-actions .site-map-menu-top > div { top: 10px; left: 10px; right: 10px; width: auto; max-height: calc(100dvh - 20px); }
  .journey-switcher-guide { min-height: 38px; font-size: 16px; }
  .whole-site-guide-backdrop { padding: 10px; }
  .whole-site-guide { border-radius: 18px; }
  .whole-site-guide h2 { font-size: 27px; }
  .whole-site-guide header { gap: 12px; }
  .whole-site-guide-sections details > div { padding: 0 14px 14px; }
  .whole-site-guide-personas > div { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .top-actions .project-library-button {
    display: inline-flex;
    align-items: center;
  }

  .top-actions [data-open-guide] {
    position: relative;
    width: 36px;
    min-width: 36px;
    padding: 0;
    overflow: hidden;
    text-indent: -9999px;
  }

  .top-actions [data-open-guide]::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    content: "?";
    font-size: 16px;
    font-weight: 900;
    text-indent: 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer div {
    text-align: left;
  }

  .quality-gate > header,
  .peer-comparison > header,
  .recent-cases-heading,
  .case-library-dialog > header {
    display: grid;
  }

  .quality-control-grid,
  .recent-case-list {
    grid-template-columns: 1fr;
  }

  .quality-control-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quality-control-grid > div:last-child {
    border-bottom: 0;
  }

  .peer-form,
  .evidence-task-controls {
    grid-template-columns: 1fr;
  }

  .evidence-task-controls {
    padding-left: 14px;
  }

  .evidence-note-field {
    grid-column: auto;
  }

  .case-library-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ESG topic to NGO engagement research */
.tool-switcher-tabs {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.ngo-tool {
  color: var(--ink);
  background: var(--canvas);
}

.ngo-tool h1,
.ngo-tool h2,
.ngo-tool h3,
.ngo-tool p {
  letter-spacing: 0;
}

.ngo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 54px;
  align-items: center;
  max-width: 1240px;
  min-height: 455px;
  margin: 0 auto;
  padding: 58px 28px 50px;
  background: #fff;
}

.ngo-tool::before {
  display: block;
  height: 5px;
  content: "";
  background: var(--green);
}

.ngo-hero-copy {
  min-width: 0;
}

.ngo-hero-copy h1 {
  max-width: 790px;
  margin: 10px 0 18px;
  color: #17211d;
  font-size: 40px;
  line-height: 1.28;
}

.ngo-hero-copy > p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.ngo-best-for {
  max-width: 760px;
  margin-top: 24px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  border-left: 4px solid var(--amber);
  background: #fff8e9;
}

.ngo-best-for span {
  color: #7f520f;
  font-size: var(--font-min);
  font-weight: 900;
  text-transform: uppercase;
}

.ngo-best-for b {
  min-width: 0;
  color: #4f3a19;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ngo-workflow {
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(27, 48, 43, 0.09);
  overflow: hidden;
}

.ngo-workflow > a,
.ngo-workflow > div {
  min-height: 92px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.ngo-workflow > * + * {
  border-top: 1px solid var(--line);
}

.ngo-workflow b {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
}

.ngo-workflow span {
  font-size: 16px;
  font-weight: 900;
}

.ngo-workflow small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.35;
}

.ngo-workflow a:hover {
  background: #f3f7f5;
}

.ngo-workflow .active {
  color: #fff;
  background: var(--green-dark);
}

.ngo-workflow .active b {
  border-color: #8cc3b6;
  color: #fff;
  background: var(--green);
}

.ngo-workflow .active small {
  color: #bcd6cd;
}

.ngo-planner {
  padding: 42px max(28px, calc((100vw - 1184px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf2ef;
}

.ngo-planner > header,
.ngo-results-band > header,
.ngo-sources > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.ngo-planner > header {
  margin-bottom: 24px;
}

.ngo-planner h2,
.ngo-coverage h2,
.ngo-results-band h2,
.ngo-shortlist h2,
.ngo-guardrail-band h2,
.ngo-sources h2 {
  margin: 5px 0 0;
  color: #20302d;
  font-size: 25px;
  line-height: 1.35;
}

#ngoPlannerForm {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.7fr);
  gap: 18px 28px;
  align-items: start;
}

.ngo-project-field {
  min-width: 0;
  padding: 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}

.ngo-project-field > span,
.ngo-result-filters label > span {
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 900;
}

.ngo-project-field input,
.ngo-result-filters input,
.ngo-result-filters select,
.ngo-condition-grid select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.ngo-project-field small,
.ngo-theme-selector > small {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.ngo-theme-selector {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: #fff;
}

.ngo-theme-selector legend {
  width: 100%;
  padding: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ngo-theme-selector legend b,
.ngo-condition-grid label > b {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: var(--font-min);
}

.ngo-theme-selector legend span,
.ngo-condition-grid label > span {
  font-size: 16px;
  font-weight: 900;
}

.ngo-theme-selector > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.ngo-theme-selector label {
  min-width: 0;
  min-height: 60px;
  padding: 9px 8px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #f8faf9;
  cursor: pointer;
}

.ngo-theme-selector label:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.ngo-theme-selector label.selected {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.ngo-theme-selector input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ngo-theme-selector label b {
  min-width: 27px;
  color: var(--green);
  font-size: 16px;
}

.ngo-theme-selector label span {
  min-width: 0;
  font-size: var(--font-min);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ngo-theme-selector > small {
  display: block;
  margin-top: 10px;
}

.ngo-condition-grid {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ngo-condition-grid label {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 7px 10px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.ngo-condition-grid select {
  grid-column: 1 / 3;
}

.ngo-coverage {
  padding: 34px max(28px, calc((100vw - 1184px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  background: #fff;
}

.ngo-coverage p,
.ngo-results-band > header p,
.ngo-sources > header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.ngo-coverage-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 18px;
}

.ngo-coverage-chart > div {
  min-width: 0;
  height: 28px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
}

.ngo-coverage-chart span,
.ngo-coverage-chart b {
  font-size: var(--font-min);
}

.ngo-coverage-chart span {
  color: var(--muted);
  font-weight: 900;
}

.ngo-coverage-chart b {
  text-align: right;
}

.ngo-coverage-chart i {
  height: 8px;
  position: relative;
  border-radius: 4px;
  background: #e4e9e6;
  overflow: hidden;
}

.ngo-coverage-chart i::before {
  width: var(--coverage);
  height: 100%;
  position: absolute;
  inset: 0 auto 0 0;
  content: "";
  background: var(--blue);
}

.ngo-coverage-chart .active span {
  color: var(--green);
}

.ngo-coverage-chart .active i::before {
  background: var(--green);
}

.ngo-results-band {
  padding: 44px max(28px, calc((100vw - 1184px) / 2)) 54px;
  border-top: 1px solid var(--line);
  background: #f7f8f6;
}

.ngo-results-band > header {
  margin-bottom: 20px;
}

.ngo-results-band > header > div:first-child {
  max-width: 690px;
}

.ngo-result-filters {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ngo-result-filters label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ngo-ranking-key {
  margin-bottom: 18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.ngo-ranking-key > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ngo-ranking-key p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.4;
}

.ngo-match-level {
  min-height: 27px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 4px;
  font-size: var(--font-min);
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.ngo-match-level.strong {
  border-color: #75aa9e;
  color: #0b594b;
  background: var(--green-soft);
}

.ngo-match-level.partial {
  border-color: #d2a455;
  color: #754907;
  background: var(--amber-soft);
}

.ngo-match-level.expert {
  border-color: #c58b97;
  color: #7b3040;
  background: var(--rose-soft);
}

.ngo-match-level.catalog {
  border-color: #8ea7be;
  color: #244f72;
  background: var(--blue-soft);
}

.ngo-select-prompt {
  margin-bottom: 18px;
  padding: 14px 16px;
  display: flex;
  gap: 12px 24px;
  align-items: center;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.ngo-select-prompt strong {
  font-size: 16px;
}

.ngo-select-prompt span {
  color: #3e5c74;
  font-size: var(--font-min);
  line-height: 1.5;
}

.ngo-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.ngo-results-list {
  min-width: 0;
  display: grid;
  gap: 13px;
}

.ngo-result-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}

.ngo-result-card.strong {
  border-left-color: var(--green);
}

.ngo-result-card.partial {
  border-left-color: var(--amber);
}

.ngo-result-card.expert {
  border-left-color: var(--rose);
}

.ngo-result-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.ngo-rank {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f4f6f4;
  font-size: var(--font-min);
  font-weight: 900;
}

.ngo-result-title {
  min-width: 0;
}

.ngo-result-title h3 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ngo-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.ngo-result-meta span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 800;
}

.ngo-result-meta span + span::before {
  margin-right: 10px;
  content: "·";
}

.ngo-theme-tags,
.ngo-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ngo-theme-tags {
  margin-top: 14px;
}

.ngo-theme-tags span,
.ngo-modes span {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: var(--font-min);
  font-weight: 800;
  line-height: 1.3;
}

.ngo-theme-tags span {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f7f8f7;
}

.ngo-theme-tags span.matched {
  border-color: #8eb9ad;
  color: var(--green-dark);
  background: var(--green-soft);
}

.ngo-match-reason {
  margin: 12px 0 0;
  padding: 9px 11px;
  color: #284c43;
  background: #edf6f2;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.ngo-result-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ngo-result-grid section {
  min-width: 0;
}

.ngo-result-grid section > span,
.ngo-precontact > span {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 900;
  text-transform: uppercase;
}

.ngo-result-grid p {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.ngo-modes {
  margin-top: 13px;
}

.ngo-modes span {
  color: #325676;
  background: var(--blue-soft);
}

.ngo-caution {
  margin-top: 14px;
  padding-top: 13px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
}

.ngo-caution strong {
  color: var(--rose);
  font-size: var(--font-min);
  text-transform: uppercase;
}

.ngo-caution p {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.ngo-result-card > footer {
  margin-top: 15px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.ngo-source-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  align-items: center;
}

.ngo-source-actions a,
.ngo-source-row a {
  color: var(--blue);
  font-size: var(--font-min);
  font-weight: 900;
  text-underline-offset: 2px;
}

.ngo-source-actions small {
  color: var(--muted);
  font-size: var(--font-min);
}

.ngo-result-card > footer .button {
  flex: 0 0 auto;
}

.ngo-shortlist {
  padding: 18px;
  position: sticky;
  top: 128px;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}

.ngo-shortlist > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ngo-shortlist h2 {
  font-size: 18px;
}

.ngo-shortlist > header > b {
  padding: 5px 8px;
  border-radius: 4px;
  color: #244f72;
  background: var(--blue-soft);
  font-size: var(--font-min);
}

.ngo-shortlist ol {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.ngo-shortlist li {
  min-width: 0;
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.ngo-shortlist li > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ngo-shortlist li strong {
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ngo-shortlist li small {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.35;
}

.ngo-shortlist li .icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.ngo-shortlist-actions {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.ngo-shortlist-actions .text-button {
  justify-self: center;
}

.ngo-shortlist-empty {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  background: #f7f8f7;
}

.ngo-shortlist-empty strong {
  font-size: 16px;
}

.ngo-shortlist-empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.65;
}

.ngo-precontact {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.ngo-precontact ul {
  margin: 9px 0 0;
  padding: 0 0 0 18px;
}

.ngo-precontact li {
  padding: 3px 0;
  display: list-item;
  border: 0;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.ngo-show-all {
  justify-self: center;
  margin-top: 6px;
}

.ngo-no-results {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  text-align: center;
  background: #fff;
}

.ngo-no-results p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.ngo-guardrail-band {
  padding: 35px max(28px, calc((100vw - 1184px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  color: #fff;
  background: #273230;
}

.ngo-guardrail-band h2 {
  color: #fff;
}

.ngo-guardrail-band p {
  margin: 2px 0 0;
  color: #d1ddda;
  font-size: 16px;
  line-height: 1.8;
}

.ngo-sources {
  padding: 42px max(28px, calc((100vw - 1184px) / 2)) 56px;
  background: #fff;
}

.ngo-sources > header > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 4px;
  color: #244f72;
  background: var(--blue-soft);
  font-size: 16px;
}

.ngo-method-sources {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.ngo-method-sources a {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.ngo-method-sources a + a {
  border-left: 1px solid var(--line);
}

.ngo-method-sources a:hover {
  background: #f4f7f5;
}

.ngo-method-sources a > span {
  align-self: start;
  padding: 3px 5px;
  border-radius: 3px;
  color: #244f72;
  background: var(--blue-soft);
  font-size: var(--font-min);
  font-weight: 900;
}

.ngo-method-sources a > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ngo-method-sources strong {
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ngo-method-sources small {
  color: var(--muted);
  font-size: var(--font-min);
}

.ngo-sources details {
  margin-top: 18px;
  border: 1px solid var(--line);
}

.ngo-sources summary {
  padding: 14px 16px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.ngo-source-table {
  border-top: 1px solid var(--line);
}

.ngo-source-row {
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.7fr) minmax(150px, 0.8fr);
  gap: 16px;
  align-items: center;
}

.ngo-source-row + .ngo-source-row {
  border-top: 1px solid var(--line);
}

.ngo-source-row.heading {
  min-height: 38px;
  color: var(--muted);
  background: #f5f7f5;
  font-size: var(--font-min);
  font-weight: 900;
}

.ngo-source-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ngo-source-row strong {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ngo-source-row small,
.ngo-source-row > span {
  color: var(--muted);
  font-size: var(--font-min);
}

.ngo-source-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ngo-guide-dialog {
  max-width: 980px;
}

@media (max-width: 1080px) {
  .ngo-hero {
    gap: 34px;
  }

  .ngo-theme-selector > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ngo-results-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .ngo-method-sources {
    grid-template-columns: 1fr 1fr;
  }

  .ngo-method-sources a:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .ngo-method-sources a:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .ngo-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 42px;
  }

  .ngo-workflow {
    grid-template-columns: repeat(3, 1fr);
  }

  .ngo-workflow > a,
  .ngo-workflow > div {
    min-height: 104px;
    padding: 13px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ngo-workflow > * + * {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  #ngoPlannerForm {
    grid-template-columns: 1fr;
  }

  .ngo-condition-grid {
    grid-column: auto;
  }

  .ngo-coverage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ngo-results-band > header {
    display: grid;
  }

  .ngo-result-filters {
    width: 100%;
  }

  .ngo-results-layout {
    grid-template-columns: 1fr;
  }

  .ngo-shortlist {
    position: static;
  }

  .ngo-guardrail-band {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand strong,
  .top-actions .project-library-button {
    white-space: nowrap;
  }

  .brand strong {
    font-size: 16px;
  }

  .top-actions button,
  .top-actions .text-button,
  .ngo-tool .button {
    min-height: 40px;
  }

  .tool-switcher {
    top: 60px;
    padding-inline: 10px;
  }

  .tool-switcher-tabs {
    grid-template-columns: repeat(3, minmax(105px, 1fr));
    overflow-x: auto;
  }

  .tool-switcher-tabs a {
    min-height: 40px;
  }

  .ngo-hero {
    padding: 34px 18px 30px;
  }

  .ngo-hero-copy h1 {
    font-size: 30px;
  }

  .ngo-best-for {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .ngo-workflow {
    grid-template-columns: 1fr;
  }

  .ngo-workflow > a,
  .ngo-workflow > div {
    min-height: 70px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ngo-workflow > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ngo-planner,
  .ngo-coverage,
  .ngo-results-band,
  .ngo-guardrail-band,
  .ngo-sources {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ngo-planner > header,
  .ngo-sources > header {
    display: grid;
  }

  .ngo-theme-selector > div {
    grid-template-columns: 1fr 1fr;
  }

  .ngo-condition-grid {
    grid-template-columns: 1fr;
  }

  .ngo-condition-grid label {
    grid-column: auto;
  }

  .ngo-coverage-chart {
    grid-template-columns: 1fr;
  }

  .ngo-result-filters,
  .ngo-ranking-key {
    grid-template-columns: 1fr;
  }

  .ngo-select-prompt {
    display: grid;
  }

  .ngo-result-card {
    padding: 16px;
  }

  .ngo-result-card > header {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ngo-result-card > header .ngo-match-level {
    grid-column: 2;
    justify-self: start;
  }

  .ngo-result-title h3 {
    font-size: 18px;
  }

  .ngo-result-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ngo-caution {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .ngo-result-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ngo-result-card > footer .button {
    width: 100%;
  }

  .ngo-method-sources {
    grid-template-columns: 1fr;
  }

  .ngo-method-sources a + a,
  .ngo-method-sources a:nth-child(3),
  .ngo-method-sources a:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ngo-source-row,
  .ngo-source-row.heading {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ngo-source-row.heading {
    display: none;
  }
}

/* Shared ESG Action Suite context and optional working patterns */
.tool-switcher-tabs {
  grid-template-columns: repeat(4, minmax(132px, 1fr));
}

.suite-hub {
  width: 100%;
  padding: 22px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: #eef3f0;
  color: var(--ink);
}

.suite-hub-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
  gap: 28px;
  align-items: end;
}

.suite-kicker {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.suite-hub h2 {
  margin: 4px 0 5px;
  font-size: 20px;
  line-height: 1.35;
}

.suite-hub-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.suite-project-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.suite-project-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.suite-context {
  min-height: 34px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
}

.suite-context > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 3px solid #8aa49a;
  padding: 5px 9px;
  color: #33433c;
  background: #fff;
  font-size: 16px;
}

.suite-context > span b {
  color: var(--green);
}

.suite-context .suite-context-empty {
  flex: 1 1 auto;
  border-left-color: var(--line-strong);
  color: var(--muted);
}

.suite-journeys {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.suite-journeys button {
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 7px 10px;
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.suite-journeys button:last-child {
  border-right: 0;
}

.suite-journeys button b {
  font-size: 16px;
}

.suite-journeys button span {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-journeys button:hover {
  background: #f4f7f5;
}

.suite-journeys button.active {
  color: #fff;
  background: #244d40;
}

.suite-journeys button.active span {
  color: #d9e7e1;
}

.suite-route {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.suite-route li {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.suite-route li:last-child {
  border-right: 0;
}

.suite-route a {
  min-height: 66px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
}

.suite-route a:hover {
  background: #fff;
}

.suite-route small {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.suite-route span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.suite-route b {
  font-size: 16px;
}

.suite-route em {
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-route li.current a {
  background: #fff;
  box-shadow: inset 0 3px 0 var(--green);
}

.suite-route li.current small {
  width: auto;
  padding-inline: 6px;
  border-color: var(--green);
  border-radius: 4px;
  color: #fff;
  background: var(--green);
}

@media (max-width: 900px) {
  .suite-hub-heading {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .suite-journeys,
  .suite-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suite-journeys button {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .suite-journeys button:nth-child(2n) { border-right: 0; }
  .suite-journeys button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }

  .suite-route li:nth-child(2) {
    border-right: 0;
  }

  .suite-route li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .tool-switcher {
    justify-content: flex-start;
  }

  .tool-switcher > span {
    display: none;
  }

  .tool-switcher-tabs {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-switcher-tabs a {
    padding-inline: 4px;
    text-align: center;
    white-space: normal;
  }

  .suite-hub {
    padding: 18px;
  }

  .suite-hub h2 {
    font-size: 18px;
  }

  .suite-journeys {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .suite-journeys button {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .suite-journeys button:last-child {
    border-bottom: 0;
  }

  .suite-route {
    grid-template-columns: 1fr;
  }

  .suite-route li,
  .suite-route li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .suite-route li:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 681px) and (max-width: 1040px) {
  .quality-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-control-grid > div:nth-child(2) {
    border-right: 0;
  }

  .quality-control-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .peer-form {
    grid-template-columns: 1fr 1fr;
  }

  .peer-form .button {
    grid-column: 1 / -1;
  }

  .evidence-task-controls {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-note-field {
    grid-column: 1 / -1;
  }
}

/* Keep the benchmark workflow overrides after the legacy responsive rules. */
.peer-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}

.requirement-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
}

.requirement-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px 11px;
  align-items: center;
  min-width: 0;
}

@media (max-width: 1040px) {
  .peer-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .peer-form,
  .requirement-row,
  .requirement-main {
    grid-template-columns: 1fr;
  }

  .requirement-main .reuse-count,
  .requirement-main .framework-cells {
    grid-column: 1;
  }
}

/* Persona split and report drafting workspace */
.tool-switcher-tabs,
.suite-route {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.persona-branch-heading {
  display: grid;
  gap: 3px;
  margin-top: 16px;
}

.persona-branch-heading span {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
  text-transform: uppercase;
}

.persona-branch-heading strong {
  font-size: 16px;
}

.persona-branch-grid,
.nature-draft-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.persona-branch,
.draft-route {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 15px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.persona-branch:hover,
.draft-route:hover {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.persona-branch.esg-officer,
.draft-route.primary {
  border-color: #8ebdaf;
  background: #f0f8f5;
}

.persona-branch > span,
.draft-route > span {
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.persona-branch > strong,
.draft-route > strong {
  font-size: 16px;
}

.persona-branch > small,
.draft-route > small {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.persona-branch.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.report-workflow-intro {
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  padding: 20px;
  background: #fff;
}

.report-workflow-intro > header,
.nature-draft-bridge > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.report-workflow-intro h1 {
  margin: 5px 0 7px;
  font-size: 25px;
  letter-spacing: 0;
}

.report-workflow-intro header p,
.nature-draft-bridge header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.report-context-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.report-context-strip > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 11px 12px;
}

.report-context-strip > div:last-child {
  border-right: 0;
}

.report-context-strip span,
.report-context-strip small {
  color: var(--muted);
  font-size: var(--font-min);
}

.report-context-strip strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.nature-draft-bridge {
  margin-bottom: 16px;
  border: 1px solid #9dbfae;
  border-radius: 6px;
  padding: 19px 20px;
  background: #edf6f1;
}

.nature-draft-bridge h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  letter-spacing: 0;
}

.report-entry-landing {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 56px 24px;
  background: var(--canvas);
}

.report-entry-landing > section {
  width: min(780px, 100%);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  padding: 28px;
  background: #fff;
}

.report-entry-landing h1 {
  margin: 7px 0 10px;
  font-size: 30px;
  letter-spacing: 0;
}

.report-entry-landing p {
  color: var(--muted);
  line-height: 1.75;
}

.report-entry-landing section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .tool-switcher-tabs {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: auto;
  }

  .suite-route {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .suite-route li,
  .suite-route li:nth-child(2),
  .suite-route li:nth-child(-n + 2) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .persona-branch-grid,
  .nature-draft-routes,
  .report-context-strip {
    grid-template-columns: 1fr;
  }

  .report-workflow-intro > header,
  .nature-draft-bridge > header {
    display: grid;
  }

  .report-context-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-context-strip > div:last-child {
    border-bottom: 0;
  }

  .suite-route {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

/* Final type-scale guardrails: working interfaces use readable body text and restrained heroes. */
.research-hero h1,
.ngo-hero-copy h1,
.report-workflow-intro h1,
.report-entry-landing h1,
.workspace-heading h1,
.section-heading h1 {
  font-size: 34px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .research-hero h1,
  .ngo-hero-copy h1,
  .report-workflow-intro h1,
  .report-entry-landing h1,
  .workspace-heading h1,
  .section-heading h1 {
    font-size: 28px;
  }
}

/* Junior-safe entry, contextual coaching and persona artwork */
.junior-promise {
  max-width: 800px;
  margin-top: 16px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-left: 5px solid #2d608a;
  background: #eef5fb;
  color: #263f54;
  font-size: var(--font-min);
  line-height: 1.6;
}

.junior-promise b { white-space: nowrap; }

.persona-momentum {
  color: #f7fbf8;
  background: #153f36;
  border-top: 6px solid #e9b949;
}

.persona-momentum > header {
  padding: 22px 28px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.persona-momentum > header span,
.persona-momentum > header h2,
.persona-momentum > header p,
.persona-momentum > header strong,
.persona-momentum > header small { display: block; }
.persona-momentum > header span { color: #bde8d8; font-size: var(--font-min); font-weight: 900; }
.persona-momentum > header h2 { margin: 4px 0 0; max-width: 820px; color: #fff; font-size: 25px; line-height: 1.4; }
.persona-momentum > header p { margin: 7px 0 0; max-width: 850px; color: #dcebe5; font-size: var(--font-min); line-height: 1.6; }
.persona-momentum > header > strong { min-width: 108px; color: #fff; font-size: var(--font-min); text-align: center; }
.persona-momentum > header > strong b { display: inline; color: #f4c85a; font-size: 34px; }
.persona-momentum > header > strong small { margin-top: 2px; color: #bde8d8; font-size: var(--font-min); }

.persona-momentum ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.persona-momentum li {
  min-width: 0;
  min-height: 112px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}

.persona-momentum li + li { border-left: 1px solid rgba(255, 255, 255, .24); }
.persona-momentum li > b { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #f4c85a; color: #f4c85a; font-size: var(--font-min); }
.persona-momentum li strong,
.persona-momentum li small { display: block; font-size: var(--font-min); line-height: 1.5; }
.persona-momentum li small { margin-top: 4px; color: #cfe1db; }
.persona-momentum li a { align-self: center; color: #fff; font-size: var(--font-min); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.persona-momentum li.complete { background: rgba(255, 255, 255, .08); }
.persona-momentum li.complete > b { color: #153f36; background: #f4c85a; }

.persona-momentum > footer {
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.persona-momentum > footer div { display: flex; gap: 9px; align-items: baseline; }
.persona-momentum > footer b,
.persona-momentum > footer span { font-size: var(--font-min); }
.persona-momentum > footer b { color: #bde8d8; }
.persona-momentum > footer .button { color: #153f36; border-color: #f4c85a; background: #f4c85a; }

.data-quality-center {
  color: var(--ink);
  background: #f5f8f7;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.data-quality-center > header {
  padding: 22px 28px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.data-quality-center > header span,
.data-quality-center > header h2,
.data-quality-center > header p,
.data-quality-center > header strong,
.data-quality-center > header small { display: block; }
.data-quality-center > header span { color: var(--blue); font-size: var(--font-min); font-weight: 900; }
.data-quality-center > header h2 { margin: 4px 0 0; font-size: 23px; line-height: 1.4; }
.data-quality-center > header p { margin: 7px 0 0; max-width: 860px; color: var(--muted); font-size: var(--font-min); line-height: 1.6; }
.data-quality-center > header > strong { min-width: 128px; padding: 9px 13px; color: #155c49; border: 1px solid #7eb7a5; background: #eaf6f1; text-align: center; }
.data-quality-center > header > strong b { font-size: 31px; line-height: 1; }
.data-quality-center > header > strong small { margin-top: 5px; font-size: var(--font-min); }
.data-quality-center.quality-hold > header > strong { color: #8d2f2f; border-color: #d6a1a1; background: #fff0f0; }

.data-quality-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-quality-metrics > div { min-width: 0; min-height: 102px; padding: 15px 18px; background: #fff; }
.data-quality-metrics > div + div { border-left: 1px solid var(--line); }
.data-quality-metrics span,
.data-quality-metrics strong,
.data-quality-metrics small { display: block; }
.data-quality-metrics span { color: var(--blue); font-size: var(--font-min); font-weight: 900; }
.data-quality-metrics strong { margin-top: 3px; font-size: 25px; }
.data-quality-metrics small { margin-top: 4px; color: var(--muted); font-size: var(--font-min); line-height: 1.45; }
.data-quality-metrics .quality-caution { box-shadow: inset 0 4px 0 #e9b949; }
.data-quality-metrics .quality-caution small { color: #79401f; font-weight: 800; }

.data-quality-schedule {
  padding: 16px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.data-quality-schedule div { min-width: 0; }
.data-quality-schedule b,
.data-quality-schedule span { display: block; font-size: var(--font-min); line-height: 1.5; }
.data-quality-schedule b { color: var(--green-dark); }
.data-quality-schedule span { margin-top: 2px; color: var(--muted); }

.data-quality-center > footer {
  padding: 15px 28px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.data-quality-center > footer div { min-width: 0; }
.data-quality-center > footer b,
.data-quality-center > footer span { display: block; font-size: var(--font-min); line-height: 1.5; }
.data-quality-center > footer span { color: var(--muted); }

.persona-selector button {
  position: relative;
  min-height: 354px;
  padding: 0;
  display: grid;
  grid-template-rows: 158px minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0;
  overflow: hidden;
}

.persona-portrait {
  position: relative;
  width: 100%;
  height: 158px;
  display: block;
  overflow: hidden;
  background: #f5f3ef;
}

.persona-portrait img {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  max-width: none;
  height: auto;
  display: block;
}

.persona-portrait-investor { transform: translateX(-33.3333%); }
.persona-portrait-advisor { transform: translateX(-66.6667%); }

.persona-portrait .persona-portrait-junior {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 13%;
  transform: none;
}

.persona-card-copy {
  padding: 15px 16px 10px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.persona-selector .persona-card-copy > strong {
  color: inherit;
  font-size: 17px;
  line-height: 1.45;
}

.persona-selector .persona-card-copy > span {
  color: var(--ink);
  font-size: var(--font-min);
  line-height: 1.55;
}

.persona-selector .persona-card-copy small {
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.5;
}

.persona-selector .persona-card-copy small b {
  margin-bottom: 2px;
  display: block;
  color: var(--blue);
}

.persona-selector .persona-check {
  min-height: 42px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: var(--font-min);
  font-weight: 900;
}

.persona-selector button.active .persona-card-copy > span,
.persona-selector button.active .persona-card-copy small,
.persona-selector button.active .persona-card-copy small b,
.persona-selector button.active .persona-check { color: #fff; }

.persona-selector button.active .persona-check {
  border-top-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.persona-first-step {
  margin: 12px 0 0;
  padding: 11px 13px;
  display: flex;
  gap: 10px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: var(--font-min);
  line-height: 1.55;
}

.persona-first-step b { white-space: nowrap; }

.project-fields label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-fields label > span b {
  padding: 2px 6px;
  color: #fff;
  background: var(--rose);
  font-size: var(--font-min);
}

.project-fields label > small {
  color: var(--muted);
  font-size: var(--font-min);
  font-weight: 500;
  line-height: 1.5;
}

.primary-subject-field {
  grid-column: 1 / -1;
  padding: 14px;
  border: 2px solid var(--green);
  background: #f2f8f5;
}

.advanced-entity-fields {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.advanced-entity-fields > summary {
  padding: 13px 15px;
  cursor: pointer;
  color: var(--green-dark);
  font-size: var(--font-min);
  font-weight: 900;
}

.advanced-entity-fields > p {
  margin: 0;
  padding: 0 15px;
  color: var(--muted);
  font-size: var(--font-min);
  line-height: 1.55;
}

.advanced-entity-fields > .project-fields { padding: 0 15px 15px; }

.junior-start-check {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.junior-start-check span {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: var(--muted);
  background: #fff;
  font-size: var(--font-min);
  font-weight: 800;
}

.junior-start-check span + span { border-left: 1px solid var(--line); }
.junior-start-check .done { color: #165a49; background: #eef7f3; }
.junior-start-check .pending { color: #84421e; background: #fff5ec; }

.project-primary-action button:disabled {
  cursor: not-allowed;
  color: #4f5d58;
  border-color: #c4cdc9;
  background: #dce2df;
  opacity: 1;
}

.task-done-rule { margin-top: 7px; }
.task-done-rule summary { cursor: pointer; color: var(--blue); font-size: var(--font-min); font-weight: 800; }
.task-done-rule > span { margin-top: 5px; display: block; color: var(--muted); font-size: var(--font-min); line-height: 1.55; }

.junior-coach {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(240px, .55fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #a8b9b1;
  border-left: 6px solid var(--blue);
  background: #fff;
  color: var(--ink);
}

.app-shell .junior-coach { width: 100%; margin: 0 0 22px; }

.junior-coach-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.junior-coach-main { min-width: 0; }
.junior-coach-main > small,
.junior-coach-main > strong,
.junior-coach-main p { display: block; font-size: var(--font-min); }
.junior-coach-main > small { color: var(--blue); font-weight: 900; }
.junior-coach-main > strong { margin-top: 2px; font-size: 19px; line-height: 1.4; }
.junior-coach-main p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.junior-coach-main p b { margin-right: 8px; color: var(--green-dark); }
.junior-coach-main .junior-mistake { color: #79401f; }

.junior-coach details { border-left: 1px solid var(--line); padding-left: 16px; }
.junior-coach summary { cursor: pointer; color: var(--blue); font-size: var(--font-min); font-weight: 900; }
.junior-coach dl { margin: 9px 0 0; }
.junior-coach dl > div + div { margin-top: 8px; }
.junior-coach dt,
.junior-coach dd { font-size: var(--font-min); line-height: 1.45; }
.junior-coach dt { color: var(--green-dark); font-weight: 900; }
.junior-coach dd { margin: 2px 0 0; color: var(--muted); }

@media (max-width: 1100px) {
  .persona-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona-selector button:nth-child(2n) { border-right: 0; }
  .persona-selector button:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .data-quality-metrics,
  .data-quality-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-quality-metrics > div:nth-child(3) { border-left: 0; }
  .data-quality-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .junior-promise,
  .junior-coach { grid-template-columns: 1fr; }

  .junior-promise b,
  .persona-first-step b { white-space: normal; }

  .persona-selector button {
    min-height: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .persona-portrait {
    grid-row: 1 / 3;
    width: 112px;
    height: 100%;
    min-height: 176px;
  }

  .persona-portrait img { top: 8px; }
  .persona-card-copy { padding: 13px 13px 8px; }
  .persona-check { grid-column: 2; }
  .junior-start-check { grid-template-columns: 1fr; }
  .junior-start-check span + span { border-top: 1px solid var(--line); border-left: 0; }
  .junior-coach { width: calc(100% - 30px); padding: 14px; }
  .junior-coach details { border-top: 1px solid var(--line); border-left: 0; padding-top: 12px; padding-left: 0; }
  .persona-momentum > header { grid-template-columns: 1fr; padding: 20px 18px; }
  .persona-momentum > header > strong { text-align: left; }
  .persona-momentum ol { grid-template-columns: 1fr; }
  .persona-momentum li { min-height: 0; grid-template-columns: 30px minmax(0, 1fr); }
  .persona-momentum li + li { border-top: 1px solid rgba(255, 255, 255, .24); border-left: 0; }
  .persona-momentum li a { grid-column: 2; }
  .persona-momentum > footer { padding: 16px 18px; align-items: stretch; display: grid; }
  .persona-momentum > footer div { display: grid; gap: 2px; }
  .data-quality-center > header { grid-template-columns: 1fr; padding: 20px 18px; }
  .data-quality-center > header > strong { justify-self: start; }
  .data-quality-metrics,
  .data-quality-schedule { grid-template-columns: 1fr; }
  .data-quality-metrics > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .data-quality-metrics > div:nth-child(-n + 2) { border-bottom: 0; }
  .data-quality-schedule { padding: 16px 18px; }
  .data-quality-center > footer { padding: 15px 18px 18px; display: grid; align-items: stretch; }
}

/* Compact start-screen overrides. */
.project-start .persona-selector {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-start .persona-selector button {
  min-height: 92px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  align-content: center;
  gap: 5px;
  overflow: visible;
}

@media (max-width: 680px) {
  .project-start .persona-selector {
    grid-template-columns: 1fr;
  }

  .project-start .persona-selector button {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-start .persona-selector button:last-child {
    border-bottom: 0;
  }
}

/* Nature Crosswalk learning/work mode bridge. */
.integrated-game-shell {
  min-height: 100vh;
  background: #061017;
}

.integrated-game-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: #0a1c24;
}

.integrated-game-bar div {
  display: grid;
  gap: 5px;
}

.integrated-game-bar span {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}

.integrated-game-bar strong {
  color: var(--paper);
  font-size: 20px;
}

.integrated-game-bar .button {
  flex: 0 0 auto;
  text-decoration: none;
}

.integrated-game-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 76px);
  min-height: 760px;
  border: 0;
  background: #061017;
}

.game-nav-link {
  text-decoration: none;
}

@media (max-width: 680px) {
  .integrated-game-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .integrated-game-bar .button {
    width: 100%;
  }

  .integrated-game-frame {
    height: calc(100vh - 148px);
    min-height: 700px;
  }
}

/* Connected entrance: lesson → evidence → work. */
.journey-switcher {
  position: relative;
  z-index: 39;
  min-height: 60px;
  padding: 7px clamp(14px, 3vw, 42px);
  display: flex;
  align-items: center;
  gap: 18px;
  color: #edf7f2;
  border-bottom: 1px solid #315b51;
  background: #102f28;
}

.journey-hub-shell > .journey-switcher,
.integrated-game-shell > .journey-switcher {
  position: sticky;
  top: 0;
  z-index: 50;
}

.journey-switcher a {
  color: inherit;
  text-decoration: none;
}

.journey-switcher a:focus-visible,
.journey-card a:focus-visible {
  outline: 3px solid rgba(243, 202, 101, .7);
  outline-offset: 3px;
}

.journey-switcher-home {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 9px;
}

.journey-switcher-home > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #173f38;
  background: #f3ca65;
  font-weight: 900;
}

.journey-switcher-home > strong {
  font-size: 16px;
  letter-spacing: .03em;
}

.journey-switcher-links {
  width: min(100%, 850px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.journey-switcher-links > a,
.journey-switcher-links > span {
  min-height: 44px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9d9d3;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.journey-switcher-links > a:hover {
  color: #fff;
  border-color: #55786e;
  background: #24483f;
}

.journey-switcher-links > span.active {
  color: #122f29;
  border-color: #f3ca65;
  background: #f3ca65;
}

.journey-switcher-links > a > b,
.journey-switcher-links > span > b {
  flex: 0 0 auto;
  color: #f3ca65;
  font-size: 16px;
  letter-spacing: .08em;
}

.journey-switcher-links > span.active > b {
  color: #8a5a0b;
}

.journey-switcher-links > a > span,
.journey-switcher-links > span > span,
.journey-switcher-links strong,
.journey-switcher-links small {
  min-width: 0;
  display: block;
}

.journey-switcher-links strong {
  font-size: 16px;
  line-height: 1.25;
}

.journey-switcher-links small {
  margin-top: 1px;
  overflow: hidden;
  color: inherit;
  font-size: 1rem;
  line-height: 1.2;
  opacity: .78;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-switcher-lang {
  flex: 0 0 auto;
  display: flex;
  padding: 3px;
  border: 1px solid #5b766e;
  border-radius: 999px;
}

.journey-switcher-lang a {
  min-width: 38px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #b9cac4;
  font-size: 16px;
  font-weight: 900;
}

.journey-switcher-lang a.active {
  color: #15382f;
  background: #fff;
}

.journey-hub-shell {
  min-height: 100vh;
  color: #183029;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 205, 111, .24), transparent 27rem),
    linear-gradient(180deg, #f7f0df 0, #f6f5ed 42%, #edf4ef 100%);
}

.integrated-game-shell > .journey-switcher ~ .integrated-game-frame {
  height: calc(100vh - 136px);
}

.journey-hub {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px) clamp(16px, 4vw, 64px) 64px;
}

.journey-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(330px, .76fr) minmax(520px, 1.24fr);
  align-items: stretch;
  border: 1px solid #31564c;
  border-radius: 26px;
  background: #0c3b31;
  box-shadow: 0 22px 60px rgba(21, 55, 45, .18);
}

.journey-hero::before {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(243, 202, 101, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(243, 202, 101, .05), 0 0 0 84px rgba(243, 202, 101, .04);
}

.journey-hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 76px) clamp(28px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f7fbf8;
}

.journey-kicker,
.journey-section-heading > span,
.journey-card-body > span {
  color: #e9bf59;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
}

.journey-hero-copy h1 {
  margin: 16px 0 18px;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: pre-line;
}

.journey-hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: #dceae4;
  font-size: 18px;
  line-height: 1.85;
}

.journey-route {
  width: fit-content;
  margin-top: 32px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.journey-route span {
  margin-right: 4px;
  color: #f3ca65;
  font-size: 16px;
  font-weight: 900;
}

.journey-route b {
  font-size: 16px;
}

.journey-route i {
  color: #9ebdb2;
  font-style: normal;
}

.journey-hero-art {
  position: relative;
  min-width: 0;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: #173f38;
}

.journey-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0c3b31 0, rgba(12, 59, 49, .58) 10%, transparent 32%);
}

.journey-hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.journey-hero-art figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 10px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(5, 29, 24, .78);
  font-size: 16px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.journey-choice-section {
  padding-top: clamp(50px, 7vw, 92px);
}

.journey-section-heading {
  max-width: 790px;
  margin: 0 auto 32px;
  text-align: center;
}

.journey-section-heading > span {
  color: #8b5a10;
}

.journey-section-heading h2 {
  margin: 10px 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.journey-section-heading p {
  margin: 0;
  color: #536b62;
  font-size: 17px;
  line-height: 1.75;
}

.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journey-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #c8d4cd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 63, 52, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(29, 63, 52, .16);
}

.journey-card-art {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #173f38;
}

.journey-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.journey-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 35, 29, .62));
}

.journey-card-art > span {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: #18372f;
  background: #f3ca65;
  font-size: 18px;
  font-weight: 900;
}

.journey-card-evidence .journey-card-art > span { background: #8fd8d0; }
.journey-card-work .journey-card-art > span { background: #f3a990; }

.journey-card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.journey-card-body > span {
  color: #7c5b1a;
}

.journey-card-evidence .journey-card-body > span { color: #17655e; }
.journey-card-work .journey-card-body > span { color: #9a4050; }

.journey-card h3 {
  margin: 11px 0 12px;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  line-height: 1.35;
}

.journey-card p {
  margin: 0;
  color: #50665e;
  font-size: 16px;
  line-height: 1.75;
}

.journey-card small {
  margin-top: 18px;
  color: #315d50;
  font-size: 16px;
  font-weight: 900;
}

.journey-card a {
  min-height: 50px;
  margin-top: 20px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  border-radius: 10px;
  background: #174f42;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.journey-card a:hover { background: #0e6d59; }
.journey-card-evidence a { background: #216a78; }
.journey-card-evidence a:hover { background: #167d89; }
.journey-card-work a { background: #8c3e4d; }
.journey-card-work a:hover { background: #a84c5d; }

.journey-card a span {
  font-size: 22px;
  transition: transform .18s ease;
}

.journey-card a:hover span { transform: translateX(4px); }

.journey-promise {
  margin-top: 24px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #cad7d0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.journey-promise > div {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.journey-promise > div + div {
  border-left: 1px solid #cdd8d2;
}

.journey-promise b {
  color: #a46b17;
  font-size: 18px;
}

.journey-promise span,
.journey-promise strong,
.journey-promise small {
  display: block;
}

.journey-promise strong {
  font-size: 18px;
}

.journey-promise small {
  margin-top: 3px;
  color: #586f66;
  font-size: 16px;
  line-height: 1.55;
}

.journey-hub-footer {
  padding: 24px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #dce9e3;
  border-top: 1px solid #31574e;
  background: #102f28;
}

.journey-hub-footer-copy {
  display: grid;
  gap: 3px;
}

.journey-hub-footer-copy strong,
.journey-hub-footer-copy > span {
  font-size: 16px;
}

.journey-hub-footer .footer-license {
  color: #a8bbb2;
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
}

.journey-hub-footer .footer-license a {
  color: inherit;
  font-weight: 800;
  text-decoration-color: #698279;
  text-underline-offset: 3px;
}

.journey-hub-footer .rights-holder {
  display: inline-block;
  margin-inline-start: 1.5em;
  white-space: nowrap;
  font-size: inherit;
}

@media (max-width: 1040px) {
  .journey-switcher-home strong,
  .journey-switcher-links small {
    display: none;
  }

  .journey-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .journey-hero-copy {
    padding-bottom: 34px;
  }

  .journey-hero-art {
    min-height: 440px;
  }

  .journey-hero-art::after {
    background: linear-gradient(180deg, #0c3b31 0, transparent 25%);
  }

  .journey-cards {
    grid-template-columns: 1fr;
  }

  .journey-card {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  }

  .journey-card-art {
    height: 100%;
    min-height: 320px;
  }

  .journey-promise {
    grid-template-columns: 1fr;
  }

  .journey-promise > div + div {
    border-top: 1px solid #cdd8d2;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .journey-switcher {
    min-height: 58px;
    padding: 6px 10px;
    gap: 7px;
    overflow-x: auto;
  }

  .journey-switcher-home > span {
    width: 34px;
    height: 34px;
  }

  .journey-switcher-links {
    width: max-content;
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

  .journey-switcher-links > a,
  .journey-switcher-links > span {
    min-height: 44px;
    padding: 5px 8px;
    gap: 6px;
  }

  .journey-switcher-links > a > b,
  .journey-switcher-links > span > b {
    display: none;
  }

  .journey-hub {
    padding: 12px 12px 42px;
  }

  .journey-hero {
    border-radius: 18px;
  }

  .journey-hero-copy {
    padding: 32px 22px 26px;
  }

  .journey-hero-copy h1 {
    font-size: 42px;
  }

  .journey-hero-copy > p {
    font-size: 16px;
  }

  .journey-route {
    align-items: flex-start;
  }

  .journey-route span {
    width: 100%;
  }

  .journey-hero-art {
    min-height: 300px;
  }

  .journey-hero-art figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .journey-choice-section {
    padding-top: 48px;
  }

  .journey-section-heading h2 {
    font-size: 34px;
  }

  .journey-card {
    display: flex;
  }

  .journey-card-art {
    height: 210px;
    min-height: 210px;
  }

  .journey-card-body {
    padding: 22px 18px;
  }

  .journey-hub-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-hub-footer .footer-license {
    text-align: left;
  }

  .integrated-game-shell > .journey-switcher ~ .integrated-game-frame {
    height: calc(100vh - 206px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-card,
  .journey-card a span {
    transition: none;
  }
}

@media (forced-colors: active) {
  .ngo-unified-search,
  .ngo-explorer-accordion,
  .ngo-explorer-toggle,
  .ngo-unified-result-group,
  .ngo-unified-result-group button,
  .ngo-organization-scope .directory-scope-tabs button,
  .ngo-scope-feedback {
    border: 1px solid CanvasText;
  }

  .ngo-explorer-accordion.expanded .ngo-explorer-toggle,
  #ngoUnifiedSearchForm fieldset input:checked + span {
    color: HighlightText;
    background: Highlight;
  }
}

@media (forced-colors: active) {
  .mission-navigator,
  .mission-clock,
  .mission-active-guide,
  .mission-story {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .mission-guide-toggle {
    border-color: ButtonText;
    color: ButtonText;
    background: ButtonFace;
    forced-color-adjust: auto;
  }

  .mission-guide-toggle:focus-visible {
    outline-color: Highlight;
  }

  .cbd-activity-filter > summary,
  .cbd-activity-tags span,
  .cbd-index-empty {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

/* Persistent site map, activity-first NGO directory, and 2030 scores */
.site-map-menu { position: relative; margin-left: auto; }
.site-map-menu > summary { min-height: 42px; display: flex; align-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: inherit; font-weight: 800; cursor: pointer; list-style: none; white-space: nowrap; }
.site-map-menu > summary::-webkit-details-marker { display: none; }
.site-map-menu[open] > summary { background: rgba(255,255,255,.16); }
.site-map-menu > div { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: min(760px,92vw); max-height: min(78vh,760px); overflow: auto; padding: 18px; border: 1px solid rgba(21,63,52,.15); border-radius: 22px; color: #173f35; background: rgba(253,255,254,.98); box-shadow: 0 24px 70px rgba(12,44,36,.24); }
.site-map-menu header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.site-map-menu header small { color: #668078; }
.site-map-groups { display: grid; gap: 8px; }
.site-map-groups > details { border: 1px solid #d8e7e1; border-radius: 15px; background: #f7fbf9; overflow: clip; }
.site-map-groups > details > summary { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.site-map-groups > details > summary::-webkit-details-marker { display: none; }
.site-map-groups > details > summary b { color: #208566; font-size: .72rem; }
.site-map-groups > details > summary span { display: grid; gap: 2px; }
.site-map-groups > details > summary small { color: #668078; font-weight: 500; }
.site-map-groups > details > summary i { font-style: normal; transition: transform .2s ease; }
.site-map-groups > details[open] > summary i { transform: rotate(45deg); }
.site-map-menu nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 10px 10px; }
.site-map-menu nav a { display: grid; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 14px; color: #173f35; background: #eaf4ef; text-decoration: none; }
.site-map-menu nav a:hover { background: #dff0e8; transform: translateY(-1px); }
.site-map-menu nav span { color: #5e756e; font-size: .76rem; }
.site-map-panel > footer { padding-top: 10px; color: #6a7f78; font-size: .72rem; text-align: right; }

.strategic-roster-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid rgba(36,132,103,.25); border-radius: 18px; color: #173f35; background: linear-gradient(120deg,#e9f7f1,#f7fbf8); }
.strategic-roster-note strong { font-size: .94rem; }
.strategic-roster-note span { max-width: 720px; color: #536c64; font-size: .8rem; }

.ngo-multi-filter { position: relative; align-self: end; }
.ngo-multi-filter summary,.directory-filter-clear { min-height: 46px; display: flex; align-items: center; padding: 0 14px; border: 1px solid rgba(23,76,62,.2); border-radius: 13px; background: #fff; color: #173f35; font-weight: 800; cursor: pointer; }
.ngo-multi-filter > div { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; width: min(310px,84vw); max-height: 280px; overflow: auto; padding: 9px; border: 1px solid rgba(23,76,62,.16); border-radius: 16px; background: #fff; box-shadow: 0 18px 46px rgba(18,57,47,.2); }
.ngo-multi-filter label { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 10px; cursor: pointer; }
.ngo-multi-filter label:hover { background: #eff7f3; }
.ngo-multi-filter input { width: 18px; height: 18px; }
.directory-filter-clear { align-self: end; background: #e9f3ef; }
.grade-pill { min-width: 30px; padding: 3px 9px; border-radius: 999px; color: #fff; text-align: center; }
.grade-s { background: linear-gradient(135deg,#7046b7,#aa72d4); }
.grade-a { background: linear-gradient(135deg,#08765d,#20a27b); }
.grade-b { background: linear-gradient(135deg,#296993,#4d91bf); }
.grade-c { background: linear-gradient(135deg,#66746d,#8b9891); }
.directory-card { position: relative; }
.directory-list,.directory-card { min-width: 0; }
.directory-card { width: 100%; overflow-wrap: anywhere; }
.ngo-score.compact { position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; padding: 8px 11px; border-radius: 13px; color: #fff; box-shadow: 0 8px 20px rgba(16,54,45,.16); }
.ngo-score.compact > div { display: flex; align-items: baseline; gap: 8px; }
.ngo-score.compact strong { font-size: 1.35rem; }
.ngo-score.compact small { opacity: .75; }
.directory-card:has(.ngo-score.compact) > header { padding-right: 92px; }
.ngo-score:not(.compact) { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 16px 0; padding: 16px; border-radius: 18px; color: #fff; }
.ngo-score:not(.compact) > div { display: grid; place-items: center; min-width: 74px; }
.ngo-score:not(.compact) strong { font-size: 2rem; }
.ngo-score:not(.compact) p { margin: 0; align-self: center; }
.ngo-score:not(.compact) > small { grid-column: 1 / -1; opacity: .84; }
.directory-active-proof { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; color: #145c48; background: #e8f5ee; text-decoration: none; }
.ngo-score-rationale { color: #49635a; font-size: .82rem; line-height: 1.55; }
.ngo-directory.mode-overview .directory-card > p:not(.ngo-score-rationale),
.ngo-directory.mode-overview .ngo-score-rationale { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ngo-directory.mode-overview .ngo-score-rationale { -webkit-line-clamp: 2; }
.ngo-directory.mode-overview .directory-heard-context,
.ngo-directory.mode-overview .directory-card dl { display: none; }
@media (max-width:820px) {
  .journey-switcher { display: grid; grid-template-columns: auto 1fr auto; overflow: visible; }
  .journey-switcher-home { grid-column: 1; }
  .site-map-menu { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .journey-switcher-lang { grid-column: 3; grid-row: 1; }
  .journey-switcher-links { grid-column: 1 / -1; grid-row: 2; width: 100%; overflow-x: auto; }
  .site-map-menu > div { position: fixed; top: 12vh; left: 4vw; right: 4vw; width: auto; max-height: 76vh; overflow: auto; }
  .site-map-menu nav { grid-template-columns: 1fr; }
  .strategic-roster-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ngo-multi-filter > div { position: fixed; top: 18vh; left: 7vw; right: 7vw; width: auto; max-height: 62vh; }
  .ngo-score:not(.compact) { grid-template-columns: 1fr; }
  .ngo-score:not(.compact) > small { grid-column: 1; }
}

/* 2030 mission navigation and complete NGO directories */
.mission-navigator {
  width: min(1440px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid #b8d4c8;
  border-radius: 18px;
  background: linear-gradient(115deg, #f0f8f3 0%, #fffdf5 62%, #edf5f2 100%);
  box-shadow: 0 10px 28px rgba(21, 63, 55, 0.07);
}

.mission-guide-bar {
  display: grid;
  grid-template-columns: minmax(170px, 210px) minmax(300px, 1fr) max-content;
  gap: 12px;
  align-items: stretch;
}

.mission-clock,
.mission-active-guide,
.mission-story {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 106, 89, 0.16);
}

.mission-clock {
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.mission-clock span,
.mission-active-guide span,
.directory-detail-grid section > span,
.deep-dive-sections section > span,
.directory-public-channels > div > span {
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mission-clock strong {
  font-size: 23px;
  color: var(--green-dark);
}

.mission-clock i {
  display: block;
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 62%, #d8e4df 62% 100%);
}

.mission-active-guide {
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.mission-active-guide img,
.mission-team-roster img {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 16px rgba(15, 60, 50, 0.16);
}

.mission-active-guide h2 {
  margin: 2px 0 3px;
  color: var(--green-dark);
  font-size: 18px;
}

.mission-active-guide p,
.mission-team-roster p,
.mission-story span {
  margin: 0;
  line-height: 1.55;
}

.mission-navigator.is-collapsed .mission-active-guide p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-guide-toggle {
  min-width: 132px;
  min-height: 48px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border: 2px solid var(--green-dark);
  border-radius: 14px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 900;
  line-height: 1.2;
}

.mission-guide-toggle:hover {
  border-color: #0d6a59;
  background: #0d6a59;
}

.mission-guide-toggle:focus-visible {
  outline: 3px solid #d39b15;
  outline-offset: 3px;
}

.mission-guide-toggle > span {
  font-size: 20px;
  line-height: 1;
}

.mission-guide-details {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 12px;
  align-items: stretch;
}

.mission-guide-details[hidden] {
  display: none;
}

.mission-story {
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  align-content: center;
}

.mission-story a,
.mission-story > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.mission-story a:hover,
.mission-story a:focus-visible {
  color: #fff;
  background: var(--green);
}

.mission-network-art {
  width: 100%;
  height: 100%;
  min-height: 96px;
  max-height: 132px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.mission-team-roster {
  grid-column: 2 / 4;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(13, 106, 89, 0.16);
  background: rgba(255, 255, 255, 0.86);
}

.mission-team-roster summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 800;
}

.mission-team-roster > div {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mission-team-roster article {
  padding: 10px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.mission-team-roster article.active {
  border-color: var(--green);
  background: var(--green-soft);
}

.mission-team-roster strong {
  color: var(--green-dark);
}

.ngo-directory {
  margin: 28px auto 34px;
  padding: 28px;
  width: min(1440px, calc(100% - 32px));
  border-radius: 30px;
  background: #f5f8f5;
  border: 1px solid #cadbd4;
  box-shadow: 0 25px 70px rgba(23, 63, 56, 0.09);
}

.ngo-directory-heading,
.directory-detail-panel > header,
.directory-deep-dive > header,
.directory-sources > header,
.cbd-index > header,
.key-people-index > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.ngo-directory-heading h2 {
  max-width: 900px;
  margin: 7px 0 8px;
  color: var(--green-dark);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.14;
}

.ngo-directory-heading p {
  max-width: 940px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.directory-count {
  min-width: 145px;
  padding: 16px;
  display: grid;
  gap: 2px;
  border-radius: 18px;
  color: #fff;
  background: var(--green-dark);
}

.directory-count strong {
  font-size: 38px;
}

.directory-count span,
.directory-count small {
  color: #fff;
}

.directory-primary-controls {
  margin: 24px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.directory-mode-tabs,
.directory-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.directory-mode-tabs button,
.directory-scope-tabs button {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.directory-mode-tabs button.active,
.directory-scope-tabs button.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.directory-scope-tabs .cbd-button {
  border-color: #9a6414;
  color: #71480d;
  background: #fff8e9;
}

.directory-scope-tabs .cbd-button.active {
  color: #fff;
  background: #795010;
}

.directory-filters {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(160px, 0.75fr));
  gap: 12px;
  align-items: end;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.directory-filters label,
.cbd-index-actions label {
  display: grid;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 750;
}

.directory-filters input,
.directory-filters select,
.cbd-index-actions input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.directory-cop-quick {
  grid-column: 1 / -1;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid #d6b466;
  border-radius: 13px;
  color: #5d3f0e;
  background: #fff8e8;
  font: inherit;
  cursor: pointer;
}

.directory-cop-quick small {
  color: #6a5431;
}

.directory-method-note {
  margin: 12px 0 18px;
  padding: 11px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.directory-method-note strong,
.directory-method-note a {
  color: var(--green-dark);
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.directory-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(28, 66, 57, 0.05);
}

.directory-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 106, 89, 0.1);
}

.directory-card > header,
.directory-card > footer,
.cbd-records article > header,
.cbd-records article > footer,
.key-people-cards article > header,
.key-people-cards article > footer {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  align-items: flex-start;
}

.directory-card h3 {
  margin: 3px 0 0;
  color: var(--green-dark);
  font-size: 23px;
}

.directory-card h3 small {
  font-size: 16px;
  color: var(--muted);
}

.directory-card > header span,
.directory-card > header > b {
  color: var(--green);
  font-weight: 800;
}

.directory-card > header > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
}

.directory-card > p,
.directory-heard-context p,
.directory-heard-context small {
  margin: 0;
  line-height: 1.65;
}

.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #31594f;
  background: #edf4f1;
  border: 1px solid #d4e4dd;
}

.directory-heard-context {
  padding: 12px;
  border-left: 4px solid #ca982d;
  background: #fff9ea;
}

.directory-heard-context strong {
  color: #68470d;
}

.directory-heard-context small {
  display: block;
  margin-top: 5px;
  color: #705d39;
}

.directory-card dl,
.directory-deep-dive dl,
.cbd-records dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.directory-card dl > div,
.directory-deep-dive dl > div,
.cbd-records dl > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 8px;
}

.directory-card dt,
.directory-deep-dive dt,
.cbd-records dt {
  color: var(--muted);
  font-weight: 750;
}

.directory-card dd,
.directory-deep-dive dd,
.cbd-records dd {
  margin: 0;
}

.directory-channel-status {
  padding: 8px 10px;
  border-radius: 10px;
  color: #6d5321;
  background: #fff5dc;
}

.directory-channel-status.verified {
  color: #1c594a;
  background: #e4f4ed;
}

.directory-card > footer {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.directory-card > footer > a,
.directory-public-channels a,
.directory-sources a,
.cbd-index a,
.key-people-index a {
  color: var(--green);
  font-weight: 800;
}

.directory-card > footer > div {
  display: flex;
  gap: 7px;
}

.directory-pagination {
  margin: 22px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.directory-pagination button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.directory-pagination button:disabled {
  opacity: 0.42;
  cursor: default;
}

.directory-detail-panel,
.directory-deep-dive,
.cbd-index {
  margin: 18px 0 24px;
  padding: 24px;
  border: 1px solid #b9d1c7;
  border-radius: 22px;
  background: #fff;
}

.directory-detail-panel h3,
.directory-deep-dive h3,
.cbd-index h3 {
  margin: 4px 0 7px;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
}

.directory-detail-panel > header p,
.directory-deep-dive > header p,
.cbd-index > header p {
  max-width: 880px;
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.directory-detail-grid,
.deep-dive-sections {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.directory-detail-grid section,
.deep-dive-sections > section {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafcfb;
}

.directory-detail-grid p,
.deep-dive-sections p,
.deep-dive-sections li {
  line-height: 1.65;
}

.directory-detail-grid .curated-context {
  border-color: #dbc071;
  background: #fff9e9;
}

.directory-screening,
.directory-public-channels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.directory-screening section,
.directory-public-channels > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf9;
}

.directory-screening section:nth-child(1) {
  border-color: #a6bfd0;
  background: #f2f7fb;
}

.directory-screening section:nth-child(2) {
  border-color: #d5ba73;
  background: #fff9e8;
}

.directory-screening span {
  color: var(--green-dark);
  font-weight: 800;
}

.directory-screening p,
.directory-screening small,
.directory-public-channels p,
.directory-public-channels small {
  display: block;
  margin: 6px 0 0;
  line-height: 1.6;
}

.directory-public-channels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.directory-public-channels nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-public-channels .channel-evidence-link {
  margin-top: 9px;
}

.directory-public-channels .channel-evidence-link a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.directory-leaders {
  display: grid;
  gap: 8px;
}

.cbd-scoring-controls,
.cbd-scoring-method {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #c8d9d2;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fcfa, #eef6f2);
}

.cbd-scoring-controls > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.cbd-scoring-controls h4,
.cbd-scoring-method h4 {
  margin: 4px 0 6px;
  color: var(--green-dark);
  font-size: clamp(21px, 2.4vw, 29px);
}

.cbd-scoring-controls header p,
.cbd-scoring-method > p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cbd-scoring-controls header a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
}

.cbd-grade-filters {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cbd-grade-filters label {
  position: relative;
  cursor: pointer;
}

.cbd-grade-filters input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cbd-grade-filters span {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 2px solid transparent;
  border-radius: 14px;
  color: #fff;
  opacity: .7;
}

.cbd-grade-filters input:checked + span,
.cbd-grade-filters input:focus-visible + span {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(19, 82, 65, .28);
}

.cbd-grade-filters strong { font-size: 1.55rem; }
.cbd-grade-filters small { line-height: 1.35; }

.cbd-activity-filter-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.cbd-activity-filter-row > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cbd-activity-filter-row > .ngo-multi-filter,
.cbd-activity-filter-row > button {
  width: 100%;
  min-width: 0;
}

.cbd-activity-filter-row > .ngo-multi-filter > summary {
  height: 100%;
  white-space: normal;
}

.cbd-activity-filter {
  min-width: 0;
  align-self: center;
}

.cbd-activity-filter > summary {
  justify-content: space-between;
}

.cbd-activity-filter > summary:focus-visible,
.cbd-activity-filter-row > button:focus-visible,
.cbd-index-empty button:focus-visible {
  outline: 3px solid #d39b15;
  outline-offset: 3px;
}

.cbd-activity-filter label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cbd-activity-filter label small {
  color: var(--muted);
}

.cbd-activity-filter-row > button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.cbd-sort {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(180px, 310px);
  gap: 10px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 800;
}

.cbd-sort select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
}

.cbd-score-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cbd-score-legend span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #4d655e;
  background: #fff;
  font-size: .78rem;
}

.cbd-results-heading {
  margin: 18px 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--green-dark);
}

.cbd-results-heading span { color: var(--muted); font-size: .82rem; }
.cbd-records article,
.key-people-cards article { position: relative; }
.cbd-records article { padding-top: 68px; }

.cbd-score-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 12px;
  color: #fff;
}

.cbd-score-badge > span { opacity: .78; font-size: .8rem; }
.cbd-score-badge > strong { font-size: 1.35rem; }
.cbd-score-badge > b { justify-self: end; font-size: 1.15rem; }
.cbd-score-badge small { font-size: .7rem; opacity: .75; }

.cbd-score-rationale {
  margin: 10px 0;
  padding: 11px 12px;
  border-left: 4px solid #6e43aa;
  border-radius: 0 10px 10px 0;
  color: #405c54;
  background: #f5f0fa;
  line-height: 1.55;
}

.cbd-score-rationale strong { display: block; color: #563982; }
.cbd-activity-tags {
  margin: 10px 0;
  display: grid;
  gap: 7px;
  color: var(--green-dark);
}

.cbd-activity-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cbd-activity-tags span {
  padding: 5px 9px;
  border: 1px solid #b8d9cc;
  border-radius: 999px;
  color: #155e4b;
  background: #eaf6f1;
  font-weight: 800;
}

.cbd-activity-tags span.unverified {
  border-style: dashed;
  color: #5d675f;
  background: #f4f5f3;
}

.cbd-activity-tags small {
  color: var(--muted);
  line-height: 1.5;
}

.cbd-index-empty {
  margin: 14px 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--green-dark);
  background: #f8fbf9;
}

.cbd-index-empty p {
  margin: 7px 0 13px;
  color: var(--muted);
  line-height: 1.6;
}

.cbd-records details,
.key-people-cards details { margin-top: 9px; }
.cbd-records details summary,
.key-people-cards details summary { color: var(--green); font-weight: 800; cursor: pointer; }

.cbd-scoring-method > div {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cbd-scoring-method article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.cbd-scoring-method article p { margin: 6px 0 0; line-height: 1.6; }

@media (max-width: 760px) {
  .cbd-scoring-controls > header,
  .cbd-results-heading { display: grid; }
  .cbd-grade-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbd-activity-filter-row { grid-template-columns: 1fr; }
  .cbd-activity-filter-row > button { width: 100%; }
  .cbd-scoring-method > div { grid-template-columns: 1fr; }
  .cbd-sort { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .cbd-activity-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.directory-judgement-callout {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 2px solid var(--green);
  background: var(--green-soft);
}

.directory-judgement-callout strong {
  color: var(--green-dark);
  font-size: 20px;
}

.directory-judgement-callout p {
  margin: 5px 0 0;
  line-height: 1.65;
}

.directory-judgement-callout.critical {
  border-color: #9a6414;
  background: #fff3d9;
}

.deep-dive-sections > section > span {
  display: block;
  margin-bottom: 8px;
}

.deep-dive-sections ul,
.deep-dive-sections ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.deep-similar,
.directory-network-bridge {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f4f8f6;
}

.deep-similar > span {
  color: var(--green-dark);
  font-weight: 800;
}

.deep-similar > div {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.deep-similar button {
  padding: 12px;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.directory-network-bridge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  color: #fff;
  background: var(--green-dark);
}

.directory-network-bridge h4 {
  margin: 4px 0;
  color: #fff;
  font-size: 24px;
}

.directory-network-bridge p {
  margin: 0;
  color: #dcebe6;
}

.directory-network-bridge nav {
  display: grid;
  gap: 8px;
}

.directory-network-bridge a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.directory-sources {
  margin-top: 26px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.directory-sources h3 {
  margin: 3px 0;
  color: var(--green-dark);
  font-size: 24px;
}

.directory-sources > div {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.directory-sources > div a {
  padding: 12px;
  display: grid;
  gap: 4px;
  border-radius: 11px;
  background: #f3f7f5;
  text-decoration: none;
}

.directory-sources p {
  margin: 14px 0 0;
  line-height: 1.7;
}

.directory-empty,
.cbd-index-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #fff;
}

.cbd-index > header > b,
.key-people-index > header > b {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: #795010;
}

.cbd-index-actions {
  margin: 18px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.cbd-index-actions nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cbd-index-actions nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #65450e;
  background: #fff3d5;
  text-decoration: none;
}

.cbd-data-contract,
.key-people-contract {
  padding: 14px;
  border-radius: 13px;
  background: #eef4f1;
}

.cbd-data-contract > div,
.key-people-contract {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cbd-data-contract span,
.key-people-contract span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #d4e0dc;
}

.cbd-records,
.key-people-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.cbd-records article,
.key-people-cards article {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

/* Keep the key-person reference band in normal flow so wrapped labels can
   never cover the person's name or public role at any viewport width. */
.key-people-cards article > .cbd-score-badge {
  position: static;
  width: 100%;
  margin: 0 0 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.key-people-cards article > .cbd-score-badge > span,
.key-people-cards article > .cbd-score-badge small {
  font-size: 16px;
  line-height: 1.35;
}

.cbd-records article > header h5,
.key-people-cards article > header h5 {
  margin: 0;
  color: var(--green-dark);
  font-size: 19px;
  line-height: 1.35;
}

.cbd-records article > header div,
.key-people-cards article > header div {
  display: grid;
  gap: 4px;
}

.cbd-records article > header > span,
.key-people-cards article > header > b {
  color: #6b531c;
}

.cbd-records dl {
  margin: 12px 0;
}

.cbd-scope-tag,
.cbd-unverified-person,
.person-source-label {
  padding: 9px 11px;
  border-radius: 10px;
  color: #674a14;
  background: #fff5dc;
}

.cbd-records article > footer {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cbd-records article > footer small {
  max-width: 60%;
  text-align: right;
}

.key-people-index {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid #d9e3df;
}

.key-people-index h4 {
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 28px;
}

.key-people-index p {
  line-height: 1.65;
}

.key-people-audit {
  margin: 16px 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px)) minmax(280px, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid #d5e5de;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f8f4, #fffaf0);
}

.key-people-audit > div {
  padding: 13px;
  display: grid;
  gap: 7px;
  border-radius: 12px;
  background: #fff;
}

.key-people-audit > div span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.key-people-audit > div strong {
  color: var(--green-dark);
  font-size: 30px;
}

.key-people-audit > div small {
  margin-left: 5px;
  font-size: 16px;
}

.key-people-audit > p {
  margin: 0;
  align-self: center;
}

.key-people-audit {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.key-people-audit > p {
  grid-column: 1 / -1;
}

.key-person-filters {
  margin: 18px 0 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(4, minmax(170px, 0.8fr));
  gap: 10px;
  align-items: end;
  border: 1px solid #d5e5de;
  border-radius: 16px;
  background: #f7faf8;
}

.key-person-query {
  display: grid;
  gap: 6px;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 800;
}

.key-person-query input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.key-person-multi-filter small {
  display: block;
  color: var(--muted);
  font-size: 16px;
}

.key-person-results {
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 16px;
}

.key-person-results strong {
  color: var(--green-dark);
}

.key-people-cards {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

/* NGO research task switcher and cross-directory search */
.ngo-unified-search,
.ngo-explorer {
  width: min(1440px, calc(100% - 32px));
  margin: 28px auto;
}

.ngo-unified-search {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #bfd6cc;
  border-radius: 26px;
  background: linear-gradient(135deg, #f4faf7 0%, #fffdf8 100%);
  box-shadow: 0 18px 50px rgba(23, 63, 56, 0.08);
}

.ngo-unified-search > header,
.ngo-explorer-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.ngo-unified-search h2,
.ngo-explorer-heading h2 {
  margin: 5px 0 7px;
  color: var(--green-dark);
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.16;
}

.ngo-unified-search > header p,
.ngo-explorer-heading p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ngo-unified-search > header > span,
.ngo-explorer-heading > span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

#ngoUnifiedSearchForm {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(420px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

#ngoUnifiedSearchForm > label,
#ngoUnifiedSearchForm fieldset {
  min-width: 0;
}

#ngoUnifiedSearchForm > label {
  display: grid;
  gap: 7px;
  color: var(--green-dark);
  font-weight: 800;
}

#ngoUnifiedSearchForm > label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

#ngoUnifiedSearchForm input[type="search"] {
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px 0 0 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
}

#ngoUnifiedSearchForm > label button {
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid var(--green-dark);
  border-radius: 0 11px 11px 0;
  color: #fff;
  background: var(--green-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

#ngoUnifiedSearchForm fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

#ngoUnifiedSearchForm legend {
  margin-bottom: 7px;
  color: var(--green-dark);
  font-weight: 800;
}

#ngoUnifiedSearchForm fieldset > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

#ngoUnifiedSearchForm fieldset label {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#ngoUnifiedSearchForm fieldset input {
  position: absolute;
  opacity: 0;
}

#ngoUnifiedSearchForm fieldset span {
  min-height: 48px;
  padding: 8px 11px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
}

#ngoUnifiedSearchForm fieldset input:checked + span {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

#ngoUnifiedSearchForm fieldset input:focus-visible + span,
.ngo-explorer-toggle:focus-visible,
.ngo-unified-result-group button:focus-visible {
  outline: 3px solid #d39a20;
  outline-offset: 3px;
}

#ngoUnifiedSearchForm fieldset small {
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}

.ngo-unified-clear {
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ngo-unified-empty,
.ngo-unified-status {
  margin: 16px 0 0;
  color: var(--muted);
}

.ngo-unified-status {
  grid-column: 1 / -1;
  padding: 10px 13px;
  border-radius: 10px;
  color: #5b4a22;
  background: #fff7e6;
}

.ngo-unified-results {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ngo-unified-result-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.ngo-unified-result-group > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.ngo-unified-result-group h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 19px;
}

.ngo-unified-result-group > div {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.ngo-unified-view-all {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--green);
  border-radius: 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.ngo-unified-view-all:hover {
  color: #fff;
  background: var(--green);
}

.ngo-unified-result-group button {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.55fr) auto;
  gap: 11px;
  align-items: center;
  text-align: left;
  border: 1px solid #d5e2dc;
  border-radius: 12px;
  color: var(--ink);
  background: #fafcfb;
  font: inherit;
  cursor: pointer;
}

.ngo-unified-result-group button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.ngo-unified-result-group button span,
.ngo-unified-result-group button em,
.ngo-unified-result-group button h4,
.ngo-unified-result-group button small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ngo-unified-result-group button h4 {
  margin: 0 0 3px;
  color: var(--green-dark);
  font-size: 17px;
  line-height: 1.35;
}

.ngo-unified-result-group button small,
.ngo-unified-result-group button em,
.ngo-unified-result-group > small,
.ngo-unified-result-group > p {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.45;
}

.ngo-explorer-heading {
  margin-bottom: 16px;
  padding-inline: 4px;
}

.ngo-explorer-accordion {
  margin-top: 12px;
  border: 1px solid #bfd2c9;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(23, 63, 56, 0.06);
  overflow: clip;
}

.ngo-explorer-accordion.expanded {
  border-color: var(--green);
  box-shadow: 0 18px 48px rgba(23, 63, 56, 0.1);
}

.ngo-explorer-toggle {
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.ngo-explorer-accordion.expanded .ngo-explorer-toggle {
  color: #fff;
  background: var(--green-dark);
}

.ngo-explorer-toggle > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #8eb5a5;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-soft);
}

.ngo-explorer-toggle > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ngo-explorer-toggle strong {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
}

.ngo-explorer-toggle small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.ngo-explorer-toggle > em {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.ngo-explorer-toggle > i {
  color: var(--green-dark);
  font-size: 26px;
  font-style: normal;
  text-align: center;
}

.ngo-explorer-accordion.expanded .ngo-explorer-toggle small,
.ngo-explorer-accordion.expanded .ngo-explorer-toggle > i {
  color: #e3f1eb;
}

.ngo-explorer-panel {
  min-width: 0;
  padding: 18px;
  background: #f7faf8;
  scroll-margin-top: 138px;
}

.ngo-explorer-panel[hidden] {
  display: none;
}

.ngo-explorer-panel:focus-visible {
  outline: 3px solid #d39a20;
  outline-offset: -5px;
}

.ngo-explorer-panel > .ngo-directory {
  width: 100%;
  margin: 18px 0 0;
}

.ngo-explorer-panel > .key-people-index {
  margin: 0;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #cadbd4;
  border-radius: 22px;
  background: #fff;
}

.ngo-organization-scope {
  display: grid;
  gap: 12px;
}

.ngo-organization-scope .directory-scope-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ngo-organization-scope .directory-scope-tabs button {
  min-width: 0;
  min-height: 88px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  text-align: left;
  white-space: normal;
  border-radius: 14px;
}

.ngo-organization-scope .directory-scope-tabs button span,
.ngo-organization-scope .directory-scope-tabs button small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ngo-organization-scope .directory-scope-tabs button small {
  grid-column: 1 / -1;
  color: inherit;
  opacity: 0.82;
  font-size: 16px;
}

.ngo-scope-feedback {
  padding: 13px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  border-left: 4px solid #bb801b;
  border-radius: 10px;
  color: #4f4a3b;
  background: #fff8e9;
}

.ngo-scope-feedback > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  #ngoUnifiedSearchForm,
  .ngo-unified-results {
    grid-template-columns: 1fr;
  }

  .ngo-unified-status {
    grid-column: 1;
  }

  .ngo-scope-feedback {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ngo-unified-search,
  .ngo-explorer {
    width: calc(100% - 20px);
    margin: 20px 10px;
  }

  .ngo-unified-search {
    padding: 17px 14px;
    border-radius: 20px;
  }

  .ngo-unified-search > header,
  .ngo-explorer-heading {
    flex-direction: column;
    gap: 12px;
  }

  #ngoUnifiedSearchForm > label > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  #ngoUnifiedSearchForm input[type="search"],
  #ngoUnifiedSearchForm > label button {
    width: 100%;
    border-radius: 10px;
  }

  #ngoUnifiedSearchForm fieldset > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #ngoUnifiedSearchForm fieldset label,
  #ngoUnifiedSearchForm fieldset span {
    width: 100%;
  }

  .ngo-unified-result-group button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ngo-unified-result-group button em {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ngo-unified-result-group button > b {
    grid-column: 2;
    grid-row: 1;
  }

  .ngo-explorer-toggle {
    min-height: 96px;
    padding: 14px 12px;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    gap: 10px;
  }

  .ngo-explorer-toggle > b {
    width: 38px;
    height: 38px;
  }

  .ngo-explorer-toggle > em {
    grid-column: 2;
    width: fit-content;
    white-space: normal;
  }

  .ngo-explorer-toggle > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .ngo-explorer-panel {
    padding: 10px;
  }

  .ngo-organization-scope .directory-scope-tabs,
  .ngo-scope-feedback {
    grid-template-columns: 1fr;
  }

  .ngo-organization-scope .directory-scope-tabs button {
    width: 100%;
  }

  .ngo-explorer-panel .ngo-directory {
    width: 100%;
    margin-inline: 0;
  }

  .ngo-multi-filter summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ngo-explorer-accordion,
  .ngo-unified-result-group button {
    scroll-behavior: auto;
    transition: none;
  }
}

.person-source-label {
  display: grid;
}

.person-source-label.tier-a {
  color: #164f40;
  background: #e3f4ed;
}

.person-source-label.tier-b {
  color: #3f4d16;
  background: #f0f4df;
}

.person-source-label.tier-c {
  color: #674a14;
  background: #fff5dc;
}

.key-person-pagination {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
}

.key-person-pagination button {
  min-height: 44px;
  padding: 8px 14px;
  color: #fff;
  background: #174f3d;
  border: 1px solid #174f3d;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .key-person-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-person-query {
    grid-column: 1 / -1;
  }
}

.key-people-cards article.historical {
  border-style: dashed;
  opacity: 0.82;
}

.key-people-cards nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-people-cards nav a {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  text-decoration: none;
}

.person-source-label {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.key-people-cards ul {
  padding-left: 20px;
}

.key-people-cards li small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.key-people-cards details {
  margin-top: 12px;
}

.key-people-cards summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 800;
}

.key-people-cards article > footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.cbd-index > footer {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .mission-guide-bar {
    grid-template-columns: 170px minmax(260px, 1fr) max-content;
  }

  .mission-guide-details {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  }

  .mission-team-roster {
    grid-column: 1 / -1;
  }

  .directory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-filters label:first-child {
    grid-column: 1 / -1;
  }

  .directory-screening,
  .directory-public-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .key-people-audit {
    grid-template-columns: 1fr;
  }

  .key-people-audit > p {
    grid-column: 1;
  }

  .key-person-filters {
    grid-template-columns: 1fr;
  }

  .key-person-pagination {
    flex-wrap: wrap;
  }

  .mission-navigator,
  .ngo-directory {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }

  .mission-navigator {
    padding: 10px;
    border-radius: 15px;
  }

  .mission-guide-bar {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }

  .mission-clock {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .mission-clock span {
    font-size: 16px;
  }

  .mission-clock strong {
    font-size: 20px;
  }

  .mission-guide-toggle {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-inline: 12px;
  }

  .mission-active-guide {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .mission-active-guide img {
    width: 44px;
    height: 44px;
  }

  .mission-active-guide h2 {
    font-size: 16px;
  }

  .mission-active-guide p {
    font-size: 16px;
  }

  .mission-guide-details {
    grid-template-columns: 1fr;
  }

  .mission-network-art,
  .mission-story,
  .mission-team-roster {
    grid-column: 1;
  }

  .mission-team-roster > div,
  .directory-list,
  .directory-detail-grid,
  .deep-dive-sections,
  .directory-sources > div,
  .cbd-records,
  .key-people-cards {
    grid-template-columns: 1fr;
  }

  .ngo-directory {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .ngo-directory-heading,
  .directory-detail-panel > header,
  .directory-deep-dive > header,
  .directory-sources > header,
  .cbd-index > header,
  .key-people-index > header,
  .directory-card > footer,
  .cbd-index > footer {
    flex-direction: column;
  }

  .directory-count {
    width: 100%;
  }

  .directory-filters,
  .cbd-index-actions {
    grid-template-columns: 1fr;
  }

  .directory-filters label:first-child,
  .directory-cop-quick {
    grid-column: 1;
  }

  .directory-cop-quick {
    grid-template-columns: 1fr;
  }

  .directory-card > footer > div,
  .directory-mode-tabs,
  .directory-scope-tabs {
    width: 100%;
  }

  .directory-card > footer > div .button,
  .directory-mode-tabs button,
  .directory-scope-tabs button {
    flex: 1;
  }

  .directory-pagination {
    flex-wrap: wrap;
  }

  .deep-similar > div {
    grid-template-columns: 1fr 1fr;
  }

  .directory-network-bridge {
    grid-template-columns: 1fr;
  }

  .cbd-records article > footer small {
    max-width: none;
    text-align: left;
  }
}

/* CBD official-involvement history stays compact: one organisation card, auditable records on demand. */
.cbd-involvement-history {
  margin-top: 12px;
  padding: 12px;
  background: #f3f8f5;
  border: 1px solid #c9dbd0;
  border-radius: 12px;
}
.cbd-involvement-history > summary { cursor: pointer; font-size: 16px; font-weight: 800; color: #173f31; }
.cbd-involvement-history ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.cbd-involvement-history li { display: grid; gap: 3px; font-size: 16px; line-height: 1.5; }
.cbd-involvement-history li > span,
.cbd-involvement-history li > small { color: #4d6459; font-size: 16px; }
.cbd-involvement-history li > a { width: fit-content; color: #174f3d; font-size: 16px; font-weight: 800; text-decoration: underline; }
.cbd-pagination { margin: 20px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; }
.cbd-pagination button { min-height: 44px; padding: 8px 14px; color: #fff; background: #174f3d; border: 1px solid #174f3d; border-radius: 999px; cursor: pointer; font-size: 16px; font-weight: 800; }

/* Search-friendly content shown only when JavaScript is unavailable. */
.static-seo-content {
  max-width: 76rem;
  margin: 0 auto;
  padding: 48px 24px;
  color: #173f31;
  font: 400 1rem/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}
.static-seo-content h1,
.static-seo-content h2 { line-height: 1.25; }
.static-seo-content h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.5rem); }
.static-seo-content h2 { margin: 32px 0 12px; font-size: 1.5rem; }
.static-seo-content p { max-width: 72ch; }
.static-seo-content ul { display: grid; gap: 10px; max-width: 72ch; padding-inline-start: 1.4em; }
@media (max-width: 680px) {
  .cbd-pagination { flex-wrap: wrap; }
  .cbd-involvement-history { padding: 10px; }
}
