@import "tailwindcss";

:root {
  --purple-950: #25113f;
  --purple-900: #351657;
  --purple-800: #4b2175;
  --purple-700: #63308f;
  --purple-100: #efe8f6;
  --purple-50: #f8f5fb;
  --green-900: #173e2b;
  --green-800: #1f563c;
  --green-700: #2e6d4e;
  --green-100: #e5f2eb;
  --gold: #e7b44c;
  --ink: #1d2733;
  --muted: #62707c;
  --line: #dce2e7;
  --surface: #ffffff;
  --surface-soft: #f5f7f8;
  --warning: #fff6da;
  --warning-line: #d9a530;
  --danger: #9c2f2f;
  --shadow-sm: 0 8px 24px rgba(28, 23, 38, 0.08);
  --shadow-lg: 0 22px 60px rgba(28, 23, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: rgba(45, 19, 73, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1220px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  color: var(--purple-950);
  background: white;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  overflow: visible;
  position: relative;
  color: var(--ink);
  background: #f8f7f3;
}

.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px 28px 30px;
}

.hero h1 {
  max-width: 850px;
  margin: 6px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-inner > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #e8cf9c;
}

.search-panel {
  max-width: 1020px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.search-panel > label {
  display: block;
  margin-bottom: 9px;
  color: var(--purple-900);
  font-size: 14px;
  font-weight: 800;
}

.search-input,
.inline-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #cbd3da;
  border-radius: 12px;
  background: white;
}

.search-input {
  min-height: 58px;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(28, 23, 38, 0.04);
}

.search-input:focus-within,
.inline-search:focus-within {
  border-color: var(--purple-700);
  box-shadow: 0 0 0 4px var(--purple-100);
}

.search-input svg,
.inline-search svg {
  flex: 0 0 auto;
  color: var(--purple-700);
}

.search-input input,
.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-input input {
  font-size: 18px;
}

.search-input button {
  border: 0;
  color: var(--purple-700);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.search-hint,
.small-note {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.search-results {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(28, 23, 38, 0.08);
}

.search-results > h2 {
  margin: 0 4px 2px;
  color: var(--purple-900);
  font-size: 17px;
}

.result-count {
  margin: 14px 4px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-results > a {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}

.search-results > a:hover {
  background: var(--purple-50);
}

.search-results > a > span {
  flex: 1;
}

.search-results small,
.search-results strong,
.search-results em {
  display: block;
}

.search-results small {
  color: var(--purple-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-results strong {
  margin: 1px 0;
  font-size: 15px;
}

.search-results em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.search-results b {
  padding: 4px 7px;
  border-radius: 99px;
  color: #694800;
  background: var(--warning);
  font-size: 10px;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  flex: 1;
  margin: 0 auto;
  padding: 40px 0 84px;
}

.home-content {
  padding-top: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-heading h2,
.start-fight h2,
.decision-launch h2 {
  margin: 0;
  color: var(--purple-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.6vw, 39px);
  font-weight: 600;
  line-height: 1.15;
}

.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.incident-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.incident-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 14px rgba(28, 23, 38, 0.03);
  transition: 160ms ease;
}

.incident-card:hover {
  border-color: #c4a8dc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.incident-card > span:nth-child(2) {
  flex: 1;
}

.incident-card strong,
.incident-card small {
  display: block;
}

.incident-card strong {
  color: var(--purple-950);
  font-size: 15px;
}

.incident-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.incident-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--purple-700);
  font-family: Georgia, serif;
  font-size: 22px;
}

.incident-card > svg {
  color: var(--green-700);
}

.confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 54px 0;
  overflow: hidden;
  border-radius: 16px;
  color: white;
  background: var(--green-900);
}

.confidence-strip > div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.confidence-strip > div:last-child {
  border: 0;
}

.confidence-strip strong {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}

.confidence-strip span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.start-fight,
.decision-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 48px 0;
  padding: 32px;
  border: 1px solid #cbb5dc;
  border-radius: 17px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(242, 234, 248, 0.94)),
    var(--purple-50);
}

.start-fight > div,
.decision-launch > div {
  max-width: 730px;
}

.start-fight p:not(.eyebrow),
.decision-launch p {
  margin: 10px 0 0;
  color: var(--muted);
}

.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--purple-800);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--purple-950);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--purple-800);
  border-radius: 10px;
  color: var(--purple-800);
  background: white;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.secondary-button:hover {
  color: white;
  background: var(--purple-800);
}

.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 24px;
  border-left: 5px solid var(--green-700);
  background: var(--green-100);
}

