:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffefa;
  --ink: #17201e;
  --muted: #68716e;
  --line: #d9ddd7;
  --line-strong: #b9c1bb;
  --accent: #14594d;
  --accent-soft: #e5f0eb;
  --warm: #8a531d;
  --danger: #91443d;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #d98a35;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  min-height: 64px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(246, 244, 238, 0.94);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.identity span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.report-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-shell {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 58px 0 80px;
}

.intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow,
.detail-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h1,
.detail-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.intro h1 {
  max-width: 700px;
  font-size: clamp(2.25rem, 4.25vw, 3.8rem);
}

.intro > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.organization-passport {
  margin: 0 0 48px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.passport-detail {
  margin: 48px 0 0;
}

.passport-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.passport-header h2,
.passport-column h3,
.passport-signals h3,
.passport-source-block h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.passport-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.passport-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.passport-facts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.passport-fact {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.passport-fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.passport-fact > * {
  display: block;
}

.passport-fact-label {
  color: var(--accent);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.passport-fact strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
}

.passport-fact-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.passport-boundary {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--warm);
  background: rgba(138, 83, 29, 0.06);
  color: #51483e;
  font-size: 0.79rem;
}

.passport-more {
  margin-top: 18px;
}

.passport-more > summary,
.officer-details > summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 750;
}

.passport-body {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 42px;
}

.passport-data {
  margin: 14px 0 0;
}

.passport-data > div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.passport-data dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.passport-data dd {
  margin: 3px 0 0;
  color: #35403c;
  font-size: 0.8rem;
}

.officer-details {
  margin-top: 14px;
}

.officer-details p,
.officer-list {
  margin: 10px 0 0;
  color: #3f4946;
  font-size: 0.76rem;
}

.officer-list {
  padding-left: 18px;
}

