:root {
  --ink: #101920;
  --muted: #5c6b74;
  --line: #dce5e8;
  --paper: #f6f8f9;
  --white: #ffffff;
  --blue: #1867a8;
  --teal: #178f88;
  --gold: #d89d2b;
  --shadow: 0 24px 70px rgba(16, 25, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1420px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 168px;
  height: auto;
}

.brand span {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-menu a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a:focus {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(24, 103, 168, 0.12), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(23, 143, 136, 0.18), transparent 28%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 40px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.signal-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-panel div {
  min-height: 126px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.login-card,
.form-shell,
.admin-card,
.investment-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-card {
  padding: 1.4rem;
}

.login-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.login-card p:not(.eyebrow) {
  color: var(--muted);
}

.metric {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.label {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1160px) / 2));
  padding-right: max(16px, calc((100% - 1160px) / 2));
  background: var(--ink);
  color: var(--white);
}

.band .eyebrow,
.band p {
  color: #a8d9d5;
}

.section-heading {
  margin-bottom: 2rem;
}

.overview-grid,
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-grid article,
.material-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem;
  background: var(--white);
}

.overview-grid p,
.material-card p,
.contact-section p {
  color: var(--muted);
}

.strategy-list {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.strategy-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.5rem;
  background: #13232c;
}

.strategy-item span {
  color: var(--gold);
  font-weight: 900;
}

.strategy-item p {
  margin-bottom: 0;
}

.material-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.material-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 8px;
  background: #eaf5f4;
  color: var(--teal);
  font-weight: 900;
}

.material-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.narrow-section {
  width: min(760px, calc(100% - 32px));
}

.dashboard-section,
.admin-section {
  min-height: 65vh;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.investment-summary {
  min-width: 260px;
  padding: 1.3rem;
}

.investment-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.investment-summary strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 1;
}

.form-shell,
.admin-card {
  padding: 1.5rem;
}

.portal-form {
  display: grid;
  gap: 1rem;
}

.portal-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.label-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.admin-table input,
.admin-table select,
.admin-table textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.portal-form textarea,
.admin-table textarea {
  resize: vertical;
}

.field-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-note,
.muted {
  color: var(--muted);
}

.form-note a,
.overview-grid article a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.alert {
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.alert.success {
  background: #e8f5ef;
  color: #11643e;
}

.alert.error {
  background: #fff0ef;
  color: #9a271f;
}

.alert.notice {
  background: #fff7e5;
  color: #7a4d00;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--white);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  color: var(--muted);
}

.stat {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.template-list {
  display: grid;
  gap: 1rem;
}

.nda-box {
  max-height: 320px;
  overflow: auto;
  margin: 1.3rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem;
}

.read-status {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.pledge-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1.5rem;
}

.request-list {
  display: grid;
  gap: 1rem;
}

.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.request-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.request-card-head h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.request-card-head p,
.request-copy p,
.document-read-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-pill {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--paper);
  color: var(--muted);
  font-weight: 900;
}

.status-pill.approved {
  background: #e8f5ef;
  color: #11643e;
}

.status-pill.pending {
  background: #fff7e5;
  color: #7a4d00;
}

.status-pill.rejected {
  background: #fff0ef;
  color: #9a271f;
}

.request-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.request-details div {
  min-height: 96px;
  background: var(--paper);
  padding: 1rem;
}

.request-details span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.request-details strong {
  display: block;
  margin-top: 0.35rem;
}

.request-copy,
.document-read-list,
.admin-update-form {
  margin-top: 1rem;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem !important;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.push-top {
  margin-top: 2rem;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 0.1rem 0.3rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.contact-card a {
  padding: 1rem;
  background: var(--paper);
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 150px;
  height: auto;
}

.site-footer p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 840px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 144px;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    width: 100%;
    padding: 0.8rem;
  }

  .hero {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-grid,
  .overview-grid,
  .admin-overview,
  .materials-grid,
  .contact-section,
  .pledge-panel,
  .request-details,
  .field-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    flex-direction: column;
  }

  .investment-summary {
    width: 100%;
  }

  .signal-panel {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .signal-panel {
    grid-template-columns: 1fr;
  }

  .strategy-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