.legal-note svg {
  flex: 0 0 auto;
  color: var(--green-800);
}

.legal-note p {
  margin: 4px 0 0;
  color: #3d5d4d;
  font-size: 13px;
}

.site-footer {
  color: white;
  background: var(--green-900);
}

.site-footer > div,
.site-footer > p {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-footer > div {
  display: flex;
  gap: 34px;
  padding-top: 30px;
  padding-bottom: 17px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.site-footer > p {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 16px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 33px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a:hover {
  color: var(--purple-700);
}

.page-heading {
  max-width: 840px;
  margin-bottom: 38px;
}

.page-heading h1,
.record-heading h1,
.decision-heading h1 {
  margin: 4px 0 8px;
  color: var(--purple-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(37px, 5.5vw, 59px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.page-heading > p:not(.eyebrow),
.record-heading p,
.decision-heading p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  margin-top: 55px;
}

.record-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.record-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.record-card:hover {
  border-color: #b99bd1;
  box-shadow: var(--shadow-sm);
}

.record-card > span {
  flex: 1;
}

.record-card small,
.record-card strong,
.record-card em {
  display: block;
}

.record-card small {
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-card strong {
  margin: 3px 0;
  color: var(--ink);
  font-size: 16px;
}

.record-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.record-card svg {
  color: var(--green-700);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-card {
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.form-card.compact {
  min-height: 145px;
}

.form-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--green-800);
  background: var(--green-100);
}

.form-copy {
  min-width: 0;
}

.form-copy h3 {
  margin: 0;
  color: var(--purple-950);
  font-size: 16px;
  line-height: 1.3;
}

.form-copy > p:not(.eyebrow) {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.form-actions a,
.form-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--purple-200, #d8c6e5);
  border-radius: 7px;
  color: var(--purple-800);
  background: var(--purple-50);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--purple-800);
  background: white;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.back-button svg {
  transform: rotate(180deg);
}

.grade-filter {
  max-width: 420px;
  display: grid;
  gap: 6px;
  margin: 16px 0 22px;
}

.incident-start .grade-filter {
  margin: 18px 0 0 46px;
}

.grade-filter > span {
  color: var(--purple-900);
  font-size: 12px;
  font-weight: 900;
}

.grade-filter select {
  width: 100%;
  padding: 11px 38px 11px 12px;
  border: 1px solid #bda6d0;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 13px;
}

.grade-filter small {
  color: var(--muted);
  font-size: 10px;
}

.pending-form {
  border-style: dashed;
  background: #fbfafc;
}

.pending-form-status {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #6b4b00;
  background: #fff1c9;
  font-size: 10px;
  font-weight: 900;
}

.interventions-panel {
  margin-top: 45px;
  padding: 26px;
  border: 1px solid #b8d8c5;
  border-radius: 16px;
  background: #f4faf6;
}

.intervention-tier + .intervention-tier {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #c9ded1;
}

.tier-heading {
  margin-bottom: 14px;
}

.tier-heading h3 {
  margin: 7px 0 0;
  color: var(--purple-900);
  font-size: 17px;
}

.form-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-preview-actions a,
.form-preview-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border: 1px solid var(--purple-700);
  border-radius: 8px;
  color: var(--purple-800);
  background: white;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.form-preview-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-preview-notice {
  margin: 0 0 15px;
  padding: 13px 15px;
  border: 1px solid #b8d8c5;
  border-radius: 9px;
  color: #28513b;
  background: var(--green-100);
  font-size: 12px;
}

.form-preview-notice strong,
.form-preview-notice span {
  display: block;
}

.form-preview-notice strong {
  margin-bottom: 3px;
  color: var(--green-900);
  font-size: 13px;
}

.pdf-frame {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9edf0;
}

.protected-document-pages {
  display: grid;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9edf0;
}

.protected-document-page {
  margin: 0;
}

.protected-document-page figcaption {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.protected-document-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: white;
  box-shadow: 0 8px 24px rgba(24, 17, 35, 0.12);
}

.pdf-loading,
.pdf-error {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  text-align: center;
}

.pdf-error {
  color: #8b1e24;
  border-color: #e3b4b7;
  background: #fff5f5;
}

.expulsion-pathway {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid #c8d8ce;
  border-left: 6px solid #37694d;
  border-radius: 10px;
  background: #f3f8f5;
}

.expulsion-pathway h2 {
  margin: 3px 0 8px;
  color: var(--purple-950);
  font-size: 20px;
}

.expulsion-pathway p {
  margin: 5px 0;
}

.expulsion-pathway.mandatory {
  border-color: #e1b7b7;
  border-left-color: #a5262d;
  background: #fff5f5;
}

.expulsion-pathway.presumptive {
  border-color: #e3c981;
  border-left-color: #9a6b00;
  background: #fffaf0;
}

.expulsion-pathway.reconcile {
  border-color: #d1bde2;
  border-left-color: var(--purple-700);
  background: var(--purple-50);
}

.reminder-box {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--warning-line);
  border-left-width: 6px;
  border-radius: 12px;
  background: var(--warning);
}

.reminder-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reminder-heading svg {
  flex: 0 0 auto;
  color: #805600;
}

.reminder-heading h3 {
  margin: 0;
  color: #533a00;
  font-size: 19px;
}

.authority-tag {
  display: inline-block;
  margin: 13px 0;
  padding: 5px 8px;
  border-radius: 5px;
  color: #5c4205;
  background: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.reminder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.reminder-grid > div {
  padding: 12px;
  border: 1px solid rgba(128, 86, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.sarb-resource-links {
  margin: 16px 0;
  padding: 15px;
  border: 1px dashed rgba(128, 86, 0, 0.42);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
}

.sarb-resource-links section {
  margin-top: 13px;
}

.sarb-resource-links h4 {
  margin: 0 0 7px;
  color: #533a00;
  font-size: 13px;
}

.sarb-resource-links section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.sarb-resource-links section:first-of-type {
  grid-template-columns: minmax(220px, 1fr);
}

.sarb-resource-links section h4 {
  grid-column: 1 / -1;
}

.sarb-resource-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(128, 86, 0, 0.25);
  border-radius: 7px;
  color: #533a00;
  background: white;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sarb-resource-links a:hover {
  border-color: #8a5f00;
  box-shadow: 0 4px 12px rgba(83, 58, 0, 0.12);
}

.sarb-resource-links a b {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #8a5f00;
  font-size: 11px;
}

.reminder-grid strong,
.reminder-grid span {
  display: block;
}

.reminder-grid strong {
  color: #5b3e00;
  font-size: 12px;
}

.reminder-grid span {
  margin-top: 3px;
  color: #6f5418;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--purple-800);
  background: var(--purple-100);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record-heading,
.decision-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.record-heading h1,
.decision-heading h1 {
  max-width: 800px;
  font-size: clamp(36px, 5vw, 54px);
}

.print-button,
.decision-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--purple-800);
  background: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.verification-banner {
  padding: 19px 22px;
  border-left: 5px solid var(--purple-700);
  background: var(--purple-50);
}

.verification-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 40px;
}

.record-fields article {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.record-fields article.emphasis {
  border-color: #b7d5c3;
  background: #f2f9f5;
}

.record-fields h2 {
  margin: 0 0 9px;
  color: var(--purple-900);
  font-size: 14px;
}

.record-fields p {
  margin: 0;
  color: #475460;
  font-size: 13px;
  white-space: pre-line;
}

.source-list {
  display: grid;
  gap: 9px;
}

.source-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.source-list small,
.source-list strong {
  display: block;
}

.source-list small {
  color: var(--purple-700);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-list strong {
  margin: 2px 0;
  font-size: 14px;
}

.source-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  padding: 25px;
  border: 1px dashed #bac4cc;
  border-radius: 12px;
  color: var(--muted);
  background: white;
}

.inline-search {
  max-width: 710px;
  min-height: 52px;
  margin-bottom: 26px;
  padding: 0 15px;
}

.code-directory {
  margin-top: 14px;
}

.forms-directory {
  margin-top: 14px;
}

.pdf-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -8px 0 22px;
}

.pdf-category-filter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-900);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pdf-category-filter button:hover,
.pdf-category-filter button.active {
  border-color: var(--purple-700);
  color: white;
  background: var(--purple-700);
}

.pdf-category-filter button span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--purple-900);
  background: var(--purple-100);
  font-size: 11px;
  text-align: center;
}

.privacy-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 17px 19px;
  border: 1px solid #b8d8c5;
  border-radius: 10px;
  color: #214f37;
  background: var(--green-100);
}

.privacy-strip svg {
  flex: 0 0 auto;
}

.privacy-strip p {
  margin: 0;
  font-size: 13px;
}

.incident-start,
.investigation-start,
.analysis-intro {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.incident-start {
  border-left: 6px solid var(--green-700);
  background: #f4faf6;
}

.incident-start-heading,
.investigation-heading,
.analysis-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.incident-start h2,
.investigation-start h2,
.analysis-intro h2 {
  margin: 2px 0 7px;
  color: var(--purple-950);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 600;
}

.incident-start p:not(.eyebrow),
.investigation-start p:not(.eyebrow),
.analysis-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.flow-step {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.analysis-quick-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}

.analysis-quick-card small {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.45;
}

.investigation-start {
  border-color: #cbb7dc;
}

.investigation-checklist {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--purple-50);
}

.investigation-checklist strong {
  color: var(--purple-900);
  font-size: 12px;
}

.investigation-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #3f4c56;
  font-size: 12px;
}

.investigation-form-grid {
  margin-top: 10px;
}

.investigation-note {
  margin-top: 13px !important;
  padding-left: 12px;
  border-left: 3px solid #d1bce1;
  font-size: 11px !important;
}

.analysis-intro {
  padding: 18px 20px;
  border-color: #b8d8c5;
  background: var(--green-100);
}

.ccg-fact-guide {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid #b9a2cf;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ccg-fact-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  color: white;
  background: var(--purple-900);
  cursor: pointer;
  list-style: none;
}

.ccg-fact-guide summary::-webkit-details-marker {
  display: none;
}

.ccg-fact-guide summary small,
.ccg-fact-guide summary strong {
  display: block;
}

.ccg-fact-guide summary small {
  margin-bottom: 3px;
  color: #d9c7e8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ccg-fact-guide summary strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
}

.fact-guide-toggle {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.fact-guide-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--purple-50);
}

.fact-guide-intro p {
  max-width: 800px;
  margin: 0;
  color: #3e4750;
  font-size: 13px;
}

.fact-guide-intro a,
.sidebar-fact-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple-800);
  font-size: 11px;
  font-weight: 900;
}

