:root {
  --green-900: #1b4332;
  --green-700: #2d6a4f;
  --green-500: #40916c;
  --green-100: #d8f3dc;
  --gold: #d4a373;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(27, 67, 50, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f8fbf9 0%, #eef5f1 100%);
  line-height: 1.6;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #dce8e1;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0;
  border-bottom: 1px solid #eef2f7;
}

.aust-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.host-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--green-900);
}

.brand img.ascend-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand span small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-700);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--green-900);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-700);
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  color: var(--green-900);
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--slate-700);
  margin-bottom: 1rem;
}

.hero .theme {
  font-style: italic;
  color: var(--green-700);
  margin-bottom: 1.5rem;
}

.hero-card,
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-aust-logo {
  width: 130px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.hero-ascend-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-900);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  color: var(--green-900);
  margin-top: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--green-700);
}

.panel-card h3 {
  margin-top: 0;
  color: var(--green-800);
  font-size: 1rem;
}

.panel-card p {
  margin-bottom: 0;
  color: var(--slate-500);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green-100);
  color: var(--green-900);
}

form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--slate-700);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.stage-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.stage-tab {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 600;
  text-decoration: none;
}

.stage-tab.active {
  background: var(--green-700);
  color: var(--white);
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.flash.success {
  background: #dcfce7;
  color: #166534;
}

.word-counter {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-align: right;
}

.word-counter.over {
  color: #b91c1c;
  font-weight: 700;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid #dce8e1;
  color: var(--slate-500);
  font-size: 0.92rem;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 88px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.admin-table {
  font-size: 0.9rem;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-received { background: #e0f2fe; color: #075985; }
.status-under_review { background: #fef3c7; color: #92400e; }
.status-accepted { background: #dcfce7; color: #166534; }
.status-revision_needed { background: #ffedd5; color: #9a3412; }
.status-rejected { background: #fee2e2; color: #991b1b; }

@media (max-width: 800px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}
