:root {
  --bg: #f4ede1;
  --surface: rgba(255, 250, 244, 0.78);
  --text: #1c2431;
  --muted: #5c6470;
  --primary: #0f766e;
  --primary-dark: #0a4c48;
  --accent: #c46a2b;
  --border: rgba(28, 36, 49, 0.1);
  --shadow: 0 24px 60px rgba(28, 36, 49, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(196, 106, 43, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, #efe4d1 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.inline-admin-toolbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.inline-admin-toolbar strong {
  display: block;
  margin-top: 4px;
}

.topbar,
.hero,
.section,
.footer,
.dashboard-panel,
.dashboard-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 34px;
  margin-bottom: 24px;
}

.hero h1,
.section h2,
.dashboard-panel h1 {
  margin: 8px 0 0;
  font-family: "Playfair Display", serif;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  max-width: 10ch;
}

.section h2,
.dashboard-panel h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow,
.section-kicker,
.panel-label,
.role,
.profile-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 800;
}

.date-line {
  margin: 16px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.subtitle {
  margin: 1rem 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 60ch;
}

.hero-panel {
  padding: 22px;
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.4));
}

.stat-list,
.highlight-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-list li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(28, 36, 49, 0.08);
}

.stat-list li:last-child,
.highlight-list li:last-child,
.contact-list li:last-child {
  border-bottom: 0;
}

.stat-list strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #d48a51);
  color: #fff;
  box-shadow: 0 14px 28px rgba(196, 106, 43, 0.25);
}

.ghost-btn {
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.52);
  color: var(--primary-dark);
}

.btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.section {
  padding: 30px;
  margin-bottom: 24px;
}

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

.date-grid,
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.date-card,
.feature-card,
.committee-card,
.program-card,
.venue-card,
.registration-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.54);
}

.date-card p,
.committee-card p,
.feature-card p,
.program-card li,
.venue-card p,
.registration-card p {
  color: var(--muted);
  line-height: 1.65;
}

.date-card h3,
.committee-card h3,
.feature-card h3,
.program-card h3,
.venue-card h2,
.registration-card h2 {
  margin: 8px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.feature-stack,
.program-list {
  display: grid;
  gap: 18px;
}

.program-card ul,
.dashboard-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.highlight-list li,
.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 36, 49, 0.08);
}

.address {
  font-weight: 700;
  color: var(--text);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px 30px 40px;
  margin-bottom: 30px;
  color: var(--muted);
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.footer-note {
  align-self: end;
}

.footer-note a {
  color: var(--primary-dark);
  font-weight: 800;
}

.inline-edit-active [data-edit-path] {
  outline: 2px dashed rgba(15, 118, 110, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.06);
  cursor: text;
}

.inline-edit-active [data-edit-path]:focus {
  outline-color: rgba(196, 106, 43, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

.dashboard-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-shell {
  width: min(920px, 100%);
}

.admin-shell {
  width: min(1100px, 100%);
}

.dashboard-panel,
.dashboard-card {
  padding: 30px;
}

.dashboard-card {
  margin-top: 20px;
}

.admin-card {
  overflow: hidden;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

code {
  background: rgba(15, 118, 110, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

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

.admin-guide,
.admin-editor-layout {
  display: grid;
  gap: 18px;
}

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

.admin-editor-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.editor-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
}

.editor-main {
  min-width: 0;
}

.guide-card {
  padding: 20px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.guide-card h2 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

.guide-list,
.tip-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.snippet-box {
  margin: 12px 0 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(28, 36, 49, 0.04);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.field-block {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.field-block span {
  color: var(--primary-dark);
}

.field-block small {
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

.field-block input,
.field-block textarea,
.button-reset {
  font: inherit;
}

.field-block input,
.field-block textarea {
  width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.field-block textarea {
  min-height: 720px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.status-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.success-banner {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-dark);
}

.error-banner {
  background: rgba(196, 106, 43, 0.12);
  color: #8a4312;
}

.admin-help {
  color: var(--muted);
  line-height: 1.7;
}

.actions-sticky {
  position: sticky;
  bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 14px 36px rgba(28, 36, 49, 0.1);
}

.button-reset {
  appearance: none;
  cursor: pointer;
}

@media (max-width: 960px) {
  .topbar,
  .nav,
  .topbar-actions,
  .hero,
  .split-section,
  .footer,
  .inline-admin-toolbar,
  .contact-list li,
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .split-section,
  .footer,
  .admin-guide,
  .admin-editor-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .hero h1 {
    max-width: none;
  }

  .editor-sidebar,
  .actions-sticky {
    position: static;
  }

  .field-block textarea {
    min-height: 520px;
  }
}