.fact-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-guide-grid article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-guide-grid article:nth-child(2n) {
  border-right: 0;
}

.fact-number {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-700);
  font-size: 11px;
  font-weight: 900;
}

.fact-guide-grid h2 {
  margin: 2px 0 8px;
  color: var(--purple-900);
  font-size: 14px;
}

.fact-guide-grid ul {
  margin: 0;
  padding-left: 17px;
  color: #33414b;
  font-size: 12px;
  line-height: 1.55;
}

.fact-guide-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.fact-guide-authority {
  padding: 14px 22px;
  color: #4a5660;
  background: #f7f9fa;
  font-size: 11px;
}

.fact-guide-authority span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.decision-actions {
  display: flex;
  gap: 8px;
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  align-items: start;
  gap: 24px;
}

.question-stack {
  min-width: 0;
}

.question-card {
  margin: 0 0 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.question-card legend {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
}

.question-card legend > span {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--purple-700);
  font-size: 11px;
  font-weight: 900;
}

.question-card legend small,
.question-card legend strong {
  display: block;
}

.question-card legend small {
  color: var(--purple-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card legend strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 19px 0 12px;
}

.option-grid.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.option-grid.multi button {
  height: 100%;
  align-items: flex-start;
}

.option-grid button {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  color: #394652;
  background: #fafbfc;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.option-grid button:hover {
  border-color: #b99bd1;
  background: var(--purple-50);
}

.option-grid button.selected {
  border-color: var(--purple-700);
  color: var(--purple-900);
  background: var(--purple-100);
  box-shadow: inset 0 0 0 1px var(--purple-700);
}

.choice-mark {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #aeb9c2;
  border-radius: 4px;
  color: white;
  background: white;
}

.selected .choice-mark {
  border-color: var(--purple-700);
  background: var(--purple-700);
}

.question-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.question-card > p strong {
  color: var(--purple-800);
}

.decision-sidebar {
  position: sticky;
  top: 95px;
  display: grid;
  gap: 12px;
}

.decision-sidebar > div {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.decision-sidebar strong {
  display: block;
  color: var(--purple-900);
  font-family: Georgia, serif;
  font-size: 34px;
}

.decision-sidebar span {
  color: var(--muted);
  font-size: 11px;
}

.decision-sidebar ul {
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
}

.decision-sidebar li + li {
  margin-top: 5px;
}

.sidebar-fact-link a {
  display: flex;
  margin-top: 9px;
}

.evaluate-button {
  width: 100%;
  margin: 8px 0 20px;
}

.decision-results {
  margin-top: 30px;
  padding: 30px;
  border: 2px solid var(--purple-700);
  border-radius: 18px;
  background: white;
}

.results-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.results-heading h2 {
  margin: 0;
  color: var(--purple-950);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 600;
}

.results-heading p:not(.eyebrow) {
  color: var(--muted);
}

.outcome-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.outcome-list article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}

.outcome-list h3 {
  margin: 10px 0 6px;
  color: var(--purple-950);
  font-size: 16px;
}

.outcome-list p {
  margin: 0;
  color: #4d5964;
  font-size: 12px;
}

.outcome-list small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.results-forms {
  margin-top: 35px;
}

.limitations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 30px;
}