.readiness-list,
.signal-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.readiness-item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.readiness-state {
  width: fit-content;
  height: fit-content;
  padding: 3px 6px;
  background: #eceeeb;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.readiness-item[data-state="ready"] .readiness-state,
.readiness-item[data-state="available"] .readiness-state {
  background: var(--accent-soft);
  color: var(--accent);
}

.readiness-item[data-state="manual"] .readiness-state,
.readiness-item[data-state="call"] .readiness-state,
.readiness-item[data-state="yf"] .readiness-state {
  background: rgba(138, 83, 29, 0.1);
  color: var(--warm);
}

.readiness-copy strong {
  display: block;
  font-size: 0.78rem;
}

.readiness-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.passport-signals,
.passport-source-block {
  grid-column: 1 / -1;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.signal-list li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.signal-list strong,
.signal-list span {
  display: block;
}

.signal-list strong {
  font-size: 0.76rem;
}

.signal-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

.passport-caveat {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-style: italic;
}

.passport-sources {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.passport-sources a {
  color: var(--accent);
  font-size: 0.74rem;
}

.group-nav {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  scrollbar-width: none;
}

.group-nav::-webkit-scrollbar {
  display: none;
}

.group-button {
  min-width: max-content;
  margin: 0;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.94rem;
}

.group-button:hover {
  color: var(--ink);
}

.group-button[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.group-count {
  margin-left: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 500;
}

.group-description {
  min-height: 24px;
  margin: 16px 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.catalogue {
  scroll-margin-top: 20px;
}

.search {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  justify-content: start;
  margin-bottom: 18px;
}

.search input {
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}

.search input::placeholder {
  color: #858d89;
}

.search button {
  padding: 12px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.search button:hover {
  background: #0e493f;
}

.catalogue-meta {
  min-height: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalogue-meta p {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.text-button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.table-scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

th {
  padding: 13px 16px 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: 41%;
}

th:nth-child(2),
td:nth-child(2) {
  width: auto;
  padding-left: 22px;
}

.deadline-column,
.deadline {
  width: 94px;
  padding-left: 18px;
  text-align: right;
}

.deadline-sort {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.deadline-sort:hover,
.deadline-column:not([aria-sort="none"]) {
  color: var(--accent);
}

.deadline-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.sort-indicator {
  width: 1em;
  font-size: 0.86rem;
  line-height: 1;
  text-align: center;
}

.open-column,
.open-cell {
  width: 44px;
  text-align: right;
}

td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}

tbody tr {
  transition: background-color 150ms ease;
}

tbody tr:hover {
  background: rgba(255, 254, 250, 0.72);
}

.grant-link {
  display: inline;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration-color: transparent;
}

.grant-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.grant-context {
  display: block;
  max-width: 48ch;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grant-mobile-summary {
  display: none;
}

.yf-link {
  color: #46504d;
  font-size: 0.88rem;
  line-height: 1.48;
}

.deadline {
  color: var(--ink);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.deadline-soon {
  color: var(--warm);
}

.deadline-past {
  color: var(--muted);
}

.open-link {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  font-size: 1.15rem;
  text-decoration: none;
}

.open-link:hover {
  background: var(--accent-soft);
}

.pagination {
  min-height: 44px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.page-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.86rem;
}

.page-button:hover:not(:disabled) {
  border-bottom-color: currentColor;
}

.page-button:disabled {
  color: #a4aaa7;
  cursor: default;
}

.page-position {
  min-width: 70px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.empty-state,
.error-state {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.empty-state h2,
.error-state h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
}

.detail-shell {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 44px 0 96px;
}

.loading {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.detail-header {
  max-width: 850px;
}

.detail-header h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.compact-facts {
  margin: 40px 0 54px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
}

.compact-facts > div {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.compact-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.compact-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.compact-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.fact-soon dd {
  color: var(--warm);
}

.fact-past dd {
  color: var(--muted);
}

.analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}

.narrative {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
}

.narrative h2,
.checks h2,
.documentation h2,
.prompt-section h2,
.sources h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.narrative p {
  margin: 0;
  color: #35403c;
  font-size: 0.98rem;
}

.participation {
  margin: 0 -24px;
  padding: 30px 24px 34px;
  border-top-color: var(--accent);
  background: var(--accent-soft);
}

.participation h2 {
  color: var(--accent);
}

.conclusion p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.45;
}

.strict-research {
  margin-top: 52px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.strict-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.strict-heading h2,
.psychology-fit h2,
.research-block h2 {
  margin: 0;
  font-family: var(--sans);
}

.strict-heading h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.strict-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.strict-decision {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-pass {
  color: var(--accent);
}

.decision-hold {
  color: var(--warm);
}

.strict-status {
  margin-top: 20px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
}

.strict-status p {
  margin: 0;
  color: #3d4945;
  font-size: 0.78rem;
  font-weight: 680;
}

.psychology-fit {
  margin-top: 22px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.psychology-fit h2,
.research-block h2 {
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.35;
}

.psychology-fit > p {
  margin: 8px 0 0;
  color: #30423c;
  font-size: 0.87rem;
}

.psychology-fit .research-items {
  margin-top: 13px;
}

.psychology-ideas {
  margin: 14px 0 0;
  padding: 13px 0 0 18px;
  border-top: 1px solid #bfd2ca;
  color: #30423c;
  font-size: 0.8rem;
}

.psychology-ideas li + li {
  margin-top: 5px;
}

.research-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.research-block {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.62);
}

.research-summary {
  min-height: 3.6em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.research-items {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: research;
}

.research-item {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  counter-increment: research;
}

.research-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.research-item p {
  margin: 0;
  color: #303a37;
  font-size: 0.79rem;
  line-height: 1.48;
}

.research-source {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.checks {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.check-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.58);
}

.check-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.check-heading h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.35;
}

.check-answer {
  flex: 0 0 auto;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.check-yes .check-answer {
  color: var(--accent);
}

.check-no .check-answer {
  color: var(--danger);
}

.check-rationale,
.check-missing {
  margin: 10px 0 0;
  color: #3f4946;
  font-size: 0.82rem;
  line-height: 1.5;
}

.check-missing {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: #5f504b;
}

.registry-proof {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(229, 240, 235, 0.58);
}

.registry-proof > strong {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.registry-proof ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #31403b;
  font-size: 0.75rem;
}

.registry-proof p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.check-resolution {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}

.check-resolution strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.check-resolution p {
  margin: 0;
  color: #263b35;
  font-size: 0.82rem;
  line-height: 1.5;
}

.check-source {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.74rem;
}

.documentation,
.prompt-section {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.document-list {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  list-style: none;
}

.document-item {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.document-link {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.document-description {
  margin: 7px 0 0;
  color: #3f4b47;
  font-size: 0.78rem;
  line-height: 1.48;
}

.document-audit {
  margin: 7px 0 0;
  font-size: 0.7rem;
  font-weight: 720;
}

.audit-ok {
  color: var(--accent);
}

.audit-failed {
  color: var(--danger);
}

.document-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 0.7rem;
}

.document-kind {
  color: var(--accent);
  font-weight: 700;
}

.more-documents {
  margin-top: 14px;
}

.more-documents summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.no-documents {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.84rem;
}

.prompt-section {
  padding: 28px;
  border: 1px solid #b8cec5;
  background: var(--accent-soft);
}

.prompt-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.prompt-heading h2,
.prompt-heading p {
  margin: 0;
}

.prompt-heading p {
  max-width: 660px;
  margin-top: 8px;
  color: #4d5c57;
  font-size: 0.82rem;
}

.copy-prompt {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.copy-prompt:hover {
  background: #0d453b;
}

.prompt-text {
  width: 100%;
  min-height: 360px;
  margin-top: 20px;
  padding: 16px;
  resize: vertical;
  border: 1px solid #aac0b7;
  background: rgba(255, 255, 255, 0.78);
  color: #26312e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

.sources {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.source-links a {
  color: var(--accent);
  font-size: 0.87rem;
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 5vw;
  }

  .report-date {
    display: none;
  }

  .page-shell {
    width: 90vw;
    padding-top: 40px;
  }

  .intro {
    margin-bottom: 42px;
  }

  .organization-passport {
    margin-bottom: 38px;
  }

  .passport-header {
    flex-direction: column;
    gap: 12px;
  }

  .passport-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .passport-fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .passport-body,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .readiness-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .intro h1 {
    font-size: clamp(2.2rem, 10.5vw, 2.75rem);
  }

  .group-nav {
    gap: 23px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search button {
    padding-inline: 14px;
  }

  th:nth-child(2),
  td:nth-child(2) {
    display: none;
  }

  .grant-mobile-summary {
    display: block;
    margin-top: 8px;
    color: #46504d;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  th:first-child,
  td:first-child {
    width: auto;
  }

  .deadline-column,
  .deadline {
    width: 82px;
  }

  .open-column,
  .open-cell {
    width: 36px;
  }

  .detail-shell {
    width: 90vw;
    padding-top: 30px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .compact-facts {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .compact-facts > div,
  .compact-facts > div:first-child {
    padding: 11px 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .compact-facts > div:first-child {
    border-top: 0;
  }

  .analysis {
    grid-template-columns: 1fr;
  }

  .strict-heading,
  .strict-status {
    flex-direction: column;
  }

  .strict-heading {
    gap: 16px;
  }

  .strict-status {
    gap: 7px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .research-summary {
    min-height: auto;
  }

  .section-heading,
  .prompt-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .check-list,
  .document-list {
    grid-template-columns: 1fr;
  }

  .prompt-section {
    margin-inline: -5vw;
    padding-inline: 5vw;
  }

  .copy-prompt {
    width: 100%;
  }

  .participation {
    margin-inline: -5vw;
    padding-inline: 5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .back-link,
  .group-nav,
  .search,
  .pagination {
    display: none !important;
  }

  body {
    background: white;
  }

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