:root {
  --bg: #f3ede3;
  --panel: rgba(251, 247, 240, 0.94);
  --panel-strong: #fffdf8;
  --ink: #15323a;
  --muted: #647078;
  --accent: #b9493e;
  --accent-soft: #f1d2b1;
  --accent-deep: #11343d;
  --river: #2a7a8c;
  --line: #dfd3c2;
  --shadow: 0 20px 44px rgba(29, 39, 34, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(185, 73, 62, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(42, 122, 140, 0.14), transparent 32%),
    linear-gradient(180deg, #f6f0e6 0%, #efe5d7 100%);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.brand-lockup,
.report-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.brand-logo {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(17, 52, 61, 0.18));
}

.report-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

h1,
h2,
h3 {
  font-family: "Palatino", "Book Antiqua", Georgia, serif;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

.eyebrow,
.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.subhead,
.lead {
  color: var(--muted);
}

.subhead {
  margin: 0;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border: 1px solid rgba(17, 52, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-deep);
}

.nav a:hover {
  text-decoration: none;
  background: rgba(42, 122, 140, 0.08);
}

.page {
  padding-bottom: 48px;
}

.section-gap {
  margin-bottom: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero {
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(17, 52, 61, 0.96), rgba(32, 84, 96, 0.93)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #f7f1e3;
  border-color: rgba(17, 52, 61, 0.2);
}

.hero .lead,
.hero .meta,
.hero .eyebrow {
  color: rgba(247, 241, 227, 0.85);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.hero-tag {
  margin: 0 0 10px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-panel {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(241, 210, 177, 0.18), rgba(241, 210, 177, 0.08)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(241, 210, 177, 0.22);
}

.brand-panel h3 {
  margin: 0 0 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat .label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.bar-label,
.bar-value {
  font-size: 0.9rem;
  color: var(--muted);
}

.bar-track {
  width: 100%;
  height: 14px;
  background: #ecdfd0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e1b05b, #b9493e 55%, #2a7a8c);
}

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

textarea,
input,
select,
button {
  font: inherit;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(42, 122, 140, 0.05);
}

.report-masthead {
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 238, 226, 0.96));
}

.report-kicker {
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.report-page {
  background: var(--panel-strong);
}

.report-header-card {
  padding-bottom: 14px;
}

.report-switcher {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.report-switch-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-switch-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(17, 52, 61, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.report-switch-link:hover {
  text-decoration: none;
  border-color: rgba(185, 73, 62, 0.32);
  background: rgba(241, 210, 177, 0.32);
}

.report-switch-link.is-active {
  background: linear-gradient(135deg, rgba(17, 52, 61, 0.94), rgba(42, 122, 140, 0.92));
  border-color: transparent;
  color: #fffaf3;
}

.member-hero {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  align-items: center;
}

.member-photo {
  width: 108px;
  height: 108px;
}

.member-photo-image,
.member-photo-placeholder {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(241, 210, 177, 0.9), rgba(42, 122, 140, 0.18));
  border: 1px solid rgba(17, 52, 61, 0.1);
  box-shadow: var(--shadow);
}

.member-photo-image {
  object-fit: cover;
}

.member-photo-placeholder {
  font-family: "Palatino", "Book Antiqua", Georgia, serif;
  font-size: 2.4rem;
  color: var(--accent-deep);
}

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(17, 52, 61, 0.1);
  background: linear-gradient(145deg, rgba(241, 210, 177, 0.92), rgba(42, 122, 140, 0.2));
  color: var(--accent-deep);
  box-shadow: 0 8px 18px rgba(17, 52, 61, 0.08);
  flex: 0 0 auto;
}

.member-avatar-sm {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
  font-weight: 700;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-summary-grid {
  margin-bottom: 18px;
}

.report-grid {
  margin-bottom: 18px;
  align-items: start;
}

.report-text-block p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.report-text-block p:last-child {
  margin-bottom: 0;
}

.report-analytics p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.trend-block + .trend-block {
  margin-top: 18px;
}

.trend-block h4 {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bar-row.compact {
  grid-template-columns: 74px 1fr 58px;
  gap: 10px;
  margin-bottom: 8px;
}

.report-footnote {
  margin: 10px 4px 0;
}

.override-form {
  display: grid;
  gap: 12px;
}

.override-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.override-form input[type="text"],
.override-form textarea,
.override-form select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.override-form button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.review-card h3 {
  margin-top: 0;
}

.report-page h3 {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.report-page h3:first-child {
  padding-top: 0;
  border-top: 0;
}

.report-list {
  margin: 0;
  padding-left: 20px;
}

.report-list li {
  margin-bottom: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 10px;
}

.status-captured {
  background: rgba(42, 122, 140, 0.12);
  color: #1d657d;
}

.status-missing {
  background: rgba(185, 73, 62, 0.14);
  color: #9d3d35;
}

.status-pending {
  background: rgba(225, 176, 91, 0.18);
  color: #8d5c16;
}

.progress-card {
  padding: 18px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.progress-value {
  color: var(--accent-deep);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #ecdfd0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a7a8c, #b9493e 78%, #e1b05b);
}

.roster-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.roster-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(42, 122, 140, 0.1);
  border: 1px solid rgba(42, 122, 140, 0.18);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.report-frame {
  width: 100%;
  min-height: 880px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 122, 140, 0.16), transparent 70%);
}

@media print {
  .nav {
    display: none;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }

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

  .hero .lead,
  .hero .meta,
  .hero .eyebrow {
    color: var(--muted);
  }

  .brand-panel {
    background: white;
    border-color: #ddd;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: start;
    flex-direction: column;
  }

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

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

  .bar-row {
    grid-template-columns: 1fr;
  }
}