.limitations article {
  padding: 15px;
  border-left: 4px solid var(--green-700);
  background: var(--green-100);
}

.limitations strong {
  color: var(--green-900);
  font-size: 12px;
}

.limitations p {
  margin: 4px 0 0;
  color: #496657;
  font-size: 10px;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--purple-800);
  background: var(--purple-50);
}

.loading-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--purple-800);
  font-weight: 900;
}

.loading-shell p {
  margin: 0;
  font-weight: 700;
}

.loading-shell.error {
  padding: 30px;
  color: var(--danger);
  text-align: center;
}

.not-found {
  padding-top: 120px;
  text-align: center;
}

.not-found h1 {
  color: var(--purple-950);
  font-family: Georgia, serif;
  font-size: 42px;
}

.not-found p {
  margin-bottom: 25px;
  color: var(--muted);
}

.pocket-snapshot {
  margin: 26px 0;
  padding: 28px;
  border: 2px solid var(--purple-700);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, var(--purple-50) 100%);
  box-shadow: var(--shadow-md);
}

.pocket-snapshot-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.pocket-snapshot-heading h2,
.plain-language-section h2,
.stacking-guide h2,
.investigation-guide-section h2 {
  margin: 0 0 6px;
}

.pocket-snapshot-heading p,
.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.pocket-snapshot-heading button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.pocket-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.pocket-snapshot-grid article {
  padding: 16px;
  border: 1px solid var(--purple-200);
  border-radius: 12px;
  background: white;
}

