:root {
  --green-950: #102018;
  --green-900: #163323;
  --green-800: #1f4a34;
  --green-700: #2c6848;
  --green-600: #3f815b;
  --green-100: #e4f0e8;
  --green-50: #f4faf6;
  --cream: #fbfbf5;
  --ink: #17231d;
  --muted: #5d6b62;
  --line: #d7e3db;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(16, 32, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 170px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--green-900);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-action {
  padding: 9px 13px;
  border: 1px solid var(--green-700);
  border-radius: 8px;
}

.header-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-social-link {
  width: 36px;
  height: 36px;
  color: var(--green-800);
  background: var(--green-50);
  border-color: var(--line);
}

.header-social-link svg {
  width: 19px;
  height: 19px;
}

.hero {
  position: relative;
  min-height: min(720px, 82vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--green-900);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 24, 0.86), rgba(16, 32, 24, 0.5) 48%, rgba(16, 32, 24, 0.08)),
    linear-gradient(0deg, rgba(16, 32, 24, 0.84), transparent 45%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 72px) clamp(44px, 10vh, 92px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.image-credit {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 14px;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.image-credit a {
  color: var(--white);
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.button.petition {
  color: var(--green-950);
  background: var(--green-100);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-band article {
  padding: 22px clamp(18px, 4vw, 56px);
  background: var(--green-50);
}

.status-band span {
  display: block;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-band strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.address-link {
  color: inherit;
  text-decoration-color: rgba(44, 104, 72, 0.42);
  text-underline-offset: 4px;
}

.address-link:hover,
.address-link:focus-visible {
  color: var(--green-700);
}

.section {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 6vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 82px);
  align-items: start;
}

.intro-section .section-kicker,
.section-heading .section-kicker {
  color: var(--green-700);
}

h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 760px;
  margin: 0;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.inline-social {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
}

.inline-social span {
  font-weight: 750;
}

.inline-social div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.inline-social a {
  color: var(--green-800);
  font-weight: 800;
  text-decoration-color: rgba(44, 104, 72, 0.35);
  text-underline-offset: 4px;
}

.timeline-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.timeline-track {
  --date-size: clamp(84px, 9vw, 138px);
  --stem-height: 58px;
  display: flex;
  align-items: start;
  gap: 0;
  overflow: visible;
  padding: 10px 0 12px;
}

.timeline-item {
  --timeline-color: #9aa9a4;
  position: relative;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: var(--date-size) var(--stem-height) 34px auto;
  justify-items: center;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.timeline-item::before,
.timeline-item::after {
  content: "";
  position: absolute;
  top: calc(var(--date-size) + var(--stem-height) - 12px);
  height: 24px;
  background: var(--timeline-color);
}

.timeline-item::before {
  left: 0;
  right: 50%;
}

.timeline-item::after {
  left: 50%;
  right: 0;
}

.timeline-item:first-child::before,
.timeline-item:last-child::after {
  border-radius: 999px 0 0 999px;
}

.timeline-item:last-child::after {
  border-radius: 0 999px 999px 0;
}

.timeline-date {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--date-size);
  height: var(--date-size);
  color: var(--muted);
  background: var(--white);
  border: clamp(8px, 1vw, 12px) solid var(--timeline-color);
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(16, 32, 24, 0.12);
}

.timeline-date span,
.timeline-date strong {
  display: block;
  line-height: 1;
}

.timeline-date span {
  align-self: end;
  font-size: clamp(1rem, 1.55vw, 1.55rem);
  font-weight: 900;
}

.timeline-date strong {
  align-self: start;
  margin-top: clamp(5px, 0.8vw, 10px);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 900;
}

.timeline-stem {
  position: relative;
  z-index: 1;
  width: 6px;
  height: var(--stem-height);
  background: var(--timeline-color);
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -21px;
  background: var(--timeline-color);
  transform: rotate(45deg);
}

.timeline-copy {
  max-width: min(260px, calc(100% - 18px));
  margin-top: 20px;
}

.timeline-copy h3 {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.timeline-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  font-weight: 750;
}

.timeline-item.is-complete {
  --timeline-color: #57c3b6;
}

.timeline-item.is-next {
  --timeline-color: #a8655f;
}

.repository-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.repository-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.informational-links {
  display: grid;
  gap: 16px;
}

.informational-links .section-kicker {
  color: var(--green-700);
}

.informational-links h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-card h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
  line-height: 1.25;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
}

.resource-card .document-link {
  width: fit-content;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.text-link {
  color: var(--green-800);
  font-weight: 800;
  text-decoration-color: rgba(44, 104, 72, 0.35);
  text-underline-offset: 4px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.document-search,
.event-search {
  display: block;
  margin-bottom: 10px;
}

.document-search input,
.event-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.document-list,
.feed-list {
  display: grid;
  gap: 12px;
}

.document-list {
  gap: 6px;
}

.document-card[hidden] {
  display: none;
}

.event-card[hidden] {
  display: none;
}

.document-card,
.feed-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 32, 24, 0.04);
}

.document-card {
  gap: 4px;
  padding: 10px 12px;
}

.repository-section .document-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 7px;
  color: var(--green-900);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.document-card h3,
.feed-card h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
  line-height: 1.25;
}

.document-card h3 {
  font-size: 0.94rem;
  line-height: 1.18;
}

.document-card p,
.feed-card p {
  margin: 0;
  color: var(--muted);
}

.document-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

button.document-link {
  cursor: pointer;
  font: inherit;
}

.document-link.secondary {
  color: var(--muted);
  background: var(--green-50);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.document-pagination,
.event-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.pagination-button.active {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}

.content-grid .section {
  background: var(--green-50);
}

.news-feedback-section {
  display: grid;
  gap: 28px;
}

.feed-card time {
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.feedback-panel {
  display: grid;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.survey-carousel {
  display: grid;
  gap: 12px;
}

.survey-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 32, 24, 0.04);
}

.survey-card[hidden] {
  display: none;
}

.survey-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.survey-card h3 {
  margin: 8px 0 0;
  color: var(--green-950);
  font-size: 1.2rem;
  line-height: 1.2;
}

.survey-card p {
  margin: 0;
  color: var(--muted);
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.share-link:hover,
.share-link:focus-visible {
  color: var(--white);
  background: var(--green-700);
  outline: none;
}

.share-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.survey-form,
.survey-options {
  display: grid;
  gap: 10px;
}

.survey-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  color: var(--green-950);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.survey-options input {
  margin-top: 3px;
  accent-color: var(--green-700);
}

.survey-comment {
  display: grid;
  gap: 5px;
  color: var(--green-900);
  font-size: 0.86rem;
  font-weight: 800;
}

.survey-comment textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.survey-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.survey-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.survey-dots button.active {
  background: var(--green-700);
}

.survey-results {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.survey-detail {
  display: grid;
  gap: 22px;
}

.survey-detail > .intro-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.result-row {
  display: grid;
  gap: 6px;
}

.result-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--green-950);
  font-weight: 800;
}

.result-track {
  overflow: hidden;
  height: 12px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.result-bar {
  display: block;
  height: 100%;
  background: var(--green-700);
  border-radius: 999px;
}

.signup-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.signup-layout > div > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.signup-cta {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.signup-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signup-dialog::backdrop {
  background: rgba(16, 32, 24, 0.56);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

.dialog-heading h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.55rem;
  line-height: 1.1;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.signup-form {
  display: grid;
  gap: 13px;
  padding: 20px;
  background: var(--white);
}

.signup-form label {
  display: grid;
  gap: 5px;
  color: var(--green-900);
  font-size: 0.86rem;
  font-weight: 800;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.signup-status {
  margin: 0;
  color: var(--green-800);
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.event-location {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.event-location span {
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-location a {
  color: var(--green-800);
  font-weight: 800;
  text-decoration-color: rgba(44, 104, 72, 0.35);
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-950);
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
  text-align: right;
}

.social-links span {
  color: var(--green-100);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--green-950);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  text-decoration: none;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--white);
  background: var(--green-700);
  outline: none;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.flag-icon {
  fill: currentColor;
}

.flag-icon .flag-stripe-light {
  fill: var(--green-50);
}

.flag-icon .flag-field {
  fill: var(--green-700);
}

.flag-icon .flag-stars {
  fill: var(--white);
}

.social-link:hover .flag-icon .flag-field,
.social-link:focus-visible .flag-icon .flag-field {
  fill: var(--green-100);
}

.site-footer .flag-icon .flag-stars {
  fill: var(--white);
}

.site-footer .social-link {
  color: var(--green-950);
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: var(--white);
}

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

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

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 660px;
  }

  .image-credit {
    left: 18px;
    right: 18px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(16, 32, 24, 0.9), rgba(16, 32, 24, 0.5) 70%, rgba(16, 32, 24, 0.22)),
      linear-gradient(90deg, rgba(16, 32, 24, 0.72), transparent);
  }

  .status-band,
  .intro-section,
  .content-grid,
  .signup-layout,
  .repository-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: visible;
  }

  .timeline-item {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    gap: 0 18px;
    min-width: 0;
    text-align: left;
  }

  .timeline-item::before,
  .timeline-item::after,
  .timeline-stem,
  .timeline-marker {
    display: none;
  }

  .timeline-date {
    width: 92px;
    height: 92px;
    border-width: 8px;
  }

  .timeline-date span {
    font-size: 1.05rem;
  }

  .timeline-date strong {
    margin-top: 6px;
    font-size: 2rem;
  }

  .timeline-copy {
    max-width: none;
    margin-top: 4px;
  }

  .section-heading,
  .repository-section .document-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
    text-align: left;
  }

  .repository-section .document-card {
    grid-template-columns: 1fr;
  }

  .document-link {
    width: 100%;
  }

  .document-actions {
    justify-content: stretch;
  }

  .resource-card .document-link {
    width: 100%;
  }
}

.admin-page {
  background: var(--green-50);
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs a {
  padding: 10px 13px;
  color: var(--green-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs a.active {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-menu-group {
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-menu-group summary {
  padding: 10px 13px;
  color: var(--green-900);
  cursor: pointer;
  font-weight: 850;
}

.admin-menu-group div {
  display: grid;
  gap: 6px;
  padding: 0 8px 8px;
}

.admin-menu-group a {
  padding: 8px 10px;
  color: var(--green-900);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.admin-menu-group a.active {
  color: var(--white);
  background: var(--green-800);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-grid-full {
  grid-template-columns: 1fr;
}

.admin-panel {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.admin-form {
  display: grid;
  gap: 13px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  color: var(--green-900);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.admin-form input[type="file"] {
  background: var(--green-50);
}

.field-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.inline-admin-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.login-panel {
  max-width: 440px;
}

.admin-error {
  color: #a8655f;
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-row-actions form {
  margin: 0;
}

.admin-row-actions button {
  cursor: pointer;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-table th {
  color: var(--green-900);
  background: var(--green-50);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table a {
  color: var(--green-800);
  font-weight: 750;
}

.admin-table form {
  margin: 0;
}

.admin-tree {
  display: grid;
  gap: 16px;
}

.admin-tree-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-tree-group h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
}

.admin-tree-child {
  position: relative;
  background: var(--white);
}

.admin-tree-child.is-dragging {
  opacity: 0.58;
}

.admin-sortable-list.is-sorting {
  outline: 2px dashed var(--green-600);
  outline-offset: 4px;
}

.admin-tree-child::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--line);
}

.drag-handle {
  cursor: grab;
}

.admin-tree-child.is-dragging .drag-handle {
  cursor: grabbing;
}

.viewer-page {
  background: var(--green-50);
}

.viewer-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.viewer-header h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.viewer-panel {
  min-height: 70vh;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.viewer-frame {
  display: block;
  width: 100%;
  height: 78vh;
  border: 0;
}

.pdf-pages {
  display: grid;
  gap: 18px;
}

.pdf-page {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
}

.pdf-page img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pdf-page figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.viewer-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.viewer-message {
  display: grid;
  gap: 12px;
  max-width: 620px;
  padding: clamp(24px, 6vw, 56px);
}

.viewer-message h2,
.viewer-message p {
  margin: 0;
}

.viewer-message p {
  color: var(--muted);
}

@media (max-width: 780px) {
  .admin-topbar,
  .admin-row,
  .viewer-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-grid,
  .inline-admin-form {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .signup-cta {
    justify-items: start;
  }

  .viewer-actions {
    justify-content: flex-start;
  }
}