.pocket-snapshot-grid article > span,
.investigation-steps li::marker {
  color: var(--purple-700);
  font-weight: 900;
}

.pocket-snapshot-grid h3 {
  margin: 8px 0 5px;
  font-size: 15px;
}

.pocket-snapshot-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pocket-snapshot-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.fight-context-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--purple-200);
}

.fight-context-links strong {
  width: 100%;
  color: var(--purple-950);
  font-size: 13px;
}

.fight-context-links a,
.linked-considerations a,
.cheat-list.considerations a {
  color: var(--purple-800);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fight-context-links a {
  padding: 7px 10px;
  border: 1px solid var(--purple-200);
  border-radius: 999px;
  background: white;
  text-decoration: none;
}

.question-card {
  scroll-margin-top: 100px;
}

.plain-language-section,
.investigation-guide-section,
.stacking-guide {
  margin: 24px 0;
}

.related-code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 18px;
}

.related-code-grid a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  text-decoration: none;
}

.related-code-grid a:hover {
  border-color: var(--purple-500);
  box-shadow: var(--shadow-sm);
}

.related-code-grid strong {
  color: var(--purple-800);
}

.related-code-grid small {
  margin-top: 5px;
  color: var(--muted);
}

.stacking-guide,
.investigation-guide-section {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.stacking-guide ol,
.investigation-steps {
  margin: 14px 0 0;
  padding-left: 22px;
}

.stacking-guide li,
.investigation-steps li {
  margin: 8px 0;
}

.question-help {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--purple-50);
  color: var(--muted);
  font-size: 12px;
}

.question-help summary {
  cursor: pointer;
  color: var(--purple-800);
  font-weight: 800;
}

.question-help p {
  margin: 8px 0 0;
}

.question-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

.question-resource-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--purple-200);
  border-radius: 8px;
  background: white;
  color: var(--purple-800);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
}

.question-resource-link:hover {
  background: var(--purple-50);
}

.home-cheat-sheet {
  scroll-margin-top: 92px;
  margin-bottom: 54px;
}

.cheat-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.cheat-heading h2 {
  margin: 0;
  color: var(--purple-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}

.cheat-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.cheat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.cheat-filters button {
  padding: 8px 13px;
  border: 1px solid #d8d3ce;
  border-radius: 99px;
  color: #5f5b57;
  background: #fbfaf8;
  font-size: 12px;
  cursor: pointer;
}

.cheat-filters button.active,
.cheat-filters button:hover {
  border-color: var(--purple-800);
  color: white;
  background: var(--purple-800);
}

.cheat-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9d5cf;
  border-radius: 13px;
  background: white;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cheat-table th {
  padding: 11px 16px;
  color: #6a6762;
  background: #f2f0ed;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.cheat-table td {
  min-width: 150px;
  padding: 16px;
  border-top: 1px solid #e3dfda;
  color: #4f4d49;
  vertical-align: top;
}

.cheat-table td:nth-child(2) {
  min-width: 245px;
}

.cheat-table td:nth-child(3),
.cheat-table td:nth-child(4) {
  min-width: 230px;
}

.cheat-table td:first-child {
  width: 175px;
}

.cheat-table td:first-child strong,
.cheat-table td:first-child small {
  display: block;
}

.cheat-table td:first-child strong {
  color: #9b2f29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.cheat-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

.cheat-open-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--purple-800);
  font-weight: 900;
  white-space: nowrap;
}

.cheat-action-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cheat-investigation-link {
  font-size: 11px;
  font-weight: 800;
}

.cheat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cheat-list li {
  position: relative;
  margin: 0 0 5px;
  padding-left: 14px;
}

.cheat-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4f7d31;
  font-weight: 900;
}

.cheat-list.considerations a {
  display: inline;
}

.cheat-list li.cheat-nexus-note {
  margin-top: 8px;
  padding: 9px 10px;
  border-left: 3px solid var(--purple-700);
  border-radius: 0 7px 7px 0;
  background: #f6f1fa;
  color: var(--purple-950);
  font-size: 11px;
  line-height: 1.45;
}

.cheat-list li.cheat-nexus-note::before {
  content: none;
}

.cheat-nexus-note p {
  margin: 0;
}

.cheat-count {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.generic-pocket-card h1 {
  margin: 0;
  color: var(--purple-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.generic-pocket-card h2 {
  margin-top: 8px;
}

.snapshot-page {
  max-width: 1180px;
}

.snapshot-hero {
  margin-top: 22px;
  padding: 32px;
  border: 1px solid var(--purple-300);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbf8fd 0%, #f3edf8 100%);
}

.snapshot-hero h1 {
  margin: 3px 0 0;
  color: var(--purple-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
}

.snapshot-hero h2 {
  margin: 8px 0 10px;
  color: #351750;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
}

.snapshot-hero > p:last-child {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
}

.snapshot-grid,
.snapshot-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.snapshot-grid article,
.snapshot-decision-grid article {
  padding: 22px;
  border: 1px solid #ddd4e5;
  border-radius: 14px;
  background: #fff;
}

.snapshot-grid article > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-700);
  color: white;
  font-weight: 900;
}

.snapshot-grid h3,
.snapshot-decision-grid h3 {
  margin: 10px 0 8px;
  color: #311548;
  font-size: 1.06rem;
}

.snapshot-grid ul {
  margin: 0;
  padding-left: 19px;
}

.snapshot-grid li + li {
  margin-top: 7px;
}

.snapshot-grid p,
.snapshot-decision-grid p {
  margin: 0;
  color: #586573;
}

.snapshot-decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.snapshot-notice-example blockquote {
  margin: 16px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--purple-700);
  border-radius: 0 12px 12px 0;
  background: #f8f4fb;
  color: #2f2140;
  font-size: 1rem;
  line-height: 1.65;
}

.snapshot-next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.generic-pocket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.generic-pocket-grid article {
  padding: 17px;
  border: 1px solid var(--purple-200);
  border-radius: 12px;
  background: white;
}

.generic-pocket-grid article > span {
  color: var(--purple-700);
  font-weight: 900;
}

.generic-pocket-grid h3 {
  margin: 7px 0 5px;
  font-size: 15px;
}

.generic-pocket-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .pocket-snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-code-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .generic-pocket-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .snapshot-decision-grid {
    grid-template-columns: 1fr;
  }
  .incident-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .confidence-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .confidence-strip > div:nth-child(2) {
    border-right: 0;
  }

  .confidence-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .decision-layout {
    grid-template-columns: 1fr;
  }

  .decision-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .site-header nav a {
    padding: 9px;
    font-size: 0;
  }

  .site-header nav a svg {
    width: 21px;
    height: 21px;
  }

  .hero-inner {
    padding: 56px 18px 75px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-inner > p:not(.eyebrow) {
    font-size: 16px;
  }

  .search-panel {
    padding: 17px;
    border-radius: 13px;
  }

  .search-input input {
    font-size: 15px;
  }

  .page-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 28px;
  }

  .home-content {
    padding-top: 44px;
  }

  .section-heading,
  .record-heading,
  .decision-heading,
  .start-fight,
  .decision-launch {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > p {
    text-align: left;
  }

  .incident-grid,
  .record-list,
  .form-grid,
  .record-fields,
  .outcome-list,
  .limitations,
  .reminder-grid,
  .fact-guide-grid {
    grid-template-columns: 1fr;
  }

  .fact-guide-grid article {
    border-right: 0;
  }

  .fact-guide-intro,
  .ccg-fact-guide summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact-guide-toggle {
    align-self: flex-start;
  }

  .investigation-checklist ul {
    grid-template-columns: 1fr;
  }

  .page-navigation {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .incident-start .grade-filter {
    margin-left: 0;
  }

  .interventions-panel {
    padding: 20px;
  }

  .form-preview-actions {
    width: 100%;
  }

  .form-preview-actions a,
  .form-preview-actions button {
    justify-content: center;
    flex: 1;
  }

  .sarb-resource-links section,
  .sarb-resource-links section:first-of-type,
  .pocket-snapshot-grid,
  .related-code-grid {
    grid-template-columns: 1fr;
  }

  .pocket-snapshot-heading,
  .section-heading,
  .pocket-snapshot-actions,
  .cheat-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .cheat-heading > p {
    text-align: left;
  }

  .pdf-frame {
    min-height: 560px;
  }

  .confidence-strip {
    grid-template-columns: 1fr;
  }

  .confidence-strip > div {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .confidence-strip > div:last-child {
    border-bottom: 0;
  }

  .start-fight,
  .decision-launch {
    padding: 24px;
  }

  .site-footer > div {
    flex-direction: column;
    gap: 6px;
  }

  .source-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .option-grid,
  .option-grid.multi,
  .question-resources {
    grid-template-columns: 1fr;
  }

  .decision-sidebar {
    grid-template-columns: 1fr;
  }

  .decision-actions {
    width: 100%;
  }

  .decision-actions button {
    flex: 1;
  }

  .decision-results {
    padding: 20px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  body {
    color: black;
    background: white;
    font-size: 10pt;
  }

  .no-print,
  .site-header,
  .site-footer,
  .question-stack,
  .privacy-strip {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .decision-heading,
  .record-heading {
    display: block;
    margin-bottom: 16pt;
  }

  .decision-heading h1,
  .record-heading h1 {
    font-size: 23pt;
  }

  .decision-results {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .outcome-list,
  .form-grid,
  .record-fields,
  .limitations,
  .reminder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7pt;
  }

  .outcome-list article,
  .form-card,
  .record-fields article,
  .limitations article,
  .reminder-box {
    break-inside: avoid;
    box-shadow: none;
  }

  .form-actions {
    display: none;
  }

  .form-card {
    min-height: 0;
  }

  body.print-pocket-card * {
    visibility: hidden !important;
  }

  body.print-pocket-card .pocket-snapshot,
  body.print-pocket-card .pocket-snapshot * {
    visibility: visible !important;
  }

  body.print-pocket-card .pocket-snapshot {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    padding: 18pt;
    border: 2pt solid #4f2775;
    box-shadow: none;
  }

  body.print-pocket-card .pocket-snapshot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8pt;
  }
}

.landing-grade-selector {
  margin: 24px 0 18px;
  padding: 18px 20px;
  border: 1px solid #d8c6e6;
  border-left: 5px solid #5b2a7f;
  border-radius: 14px;
  background: #fff;
}

.landing-grade-selector .grade-filter {
  margin: 0;
}

.landing-grade-selector > p {
  margin: 8px 0 0;
  color: #5e6975;
  font-size: 0.9rem;
}

.resource-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3dce8;
}

.resource-group > h3 {
  margin: 0 0 6px;
  color: #2c1745;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.resource-group > p {
  margin: 0 0 14px;
  color: #64717e;
}

.decision-summary-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.decision-summary-panel > div {
  padding: 22px;
  border: 1px solid #cfbddf;
  border-radius: 14px;
  background: #fbf8fd;
}

.decision-summary-panel h2 {
  margin: 4px 0 12px;
  color: #2d1745;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.writing-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.writing-guidance-grid article,
.suspension-writing-section details {
  padding: 18px 20px;
  border: 1px solid #ded5e6;
  border-radius: 12px;
  background: #fff;
}

.writing-guidance-grid h3 {
  margin: 0 0 8px;
  color: #3c1c59;
}

.writing-guidance-grid ul {
  margin: 0;
  padding-left: 20px;
}

.suspension-writing-section details + details {
  margin-top: 10px;
}

.suspension-writing-section summary {
  cursor: pointer;
  color: #4f2775;
  font-weight: 800;
}

.fight-completion-panel {
  margin-top: 24px;
}

.parent-notification-panel {
  border-left: 5px solid #b97808;
  background: #fffaf0;
}

.completion-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.completion-check-grid article {
  padding: 18px 20px;
  border: 1px solid #ead5ad;
  border-radius: 12px;
  background: #fff;
}

.completion-check-grid h3 {
  margin: 0 0 8px;
  color: #4b2a09;
}

.completion-check-grid ul {
  margin: 0;
  padding-left: 20px;
}

.reentry-panel {
  border-left: 5px solid #2c7656;
  background: #f6fbf8;
}

.reentry-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: reentry-step;
  list-style: none;
}

.reentry-steps li {
  position: relative;
  min-height: 88px;
  padding: 17px 18px 17px 58px;
  border: 1px solid #cce1d6;
  border-radius: 12px;
  background: #fff;
  counter-increment: reentry-step;
}

.reentry-steps li::before {
  content: counter(reentry-step);
  position: absolute;
  top: 17px;
  left: 17px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #2c7656;
  color: #fff;
  font-weight: 900;
}

.reentry-steps strong,
.reentry-steps span {
  display: block;
}

.reentry-steps span {
  margin-top: 5px;
  color: #5c6874;
  font-size: 0.92rem;
}

.fight-mistakes-panel {
  margin-top: 24px;
  border-left: 5px solid #a72f36;
  background: #fff7f7;
}

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.mistake-grid p {
  position: relative;
  margin: 0;
  padding: 13px 15px 13px 43px;
  border: 1px solid #ebc8cb;
  border-radius: 10px;
  background: #fff;
  color: #542128;
  font-weight: 650;
}

.mistake-grid p::before {
  content: "!";
  position: absolute;
  top: 11px;
  left: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #a72f36;
  color: #fff;
  font-weight: 900;
}

@media (max-width: 760px) {
  .decision-summary-panel,
  .writing-guidance-grid,
  .completion-check-grid,
  .reentry-steps,
  .mistake-grid {
    grid-template-columns: 1fr;
  }
}

.protected-image-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #d9dfe5;
  border-radius: 16px;
  background: #eef2f5;
}

.protected-image-wrap img {
  display: block;
  width: min(100%, 1120px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(24, 28, 34, 0.16);
}

.investigation-packet-bundle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 2px solid #5c2b82;
  border-radius: 14px;
  background: #f8f3fc;
}

.investigation-packet-bundle > div:first-child {
  display: grid;
  gap: 5px;
}

.investigation-packet-bundle strong,
.investigation-packet-bundle span {
  display: block;
}

.investigation-packet-bundle span {
  color: #5f6c79;
  font-size: 0.92rem;
}

.investigation-packet-bundle.unresolved-resource {
  display: grid;
  border-style: dashed;
  border-color: #c9b7d7;
  background: #fbf9fc;
}

.investigation-page-controls {
  display: grid;
  gap: 16px;
  margin: 20px 0 24px;
  padding: 22px;
  border: 1px solid #cdb7df;
  border-left: 5px solid #5c2b82;
  border-radius: 16px;
  background: #fbf9fc;
}

.investigation-page-controls h2,
.investigation-page-controls p {
  margin-top: 0;
}

.investigation-page-controls .grade-filter {
  max-width: 520px;
}

.investigation-page-controls .investigation-packet-bundle {
  margin-bottom: 0;
}

.intervention-pair {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid #d9dfe5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.pair-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.pair-heading strong {
  color: #35144f;
  font-size: 1rem;
}

.pair-heading span {
  color: #5f6c79;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .investigation-packet-bundle {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Release Candidate 1.0 — licensed-edition branding and direct support referrals */
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.license-brand {
  margin-left: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  white-space: nowrap;
}
.license-brand strong { font-size: .82rem; }
.license-brand small { font-size: .7rem; opacity: .72; }
.hero-purpose { max-width: 820px; }
.licensed-edition { font-size: .88rem; margin-top: .65rem; opacity: .82; }
.support-services-panel { margin-top: 2.25rem; }
.support-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.support-service-card {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line, #ddd4e5);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(38, 21, 57, .04);
}
.support-service-card:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(38, 21, 57, .08); }
.support-service-card strong { color: #48206b; }
.support-service-card span { font-size: .84rem; color: #647080; }
.support-service-card.crisis { border-color: #d4a9ae; background: #fff8f8; }
.support-service-card.crisis strong { color: #8a2832; }
@media (max-width: 860px) {
  .license-brand { display: none; }
  .brand-logo { width: 46px; height: 46px; }
  .brand strong { font-size: .78rem; }
  .brand small { font-size: .66rem; }
  .support-service-grid { grid-template-columns: 1fr; }
}
